| 1 |
NAME SoLineDetail SoLineDtl "" { |
| 2 |
stores detail information about vertex-based shapes made of line segments |
| 3 |
} |
| 4 |
|
| 5 |
INCLUDE details/SoLineDetail.h |
| 6 |
|
| 7 |
DESC { |
| 8 |
This class contains detail information about a point on a line segment |
| 9 |
in a vertex-based shape made of line segments. The information |
| 10 |
includes the points at the ends of the segment, and the index of the |
| 11 |
segment within the shape. |
| 12 |
} |
| 13 |
|
| 14 |
METHOD "" SoLineDetail() {} |
| 15 |
METHOD "" virtual ~SoLineDetail() { Constructor and destructor. } |
| 16 |
|
| 17 |
METHOD getPt0 const SoPointDetail * getPoint0() const {} |
| 18 |
METHOD getPt1 const SoPointDetail * getPoint1() const { |
| 19 |
These return information about the two points forming the end vertices of |
| 20 |
the line segment, represented as an \cSoPointDetail\.. |
| 21 |
} |
| 22 |
|
| 23 |
METHOD getLineInd int32_t getLineIndex() const { |
| 24 |
Returns the index of the line the segment is part of within a shape, |
| 25 |
such as the third line within an \cSoLineSet\.. |
| 26 |
} |
| 27 |
|
| 28 |
METHOD getPartInd int32_t getPartIndex() const { |
| 29 |
Returns the index of the part containing the line segment within the |
| 30 |
shape. Usually, the part index is the same as the line segment index, |
| 31 |
such as the fifth segment overall within an \cSoLineSet\.. |
| 32 |
} |
| 33 |
|
| 34 |
METHOD "" static SoType getClassTypeId() { |
| 35 |
Returns type identifier for this class. |
| 36 |
} |
| 37 |
|
| 38 |
ALSO { SoDetail, SoPickedPoint, SoPrimitiveVertex, SoVertexShape } |