00001 #ifndef COIN_SODETAILLIST_H
00002 #define COIN_SODETAILLIST_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #include <Inventor/lists/SbPList.h>
00028
00029 class SoDetail;
00030
00031 class COIN_DLL_API SoDetailList : public SbPList {
00032 public:
00033 SoDetailList(void) : SbPList() { }
00034 SoDetailList(const int sizehint) : SbPList (sizehint) { }
00035 SoDetailList(const SoDetailList & l);
00036 ~SoDetailList();
00037
00038 void append(SoDetail * detail) {
00039 SbPList::append((void*) detail);
00040 }
00041 void insert(SoDetail * detail, const int insertbefore) {
00042 SbPList::insert((void*) detail, insertbefore);
00043 }
00044 void truncate(const int length, const int fit = 0);
00045 void copy(const SoDetailList & l);
00046 SoDetailList & operator=(const SoDetailList & l) {
00047 this->copy(l);
00048 return *this;
00049 }
00050 SoDetail * operator[](const int idx) const {
00051 return (SoDetail*) ((*(const SbPList*)this)[idx]);
00052 }
00053 void set(const int index, SoDetail * item);
00054 };
00055
00056 #endif // !COIN_SODETAILLIST_H