Ignore:
Timestamp:
02/09/06 01:18:31 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellsManager.h

    r607 r609  
    213213        /** Returns render cost of a single view cell given the render cost of an object. 
    214214        */ 
    215         virtual float GetRendercost(ViewCell *viewCell, float objRendercost) const ; 
     215        float GetRendercost(ViewCell *viewCell, float objRendercost) const; 
    216216 
    217217        /** Returns container of loaded / generated view cells. 
     
    293293                                                         int maxPvsSize) const; 
    294294 
    295   /** set valid viewcells in the range of pvs. sorts the viewcells 
     295 
     296        /** set valid viewcells in the range of pvs. sorts the viewcells 
    296297          according to the pvs and then pickups those in the ranges */ 
    297    
    298   void 
    299   SetValidityPercentage( 
    300                                                 const float minValid, 
    301                                                 const float maxValid 
    302                                                 ); 
    303  
    304   int 
    305   CountValidViewcells() const; 
     298 
     299     
     300        void SetValidityPercentage(const float minValid,        const float maxValid); 
     301 
     302    int CountValidViewcells() const; 
    306303 
    307304        /** Returns maximal allowed pvs size. 
     
    352349                                                                                vector<MergeCandidate> &candidates) = 0; 
    353350 
    354           
    355         void CollectViewCells(const int n)  
    356         { 
    357                 mNumActiveViewCells = n; 
    358                 mViewCells.clear(); 
    359                 CollectViewCells(); 
    360         } 
    361  
    362         bool EqualToSpatialNode(ViewCell *viewCell) { return false;} // implemented in subclasses 
    363  
    364  
    365  
     351         
     352   
     353  void CollectViewCells(const int n) { 
     354        mNumActiveViewCells = n; 
     355        mViewCells.clear(); 
     356        CollectViewCells(); 
     357  } 
     358 
     359 
     360  virtual bool EqualToSpatialNode(ViewCell *viewCell) const { return false;} 
    366361protected: 
    367          
     362 
    368363 
    369364        /** 
     
    606601 
    607602        float GetProbability(ViewCell *viewCell); 
    608  
     603         
    609604 
    610605        void CreateMesh(ViewCell *vc); 
     
    672667 
    673668        float GetProbability(ViewCell *viewCell); 
    674          
     669 
    675670 
    676671        void CreateMesh(ViewCell *vc); 
     
    732727        float GetProbability(ViewCell *viewCell); 
    733728         
    734          
    735729        ViewCell *GetViewCell(const Vector3 &point) const; 
    736730 
     
    756750        void CollectMergeCandidates(const VssRayContainer &rays, vector<MergeCandidate> &candidates); 
    757751 
    758         bool EqualToSpatialNode(ViewCell *viewCell); 
     752        bool EqualToSpatialNode(ViewCell *viewCell) const; 
    759753 
    760754protected: 
    761755 
    762         bool EqualToSpatialNode(ViewCell *viewCell, BspNode **node); 
    763  
     756        BspNode *GetSpatialNode(ViewCell *viewCell) const; 
    764757        /** HACK 
    765758        */ 
Note: See TracChangeset for help on using the changeset viewer.