- Timestamp:
- 05/10/06 08:05:24 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/src/VisibilityEnvironment.cpp
r925 r938 11 11 // load debug stream 12 12 GtpVisibilityPreprocessor::Debug.open("debug.log"); 13 13 14 // load environment 15 mEnvironment = new GtpVisibilityPreprocessor::Environment(); 14 16 } 17 //----------------------------------------------------------------------- 15 18 VisibilityEnvironment::~VisibilityEnvironment() 16 19 { 17 // load debug stream 18 DEL_PTR(GtpVisibilityPreprocessor::environment); 19 20 DEL_PTR(mEnvironment); 20 21 } 21 22 //----------------------------------------------------------------------- 22 void VisibilityEnvironment::LoadEnvironment(string filename) 23 { 24 // todo matt: 25 GtpVisibilityPreprocessor::environment = new GtpVisibilityPreprocessor::Environment; 26 27 char argc = 2; 23 bool VisibilityEnvironment::LoadEnvironment(string filename) 24 { 25 //-- parse filename into c-style argument list 26 /*char argc = 2; 28 27 char *argv[2]; 29 28 argv[0] = ""; … … 33 32 argv[1] = fname; 34 33 35 GtpVisibilityPreprocessor::Debug << "filename: " << argv[1] << endl; 36 37 GtpVisibilityPreprocessor::environment->Parse(argc, argv, false); 38 //MeshKdTree::ParseEnvironment(); 34 GtpVisibilityPreprocessor::Debug << "here4 loading environment from: " << argv[1] << endl; 35 */ 36 //-- parse environment 37 return mEnvironment->ReadEnvFile(filename.c_str()); 38 //return GtpVisibilityPreprocessor::environment->Parse(argc, argv, false); 39 39 } 40 40 //----------------------------------------------------------------------- … … 42 42 { 43 43 char str[200]; 44 GtpVisibilityPreprocessor::environment->GetStringValue("Scene.filename", str);44 mEnvironment->GetStringValue("Scene.filename", str); 45 45 return str; 46 46 } … … 49 49 { 50 50 char str[200]; 51 GtpVisibilityPreprocessor::environment->GetStringValue("ViewCells.filename", str);51 mEnvironment->GetStringValue("ViewCells.filename", str); 52 52 return str; 53 53 } 54 54 //----------------------------------------------------------------------- 55 GtpVisibilityPreprocessor::Environment *VisibilityEnvironment::GetPreprocessorEnvironment() 56 { 57 return mEnvironment; 58 } 55 59 } // namespace GtpVisibility
Note: See TracChangeset
for help on using the changeset viewer.