00001
00002
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
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039 OSG_BEGIN_NAMESPACE
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050 inline
00051 ExtraChildrenList::ChildrenListEntry::ChildrenListEntry(void)
00052 : _pNode (NullFC ),
00053 _priority(PriorityTypeTraits::getZeroElement()),
00054 _active (false )
00055 {
00056 }
00057
00058 inline
00059 ExtraChildrenList::ChildrenListEntry::ChildrenListEntry(const NodePtr &pNode)
00060 : _pNode (pNode ),
00061 _priority(PriorityTypeTraits::getZeroElement()),
00062 _active (true )
00063 {
00064 }
00065
00066 inline
00067 ExtraChildrenList::ChildrenListEntry::ChildrenListEntry(
00068 const NodePtr &pNode, PriorityType prio)
00069
00070 : _pNode (pNode),
00071 _priority(prio ),
00072 _active (true )
00073 {
00074 }
00075
00076 inline NodePtr
00077 ExtraChildrenList::ChildrenListEntry::getNode(void) const
00078 {
00079 return _pNode;
00080 }
00081
00082 inline void
00083 ExtraChildrenList::ChildrenListEntry::setNode(const NodePtr &pNode)
00084 {
00085 _pNode = pNode;
00086 }
00087
00088 inline ExtraChildrenList::PriorityType
00089 ExtraChildrenList::ChildrenListEntry::getPriority(void) const
00090 {
00091 return _priority;
00092 }
00093
00094 inline void
00095 ExtraChildrenList::ChildrenListEntry::setPriority(PriorityType prio)
00096 {
00097 _priority = prio;
00098 }
00099
00100 inline bool
00101 ExtraChildrenList::ChildrenListEntry::getActive(void) const
00102 {
00103 return _active;
00104 }
00105
00106 inline void
00107 ExtraChildrenList::ChildrenListEntry::setActive(bool active)
00108 {
00109 _active = active;
00110 }
00111
00112
00113
00114
00115 inline
00116 ExtraChildrenList::ExtraChildrenList(void)
00117 : _childrenList()
00118 {
00119 }
00120
00121
00122
00123
00124 inline
00125 ExtraChildrenList::~ExtraChildrenList(void)
00126 {
00127 }
00128
00129
00130
00131
00132 inline UInt32
00133 ExtraChildrenList::addChild(const NodePtr &pNode)
00134 {
00135 UInt32 childIndex = _childrenList.size();
00136
00137 _childrenList.push_back(ChildrenListEntry(pNode));
00138
00139 return childIndex;
00140 }
00141
00142 inline UInt32
00143 ExtraChildrenList::addChild(const NodePtr &pNode, PriorityType prio)
00144 {
00145 UInt32 childIndex = _childrenList.size();
00146
00147 _childrenList.push_back(ChildrenListEntry(pNode, prio));
00148
00149 return childIndex;
00150 }
00151
00152
00153
00154
00155 inline NodePtr
00156 ExtraChildrenList::getChild(UInt32 childIndex) const
00157 {
00158 return _childrenList[childIndex].getNode();
00159 }
00160
00161 inline ExtraChildrenList::PriorityType
00162 ExtraChildrenList::getPriority(UInt32 childIndex) const
00163 {
00164 return _childrenList[childIndex].getPriority();
00165 }
00166
00167 inline void
00168 ExtraChildrenList::setPriority(UInt32 childIndex, PriorityType prio)
00169 {
00170 _childrenList[childIndex].setPriority(prio);
00171 }
00172
00173 inline bool
00174 ExtraChildrenList::getActive(UInt32 childIndex) const
00175 {
00176 return _childrenList[childIndex].getActive();
00177 }
00178
00179 inline void
00180 ExtraChildrenList::setActive(UInt32 childIndex, bool bActive)
00181 {
00182 _childrenList[childIndex].setActive(bActive);
00183 }
00184
00185
00186
00187
00188 inline UInt32
00189 ExtraChildrenList::getSize(void) const
00190 {
00191 return _childrenList.size();
00192 }
00193
00194 inline void
00195 ExtraChildrenList::clear(void)
00196 {
00197 _childrenList.clear();
00198 }
00199
00200 OSG_END_NAMESPACE
00201
00202 #define OSGEXTRACHILDRENLIST_INLINE_CVSID "@(#)$Id: OSGExtraChildrenList.inl,v 1.2 2004/09/17 14:09:43 neumannc Exp $"