aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmath/lloctree.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llmath/lloctree.h')
-rw-r--r--linden/indra/llmath/lloctree.h68
1 files changed, 34 insertions, 34 deletions
diff --git a/linden/indra/llmath/lloctree.h b/linden/indra/llmath/lloctree.h
index 004b0a2..2395f0f 100644
--- a/linden/indra/llmath/lloctree.h
+++ b/linden/indra/llmath/lloctree.h
@@ -95,34 +95,34 @@ public:
95 } 95 }
96 } 96 }
97 97
98 virtual ~LLOctreeNode() { BaseType::destroyListeners(); delete this->mState; } 98 ~LLOctreeNode() { BaseType::destroyListeners(); delete this->mState; }
99 99
100 virtual const BaseType* getParent() const { return mParent; } 100 inline const BaseType* getParent() const { return mParent; }
101 virtual void setParent(BaseType* parent) { mParent = (oct_node*) parent; } 101 inline void setParent(BaseType* parent) { mParent = (oct_node*) parent; }
102 virtual const LLVector3d& getCenter() const { return mCenter; } 102 inline const LLVector3d& getCenter() const { return mCenter; }
103 virtual const LLVector3d& getSize() const { return mSize; } 103 inline const LLVector3d& getSize() const { return mSize; }
104 virtual void setCenter(LLVector3d center) { mCenter = center; } 104 inline void setCenter(LLVector3d center) { mCenter = center; }
105 virtual void setSize(LLVector3d size) { mSize = size; } 105 inline void setSize(LLVector3d size) { mSize = size; }
106 virtual bool balance() { return getOctState()->balance(); } 106 inline bool balance() { return getOctState()->balance(); }
107 virtual void validate() { getOctState()->validate(); } 107 inline void validate() { getOctState()->validate(); }
108 virtual U32 getChildCount() const { return getOctState()->getChildCount(); } 108 inline U32 getChildCount() const { return getOctState()->getChildCount(); }
109 virtual oct_node* getChild(U32 index) { return getOctState()->getChild(index); } 109 inline oct_node* getChild(U32 index) { return getOctState()->getChild(index); }
110 virtual const oct_node* getChild(U32 index) const { return getOctState()->getChild(index); } 110 inline const oct_node* getChild(U32 index) const { return getOctState()->getChild(index); }
111 virtual U32 getElementCount() const { return getOctState()->getElementCount(); } 111 inline U32 getElementCount() const { return getOctState()->getElementCount(); }
112 virtual void removeByAddress(T* data) { getOctState()->removeByAddress(data); } 112 inline void removeByAddress(T* data) { getOctState()->removeByAddress(data); }
113 virtual bool hasLeafState() const { return getOctState()->isLeaf(); } 113 inline bool hasLeafState() const { return getOctState()->isLeaf(); }
114 virtual void destroy() { getOctState()->destroy(); } 114 inline void destroy() { getOctState()->destroy(); }
115 virtual oct_node* getNodeAt(T* data) { return getNodeAt(data->getPositionGroup(), data->getBinRadius()); } 115 inline oct_node* getNodeAt(T* data) { return getNodeAt(data->getPositionGroup(), data->getBinRadius()); }
116 virtual oct_node* getNodeAt(const LLVector3d& pos, const F64& rad) { return getOctState()->getNodeAt(pos, rad); } 116 inline oct_node* getNodeAt(const LLVector3d& pos, const F64& rad) { return getOctState()->getNodeAt(pos, rad); }
117 virtual U8 getOctant() const { return mOctant; } 117 inline U8 getOctant() const { return mOctant; }
118 virtual void setOctant(U8 octant) { mOctant = octant; } 118 inline void setOctant(U8 octant) { mOctant = octant; }
119 virtual const oct_state* getOctState() const { return (const oct_state*) BaseType::mState; } 119 inline const oct_state* getOctState() const { return (const oct_state*) BaseType::mState; }
120 virtual oct_state* getOctState() { return (oct_state*) BaseType::mState; } 120 inline oct_state* getOctState() { return (oct_state*) BaseType::mState; }
121 virtual const oct_node* getOctParent() const { return (const oct_node*) getParent(); } 121 inline const oct_node* getOctParent() const { return (const oct_node*) getParent(); }
122 virtual oct_node* getOctParent() { return (oct_node*) getParent(); } 122 inline oct_node* getOctParent() { return (oct_node*) getParent(); }
123 virtual void deleteChild(oct_node* child) { getOctState()->deleteChild(child); } 123 inline void deleteChild(oct_node* child) { getOctState()->deleteChild(child); }
124 124
125 virtual U8 getOctant(const F64 pos[]) const //get the octant pos is in 125 U8 getOctant(const F64 pos[]) const //get the octant pos is in
126 { 126 {
127 U8 ret = 0; 127 U8 ret = 0;
128 128
@@ -142,17 +142,17 @@ public:
142 return ret; 142 return ret;
143 } 143 }
144 144
145 virtual bool isInside(const LLVector3d& pos, const F64& rad) const 145 inline bool isInside(const LLVector3d& pos, const F64& rad) const
146 { 146 {
147 return rad <= mSize.mdV[0]*2.0 && isInside(pos); 147 return rad <= mSize.mdV[0]*2.0 && isInside(pos);
148 } 148 }
149 149
150 virtual bool isInside(T* data) const 150 inline bool isInside(T* data) const
151 { 151 {
152 return isInside(data->getPositionGroup(), data->getBinRadius()); 152 return isInside(data->getPositionGroup(), data->getBinRadius());
153 } 153 }
154 154
155 virtual bool isInside(const LLVector3d& pos) const 155 bool isInside(const LLVector3d& pos) const
156 { 156 {
157 const F64& x = pos.mdV[0]; 157 const F64& x = pos.mdV[0];
158 const F64& y = pos.mdV[1]; 158 const F64& y = pos.mdV[1];
@@ -168,7 +168,7 @@ public:
168 return true; 168 return true;
169 } 169 }
170 170
171 virtual void updateMinMax() 171 void updateMinMax()
172 { 172 {
173 for (U32 i = 0; i < 3; i++) 173 for (U32 i = 0; i < 3; i++)
174 { 174 {
@@ -178,12 +178,12 @@ public:
178 } 178 }
179 } 179 }
180 180
181 virtual oct_listener* getOctListener(U32 index) 181 inline oct_listener* getOctListener(U32 index)
182 { 182 {
183 return (oct_listener*) BaseType::getListener(index); 183 return (oct_listener*) BaseType::getListener(index);
184 } 184 }
185 185
186 bool contains(T* xform) 186 inline bool contains(T* xform)
187 { 187 {
188 return contains(xform->getBinRadius()); 188 return contains(xform->getBinRadius());
189 } 189 }