SoLightPath(3) Coin SoLightPath(3)

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

#include <Inventor/misc/SoLightPath.h>


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

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.

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

A constructor. Supply the approximate length of the path.

Destructor.

Sets head of path. Truncates path to length 1.

Appends a childindex to the path.

Same as append().

Pops off the last child.

Sets the tail of the path.

SoNode * SoLightPath::getTail (void ) const

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

SoNode * SoLightPath::getHead (void ) const

Returns the head node.

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

Returns the index'th node in path.

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

Returns the length of the path.

Truncates the path from startindex.

Updates path to be the same path as this path.

Generated automatically by Doxygen for Coin from the source code.

Fri Sep 6 2024 15:32:06 Version 4.0.3