Changeset 174 for trunk/VUT/GtpVisibility
- Timestamp:
- 07/14/05 09:06:16 (19 years ago)
- Location:
- trunk/VUT/GtpVisibility
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibility/include/DummyQueryManager.h
r159 r174 16 16 */ 17 17 DummyQueryManager( HierarchyInterface *hierarchyInterface ): 18 QueryManager(hierarchyInterface ) {}18 QueryManager(hierarchyInterface, 0) {} 19 19 20 20 /** -
trunk/VUT/GtpVisibility/include/HierarchyInterface.h
r171 r174 126 126 /** Returns vector of previously rendered hierarchy nodes. 127 127 */ 128 std::vector<HierarchyNode *> *Get RenderedNodes();128 std::vector<HierarchyNode *> *GetVisibleNodes(); 129 129 /** Returns vector of previoulsy rendered geometry. 130 130 */ … … 182 182 HierarchyNode *mSavedNode; 183 183 /// list of rendered hierarchy nodes (e.g., useful for exact visibility queries) 184 std::vector<HierarchyNode *> m RenderedNodes;184 std::vector<HierarchyNode *> mVisibleNodes; 185 185 }; 186 186 } // namespace GtpVisibility -
trunk/VUT/GtpVisibility/include/QueryManager.h
r159 r174 27 27 on different hierarchy types, while reusing the implementation of the query methods. 28 28 */ 29 QueryManager(HierarchyInterface *hierarchyInterface );29 QueryManager(HierarchyInterface *hierarchyInterface, int queryModes); 30 30 31 31 /** … … 90 90 void SetHierarchyInterface(HierarchyInterface *hierarchyInterface); 91 91 92 enum {PATCH_VISIBILITY = 2, 93 GEOMETRY_VISIBILITY = 4, 94 NODE_VISIBILITY = 8}; 95 92 96 protected: 93 HierarchyInterface *mHierarchyInterface;94 97 98 HierarchyInterface *mHierarchyInterface; 99 int mQueryModes; 95 100 }; 96 101 -
trunk/VUT/GtpVisibility/src/HierarchyInterface.cpp
r158 r174 30 30 mCurrentTestIdx = 0; 31 31 mNumTraversedNodes = 0; 32 m RenderedNodes.clear();32 mVisibleNodes.clear(); 33 33 34 34 mDistanceQueue->push(mHierarchyRoot); … … 63 63 unsigned int HierarchyInterface::GetNumRenderedNodes() 64 64 { 65 return (unsigned int)m RenderedNodes.size();65 return (unsigned int)mVisibleNodes.size(); 66 66 } 67 67 //----------------------------------------------------------------------- … … 71 71 } 72 72 //----------------------------------------------------------------------- 73 std::vector<HierarchyNode *> *HierarchyInterface::Get RenderedNodes()73 std::vector<HierarchyNode *> *HierarchyInterface::GetVisibleNodes() 74 74 { 75 return &m RenderedNodes;75 return &mVisibleNodes; 76 76 } 77 77 } // namespace GtpVisibility -
trunk/VUT/GtpVisibility/src/QueryManager.cpp
r130 r174 4 4 namespace GtpVisibility { 5 5 6 QueryManager::QueryManager(HierarchyInterface *hierarchyInterface) 7 :mHierarchyInterface(hierarchyInterface) 6 QueryManager::QueryManager(HierarchyInterface *hierarchyInterface, int queryModes): 7 mHierarchyInterface(hierarchyInterface), 8 mQueryModes(queryModes) 8 9 { 9 10 }
Note: See TracChangeset
for help on using the changeset viewer.