Ignore:
Timestamp:
11/18/05 14:02:49 (19 years ago)
Author:
mattausch
Message:

fixed controls for terrain demo
fixed member names in vspkdtree

File:
1 edited

Legend:

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

    r420 r421  
    222222 
    223223         
    224         static int mailID; 
    225         int mailbox; 
     224        static int sMailId; 
     225        int mMailbox; 
    226226   
    227         void Mail() { mailbox = mailID; } 
    228         static void NewMail() { mailID++; } 
    229         bool Mailed() const { return mailbox == mailID; } 
     227        void Mail() { mMailbox = sMailId; } 
     228        static void NewMail() { ++ sMailId; } 
     229        bool Mailed() const { return mMailbox == sMailId; } 
    230230 
    231231protected: 
     
    495495        void EvaluateViewCellsStats(BspViewCellsStatistics &stat) const; 
    496496 
     497        /** Parses the environment and stores the global BSP tree parameters 
     498        */ 
     499        static void ParseEnvironment(); 
     500 
    497501        /// BSP tree construction method 
    498         int mConstructionMethod; 
    499  
     502        static int sConstructionMethod; 
    500503protected: 
    501504 
     
    768771        /// should view cells be stored or generated in the leaves? 
    769772        bool mGenerateViewCells; 
    770  
    771                 /** Parses the environment and stores the global BSP tree parameters 
    772         */ 
    773         void ParseEnvironment(); 
    774773 
    775774        /// maximal number of polygons before subdivision termination 
     
    809808 
    810809        // factors guiding the split plane heuristics 
    811         float sLeastSplitsFactor; 
    812         float sBalancedPolysFactor; 
    813         float sBalancedViewCellsFactor; 
    814         float sVerticalSplitsFactor; 
    815         float sLargestPolyAreaFactor; 
    816         float sBlockedRaysFactor; 
    817         float sLeastRaySplitsFactor; 
    818         float sBalancedRaysFactor; 
    819         float sPvsFactor; 
     810        float mLeastSplitsFactor; 
     811        float mBalancedPolysFactor; 
     812        float mBalancedViewCellsFactor; 
     813        float mVerticalSplitsFactor; 
     814        float mLargestPolyAreaFactor; 
     815        float mBlockedRaysFactor; 
     816        float mLeastRaySplitsFactor; 
     817        float mBalancedRaysFactor; 
     818        float mPvsFactor; 
    820819 
    821820        //-- thresholds used for view cells merge 
     
    830829                contribution for a balanced tree. 
    831830        */ 
    832         static float sLeastPolySplitsTable[4]; 
     831        static const float sLeastPolySplitsTable[4]; 
    833832        /** Evaluates split plane classification with respect to the plane's  
    834833                contribution for a minimum number splits in the tree. 
    835834        */ 
    836         static float sBalancedPolysTable[4]; 
     835        static const float sBalancedPolysTable[4]; 
    837836        /** Evaluates split plane classification with respect to the plane's  
    838837                contribution for a minimum number of ray splits. 
    839838        */ 
    840         static float sLeastRaySplitsTable[5]; 
     839        static const float sLeastRaySplitsTable[5]; 
    841840        /** Evaluates split plane classification with respect to the plane's  
    842841                contribution for balanced rays. 
    843842        */ 
    844         static float sBalancedRaysTable[5]; 
     843        static const float sBalancedRaysTable[5]; 
    845844 
    846845}; 
Note: See TracChangeset for help on using the changeset viewer.