Class SoLineDetail
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.details.SoDetail
com.openinventor.inventor.details.SoLineDetail
- Direct Known Subclasses:
MoLineDetail
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:
-
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 -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Returns an instance that is a copy of this instance.int
Returns the index of the line the segment is part of within a shape, such as the third line within anSoLineSet
.int
Returns the index of the part containing the line segment within the shape.getPoint
(int i) Returns information about the point forming the i'th end of the line, represented as anSoPointDetail
.Returns information about the first of two points forming the end vertices of the line segment, represented as anSoPointDetail
.Returns information about the second of two points forming the end vertices of the line segment, represented as anSoPointDetail
.void
setLineIndex
(int i) void
setPartIndex
(int i) void
setPoint
(int index, SoPointDetail pd) void
void
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Constructor Details
-
SoLineDetail
-
SoLineDetail
public SoLineDetail()Constructor.
-
-
Method Details
-
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
Returns information about the second of two points forming the end vertices of the line segment, represented as anSoPointDetail
. -
setPoint0
-
setPoint1
-
getPoint
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
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
Returns information about the first of two points forming the end vertices of the line segment, represented as anSoPointDetail
. -
setPoint
-
getPoints
-