Changeset 1233 for GTP/trunk/Lib/Vis/Preprocessing/src/VspOspTree.h
- Timestamp:
- 08/20/06 22:48:01 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/VspOspTree.h
r1221 r1233 16 16 17 17 class ViewCellLeaf; 18 //class VspViewCell;19 18 class Plane3; 20 19 class AxisAlignedBox3; … … 48 47 return c1->GetPriority() < c2->GetPriority(); 49 48 } 50 };51 52 53 /** Candidate for a view space / object space split.54 */55 class SplitCandidate: public Heapable56 {57 public:58 59 enum {OBJECT_SPACE, VIEW_SPACE};60 61 /// the current split plane62 AxisAlignedPlane mSplitPlane;63 /// split axis of this plane (0, 1, 2, or 3 if non-axis-aligned)64 int mSplitAxis;65 /// the number of misses of max cost ratio until this split66 int mMaxCostMisses;67 68 SplitCandidate(): mRenderCostDecrease(0)69 {};70 71 SplitCandidate(const AxisAlignedPlane &plane): mSplitPlane(plane), mRenderCostDecrease(0)72 {}73 74 virtual void EvalPriority() = 0;75 virtual int Type() const = 0;76 virtual bool GlobalTerminationCriteriaMet() const = 0;77 78 /** Set render cost decrease achieved through this split.79 */80 void SetRenderCostDecrease(const float renderCostDecr)81 {82 mRenderCostDecrease = renderCostDecr;83 }84 85 float GetRenderCostDecrease() const86 {87 return mRenderCostDecrease;88 }89 90 protected:91 92 /// render cost decrease achieved through this split93 float mRenderCostDecrease;94 95 49 }; 96 50
Note: See TracChangeset
for help on using the changeset viewer.