Changeset 141 for trunk/VUT/GtpVisibility
- Timestamp:
- 06/21/05 11:18:09 (20 years ago)
- Location:
- trunk/VUT/GtpVisibility
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibility/include/VisibilityInfo.h
r135 r141 17 17 18 18 float GetVisibility() const {return mVisibility;} 19 void SetVisibility(float vis) { mVisibility = vis;} 20 bool operator<(const NodeInfo& rhs) const {return mNode < rhs.mNode;} 21 //bool operator>(const NodeInfo& rhs) const {return mNode > rhs.mNode;} 22 //bool operator==(const NodeInfo& rhs) const {return mNode == rhs.mNode;} 19 23 20 24 protected: 25 21 26 /** pointer to the scene node */ 22 27 HierarchyNode *mNode; … … 35 40 36 41 float GetVisibility() const {return mVisibility;} 42 void SetVisibility(float vis) { mVisibility = vis;} 37 43 44 bool operator<(const MeshInfo& rhs) const {return mMesh < rhs.mMesh;} 45 //bool operator>(const MeshInfo& rhs) const {return mMesh > rhs.mMesh;} 46 //bool operator==(const MeshInfo& rhs) const {return mMesh == rhs.mMesh;} 47 38 48 protected: 49 39 50 /** Pointer to the mesh. 40 51 */ … … 48 59 49 60 //TODO: this define shall be replaced by template typedef 50 #define InfoContainer std::vector 61 //#define InfoContainer std::vector 62 #define InfoContainer std::set 51 63 }; 52 64 -
trunk/VUT/GtpVisibility/src/DummyQueryManager.cpp
r65 r141 14 14 ) 15 15 { 16 visibleNodes->push_back(NodeInfo(mHierarchyInterface->GetSceneRoot(), 1.0f));16 visibleNodes->insert(NodeInfo(mHierarchyInterface->GetSceneRoot(), 1.0f)); 17 17 18 18 // HierarchyInterface::MeshIterator *mi = … … 33 33 ) 34 34 { 35 visibleNodes->push_back(NodeInfo(mHierarchyInterface->GetSceneRoot(), 1.0f));35 visibleNodes->insert(NodeInfo(mHierarchyInterface->GetSceneRoot(), 1.0f)); 36 36 37 37 // HierarchyInterface::MeshIterator *mi =
Note: See TracChangeset
for help on using the changeset viewer.