Coin  4.0.10
Coin3D core library
Loading...
Searching...
No Matches
SoFullPathView Class Referencefinal

The SoFullPathView class provides safe access to a complete SoPath. More...

#include <Inventor/SoPath.h>

Public Member Functions

int getIndexFromTail (const int index) const
 
int getLength (void) const
 
SoNodegetNodeFromTail (const int index) const
 
SoNodegetTail (void) const
 

Detailed Description

The SoFullPathView class provides safe access to a complete SoPath.

SoFullPathView is a non-owning view over a SoPath. It provides the alternate path operations whose SoPath equivalents stop at hidden children. The source SoPath must outlive the view.

Obtain a view through SoPath::fullPath(). The view reflects subsequent changes to the source path and does not allocate or alter reference counts.

Member Function Documentation

◆ getIndexFromTail()

int SoFullPathView::getIndexFromTail ( const int index) const

Returns the child index positioned index nodes from the actual tail, counting hidden children. Returns -1 if index is outside the complete path.

◆ getLength()

int SoFullPathView::getLength ( void ) const

Returns the number of nodes in the complete path, including hidden children. An empty path has length zero.

◆ getNodeFromTail()

SoNode * SoFullPathView::getNodeFromTail ( const int index) const

Returns the node positioned index nodes from the actual tail, counting hidden children. Returns NULL if index is outside the complete path.

◆ getTail()

SoNode * SoFullPathView::getTail ( void ) const

Returns the actual tail node, including hidden children. Returns NULL when the path is empty.


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