Ignore:
Timestamp:
08/20/06 22:48:01 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r1221 r1233  
    1616 
    1717class ViewCellLeaf; 
    18 //class VspViewCell; 
    1918class Plane3; 
    2019class AxisAlignedBox3; 
     
    4847                return c1->GetPriority() < c2->GetPriority(); 
    4948        } 
    50 }; 
    51  
    52  
    53 /** Candidate for a view space / object space split. 
    54 */ 
    55 class SplitCandidate: public Heapable 
    56  
    57 public: 
    58  
    59         enum {OBJECT_SPACE, VIEW_SPACE}; 
    60  
    61         /// the current split plane 
    62         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 split 
    66         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() const 
    86         { 
    87                 return mRenderCostDecrease; 
    88         } 
    89  
    90 protected: 
    91  
    92         /// render cost decrease achieved through this split 
    93         float mRenderCostDecrease; 
    94          
    9549}; 
    9650 
Note: See TracChangeset for help on using the changeset viewer.