51#ifndef SO_DETAIL_LIST_H
52#define SO_DETAIL_LIST_H
54#include <Inventor/SbPList.h>
124 {
copy(l) ;
return *
this; }
128 {
return (
static_cast<SoDetail*
> ( (*
static_cast<const SbPList *
>(
this)) [i] ) ); }
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.
Base class for describing detail information about a shape node.
Maintains a list of instances of details.
SoDetailList()
Constructor.
void copy(const SoDetailList &l)
Copies a list, making a copy of each detail instance in the list.
virtual void truncate(int start)
Removes all details after one with given index, inclusive.
SoDetailList(const SoDetailList &l)
Constructor that copies the contents of another list.
SoDetailList(int size)
Constructor that pre-allocates storage for size pointers.
SoDetail * operator[](int i) const
Returns pointer with given index.
SoDetailList & operator=(const SoDetailList &l)
Copies a list, making a copy of each detail instance in the list.
void insert(SoDetail *detail, int addBefore)
Inserts given detail in list before detail with given index.
virtual ~SoDetailList()
Destructor.
void set(int i, SoDetail *detail)
Sets an element of a list, deleting the old entry first.
void append(SoDetail *detail)
Adds a detail to the end of the list.