- Timestamp:
- 09/01/06 13:48:15 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreKdTree.h
r1296 r1312 483 483 typedef std::set<LeafPtr> LeafSet; 484 484 485 typedef struct Stats_485 struct TreeStats 486 486 { 487 487 unsigned int mNumNodes; … … 494 494 mNumLeaves = 0; 495 495 mNumSceneNodes = 0; 496 }; 497 } Stats; 496 } 497 }; 498 499 struct FrameStats 500 { 501 unsigned int mTraversedNodes; 502 unsigned int mRenderedNodes; 503 unsigned int mFrustumCulledNodes; 504 505 void clear(void) 506 { 507 mTraversedNodes = 0; 508 mRenderedNodes = 0; 509 mFrustumCulledNodes = 0; 510 } 511 }; 498 512 499 513 enum RenderMethod … … 571 585 572 586 // self-explanatory ... 573 int getMaxDepth(void) { return mMaxDepth; }; 574 const Stats& getStats(void) const { return mStats; }; 575 AxisAlignedBox getBox(void) { if (mKdRoot) return mKdRoot->mAABB; else return AxisAlignedBox(); }; 587 int getMaxDepth(void) { return mMaxDepth; } 588 const TreeStats& getTreeStats(void) const { return mTreeStats; } 589 const FrameStats& getFramesStats(void) const { return mFrameStats; } 590 AxisAlignedBox getBox(void) { if (mKdRoot) return mKdRoot->mAABB; else return AxisAlignedBox(); } 576 591 void setBuildMethod(BuildMethod bm) { mBuildMethod = bm; } 577 592 protected: … … 627 642 Log * mBuildLog; 628 643 629 // statistical information 630 Stats mStats; 644 // statistical information on the tree 645 TreeStats mTreeStats; 646 647 // statistical info on a single rendered frame 648 FrameStats mFrameStats; 631 649 632 650 /** Visualization flags **/ … … 638 656 bool mShowNodes; 639 657 640 // pointer zur getVisibility function (simple oder enhanced) 658 // function pointer to the getVisibility function 659 // allows choosing between regular vis (NONE/PART, same es isVisible) 660 // and enhaced vis (NONE/PART/FULL) for early traversal abort 641 661 KdTreeCamera::NodeVisibility (KdTreeCamera::*getVisibility)(const AxisAlignedBox& box) const; 642 662
Note: See TracChangeset
for help on using the changeset viewer.