Changeset 115 for osgVisual/src
- Timestamp:
- Jul 31, 2010, 3:52:29 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/src/core/visual_core.cpp
r112 r115 296 296 //testObj->addUpdater( new object_updater(testObj) ); 297 297 298 osg::ref_ptr<visual_object> testObj2 = new visual_object( rootNode, "neuschwanstein" ); // todo memleak299 // testObj2->setNewPosition( osg::DegreesToRadians(47.8123), osg::DegreesToRadians(12.94088), 600 );300 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 memleak298 //osg::ref_ptr<visual_object> testObj2 = new visual_object( rootNode, "neuschwanstein" ); // todo memleak 299 ////testObj2->setNewPosition( osg::DegreesToRadians(47.8123), osg::DegreesToRadians(12.94088), 600 ); 300 //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 2);325 objectMountedCameraManip->setAttachedObject( testObj4 ); 326 326 if (mouseTrackerManip.valid()) 327 327 { 328 mouseTrackerManip->setTrackNode( testObj 2->getGeometry() );328 mouseTrackerManip->setTrackNode( testObj4->getGeometry() ); 329 329 mouseTrackerManip->setMinimumDistance( 100 ); 330 330 }
Note: See TracChangeset
for help on using the changeset viewer.