- Timestamp:
- 12/16/05 18:52:33 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellsManager.h
r468 r469 172 172 /** Returns probability that view point lies in one view cell. 173 173 */ 174 virtual float GetProbability(ViewCell *viewCell) = 0;174 virtual float GetProbability(ViewCell *viewCell) const = 0; 175 175 176 176 /** Returns render cost of a single view cell given the render cost of an object. 177 177 */ 178 virtual float GetRendercost(ViewCell *viewCell, float objRendercost) = 0;178 virtual float GetRendercost(ViewCell *viewCell, float objRendercost) const = 0; 179 179 180 180 /** Returns vector of loaded / generated view cells. … … 182 182 ViewCellContainer &GetViewCells(); 183 183 184 /** Helper function used to split ray set into one used for view cell 185 construction and one cast after construction. 186 */ 187 void GetRaySets(const VssRayContainer &sourceRays, 188 VssRayContainer &constructionRays, 189 VssRayContainer &savedRays) const; 190 184 191 protected: 185 186 187 /** Initialises the render time simulator. 188 */ 189 void InitRenderSimulator(); 190 ///////////////////// 191 192 192 193 193 /// the view cell corresponding to unbounded space 194 194 ViewCell *mUnbounded; … … 198 198 199 199 /// Loaded view cells 200 200 ViewCellContainer mViewCells; 201 201 202 202 /// maximum number of samples taken for construction of the view cells … … 242 242 void PrintStatistics(ostream &s) const; 243 243 244 ~BspViewCellsManager();245 246 244 int CastLineSegment(const Vector3 &origin, 247 245 const Vector3 &termination, 248 246 ViewCellContainer &viewcells); 249 247 250 float GetProbability(ViewCell *viewCell) ;251 float GetRendercost(ViewCell *viewCell, float objRendercost) ;248 float GetProbability(ViewCell *viewCell) const; 249 float GetRendercost(ViewCell *viewCell, float objRendercost) const; 252 250 253 251 protected: … … 312 310 virtual void PrintStatistics(ostream &s) const; 313 311 314 float GetProbability(ViewCell *viewCell) ;315 float GetRendercost(ViewCell *viewCell, float objRendercost) ;312 float GetProbability(ViewCell *viewCell) const; 313 float GetRendercost(ViewCell *viewCell, float objRendercost) const; 316 314 317 315 protected: … … 338 336 VspKdViewCellsManager(VspKdTree *vspKdTree, int constructionSamples); 339 337 340 ~VspKdViewCellsManager();341 342 338 int Construct(const ObjectContainer &objects, 343 339 const VssRayContainer &rays, … … 364 360 ViewCellContainer &viewcells); 365 361 366 float GetProbability(ViewCell *viewCell) ;367 float GetRendercost(ViewCell *viewCell, float objRendercost) ;362 float GetProbability(ViewCell *viewCell) const; 363 float GetRendercost(ViewCell *viewCell, float objRendercost) const; 368 364 369 365 protected: … … 385 381 VspBspViewCellsManager(VspBspTree *tree, int constructionSamples); 386 382 387 ~VspBspViewCellsManager();388 389 383 int Construct(const ObjectContainer &objects, 390 384 const VssRayContainer &rays, … … 410 404 ViewCellContainer &viewcells); 411 405 412 float GetProbability(ViewCell *viewCell) ;413 float GetRendercost(ViewCell *viewCell, float objRendercost) ;406 float GetProbability(ViewCell *viewCell) const; 407 float GetRendercost(ViewCell *viewCell, float objRendercost) const; 414 408 415 409
Note: See TracChangeset
for help on using the changeset viewer.