Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

SoPathList Class Reference
[General classes]

The SoPathList class is a container for pointers to SoPath objects. More...

#include <Inventor/lists/SoPathList.h>

Inheritance diagram for SoPathList:

SoBaseList SbPList SbList< void * > List of all members.

Public Member Functions

 SoPathList (void)
 SoPathList (const int size)
 SoPathList (const SoPathList &pl)
 ~SoPathList ()
void append (SoPath *const path)
SoPathoperator[] (const int i) const
SoPathListoperator= (const SoPathList &pl)
int findPath (const SoPath &path) const
void sort (void)
void uniquify (void)

Detailed Description

The SoPathList class is a container for pointers to SoPath objects.

As this class inherits SoBaseList, referencing and dereferencing will default be done on the objects at append(), remove(), insert() etc.


Constructor & Destructor Documentation

SoPathList::SoPathList void   ) 
 

Default constructor.

SoPathList::SoPathList const int  size  ) 
 

Constructor with a hint about the number of elements the list will hold.

See also:
SoBaseList::SoBaseList(const int)

SoPathList::SoPathList const SoPathList pl  ) 
 

Copy constructor.

See also:
SoBaseList::SoBaseList(const SoBaseList &)

SoPathList::~SoPathList  ) 
 

Destructor.

See also:
SoBaseList::~SoBaseList()


Member Function Documentation

void SoPathList::append SoPath *const  path  ) 
 

Append ptr to the list.

See also:
SoBaseList::append()

SoPath * SoPathList::operator[] const int  i  )  const
 

Return node pointer at index i.

See also:
SoBaseList::operator[]()

Reimplemented from SoBaseList.

SoPathList & SoPathList::operator= const SoPathList pl  ) 
 

Copy contents of list pl to this list.

See also:
SoBaseList::operator=()

int SoPathList::findPath const SoPath path  )  const
 

Find and return index of first item equal to path.

void SoPathList::sort void   ) 
 

Sort paths in list according to how early they are run into when traversing the scene graph.

void SoPathList::uniquify void   ) 
 

Removes identical paths and paths that go through the tail of another path.

Note that this method assumes the list to be in a sorted order.

See also:
sort()


The documentation for this class was generated from the following files:
Generated on Tue Jul 27 23:53:06 2004 for Coin by doxygen 1.3.7