Ignore:
Timestamp:
12/13/06 17:34:43 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp

    r1883 r1887  
    50855085 
    50865086 
    5087 /**************************************************************************/ 
    5088 /*                   VspOspViewCellsManager implementation                */ 
    5089 /**************************************************************************/ 
     5087/************************************************************************/ 
     5088/*                 VspOspViewCellsManager implementation                */ 
     5089/************************************************************************/ 
    50905090 
    50915091 
     
    50965096        Environment::GetSingleton()->GetIntValue("Hierarchy.Construction.samples", mInitialSamples); 
    50975097 
     5098        Environment::GetSingleton()->GetBoolValue("ViewCells.compressObjects", mCompressObjects); 
     5099 
     5100        Debug << "compressing objects: " << mCompressObjects << endl; 
     5101        cout << "compressing objects: " << mCompressObjects << endl; 
     5102 
    50985103        mHierarchyManager = CreateHierarchyManager(hierarchyType); 
    50995104        mHierarchyManager->SetViewCellsManager(this); 
     
    51055110: ViewCellsManager(vcTree), mHierarchyManager(hm) 
    51065111{ 
     5112        //cout<<"here4"<<endl; 
    51075113        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; 
    51085118 
    51095119        mHierarchyManager->SetViewCellsManager(this); 
     
    55995609                        mViewCells[i] : mViewCells[(int)RandomValue(0, (float)mViewCells.size() - 1)]; 
    56005610                 
    5601                 if (vc->Mailed()) // already used 
     5611                if (vc->Mailed()) // view cell already processed 
    56025612                        continue; 
    56035613 
     
    58575867void VspOspViewCellsManager::CompressViewCells() 
    58585868{ 
    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 
    58615877        //////////// 
    58625878        //-- compression 
     
    58675883                 
    58685884                cout << "compressing in the objects" << endl; 
     5885                Debug << "compressing in the objects" << endl; 
    58695886                float mem = (float)pvsEntries * ObjectPvs::GetEntrySize(); 
    58705887 
Note: See TracChangeset for help on using the changeset viewer.