Coin
4.0.3
Coin3D core library
|
The SbVec3fList class is a container for pointers to SbVec3f objects. More...
#include <Inventor/lists/SbVec3fList.h>
Public Member Functions | |
SbVec3fList (void) | |
~SbVec3fList () | |
void | append (const SbVec3f *item) |
void | insert (const SbVec3f *item, const int insertbefore) |
SbVec3f * | operator[] (const int idx) const |
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) |
void * | get (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 |
SbPList & | operator= (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 |
The SbVec3fList class is a container for pointers to SbVec3f objects.
Note that upon using the equality and inequality operators, the SbVec3f objects themselves are not compared, only the pointer values.
Note also that all calls to append() and insert() will cause the list to allocate a new SbVec3f object. These objects are freed when the list is destructed.
|
inline |
Default constructor.
SbVec3fList::~SbVec3fList | ( | ) |
Destructor.
Append item to the end of the list.
Automatically allocates more items internally if needed.
Overloaded from parent to allocate a new SbVec3f instance when called.
Insert item at index insertbefore.
insertbefore should not be larger than the current number of items in the list.
Overloaded from parent to allocate a new SbVec3f instance when called.
Returns element at index.
Will automatically expand the size of the internal array if index is outside the current bounds of the list. The values of any additional pointers are then set to NULL
.
Overloaded from parent to return an SbVec3f pointer.