Ignore:
Timestamp:
06/07/06 18:38:29 (18 years ago)
Author:
mattausch
Message:

environment as a singleton

File:
1 edited

Legend:

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

    r1002 r1004  
    354354 
    355355 
    356 ViewCellsTree::ViewCellsTree(ViewCellsManager *vcm, Environment *env): 
     356ViewCellsTree::ViewCellsTree(ViewCellsManager *vcm): 
    357357mRoot(NULL), 
    358358mUseAreaForPvs(false), 
     
    364364#endif 
    365365{ 
    366         env->GetBoolValue("ViewCells.Visualization.exportMergedViewCells", mExportMergedViewCells); 
    367         env->GetFloatValue("ViewCells.maxStaticMemory", mMaxMemory); 
     366        Environment::GetSingleton()->GetBoolValue("ViewCells.Visualization.exportMergedViewCells", mExportMergedViewCells); 
     367        Environment::GetSingleton()->GetFloatValue("ViewCells.maxStaticMemory", mMaxMemory); 
    368368 
    369369        //-- merge options 
    370         env->GetFloatValue("ViewCells.PostProcess.renderCostWeight", mRenderCostWeight); 
    371         env->GetIntValue("ViewCells.PostProcess.minViewCells", mMergeMinViewCells); 
    372         env->GetFloatValue("ViewCells.PostProcess.maxCostRatio", mMergeMaxCostRatio); 
    373         env->GetBoolValue("ViewCells.PostProcess.refine", mRefineViewCells);     
    374  
    375         env->GetIntValue("ViewCells.PostProcess.maxMergesPerPass", mMaxMergesPerPass); 
    376         env->GetFloatValue("ViewCells.PostProcess.avgCostMaxDeviation", mAvgCostMaxDeviation); 
     370        Environment::GetSingleton()->GetFloatValue("ViewCells.PostProcess.renderCostWeight", mRenderCostWeight); 
     371        Environment::GetSingleton()->GetIntValue("ViewCells.PostProcess.minViewCells", mMergeMinViewCells); 
     372        Environment::GetSingleton()->GetFloatValue("ViewCells.PostProcess.maxCostRatio", mMergeMaxCostRatio); 
     373        Environment::GetSingleton()->GetBoolValue("ViewCells.PostProcess.refine", mRefineViewCells);     
     374 
     375        Environment::GetSingleton()->GetIntValue("ViewCells.PostProcess.maxMergesPerPass", mMaxMergesPerPass); 
     376        Environment::GetSingleton()->GetFloatValue("ViewCells.PostProcess.avgCostMaxDeviation", mAvgCostMaxDeviation); 
    377377 
    378378        Debug << "============= view cell tree options ================\n"; 
Note: See TracChangeset for help on using the changeset viewer.