Changeset 112 for osgVisual/src/core
- Timestamp:
- Jul 30, 2010, 10:08:44 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/src/core/visual_core.cpp
r89 r112 296 296 //testObj->addUpdater( new object_updater(testObj) ); 297 297 298 osg::ref_ptr<visual_object> testObj2 = new visual_object( rootNode, " cessna" ); // todo memleak298 osg::ref_ptr<visual_object> testObj2 = new visual_object( rootNode, "neuschwanstein" ); // todo memleak 299 299 //testObj2->setNewPosition( osg::DegreesToRadians(47.8123), osg::DegreesToRadians(12.94088), 600 ); 300 testObj2->setNewPosition( osg::DegreesToRadians( 50.8123), osg::DegreesToRadians(8.94088), 600 );301 testObj2->loadGeometry( "../models/ cessna.osg" );302 testObj2->addUpdater( new object_updater(testObj2) ); // todo memleak300 testObj2->setNewPosition( osg::DegreesToRadians(47.557523564234), osg::DegreesToRadians(10.749646398595), 950 ); 301 testObj2->loadGeometry( "../models/neuschwanstein.osgb" ); 302 //testObj2->addUpdater( new object_updater(testObj2) ); // todo memleak 303 303 304 304 osg::ref_ptr<visual_object> testObj3 = new visual_object( rootNode, "SAENGER1" ); // todo memleak … … 323 323 // Manipulatoren auf dieses Objekt binden (Primärobjekt) 324 324 if (objectMountedCameraManip.valid()) 325 objectMountedCameraManip->setAttachedObject( testObj 4);325 objectMountedCameraManip->setAttachedObject( testObj2 ); 326 326 if (mouseTrackerManip.valid()) 327 327 { 328 mouseTrackerManip->setTrackNode( testObj 4->getGeometry() );328 mouseTrackerManip->setTrackNode( testObj2->getGeometry() ); 329 329 mouseTrackerManip->setMinimumDistance( 100 ); 330 330 }
Note: See TracChangeset
for help on using the changeset viewer.