Ignore:
Timestamp:
Jan 27, 2011, 9:44:45 PM (14 years ago)
Author:
Torben Dannhauer
Message:
 
Location:
osgVisual/trunk/src/object
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • osgVisual/trunk/src/object/object_updater.cpp

    r209 r210  
    4141        object_->pitchAngle_theta = osg::DegreesToRadians(osgVisual::visual_dataIO::getInstance()->getSlotDataAsDouble(updater_rot_y, osgVisual::dataIO_slot::TO_OBJ ));
    4242        object_->bankAngle_phi = osg::DegreesToRadians(osgVisual::visual_dataIO::getInstance()->getSlotDataAsDouble(updater_rot_x, osgVisual::dataIO_slot::TO_OBJ ));
    43 
    44         //object_->setCameraOffsetTranslation(0.0, -150.0, 50.0);       // Trans: (rechts davon, longitudinal, vertikal)
    45         object_->setCameraOffsetTranslation( 150.0, 0.0, 30.0);
    46         object_->setCameraOffsetRotation( osg::DegreesToRadians(0.0), osg::DegreesToRadians(-15.0), osg::DegreesToRadians(-90.0) );
    47        
    48 std::string updater_label;
     43        object_->updateLabelText("autoupdated", osgVisual::visual_dataIO::getInstance()->getSlotDataAsString(updater_label, osgVisual::dataIO_slot::TO_OBJ ));
    4944
    5045        // Finally execute nested PreUpdater
     
    105100                updater_label = label_;
    106101        else
     102        {
    107103                updater_label = object_->getName()+"_LABEL";
     104                object_->addLabel("autoupdated", " ");
     105        }
    108106}
  • osgVisual/trunk/src/object/visual_object.cpp

    r209 r210  
    5252        cameraRotationOffset.makeRotate( osg::DegreesToRadians( 90.0 ), osg::Vec3(1, 0, 0) );   // Rot: (-y, +x , -z)
    5353
     54        //setCameraOffsetTranslation(0.0, -150.0, 50.0);        // Trans: (rechts davon, longitudinal, vertikal)
     55        setCameraOffsetTranslation( 150.0, 0.0, 30.0);
     56        setCameraOffsetRotation( osg::DegreesToRadians(0.0), osg::DegreesToRadians(-15.0), osg::DegreesToRadians(-90.0) );
     57
    5458        // Geometrynode hinzufügen
    5559        geometry = new osg::Group();
Note: See TracChangeset for help on using the changeset viewer.