Commit 5f68ba44 authored by Jan Möbius's avatar Jan Möbius

Fixed wrong error messages

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@8897 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 4d69aaeb
......@@ -639,37 +639,32 @@ void setScenePos(const ACG::Vec3d& _center, int _viewer ) {
void setSceneCenter(const ACG::Vec3d& _center, int _viewer) {
if (_viewer == ACTIVE_VIEWER) {
if (_viewer == ACTIVE_VIEWER) {
examiner_widgets_[activeExaminer_]->setSceneCenter(_center);
} else if (_viewer == ALL_VIEWERS) {
examiner_widgets_[activeExaminer_]->setSceneCenter(_center);
} else if (_viewer == ALL_VIEWERS) {
for (uint i = 0; i < examiner_widgets_.size(); ++i) {
examiner_widgets_[i]->setSceneCenter(_center);
}
} else if ((_viewer >= 0) && _viewer < (int) examiner_widgets_.size()) {
examiner_widgets_[_viewer]->setSceneCenter(_center);
} else {
std::cerr << "Requested illegal viewer for setSceneCenter!!"
<< std::endl;
}
for (uint i = 0; i < examiner_widgets_.size(); ++i) {
examiner_widgets_[i]->setSceneCenter(_center);
}
} else if ((_viewer >= 0) && _viewer < (int) examiner_widgets_.size()) {
examiner_widgets_[_viewer]->setSceneCenter(_center);
} else {
std::cerr << "Requested illegal viewer for setSceneCenter!!" << std::endl;
}
}
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();
if (_viewer == ACTIVE_VIEWER) {
return examiner_widgets_[activeExaminer_]->scene_center();
} else if (_viewer == ALL_VIEWERS)
std::cerr << "Please select viewer to get sceneCenter!" << 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() {
......
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