Commit ac4a08a3 authored by Marcel Campen's avatar Marcel Campen

Added setSceneRadius functionality



git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@17028 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 59e391ec
......@@ -736,6 +736,18 @@ double sceneRadius( int _viewer ) {
return -1;
}
void setSceneRadius(double _radius, int _viewer ) {
if ( _viewer == ACTIVE_VIEWER ) {
examiner_widgets_[activeExaminer_]->scene_radius(_radius);
} else if ( _viewer == ALL_VIEWERS )
for ( uint i = 0 ; i < examiner_widgets_.size(); ++i )
examiner_widgets_[i]->scene_radius(_radius);
else if ( ( _viewer >= 0 ) && _viewer < (int)examiner_widgets_.size() )
examiner_widgets_[_viewer]->scene_radius(_radius);
else
std::cerr << "Requested illegal viewer for translate!!" << std::endl;
}
void translate( const ACG::Vec3d &_vector , int _viewer ) {
if ( _viewer == ACTIVE_VIEWER ) {
examiner_widgets_[activeExaminer_]->translate(_vector);
......
......@@ -224,6 +224,9 @@ DLLEXPORT
*/
double sceneRadius( int _viewer );
DLLEXPORT
void setSceneRadius(double _radius , int _viewer = ALL_VIEWERS);
/** \brief Translate viewer pos by given vector
*
* Translates the scene by a given vector. ( This is only a view transformation and does not
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment