Changeset 1887 for GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
- Timestamp:
- 12/13/06 17:34:43 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r1883 r1887 5085 5085 5086 5086 5087 /************************************************************************ **/5088 /* 5089 /************************************************************************ **/5087 /************************************************************************/ 5088 /* VspOspViewCellsManager implementation */ 5089 /************************************************************************/ 5090 5090 5091 5091 … … 5096 5096 Environment::GetSingleton()->GetIntValue("Hierarchy.Construction.samples", mInitialSamples); 5097 5097 5098 Environment::GetSingleton()->GetBoolValue("ViewCells.compressObjects", mCompressObjects); 5099 5100 Debug << "compressing objects: " << mCompressObjects << endl; 5101 cout << "compressing objects: " << mCompressObjects << endl; 5102 5098 5103 mHierarchyManager = CreateHierarchyManager(hierarchyType); 5099 5104 mHierarchyManager->SetViewCellsManager(this); … … 5105 5110 : ViewCellsManager(vcTree), mHierarchyManager(hm) 5106 5111 { 5112 //cout<<"here4"<<endl; 5107 5113 Environment::GetSingleton()->GetIntValue("Hierarchy.Construction.samples", mInitialSamples); 5114 Environment::GetSingleton()->GetBoolValue("ViewCells.compressObjects", mCompressObjects); 5115 5116 Debug << "compressing objects: " << mCompressObjects << endl; 5117 cout << "compressing objects: " << mCompressObjects << endl; 5108 5118 5109 5119 mHierarchyManager->SetViewCellsManager(this); … … 5599 5609 mViewCells[i] : mViewCells[(int)RandomValue(0, (float)mViewCells.size() - 1)]; 5600 5610 5601 if (vc->Mailed()) // already used5611 if (vc->Mailed()) // view cell already processed 5602 5612 continue; 5603 5613 … … 5857 5867 void VspOspViewCellsManager::CompressViewCells() 5858 5868 { 5859 //ViewCellsManager::CompressViewCells(); 5860 //return; 5869 if (!mCompressObjects) 5870 { 5871 cout << "compressing in the view space" << endl; 5872 Debug << "compressing in the view space" << endl; 5873 ViewCellsManager::CompressViewCells(); 5874 return; 5875 } 5876 5861 5877 //////////// 5862 5878 //-- compression … … 5867 5883 5868 5884 cout << "compressing in the objects" << endl; 5885 Debug << "compressing in the objects" << endl; 5869 5886 float mem = (float)pvsEntries * ObjectPvs::GetEntrySize(); 5870 5887
Note: See TracChangeset
for help on using the changeset viewer.