Open Inventor Reference
SoLineDetail Class Reference

Stores detail information about vertex-based shapes made of line segments. More...

#include <Inventor/details/SoLineDetail.h>

Inheritance diagram for SoLineDetail:
SoDetail

List of all members.

Public Member Functions

 SoLineDetail ()
 Constructor and destructor.
virtual ~SoLineDetail ()
 Constructor and destructor.
const SoPointDetailgetPoint0 () const
 These return information about the two points forming the end vertices of the line segment, represented as an SoPointDetail.
const SoPointDetailgetPoint1 () const
 These return information about the two points forming the end vertices of the line segment, represented as an SoPointDetail.
int32_t getLineIndex () const
 Returns the index of the line the segment is part of within a shape, such as the third line within an SoLineSet.
int32_t getPartIndex () const
 Returns the index of the part containing the line segment within the shape.
virtual SoDetailcopy () const
 Returns an instance that is a copy of this instance.
void setPoint0 (const SoPointDetail *pd)
 Copies a point detail from the given detail.
void setPoint1 (const SoPointDetail *pd)
void setLineIndex (int32_t i)
 Sets the line index and part index.
void setPartIndex (int32_t i)
void setLineIndex (long i)
void setPartIndex (long i)

Static Public Member Functions

static void initClass ()

Detailed Description

This class contains detail information about a point on 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

Definition at line 78 of file SoLineDetail.h.


Constructor & Destructor Documentation

SoLineDetail::SoLineDetail ( )
virtual SoLineDetail::~SoLineDetail ( ) [virtual]

Member Function Documentation

virtual SoDetail* SoLineDetail::copy ( ) const [virtual]

The caller is responsible for deleting the copy when done.

Implements SoDetail.

int32_t SoLineDetail::getLineIndex ( ) const [inline]

Definition at line 98 of file SoLineDetail.h.

int32_t SoLineDetail::getPartIndex ( ) const [inline]

Usually, the part index is the same as the line segment index, such as the fifth segment overall within an SoLineSet.

Definition at line 103 of file SoLineDetail.h.

const SoPointDetail* SoLineDetail::getPoint0 ( ) const [inline]

Definition at line 91 of file SoLineDetail.h.

const SoPointDetail* SoLineDetail::getPoint1 ( ) const [inline]

Definition at line 94 of file SoLineDetail.h.

static void SoLineDetail::initClass ( ) [static]

Reimplemented from SoDetail.

void SoLineDetail::setLineIndex ( int32_t  i) [inline]

Definition at line 115 of file SoLineDetail.h.

void SoLineDetail::setLineIndex ( long  i) [inline]
Parameters:
iSystem long

Definition at line 119 of file SoLineDetail.h.

References setLineIndex().

Referenced by setLineIndex().

void SoLineDetail::setPartIndex ( int32_t  i) [inline]

Definition at line 116 of file SoLineDetail.h.

void SoLineDetail::setPartIndex ( long  i) [inline]
Parameters:
iSystem long

Definition at line 121 of file SoLineDetail.h.

References setPartIndex().

Referenced by setPartIndex().

void SoLineDetail::setPoint0 ( const SoPointDetail pd)
void SoLineDetail::setPoint1 ( const SoPointDetail pd)

The documentation for this class was generated from the following file: