Open Inventor Reference
SoLightPath Class Reference

A SoLightPath is a light-weight version of an SoTempPath, intended to be used just to keep track of the current path during traversal. More...

#include <Inventor/SoPath.h>

List of all members.

Public Member Functions

 SoLightPath (int approxLength)
 Constructor given approximate number of nodes in chain.
void setHead (SoNode *node)
 Sets head node (first node in chain) Resulting path has only one node.
void append (int childIndex)
 Adds node specified by childindex to end of chain.
void push (int childIndex)
 Allows path to be treated as a stack: push a node at the end of the chain and pop the last node off.
void push ()
void pop ()
void setTail (int childIndex)
SoNodegetTail ()
SoNodegetHead () const
 Returns the first node in a path chain.
SoNodegetNode (int i) const
 Returns pointer to ith node in chain.
int getFullLength () const
 Returns full length of path chain (number of nodes) note that public/private distinction is ignored.
void truncate (int start)
 Removes all nodes from indexed node on.
void makeTempPath (SoTempPath *tmpPath) const
 fills in nodes for a TempPath that is represented by this SoLightPath.

Friends

class SoAction

Detailed Description

Eventually it is intended to replace SoTempPath (when appropriate modifications are made to SoDraggers). Unlike SoPath, it keeps only a chain of childIndices and a headnode. The methods implemented are only those needed for traversal.

Definition at line 348 of file SoPath.h.


Constructor & Destructor Documentation

SoLightPath::SoLightPath ( int  approxLength)

Member Function Documentation

void SoLightPath::append ( int  childIndex) [inline]

Definition at line 361 of file SoPath.h.

int SoLightPath::getFullLength ( ) const [inline]

Definition at line 383 of file SoPath.h.

SoNode* SoLightPath::getHead ( ) const [inline]

Definition at line 376 of file SoPath.h.

SoNode* SoLightPath::getNode ( int  i) const
SoNode* SoLightPath::getTail ( ) [inline]

Definition at line 372 of file SoPath.h.

void SoLightPath::makeTempPath ( SoTempPath tmpPath) const
void SoLightPath::pop ( ) [inline]

Definition at line 369 of file SoPath.h.

void SoLightPath::push ( ) [inline]

Definition at line 368 of file SoPath.h.

void SoLightPath::push ( int  childIndex) [inline]

Definition at line 367 of file SoPath.h.

void SoLightPath::setHead ( SoNode node)
void SoLightPath::setTail ( int  childIndex) [inline]

Definition at line 370 of file SoPath.h.

void SoLightPath::truncate ( int  start) [inline]

Definition at line 386 of file SoPath.h.


Friends And Related Function Documentation

friend class SoAction [friend]

Definition at line 400 of file SoPath.h.


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