Changeset 1004 for GTP/trunk/Lib/Vis/OnlineCullingCHC/src
- Timestamp:
- 06/07/06 18:38:29 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/src/VisibilityEnvironment.cpp
r971 r1004 12 12 GtpVisibilityPreprocessor::Debug.open("debug.log"); 13 13 // load environment 14 mEnvironment = new GtpVisibilityPreprocessor::Environment();14 //Environment::GetSingleton() = new GtpVisibilityPreprocessor::Environment::GetSingleton(); 15 15 } 16 16 //----------------------------------------------------------------------- 17 17 VisibilityEnvironment::~VisibilityEnvironment() 18 18 { 19 DEL_PTR(mEnvironment); 19 //DEL_PTR(Environment::GetSingleton()); 20 GtpVisibilityPreprocessor::Environment::DelSingleton(); 20 21 } 21 22 //----------------------------------------------------------------------- … … 23 24 { 24 25 //-- parse environment 25 return mEnvironment->ReadEnvFile(filename.c_str());26 return GtpVisibilityPreprocessor::Environment::GetSingleton()->ReadEnvFile(filename.c_str()); 26 27 } 27 28 //----------------------------------------------------------------------- … … 29 30 { 30 31 char str[200]; 31 mEnvironment->GetStringValue("Scene.filename", str);32 GtpVisibilityPreprocessor::Environment::GetSingleton()->GetStringValue("Scene.filename", str); 32 33 return str; 33 34 } … … 36 37 { 37 38 char str[200]; 38 mEnvironment->GetStringValue("ViewCells.filename", str); 39 GtpVisibilityPreprocessor::Environment::GetSingleton()->GetStringValue("ViewCells.filename", str); 40 39 41 return str; 40 42 } … … 42 44 GtpVisibilityPreprocessor::Environment *VisibilityEnvironment::GetPreprocessorEnvironment() 43 45 { 44 return mEnvironment;46 return GtpVisibilityPreprocessor::Environment::GetSingleton(); 45 47 } 46 48 } // namespace GtpVisibility
Note: See TracChangeset
for help on using the changeset viewer.