Ignore:
Timestamp:
12/14/06 23:02:53 (18 years ago)
Author:
mattausch
Message:

added avg ray contrib

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/SubdivisionCandidate.h

    r1733 r1895  
    2222        enum {OBJECT_SPACE, VIEW_SPACE}; 
    2323 
    24         SubdivisionCandidate(): mRenderCostDecrease(0), mDirty(true) {}; 
     24        SubdivisionCandidate():  
     25                mRenderCostDecrease(0),  
     26                mAvgRayContribution(0),  
     27                mDirty(true)  
     28                {} 
    2529 
    2630        virtual ~SubdivisionCandidate() {}; 
     31         
    2732        /** Evaluate this subdivision candidate. 
    2833        */ 
    2934        virtual void EvalCandidate(bool computeSplitplane = true) = 0; 
     35         
    3036        /** Returns type of this subdivision candidate. 
    3137        */ 
    3238        virtual int Type() const = 0; 
     39         
    3340        /** Evaluate this candidate and put results into queue for further traversal. 
    3441        */ 
    3542        virtual bool Apply(SplitQueue &splitQueue, bool terminationCriteriaMet) = 0; 
     43         
    3644        /** Returns true of the global termination criteria of this split were met, 
    3745                false otherwise. 
    3846        */ 
    3947        virtual bool GlobalTerminationCriteriaMet() const = 0; 
     48         
    4049        /** Collects subdivision candidates that were affected by the 
    4150                application of this one. 
     
    5463        { 
    5564                return mRenderCostDecrease; 
     65        } 
     66 
     67        /** The average ray contribution of this candidate . 
     68                This is somewhat of a confidence value into the computed values. If 
     69                it is high, there is likely to be a lot of undersampling. 
     70        */ 
     71        inline void SetAvgRayContribution(const float rayContri) 
     72        { 
     73                mAvgRayContribution = rayContri; 
     74        } 
     75         
     76        inline float GetAvgRayContribution() const 
     77        { 
     78                return mAvgRayContribution; 
    5679        } 
    5780 
     
    139162        int mPvsEntriesIncr; 
    140163 
     164        /// the average ray contribution of this candidate  
     165        float mAvgRayContribution; 
     166 
    141167        int mMailbox; 
    142168 
Note: See TracChangeset for help on using the changeset viewer.