1SoPathList(3IV)()                                            SoPathList(3IV)()
2
3
4

NAME

6       SoPathList — maintains a list of pointers to paths
7

INHERITS FROM

9       SbPList > SoBaseList > SoPathList
10

SYNOPSIS

12       #include <Inventor/SoLists.h>
13
14          Methods from class SoPathList:
15
16                         SoPathList()
17                         SoPathList(int size)
18                         SoPathList(const SoPathList &l)
19                         ~SoPathList()
20     void                append(SoPath *path)
21     SoPath *            operator [](int i) const
22     SoPathList &        operator =(const SoPathList &l)
23     int                 findPath(const SoPath &path)
24     void                sort()
25     void                uniquify()
26
27          Methods from class SoBaseList:
28
29     void                insert(SoBase *ptr, int addBefore)
30     void                remove(int which)
31     void                truncate(int start)
32     void                copy(const SoBaseList &l)
33     void                set(int i, SoBase *ptr)
34     void                addReferences(SbBool flag)
35
36          Methods from class SbPList:
37
38     int                 find(const void *ptr) const
39     int                 getLength() const
40     int                 operator ==(const SbPList &pl) const
41     int                 operator !=(const SbPList &pl) const
42
43

DESCRIPTION

45       This  subclass  of  SoBaseList  holds  lists of pointers to SoPaths. It
46       updates reference counts to paths in the list whenever adding or remov‐
47       ing pointers.
48

METHODS

50                         SoPathList()
51          Constructor.
52
53                         SoPathList(int size)
54          Constructor that pre-allocates storage for size pointers.
55
56                         SoPathList(const SoPathList &l)
57          Constructor that copies the contents of another list.
58
59                         ~SoPathList()
60          Destructor.
61
62     void                append(SoPath *path)
63          Adds a path to the end of the list.
64
65     SoPath *            operator [](int i) const
66          Accesses an element of a list.
67
68     SoPathList &        operator =(const SoPathList &l)
69          Copies a list, keeping all reference counts correct.
70
71     int                 findPath(const SoPath &path)
72          Returns  the  index  of  the matching path in the list, or -1 if not
73          found.
74
75     void                sort()
76          Sorts list in place based on (1) increasing address  of  head  node,
77          then (2) increasing indices of children.
78
79     void                uniquify()
80          Given  a  sorted  list, removes any path that (1) is a duplicate, or
81          (2) goes through a node that is the tail of another path.
82
83

SEE ALSO

85       SoPath
86
87
88
89
90                                                             SoPathList(3IV)()
Impressum