Open Inventor Reference
|
Maintains a list of pointers to SoPickedPoint instances. More...
#include <Inventor/SoLists.h>
Public Member Functions | |
SoPickedPointList () | |
SoPickedPointList (int size) | |
SoPickedPointList (const SoPickedPointList &l) | |
Constructor that copies the contents of another list. | |
~SoPickedPointList () | |
Destructor. | |
void | append (SoPickedPoint *pickedPoint) |
Adds a pointer to the end of the list. | |
void | insert (SoPickedPoint *pickedPoint, int addBefore) |
Inserts given pointer in list before pointer with given index. | |
void | truncate (int start) |
Removes all pointers after one with given index, inclusive, deleting all instances removed from the list. | |
SoPickedPoint * | operator[] (int i) const |
Access an element of a list. | |
void | set (int i, SoPickedPoint *pickedPoint) |
Sets an element of a list. |
This subclass of SbPList holds lists of pointers to instances of classes derived from SoPickedPoint. It is used primarily to return information from picking with the SoRayPickAction class.
SoPickedPointList::SoPickedPointList | ( | const SoPickedPointList & | l | ) |
SoPickedPointList::~SoPickedPointList | ( | ) | [inline] |
Definition at line 390 of file SoLists.h.
References SbPList::truncate().
void SoPickedPointList::append | ( | SoPickedPoint * | pickedPoint | ) | [inline] |
Definition at line 393 of file SoLists.h.
References SbPList::append().
void SoPickedPointList::insert | ( | SoPickedPoint * | pickedPoint, |
int | addBefore | ||
) | [inline] |
Definition at line 397 of file SoLists.h.
References SbPList::insert().
SoPickedPoint* SoPickedPointList::operator[] | ( | int | i | ) | const [inline] |
void SoPickedPointList::set | ( | int | i, |
SoPickedPoint * | pickedPoint | ||
) |
void SoPickedPointList::truncate | ( | int | start | ) |
Reimplemented from SbPList.