Changeset 1312 for GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include
- Timestamp:
- 09/01/06 13:48:15 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include
- Files:
-
- 2 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 -
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreKdTreeCamera.h
r1250 r1312 28 28 }; 29 29 30 //typedef NodeVisibility (KdTreeCamera::*VisFunction)(const AxisAlignedBox& box) const;31 32 30 // default constructor 33 31 KdTreeCamera(const String& name, SceneManager *sm); 34 32 // default destructor 35 33 ~KdTreeCamera(); 36 37 // chage vis mode38 void setEnhancedVisMode(bool enhanced);39 // query vis mode40 bool getEnhancedVisMode(void);41 42 // function pointer to the actual getvis function43 // allows choosing between regular vis (NONE/PART, same es isVisible)44 // and enhaced vis (NONE/PART/FULL) for early traversal abort45 //NodeVisibility (KdTreeCamera::*getVisibility)(const AxisAlignedBox& box) const;46 //VisFunction getVisibility;47 //NodeVisibility getVisibility(const AxisAlignedBox& box ) const;48 34 49 35 // regular visibility, like isVisible … … 52 38 NodeVisibility getVisibilityEnhanced(const AxisAlignedBox& box) const; 53 39 54 // DEBUG 55 //mutable unsigned int mNumVisQueries; 56 protected: 57 58 // flag indicating current vis mode, default is on (true) 59 bool mEnhancedVisMode; 40 // statistical info 41 mutable unsigned int mNumVisQueries; 60 42 }; 61 43
Note: See TracChangeset
for help on using the changeset viewer.