Show
Ignore:
Timestamp:
11/17/04 21:01:51 (9 years ago)
Author:
robert
Message:

From Rainer Oder, updates to osglauncher.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osglauncher/osglauncher.cpp

    r3620 r3656  
    6666    case(osgGA::GUIEventAdapter::MOVE): 
    6767    { 
    68         osg::notify(osg::NOTICE)<<"MOVE "<<ea.getX()<<ea.getY()<<std::endl; 
     68        //osg::notify(osg::NOTICE)<<"MOVE "<<ea.getX()<<ea.getY()<<std::endl; 
    6969        std::string picked_name = pick(ea.getX(),ea.getY()); 
    7070        highlight(picked_name); 
     
    7373    case(osgGA::GUIEventAdapter::PUSH): 
    7474    { 
    75         osg::notify(osg::NOTICE)<<"PUSH "<<ea.getX()<<ea.getY()<<std::endl; 
     75        //osg::notify(osg::NOTICE)<<"PUSH "<<ea.getX()<<ea.getY()<<std::endl; 
    7676        std::string picked_name = pick(ea.getX(),ea.getY()); 
    7777        if (!picked_name.empty()) 
     
    123123     
    124124    // turn lighting off for the text and disable depth test to ensure its always ontop. 
    125     osg::Vec3 position(150.0f,700.0f,0.0f); 
     125    osg::Vec3 position(50.0f,510.0f,0.0f); 
    126126    osg::Vec3 delta(0.0f,-60.0f,0.0f); 
    127127 
     
    348348    osg::Vec3 vScale( 0.5f, 0.5f, 0.5f ); 
    349349    osg::Vec3 vPivot( 0.0f, 0.0f, 0.0f );     
    350 //    end positioning and sizes 
    351  
    352 //    loop to run through Xampleliste 
     350 
     351//  run through Xampleliste 
    353352    int z = 1; 
    354353    for (OP i = Xamplelist.begin() ; i != Xamplelist.end() ; ++i, ++z) 
     
    362361        xGroup->addChild( transX ); 
    363362         
    364         // nächster punkt um einen cube zu zeichnen 
     363        // line feed 
    365364        if(z < itemsInLine) 
    366365            xnext += xjump; 
     
    369368            xnext = xstart; 
    370369            znext -= zjump; 
    371             z = 1; 
    372         } 
    373     } // end loop to run through list     
     370            z = 0; 
     371        } 
     372    } // end run through list     
    374373     
    375374    return xGroup; 
     
    414413    lookAt.makeLookAt(osg::Vec3(0.0f, -4.0f, 0.0f), centerScope, osg::Vec3(0.0f, 0.0f, 1.0f)); 
    415414 
    416 //    viewer.setView(lookAt); 
     415    //viewer.setView(lookAt); 
    417416         
    418417    while( !viewer.done() ) 
     
    426425 
    427426        // to be able to turn scene, place next call before viewer.update() 
    428         // viewer.setView(lookAt); 
     427        viewer.setView(lookAt); 
    429428 
    430429