Stores detail information about vertex-based shapes made of line segments. More...
#include <Inventor/details/SoLineDetail.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
SoLineDetail () | |
virtual | ~SoLineDetail () |
const SoPointDetail * | getPoint0 () const |
const SoPointDetail * | getPoint1 () const |
int32_t | getLineIndex () const |
int32_t | getPartIndex () const |
virtual SoDetail * | copy () const |
Static Public Member Functions | |
static SoType | getClassTypeId () |
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.
SoDetail, SoPickedPoint, SoPrimitiveVertex, SoVertexShape
SoLineDetail::SoLineDetail | ( | ) |
Constructor.
virtual SoLineDetail::~SoLineDetail | ( | ) | [virtual] |
Destructor.
virtual SoDetail* SoLineDetail::copy | ( | ) | const [virtual] |
Returns an instance that is a copy of this instance. The caller is responsible for deleting the copy when it is no longer needed.
Implements SoDetail.
Reimplemented in MoLineDetail, MoLineDetailI, MoLineDetailIj, and MoLineDetailIjk.
static SoType SoLineDetail::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoDetail.
Reimplemented in MoLineDetail, MoLineDetailI, MoLineDetailIj, and MoLineDetailIjk.
int32_t SoLineDetail::getLineIndex | ( | ) | const [inline] |
Returns the index of the line the segment is part of within a shape, such as the third line within an SoLineSet.
int32_t SoLineDetail::getPartIndex | ( | ) | const [inline] |
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.
const SoPointDetail* SoLineDetail::getPoint0 | ( | ) | const [inline] |
Returns information about the first of two points forming the end vertices of the line segment, represented as an SoPointDetail.
const SoPointDetail* SoLineDetail::getPoint1 | ( | ) | const [inline] |
Returns information about the second of two points forming the end vertices of the line segment, represented as an SoPointDetail.
virtual SoType SoLineDetail::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Implements SoTypedObject.
Reimplemented in MoLineDetail, MoLineDetailI, MoLineDetailIj, and MoLineDetailIjk.