1SoDetailList(3IV)() SoDetailList(3IV)()
2
3
4
6 SoDetailList — maintains a list of instances of details
7
9 SbPList > SoDetailList
10
12 #include <Inventor/SoLists.h>
13
14 Methods from class SoDetailList:
15
16 SoDetailList()
17 SoDetailList(int size)
18 SoDetailList(const SoDetailList &l)
19 ~SoDetailList()
20 void append(SoDetail *detail)
21 void insert(SoDetail *detail, int addBefore)
22 void truncate(int start)
23 void copy(const SoDetailList &l)
24 SoDetailList & operator =(const SoDetailList &l)
25 SoDetail * operator [](int i) const
26 void set(int i, SoDetail *detail)
27
28 Methods from class SbPList:
29
30 int find(const void *ptr) const
31 void remove(int which)
32 int getLength() const
33 int operator ==(const SbPList &pl) const
34 int operator !=(const SbPList &pl) const
35
36
38 This subclass of SbPList holds lists of instances of classes derived
39 from SoDetail.
40
42 SoDetailList()
43 Constructor.
44
45 SoDetailList(int size)
46 Constructor that pre-allocates storage for size pointers.
47
48 SoDetailList(const SoDetailList &l)
49 Constructor that copies the contents of another list.
50
51 ~SoDetailList()
52 Destructor.
53
54 void append(SoDetail *detail)
55 Adds a detail to the end of the list.
56
57 void insert(SoDetail *detail, int addBefore)
58 Inserts given detail in list before detail with given index.
59
60 void truncate(int start)
61 Removes all details after one with given index, inclusive. Removed
62 detail instances are deleted.
63
64 void copy(const SoDetailList &l)
65 Copies a list, making a copy of each detail instance in the list.
66
67 SoDetailList & operator =(const SoDetailList &l)
68 Copies a list, making a copy of each detail instance in the list.
69
70 SoDetail * operator [](int i) const
71 Accesses an element of a list.
72
73 void set(int i, SoDetail *detail)
74 Sets an element of a list, deleting the old entry first.
75
76
78 SoDetail
79
80
81
82
83 SoDetailList(3IV)()