- Timestamp:
- 12/14/06 23:02:53 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/SubdivisionCandidate.h
r1733 r1895 22 22 enum {OBJECT_SPACE, VIEW_SPACE}; 23 23 24 SubdivisionCandidate(): mRenderCostDecrease(0), mDirty(true) {}; 24 SubdivisionCandidate(): 25 mRenderCostDecrease(0), 26 mAvgRayContribution(0), 27 mDirty(true) 28 {} 25 29 26 30 virtual ~SubdivisionCandidate() {}; 31 27 32 /** Evaluate this subdivision candidate. 28 33 */ 29 34 virtual void EvalCandidate(bool computeSplitplane = true) = 0; 35 30 36 /** Returns type of this subdivision candidate. 31 37 */ 32 38 virtual int Type() const = 0; 39 33 40 /** Evaluate this candidate and put results into queue for further traversal. 34 41 */ 35 42 virtual bool Apply(SplitQueue &splitQueue, bool terminationCriteriaMet) = 0; 43 36 44 /** Returns true of the global termination criteria of this split were met, 37 45 false otherwise. 38 46 */ 39 47 virtual bool GlobalTerminationCriteriaMet() const = 0; 48 40 49 /** Collects subdivision candidates that were affected by the 41 50 application of this one. … … 54 63 { 55 64 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; 56 79 } 57 80 … … 139 162 int mPvsEntriesIncr; 140 163 164 /// the average ray contribution of this candidate 165 float mAvgRayContribution; 166 141 167 int mMailbox; 142 168
Note: See TracChangeset
for help on using the changeset viewer.