Changeset 1867 for GTP/trunk/Lib/Vis/Preprocessing/src/RssTree.h
- Timestamp:
- 12/08/06 17:10:14 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/RssTree.h
r1832 r1867 137 137 public: 138 138 139 139 140 struct RayInfo 140 141 { … … 162 163 } 163 164 165 164 166 #define USE_ORIGIN 1 165 167 … … 312 314 AxisAlignedBox3 dirBBox; 313 315 314 316 // evaluated importance of this node 317 float mImportance; 318 315 319 inline RssTreeNode(RssTreeInterior *p); 316 320 … … 328 332 } 329 333 330 334 float GetImportance() const; 335 331 336 332 337 }; … … 339 344 { 340 345 public: 341 // plane in local modellingcoordinates346 // plane in world coordinates 342 347 float position; 343 348 … … 359 364 virtual int GetAccessTime() { 360 365 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); 361 373 } 362 374 … … 423 435 424 436 bool mValidPvs; 425 float mImportance; 426 427 HaltonSequence halton; 428 437 429 438 Beam mBeam; 430 439 … … 490 499 } 491 500 492 float GetImportance() const;493 501 494 502 float GetSqrRayContribution() const { … … 621 629 622 630 623 631 Halton<5> halton; 632 633 624 634 ///////////////////////////// 625 635 // Basic properties … … 1086 1096 PushRoots(stack<RayTraversalData> &st, RssTreeNode::RayInfo &info) const; 1087 1097 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 1089 1113 }; 1090 1114
Note: See TracChangeset
for help on using the changeset viewer.