Coin  4.0.3
Coin3D core library
Loading...
Searching...
No Matches
SoPathList Class Reference

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

#include <Inventor/lists/SoPathList.h>

Inheritance diagram for SoPathList:
SoBaseList SbPList

Public Member Functions

 SoPathList (const int size)
 
 SoPathList (const SoPathList &pl)
 
 SoPathList (void)
 
 ~SoPathList ()
 
void append (SoPath *const path)
 
int findPath (const SoPath &path) const
 
SoPathListoperator= (const SoPathList &pl)
 
SoPathoperator[] (const int i) const
 
void sort (void)
 
void uniquify (void)
 
- Public Member Functions inherited from SoBaseList
 SoBaseList (const int size)
 
 SoBaseList (const SoBaseList &l)
 
 SoBaseList (void)
 
 ~SoBaseList ()
 
void addReferences (const SbBool flag)
 
void append (SoBase *ptr)
 
void copy (const SoBaseList &l)
 
void insert (SoBase *ptr, const int addbefore)
 
SbBool isReferencing (void) const
 
SoBaseListoperator= (const SoBaseList &l)
 
SoBaseoperator[] (const int i) const
 
void remove (const int index)
 
void removeItem (SoBase *item)
 
void set (const int i, SoBase *const ptr)
 
void truncate (const int length)
 
- Public Member Functions inherited from SbPList
 SbPList (const int sizehint=DEFAULTSIZE)
 
 SbPList (const SbPList &l)
 
 ~SbPList ()
 
void append (void *item)
 
void copy (const SbPList &l)
 
int find (const void *item) const
 
void fit (void)
 
voidget (const int index) const
 
void ** getArrayPtr (const int start=0) const
 
int getLength (void) const
 
void insert (void *item, const int insertbefore)
 
int operator!= (const SbPList &l) const
 
SbPListoperator= (const SbPList &l)
 
int operator== (const SbPList &l) const
 
void *& operator[] (const int index) const
 
void remove (const int index)
 
void removeFast (const int index)
 
void removeItem (void *item)
 
void set (const int index, void *item)
 
void truncate (const int length, const int fit=0)
 

Additional Inherited Members

- Protected Member Functions inherited from SbPList
void expand (const int size)
 
int getArraySize (void) const
 

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() [1/3]

SoPathList::SoPathList ( void )

Default constructor.

◆ SoPathList() [2/3]

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() [3/3]

SoPathList::SoPathList ( const SoPathList & pl)

Copy constructor.

Does a shallow copy of the SoPath pointer values, but updates reference count.

See also
SoBaseList::SoBaseList(const SoBaseList &)

◆ ~SoPathList()

SoPathList::~SoPathList ( )

Destructor.

See also
SoBaseList::~SoBaseList()

Member Function Documentation

◆ append()

void SoPathList::append ( SoPath *const path)

Append ptr to the list.

See also
SoBaseList::append()

◆ findPath()

int SoPathList::findPath ( const SoPath & path) const

Find and return index of first item equal to path.

◆ operator=()

SoPathList & SoPathList::operator= ( const SoPathList & pl)

Shallow copy of contents of list pl to this list.

See also
SoBaseList::operator=()

◆ operator[]()

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

Return node pointer at index i.

See also
SoBaseList::operator[]()

◆ sort()

void SoPathList::sort ( void )

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

◆ uniquify()

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: