Coin  4.0.3
Coin3D core library
Loading...
Searching...
No Matches
SoLightPath Class Reference

The SoLightPath class is a light version of SoPath. More...

#include <Inventor/misc/SoLightPath.h>

Public Member Functions

 SoLightPath (const int approxlength)
 
 SoLightPath (SoNode *node, const int approxlength)
 
 ~SoLightPath ()
 
void append (const int childindex)
 
int getFullLength () const
 
SoNodegetHead (void) const
 
int getIndex (const int index) const
 
SoNodegetNode (const int index) const
 
SoNodegetTail (void) const
 
void makeTempPath (SoTempPath *path) const
 
void pop (void)
 
void push (const int childindex)
 
void setHead (SoNode *const node)
 
void setTail (const int childindex)
 
void truncate (const int startindex)
 

Detailed Description

The SoLightPath class is a light version of SoPath.

SoLightPath can be used if you only need a temporary path, and don't want the overhead that comes with an SoPath (ref, unref, auditing etc).

It is your responsibility to make sure the path is valid before using it.

Constructor & Destructor Documentation

◆ SoLightPath() [1/2]

SoLightPath::SoLightPath ( SoNode * headnodeptr,
const int approxlength )

A constructor. Supply the head node and the approximate length of the path.

◆ SoLightPath() [2/2]

SoLightPath::SoLightPath ( const int approxlength)

A constructor. Supply the approximate length of the path.

◆ ~SoLightPath()

SoLightPath::~SoLightPath ( )

Destructor.

Member Function Documentation

◆ append()

void SoLightPath::append ( const int childindex)

Appends a childindex to the path.

◆ getFullLength()

int SoLightPath::getFullLength ( ) const

Returns the length of the path.

◆ getHead()

SoNode * SoLightPath::getHead ( void ) const

Returns the head node.

◆ getIndex()

int SoLightPath::getIndex ( const int index) const

Returns the child index of the index'th node in the path.

◆ getNode()

SoNode * SoLightPath::getNode ( const int index) const

Returns the index'th node in path.

◆ getTail()

SoNode * SoLightPath::getTail ( void ) const

Returns the tail node of the path. Uses getNode().

◆ makeTempPath()

void SoLightPath::makeTempPath ( SoTempPath * path) const

Updates path to be the same path as this path.

◆ pop()

void SoLightPath::pop ( void )

Pops off the last child.

◆ push()

void SoLightPath::push ( const int childindex)

Same as append().

◆ setHead()

void SoLightPath::setHead ( SoNode *const node)

Sets head of path. Truncates path to length 1.

◆ setTail()

void SoLightPath::setTail ( const int childindex)

Sets the tail of the path.

◆ truncate()

void SoLightPath::truncate ( const int startindex)

Truncates the path from startindex.


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