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

Public Member Functions

 SoLineDetail ()
 Constructor and destructor. More...
 
virtual ~SoLineDetail ()
 Constructor and destructor. More...
 
const SoPointDetailgetPoint0 () const
 These return information about the two points forming the end vertices of the line segment, represented as an SoPointDetail. More...
 
const SoPointDetailgetPoint1 () const
 These return information about the two points forming the end vertices of the line segment, represented as an SoPointDetail. More...
 
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. More...
 
int32_t getPartIndex () const
 Returns the index of the part containing the line segment within the shape. More...
 
virtual SoDetailcopy () const
 Returns an instance that is a copy of this instance. More...
 
void setPoint0 (const SoPointDetail *pd)
 Copies a point detail from the given detail. More...
 
void setPoint1 (const SoPointDetail *pd)
 
void setLineIndex (int32_t i)
 Sets the line index and part index. More...
 
void setPartIndex (int32_t i)
 
void setLineIndex (long i)
 
void setPartIndex (long i)
 
- Public Member Functions inherited from SoDetail
virtual ~SoDetail ()
 Destructor. More...
 
virtual SoType getTypeId () const =0
 Returns the type identifier for a specific instance. More...
 
bool isOfType (SoType type) const
 Returns TRUE if this object is of the type specified in type or is derived from that type. More...
 

Static Public Member Functions

static void initClass ()
 
- Static Public Member Functions inherited from SoDetail
static SoType getClassTypeId ()
 Returns type identifier for this class. More...
 
static void initClass ()
 
static void initClasses ()
 Initialize ALL Inventor detail classes. More...
 

Additional Inherited Members

- Protected Member Functions inherited from SoDetail
 SoDetail ()
 Constructor is protected since this is an abstract class. More...
 

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::SoLineDetail ( )

◆ ~SoLineDetail()

virtual SoLineDetail::~SoLineDetail ( )
virtual

Member Function Documentation

◆ copy()

virtual SoDetail* SoLineDetail::copy ( ) const
virtual

The caller is responsible for deleting the copy when done.

Implements SoDetail.

◆ getLineIndex()

int32_t SoLineDetail::getLineIndex ( ) const
inline

Definition at line 98 of file SoLineDetail.h.

◆ getPartIndex()

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.

◆ getPoint0()

const SoPointDetail* SoLineDetail::getPoint0 ( ) const
inline

Definition at line 91 of file SoLineDetail.h.

◆ getPoint1()

const SoPointDetail* SoLineDetail::getPoint1 ( ) const
inline

Definition at line 94 of file SoLineDetail.h.

◆ initClass()

static void SoLineDetail::initClass ( )
static

◆ setLineIndex() [1/2]

void SoLineDetail::setLineIndex ( int32_t  i)
inline

Definition at line 115 of file SoLineDetail.h.

◆ setLineIndex() [2/2]

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

Definition at line 119 of file SoLineDetail.h.

◆ setPartIndex() [1/2]

void SoLineDetail::setPartIndex ( int32_t  i)
inline

Definition at line 116 of file SoLineDetail.h.

◆ setPartIndex() [2/2]

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

Definition at line 121 of file SoLineDetail.h.

◆ setPoint0()

void SoLineDetail::setPoint0 ( const SoPointDetail pd)

◆ setPoint1()

void SoLineDetail::setPoint1 ( const SoPointDetail pd)

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