Changeset 115 for osgVisual


Ignore:
Timestamp:
Jul 31, 2010, 3:52:29 PM (14 years ago)
Author:
Torben Dannhauer
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • osgVisual/src/core/visual_core.cpp

    r112 r115  
    296296        //testObj->addUpdater( new object_updater(testObj) );
    297297
    298         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
     298        //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
    303303
    304304        osg::ref_ptr<visual_object> testObj3 = new visual_object( rootNode, "SAENGER1" );       // todo memleak
     
    323323        // Manipulatoren auf dieses Objekt binden (Primärobjekt)
    324324        if (objectMountedCameraManip.valid())
    325                 objectMountedCameraManip->setAttachedObject( testObj2 );
     325                objectMountedCameraManip->setAttachedObject( testObj4 );
    326326        if (mouseTrackerManip.valid())
    327327        {
    328                 mouseTrackerManip->setTrackNode( testObj2->getGeometry() );
     328                mouseTrackerManip->setTrackNode( testObj4->getGeometry() );
    329329                mouseTrackerManip->setMinimumDistance( 100 );
    330330        }
Note: See TracChangeset for help on using the changeset viewer.