Commit bda88b39 authored by Mike Kremer's avatar Mike Kremer

Removed option to set fovy for each examiner individually.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10378 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 627488cb
......@@ -631,17 +631,11 @@ void orthographicProjection( int _viewer ) {
std::cerr << "Requested illegal viewer for orthographicProjection()!!" << std::endl;
}
void setFOVY( double _fovy, int _viewer ) {
void setFOVY( double _fovy) {
if ( _viewer == ACTIVE_VIEWER ) {
examiner_widgets_[activeExaminer_]->setFOVY(_fovy);
} else if ( _viewer == ALL_VIEWERS )
for ( uint i = 0 ; i < examiner_widgets_.size(); ++i )
examiner_widgets_[i]->setFOVY(_fovy);
else if ( ( _viewer >= 0 ) && _viewer < (int)examiner_widgets_.size() )
examiner_widgets_[_viewer]->setFOVY(_fovy);
else
std::cerr << "Requested illegal viewer for setFOVY()!!" << std::endl;
// Set FOVY for all viewers
for ( uint i = 0 ; i < examiner_widgets_.size(); ++i )
examiner_widgets_[i]->setFOVY(_fovy);
}
void allowRotation(bool _mode, int _viewer ) {
......
......@@ -323,13 +323,9 @@ void orthographicProjection( int _viewer = ALL_VIEWERS );
/** \brief Set field of view angle
*
* @param _fovy Field of view (in (1, 180) degrees)
* @param _viewer Id of the viewer to use.
* ACTIVE_VIEWER active viewer
* 0..3 Choose viewer explicitly
*/
DLLEXPORT
void setFOVY( double _fovy, int _viewer = ALL_VIEWERS );
void setFOVY( double _fovy );
/** \brief Switch to perspective Projection
*
......
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