- Timestamp:
- 11/18/04 17:20:48 (9 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osglauncher/osglauncher.cpp
r3664 r3668 164 164 texture = image; 165 165 app = prog; 166 std::cout<< "New Xample!" << std::endl;166 osg::notify(osg::INFO) << "New Xample!" << std::endl; 167 167 }; 168 168 ~Xample() { }; … … 185 185 void printList() 186 186 { 187 std::cout<< "start printList()" << std::endl;187 osg::notify(osg::INFO) << "start printList()" << std::endl; 188 188 for (OP i = Xamplelist.begin() ; i != Xamplelist.end() ; ++i) 189 189 { 190 190 Xample& x = *i; 191 std::cout<< "current x.texture = " << x.getTexture() << std::endl;192 std::cout<< "current x.app = " << x.getApp() << std::endl;193 } 194 std::cout<< "end printList()" << std::endl;191 osg::notify(osg::INFO) << "current x.texture = " << x.getTexture() << std::endl; 192 osg::notify(osg::INFO) << "current x.app = " << x.getApp() << std::endl; 193 } 194 osg::notify(osg::INFO) << "end printList()" << std::endl; 195 195 } // end printList() 196 196 … … 198 198 int runApp(std::string xapp) 199 199 { 200 std::cout<< "start runApp()" << std::endl;200 osg::notify(osg::INFO) << "start runApp()" << std::endl; 201 201 for (OP i = Xamplelist.begin() ; i != Xamplelist.end() ; ++i) 202 202 { … … 204 204 if(!xapp.compare(x.getApp())) 205 205 { 206 std::cout<< "app found!" << std::endl;206 osg::notify(osg::INFO) << "app found!" << std::endl; 207 207 208 208 const char* cxapp = xapp.c_str(); 209 209 210 std::cout<< "char* = " << cxapp <<std::endl;210 osg::notify(osg::INFO) << "char* = " << cxapp <<std::endl; 211 211 212 212 system(cxapp); … … 214 214 } 215 215 } 216 std::cout<< "app not found!" << std::endl;216 osg::notify(osg::INFO) << "app not found!" << std::endl; 217 217 return 0; 218 218 } // end printList() … … 221 221 void readConfFile(char* confFile) // read confFile 1 222 222 { 223 std::cout<< "Start reading confFile" << std::endl;223 osg::notify(osg::INFO) << "Start reading confFile" << std::endl; 224 224 225 225 std::string fileName = osgDB::findDataFile(confFile); 226 226 if (fileName.empty()) 227 227 { 228 std::cout<< "Config file not found"<<confFile << std::endl;228 osg::notify(osg::INFO) << "Config file not found"<<confFile << std::endl; 229 229 return; 230 230 } … … 234 234 if (!in) 235 235 { 236 std::cout<< "File " << fileName << " can not be opened!" << std::endl;236 osg::notify(osg::INFO) << "File " << fileName << " can not be opened!" << std::endl; 237 237 exit(1); 238 238 } … … 247 247 else 248 248 { 249 std::cout<< "imageBuffer: " << imageBuffer << std::endl;250 std::cout<< "appBuffer: " << appBuffer << std::endl;249 osg::notify(osg::INFO) << "imageBuffer: " << imageBuffer << std::endl; 250 osg::notify(osg::INFO) << "appBuffer: " << appBuffer << std::endl; 251 251 // jeweils checken ob image vorhanden ist. 252 252 … … 260 260 in.close(); 261 261 262 std::cout<< "End reading confFile" << std::endl;262 osg::notify(osg::INFO) << "End reading confFile" << std::endl; 263 263 264 264 printList(); … … 330 330 { 331 331 const osg::BoundingSphere& currentBound = current->getBound(); 332 std::cout<< name << std::endl;333 std::cout<< "center = " << currentBound.center() << std::endl;334 std::cout<< "radius = " << currentBound.radius() << std::endl;332 osg::notify(osg::INFO) << name << std::endl; 333 osg::notify(osg::INFO) << "center = " << currentBound.center() << std::endl; 334 osg::notify(osg::INFO) << "radius = " << currentBound.radius() << std::endl; 335 335 336 336 // return currentBound.radius();
