Class SoLineDetail
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.details.SoDetail
-
- com.openinventor.inventor.details.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:
SoDetail
,SoPickedPoint
,SoPrimitiveVertex
,SoVertexShape
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoLineDetail()
Constructor.SoLineDetail(SoLineDetail copyFrom)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SoDetail
copy()
Returns an instance that is a copy of this instance.int
getLineIndex()
Returns the index of the line the segment is part of within a shape, such as the third line within anSoLineSet
.int
getPartIndex()
Returns the index of the part containing the line segment within the shape.SoPointDetail
getPoint(int i)
Returns information about the point forming the i'th end of the line, represented as anSoPointDetail
.SoPointDetail
getPoint0()
Returns information about the first of two points forming the end vertices of the line segment, represented as anSoPointDetail
.SoPointDetail
getPoint1()
Returns information about the second of two points forming the end vertices of the line segment, represented as anSoPointDetail
.SoPointDetail
getPoints()
void
setLineIndex(int i)
void
setPartIndex(int i)
void
setPoint(int index, SoPointDetail pd)
void
setPoint0(SoPointDetail pd)
void
setPoint1(SoPointDetail pd)
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Constructor Detail
-
SoLineDetail
public SoLineDetail(SoLineDetail copyFrom)
-
SoLineDetail
public SoLineDetail()
Constructor.
-
-
Method Detail
-
getLineIndex
public int getLineIndex()
Returns the index of the line the segment is part of within a shape, such as the third line within anSoLineSet
.
-
getPoint1
public SoPointDetail getPoint1()
Returns information about the second of two points forming the end vertices of the line segment, represented as anSoPointDetail
.
-
setPoint0
public void setPoint0(SoPointDetail pd)
-
setPoint1
public void setPoint1(SoPointDetail pd)
-
getPoint
public SoPointDetail getPoint(int i)
Returns information about the point forming the i'th end of the line, represented as anSoPointDetail
.
-
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 anSoLineSet
.
-
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.
-
setLineIndex
public void setLineIndex(int i)
-
setPartIndex
public void setPartIndex(int i)
-
getPoint0
public SoPointDetail getPoint0()
Returns information about the first of two points forming the end vertices of the line segment, represented as anSoPointDetail
.
-
setPoint
public void setPoint(int index, SoPointDetail pd)
-
getPoints
public SoPointDetail getPoints()
-
-