51#ifndef SO_PICKED_POINT_LIST_H
52#define SO_PICKED_POINT_LIST_H
114 { truncate_(
start ); }
130 void truncate_(
int start,
bool wDelete =
true );
List of generic (void *) pointers.
void append(void *ptr)
Adds given pointer to end of list.
void insert(void *ptr, int addBefore)
Inserts given pointer in list before pointer with given index.
Represents point on surface of picked object.
Maintains a list of pointers to SoPickedPoint instances.
SoPickedPointList(const SoPickedPointList &l)
Constructor that copies the contents of another list.
void insert(SoPickedPoint *pickedPoint, int addBefore)
Inserts given pointer in list before pointer with given index.
SoPickedPointList()
Constructor.
void append(SoPickedPoint *pickedPoint)
Adds a pointer to the end of the list.
SoPickedPoint * operator[](int i) const
Returns pointer with given index.
SoPickedPointList(int size)
Constructor that pre-allocates storage for size pointers.
void set(int i, SoPickedPoint *pickedPoint)
Sets an element of a list.
virtual void truncate(int start)
Removes all pointers after one with given index, inclusive, deleting all instances removed from the l...
virtual ~SoPickedPointList()
Destructor.