Ignore:
Timestamp:
06/21/05 11:18:09 (20 years ago)
Author:
mattausch
Message:

fixed visibility queries using occlusion queries
fixed visualization

Location:
trunk/VUT/GtpVisibility
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibility/include/VisibilityInfo.h

    r135 r141  
    1717 
    1818        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;} 
    1923 
    2024protected: 
     25 
    2126    /** pointer to the scene node */ 
    2227    HierarchyNode *mNode; 
     
    3540 
    3641        float GetVisibility() const {return mVisibility;} 
     42        void SetVisibility(float vis) { mVisibility = vis;} 
    3743 
     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         
    3848protected: 
     49 
    3950    /** Pointer to the mesh. 
    4051        */ 
     
    4859   
    4960//TODO: this define shall be replaced by template typedef 
    50 #define InfoContainer std::vector 
     61//#define InfoContainer std::vector 
     62#define InfoContainer std::set 
    5163}; 
    5264 
  • trunk/VUT/GtpVisibility/src/DummyQueryManager.cpp

    r65 r141  
    1414                                             ) 
    1515  { 
    16     visibleNodes->push_back(NodeInfo(mHierarchyInterface->GetSceneRoot(), 1.0f)); 
     16          visibleNodes->insert(NodeInfo(mHierarchyInterface->GetSceneRoot(), 1.0f)); 
    1717     
    1818//      HierarchyInterface::MeshIterator *mi = 
     
    3333                                                ) 
    3434  { 
    35     visibleNodes->push_back(NodeInfo(mHierarchyInterface->GetSceneRoot(), 1.0f)); 
     35          visibleNodes->insert(NodeInfo(mHierarchyInterface->GetSceneRoot(), 1.0f)); 
    3636     
    3737//      HierarchyInterface::MeshIterator *mi = 
Note: See TracChangeset for help on using the changeset viewer.