Maintains a list of pointers to SoPickedPoint instances. More...
#include <Inventor/lists/SoPickedPointList.h>
Public Member Functions | |
SoPickedPointList () | |
SoPickedPointList (int size) | |
SoPickedPointList (const SoPickedPointList &l) | |
virtual | ~SoPickedPointList () |
void | append (SoPickedPoint *pickedPoint) |
void | insert (SoPickedPoint *pickedPoint, int addBefore) |
virtual void | truncate (int start) |
SoPickedPoint * | operator[] (int i) const |
void | set (int i, SoPickedPoint *pickedPoint) |
Maintains a list of pointers to SoPickedPoint instances.
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.
SoPickedPoint, SoRayPickAction
SoPickedPointList::SoPickedPointList | ( | ) | [inline] |
Constructor.
SoPickedPointList::SoPickedPointList | ( | int | size | ) | [inline] |
Constructor that pre-allocates storage for size pointers.
SoPickedPointList::SoPickedPointList | ( | const SoPickedPointList & | l | ) |
Constructor that copies the contents of another list.
virtual SoPickedPointList::~SoPickedPointList | ( | ) | [inline, virtual] |
Destructor.
void SoPickedPointList::append | ( | SoPickedPoint * | pickedPoint | ) | [inline] |
Adds a pointer to the end of the list.
void SoPickedPointList::insert | ( | SoPickedPoint * | pickedPoint, | |
int | addBefore | |||
) | [inline] |
Inserts given pointer in list before pointer with given index.
SoPickedPoint* SoPickedPointList::operator[] | ( | int | i | ) | const [inline] |
Returns pointer with given index. If requested index does not exists, list is grown to return a valid pointer.
Reimplemented from SbPList.
void SoPickedPointList::set | ( | int | i, | |
SoPickedPoint * | pickedPoint | |||
) |
Sets an element of a list.
virtual void SoPickedPointList::truncate | ( | int | start | ) | [inline, virtual] |
Removes all pointers after one with given index, inclusive, deleting all instances removed from the list.
Reimplemented from SbPList.