Changeset 2015 for GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.h
- Timestamp:
- 01/22/07 20:25:06 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.h
r2003 r2015 235 235 /** @return false since it is an interior node 236 236 */ 237 bool IsLeaf() const; 237 bool IsLeaf() const { 238 return false; 239 } 240 238 241 239 242 int Type() const; 240 243 241 VspNode *GetBack(); 242 VspNode *GetFront(); 244 VspNode *GetBack() { 245 return mBack; 246 } 247 248 249 VspNode *GetFront() { 250 return mFront; 251 } 243 252 244 253 /** Returns split plane. 245 254 */ 246 AxisAlignedPlane GetPlane() const; 255 AxisAlignedPlane GetPlane() const { 256 return mPlane; 257 } 258 247 259 248 260 /** Returns position of split plane. 249 261 */ 250 float GetPosition() const; 262 float GetPosition() const { 263 return mPlane.mPosition; 264 } 251 265 252 266 /** Returns split axis. 253 267 */ 254 int GetAxis() const; 268 int GetAxis() const { 269 return mPlane.mAxis; 270 } 255 271 256 272 /** Replace front or back child with new child. … … 308 324 /** @return true since it is an interior node 309 325 */ 310 bool IsLeaf() const; 326 bool IsLeaf() const { 327 return true; 328 } 311 329 312 330 int Type() const; … … 314 332 /** Returns pointer of view cell. 315 333 */ 316 ViewCellLeaf *GetViewCell() const; 334 ViewCellLeaf *GetViewCell() const { 335 return mViewCell; 336 } 337 317 338 /** Sets pointer to view cell. 318 339 */
Note: See TracChangeset
for help on using the changeset viewer.