Changeset 880 for GTP/trunk/Lib/Vis/Preprocessing
- Timestamp:
- 05/03/06 01:13:24 (19 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCell.cpp
r870 r880 174 174 { 175 175 return mPvs; 176 } 177 178 179 void ViewCell::SetPvs(const ObjectPvs &pvs) 180 { 181 mPvs = pvs; 176 182 } 177 183 -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCell.h
r860 r880 117 117 118 118 ObjectPvs &GetPvs(); 119 120 void SetPvs(const ObjectPvs &pvs); 119 121 120 122 /** Type of view cells. -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r879 r880 4959 4959 Vector3 bsize = mViewSpaceBox.Size(); 4960 4960 const Vector3 viewPoint(mViewSpaceBox.Center()); 4961 float w = Magnitude(mViewSpaceBox.Size()) *mFilterWidth;4961 float w = Magnitude(mViewSpaceBox.Size()) * mFilterWidth; 4962 4962 const Vector3 width = Vector3(w); 4963 4963 … … 4980 4980 4981 4981 exporter->SetForcedMaterial(RgbColor(0,1,0)); 4982 ExportViewCellGeometry(exporter, 4982 ExportViewCellGeometry(exporter, GetViewCell(viewPoint)); 4983 4983 4984 4984 //exporter->ResetForcedMaterial(); -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.h
r879 r880 43 43 ViewCell *mViewCell; 44 44 45 // input parameter is the render budget for the PrV S45 // input parameter is the render budget for the PrVs 46 46 float mRenderBudget; 47 47 … … 467 467 ViewCellContainer &viewCells) const; 468 468 469 /** Tests the visibility filter functionality. 470 */ 469 471 virtual void TestFilter(const ObjectContainer &objects) {}; 470 472 -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsParser.cpp
r870 r880 300 300 lower_bound(mObjects->begin(), mObjects->end(), (Intersectable *)&dummyInst, ilt); 301 301 302 Intersectable *obj = *oit; 303 304 if (obj->GetId() == objId) 302 303 if ((oit != mObjects->end()) && ((*oit)->GetId() == objId)) 305 304 { 306 307 308 309 viewCell->GetPvs().AddSample( obj, 1.0f);305 // $$JB we should store a float a per object which corresponds 306 // to sumof pdfs, i.e. its relative visibility 307 // temporarily set to 1.0f 308 viewCell->GetPvs().AddSample(*oit, 1.0f); 310 309 } 311 310 else 312 311 { 313 Debug << "error: object does not exist" << endl;312 Debug << "error: object with id " << objId << " does not exist" << endl; 314 313 } 315 314 }
Note: See TracChangeset
for help on using the changeset viewer.