Commit 70b27e73 authored by Dirk Wilden's avatar Dirk Wilden

defaults for viewingdirection and projection

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@6697 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 7a414764
......@@ -141,6 +141,16 @@ Core() :
PluginFunctions::setViewerProperties(viewerProperties);
//set viewer defaults
OpenFlipper::Options::defaultProjectionMode( 1, 0 );
OpenFlipper::Options::defaultProjectionMode( 0, 1 );
OpenFlipper::Options::defaultProjectionMode( 0, 2 );
OpenFlipper::Options::defaultProjectionMode( 0, 3 );
OpenFlipper::Options::defaultViewingDirection( PluginFunctions::VIEW_FREE, 0 );
OpenFlipper::Options::defaultViewingDirection( PluginFunctions::VIEW_TOP, 1 );
OpenFlipper::Options::defaultViewingDirection( PluginFunctions::VIEW_LEFT, 2 );
OpenFlipper::Options::defaultViewingDirection( PluginFunctions::VIEW_FRONT, 3 );
// Get all relevant Paths and Options from option files
setupOptions();
......
......@@ -95,10 +95,14 @@ void Core::applyOptions(){
PluginFunctions::setDrawMode( OpenFlipper::Options::defaultDrawMode(i), i );
PluginFunctions::setFixedView(OpenFlipper::Options::defaultViewingDirection(i), i );
if ( OpenFlipper::Options::defaultProjectionMode(i) == 0 )
PluginFunctions::orthographicProjection(i);
else
PluginFunctions::perspectiveProjection(i);
//only switch projection here if an object is opened
//this prevents problems when applying options on app start
if ( PluginFunctions::objectCount() > 0 ){
if ( OpenFlipper::Options::defaultProjectionMode(i) == 0 )
PluginFunctions::orthographicProjection(i);
else
PluginFunctions::perspectiveProjection(i);
}
}
//set defaultBackgroundColor
......
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