Changeset 1002 for GTP/trunk/Lib/Vis/Preprocessing/src/main.cpp
- Timestamp:
- 06/07/06 10:59:55 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/main.cpp
r1001 r1002 10 10 #include "MeshKdTree.h" 11 11 #include "Exporter.h" 12 #include "X3dExporter.h" // delete later13 12 #include "ViewCell.h" 14 13 #include "SceneGraph.h" … … 49 48 environment->GetStringValue("Preprocessor.type", buff); 50 49 string preprocessorType(buff); 51 52 Preprocessor *p;53 50 51 Preprocessor *p = NULL; 52 53 54 54 if (preprocessorType == "vss") 55 55 { … … 57 57 } 58 58 else 59 { 59 60 if (preprocessorType == "rss") 60 p = new RssPreprocessor(); 61 { 62 p = new RssPreprocessor(); 63 } 61 64 else 65 { 62 66 if (preprocessorType == "exact") 67 { 63 68 p = new ExactPreprocessor(); 69 } 64 70 else 71 { 65 72 if (preprocessorType == "sampling") 73 { 66 74 p = new SamplingPreprocessor(); 75 } 67 76 else 77 { 68 78 if (preprocessorType == "render") 69 79 { 70 80 p = new RenderSampler(); 71 81 } 72 82 else { 73 cerr<<"Unknown preprocessor type"<<endl; 74 Debug<<"Unknown preprocessor type"<<endl; 75 exit(1); 83 DEL_PTR(environment); 84 cerr<<"Unknown preprocessor type"<<endl; 85 Debug<<"Unknown preprocessor type"<<endl; 86 exit(1); 76 87 } 88 } 89 } 90 } 91 } 77 92 78 93 79 94 QApplication *app = NULL; 80 95 … … 149 164 returnCode = app->exec(); 150 165 151 //clean up166 //-- clean up 152 167 DEL_PTR(p); 153 168 DEL_PTR(environment); 169 154 170 MeshManager::DelSingleton(); 155 171 MaterialManager::DelSingleton(); 156 172 173 DEL_PTR(pt); 157 174 158 175 return returnCode;
Note: See TracChangeset
for help on using the changeset viewer.