SoPickedPointList Class Reference

Maintains a list of pointers to SoPickedPoint instances. More...

#include <Inventor/lists/SoPickedPointList.h>

Inheritance diagram for SoPickedPointList:

List of all members.

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)
SoPickedPointoperator[] (int i) const
void set (int i, SoPickedPoint *pickedPoint)

Detailed Description

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

Constructor & Destructor Documentation

SoPickedPointList::SoPickedPointList (  )  [inline]


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]


Member Function Documentation

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.

The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.