Ignore:
Timestamp:
07/14/05 09:06:16 (19 years ago)
Author:
mattausch
Message:
 
Location:
trunk/VUT/GtpVisibility
Files:
5 edited

Legend:

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

    r159 r174  
    1616    */ 
    1717    DummyQueryManager( HierarchyInterface *hierarchyInterface ): 
    18       QueryManager(hierarchyInterface) {} 
     18      QueryManager(hierarchyInterface, 0) {} 
    1919     
    2020    /** 
  • trunk/VUT/GtpVisibility/include/HierarchyInterface.h

    r171 r174  
    126126        /** Returns vector of previously rendered hierarchy nodes. 
    127127        */ 
    128         std::vector<HierarchyNode *> *GetRenderedNodes(); 
     128        std::vector<HierarchyNode *> *GetVisibleNodes(); 
    129129        /** Returns vector of previoulsy rendered geometry. 
    130130        */ 
     
    182182        HierarchyNode *mSavedNode; 
    183183        /// list of rendered hierarchy nodes (e.g., useful for exact visibility queries) 
    184         std::vector<HierarchyNode *> mRenderedNodes; 
     184        std::vector<HierarchyNode *> mVisibleNodes; 
    185185}; 
    186186} // namespace GtpVisibility 
  • trunk/VUT/GtpVisibility/include/QueryManager.h

    r159 r174  
    2727        on different hierarchy types, while reusing the implementation of the query methods. 
    2828     */ 
    29     QueryManager(HierarchyInterface *hierarchyInterface); 
     29    QueryManager(HierarchyInterface *hierarchyInterface, int queryModes); 
    3030     
    3131    /**  
     
    9090        void SetHierarchyInterface(HierarchyInterface *hierarchyInterface); 
    9191 
     92        enum {PATCH_VISIBILITY = 2, 
     93                  GEOMETRY_VISIBILITY = 4, 
     94                  NODE_VISIBILITY = 8}; 
     95 
    9296protected: 
    93     HierarchyInterface *mHierarchyInterface; 
    9497   
     98        HierarchyInterface *mHierarchyInterface; 
     99        int mQueryModes;   
    95100}; 
    96101 
  • trunk/VUT/GtpVisibility/src/HierarchyInterface.cpp

    r158 r174  
    3030        mCurrentTestIdx = 0; 
    3131        mNumTraversedNodes = 0; 
    32         mRenderedNodes.clear(); 
     32        mVisibleNodes.clear(); 
    3333 
    3434        mDistanceQueue->push(mHierarchyRoot); 
     
    6363unsigned int HierarchyInterface::GetNumRenderedNodes() 
    6464{ 
    65         return (unsigned int)mRenderedNodes.size(); 
     65        return (unsigned int)mVisibleNodes.size(); 
    6666} 
    6767//----------------------------------------------------------------------- 
     
    7171} 
    7272//----------------------------------------------------------------------- 
    73 std::vector<HierarchyNode *> *HierarchyInterface::GetRenderedNodes() 
     73std::vector<HierarchyNode *> *HierarchyInterface::GetVisibleNodes() 
    7474{ 
    75         return &mRenderedNodes; 
     75        return &mVisibleNodes; 
    7676} 
    7777} // namespace GtpVisibility 
  • trunk/VUT/GtpVisibility/src/QueryManager.cpp

    r130 r174  
    44namespace GtpVisibility { 
    55  
    6 QueryManager::QueryManager(HierarchyInterface *hierarchyInterface) 
    7 :mHierarchyInterface(hierarchyInterface) 
     6QueryManager::QueryManager(HierarchyInterface *hierarchyInterface, int queryModes): 
     7mHierarchyInterface(hierarchyInterface), 
     8mQueryModes(queryModes) 
    89{ 
    910} 
Note: See TracChangeset for help on using the changeset viewer.