Maintains a list of pointers to paths.
More...
#include <Inventor/SoLists.h>
List of all members.
Public Member Functions |
| SoPathList () |
| SoPathList (int size) |
| SoPathList (const SoPathList &l) |
| ~SoPathList () |
| Destructor.
|
void | append (SoPath *ptr) |
| Adds a path to the end of the list.
|
SoPathList & | operator= (const SoPathList &l) |
| Copies a list, keeping all reference counts correct.
|
SoPath * | operator[] (int i) const |
| Access an element of a list.
|
int | findPath (const SoPath &path) |
| Returns the index of the matching path in the list, or -1 if not found.
|
void | sort () |
| Sorts list in place based on (1) increasing address of head node, then (2) increasing indices of children.
|
void | uniquify () |
| Given a sorted list, removes any path that (1) is a duplicate, or (2) goes through a node that is the tail of another path.
|
Detailed Description
This subclass of SoBaseList holds lists of pointers to SoPaths. It updates reference counts to paths in the list whenever adding or removing pointers.
- See Also
- SoPath
Definition at line 212 of file SoLists.h.
Constructor & Destructor Documentation
SoPathList::SoPathList |
( |
| ) |
[inline] |
SoPathList::SoPathList |
( |
int |
size | ) |
[inline] |
SoPathList::SoPathList |
( |
const SoPathList & |
l | ) |
[inline] |
SoPathList::~SoPathList |
( |
| ) |
[inline] |
Member Function Documentation
void SoPathList::append |
( |
SoPath * |
ptr | ) |
[inline] |
int SoPathList::findPath |
( |
const SoPath & |
path | ) |
|
SoPath* SoPathList::operator[] |
( |
int |
i | ) |
const [inline] |
void SoPathList::sort |
( |
| ) |
|
void SoPathList::uniquify |
( |
| ) |
|
The documentation for this class was generated from the following file:
- MeVis/ThirdParty/Sources/Inventor/inventor/lib/database/include/Inventor/SoLists.h