Ignore:
Timestamp:
12/08/06 17:10:14 (18 years ago)
Author:
bittner
Message:

merge, global lines, rss sampling updates

File:
1 edited

Legend:

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

    r1832 r1867  
    137137public: 
    138138 
     139 
    139140  struct RayInfo 
    140141  { 
     
    162163        } 
    163164 
     165         
    164166#define USE_ORIGIN 1 
    165167         
     
    312314  AxisAlignedBox3 dirBBox; 
    313315 
    314    
     316  // evaluated importance of this node 
     317  float mImportance; 
     318 
    315319  inline RssTreeNode(RssTreeInterior *p); 
    316320 
     
    328332  } 
    329333 
    330    
     334  float GetImportance() const; 
     335 
    331336         
    332337}; 
     
    339344{ 
    340345public: 
    341   // plane in local modelling coordinates 
     346  // plane in world coordinates 
    342347  float position; 
    343348 
     
    359364  virtual int GetAccessTime() { 
    360365    return lastAccessTime; 
     366  } 
     367 
     368  float GetRelativePosition() const { 
     369        if (axis < 3) 
     370          return (position - bbox.Min(axis))/bbox.Size(axis); 
     371        else 
     372          return (position - dirBBox.Min(axis-3))/dirBBox.Size(axis-3); 
    361373  } 
    362374 
     
    423435         
    424436  bool mValidPvs; 
    425   float mImportance; 
    426    
    427   HaltonSequence halton; 
    428  
     437   
    429438  Beam mBeam; 
    430439   
     
    490499  } 
    491500 
    492   float GetImportance() const; 
    493501   
    494502  float GetSqrRayContribution() const { 
     
    621629   
    622630   
    623    
     631  Halton<5> halton; 
     632   
     633 
    624634  ///////////////////////////// 
    625635  // Basic properties 
     
    10861096  PushRoots(stack<RayTraversalData> &st, RssTreeNode::RayInfo &info) const; 
    10871097 
    1088  
     1098  void 
     1099  UpdateImportance( 
     1100                                   RssTreeNode *node); 
     1101 
     1102  void 
     1103  GenerateRay(float *params, SimpleRayContainer &rays); 
     1104 
     1105  void 
     1106  GenerateLeafRay( 
     1107                                  float *params, 
     1108                                  SimpleRayContainer &rays, 
     1109                                  const AxisAlignedBox3 &box, 
     1110                                  const AxisAlignedBox3 &dirBBox 
     1111                                  ); 
     1112         
    10891113}; 
    10901114 
Note: See TracChangeset for help on using the changeset viewer.