Class SoLineDetail

Direct Known Subclasses:
MoLineDetail

public class SoLineDetail extends SoDetail
Stores detail information about vertex-based shapes made of line segments. This class contains detail information about a line segment in a vertex-based shape made of line segments. The information includes the points at the ends of the segment, and the index of the segment within the shape.

See Also:
  • Constructor Details

    • SoLineDetail

      public SoLineDetail(SoLineDetail copyFrom)
    • SoLineDetail

      public SoLineDetail()
      Constructor.
  • Method Details

    • getPartIndex

      public int getPartIndex()
      Returns the index of the part containing the line segment within the shape. Usually, the part index is the same as the line segment index, such as the fifth segment overall within an SoLineSet.
    • getPoint

      public SoPointDetail getPoint(int i)
      Returns information about the point forming the i'th end of the line, represented as an SoPointDetail.
    • getPoint1

      public SoPointDetail getPoint1()
      Returns information about the second of two points forming the end vertices of the line segment, represented as an SoPointDetail.
    • setPoint1

      public void setPoint1(SoPointDetail pd)
    • setPoint

      public void setPoint(int index, SoPointDetail pd)
    • getPoint0

      public SoPointDetail getPoint0()
      Returns information about the first of two points forming the end vertices of the line segment, represented as an SoPointDetail.
    • getPoints

      public SoPointDetail getPoints()
    • setLineIndex

      public void setLineIndex(int i)
    • copy

      public SoDetail copy()
      Returns an instance that is a copy of this instance. The caller is responsible for deleting the copy when it is no longer needed.
      Overrides:
      copy in class SoDetail
    • setPartIndex

      public void setPartIndex(int i)
    • setPoint0

      public void setPoint0(SoPointDetail pd)
    • getLineIndex

      public int getLineIndex()
      Returns the index of the line the segment is part of within a shape, such as the third line within an SoLineSet.