- Timestamp:
- Jan 27, 2011, 9:44:45 PM (14 years ago)
- Location:
- osgVisual/trunk/src/object
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/trunk/src/object/object_updater.cpp
r209 r210 41 41 object_->pitchAngle_theta = osg::DegreesToRadians(osgVisual::visual_dataIO::getInstance()->getSlotDataAsDouble(updater_rot_y, osgVisual::dataIO_slot::TO_OBJ )); 42 42 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 )); 49 44 50 45 // Finally execute nested PreUpdater … … 105 100 updater_label = label_; 106 101 else 102 { 107 103 updater_label = object_->getName()+"_LABEL"; 104 object_->addLabel("autoupdated", " "); 105 } 108 106 } -
osgVisual/trunk/src/object/visual_object.cpp
r209 r210 52 52 cameraRotationOffset.makeRotate( osg::DegreesToRadians( 90.0 ), osg::Vec3(1, 0, 0) ); // Rot: (-y, +x , -z) 53 53 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 54 58 // Geometrynode hinzufügen 55 59 geometry = new osg::Group();
Note: See TracChangeset
for help on using the changeset viewer.