Commit ec9af798 authored by Jan Möbius's avatar Jan Möbius

SceneCenter for multiview

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@4976 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 93b239e2
......@@ -452,8 +452,17 @@ void setScenePos(const ACG::Vec3d& _center, int _viewer ) {
std::cerr << "Requested illegal viewer for setScenePos!!" << std::endl;
}
const ACG::Vec3d& sceneCenter() {
return examiner_widgets_[activeExaminer_]->scene_center();
const ACG::Vec3d& sceneCenter( int _viewer ) {
if ( _viewer == ACTIVE_VIEWER ) {
return examiner_widgets_[activeExaminer_]->scene_center();
} else if ( _viewer == ALL_VIEWERS )
std::cerr << "Please select viewer to get viewing direction!" << std::endl;
else if ( ( _viewer >= 0 ) && _viewer < (int)examiner_widgets_.size() )
return examiner_widgets_[_viewer]->scene_center();
else
std::cerr << "Requested illegal viewer for sceneCenter!!" << std::endl;
return examiner_widgets_[activeExaminer_]->scene_center();
}
double sceneRadius() {
......
......@@ -134,7 +134,7 @@ void setScenePos(const ACG::Vec3d& _center , int _viewer = ALL_VIEWERS);
*
*/
DLLEXPORT
const ACG::Vec3d& sceneCenter();
const ACG::Vec3d& sceneCenter( int _viewer = ACTIVE_VIEWER );
/** \brief Returns the current scene radius from the examiner widget
*
......
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