Ignore:
Timestamp:
01/23/06 15:58:00 (18 years ago)
Author:
bittner
Message:

viewcell validy setting functions extended

File:
1 edited

Legend:

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

    r564 r569  
    182182 
    183183        /** Get a viewcell containing the specified point */ 
    184         virtual ViewCell *GetViewCell(const Vector3 &point) = 0; 
     184        virtual ViewCell *GetViewCell(const Vector3 &point) const = 0; 
    185185   
    186186        virtual void PrintPvsStatistics(ostream &s); 
     
    267267                                                         int maxPvsSize) const; 
    268268 
     269  /** sets validy of all viewcells */ 
     270        virtual void SetValidity( 
     271                                                         int minPvsSize,  
     272                                                         int maxPvsSize) const; 
     273 
     274  /** set valid viewcells in the range of pvs. sorts the viewcells 
     275          according to the pvs and then pickups those in the ranges */ 
     276   
     277  void 
     278  SetValidityPercentage( 
     279                                                const float minValid, 
     280                                                const float maxValid 
     281                                                ); 
     282 
     283  int 
     284  CountValidViewcells() const; 
     285 
    269286        /** Returns maximal allowed pvs size. 
    270287        */ 
     
    417434 
    418435        /** Get a viewcell containing the specified point */ 
    419         ViewCell *GetViewCell(const Vector3 &point); 
     436        ViewCell *GetViewCell(const Vector3 &point) const; 
    420437 
    421438        void CreateMesh(ViewCell *vc); 
     
    482499        */ 
    483500        //  virtual void PrintStatistics(ostream &s) const; 
    484         ViewCell *GetViewCell(const Vector3 &point) { return NULL; } 
     501        ViewCell *GetViewCell(const Vector3 &point) const { return NULL; } 
    485502 
    486503        float GetProbability(ViewCell *viewCell); 
     
    540557                                                ViewCellContainer &viewcells); 
    541558 
    542         ViewCell *GetViewCell(const Vector3 &point) { return NULL; } 
     559        ViewCell *GetViewCell(const Vector3 &point) const { return NULL; } 
    543560 
    544561        float GetProbability(ViewCell *viewCell); 
     
    600617        float GetRendercost(ViewCell *viewCell, float objRendercost) const; 
    601618         
    602         ViewCell *GetViewCell(const Vector3 &point); 
     619        ViewCell *GetViewCell(const Vector3 &point) const; 
    603620 
    604621        bool GetViewPoint(Vector3 &viewPoint) const; 
Note: See TracChangeset for help on using the changeset viewer.