Commit 146ac88d authored by Jan Möbius's avatar Jan Möbius
Browse files

More scripting for view control

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@4974 383ad7c9-94d9-4d36-a494-682f7c89f535
parent abb9ac40
...@@ -871,11 +871,29 @@ ViewControlPlugin::setDrawMode(QString _mode, int _viewer) ...@@ -871,11 +871,29 @@ ViewControlPlugin::setDrawMode(QString _mode, int _viewer)
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
void ViewControlPlugin::setEyePosition(Vector _eye){ Vector ViewControlPlugin::viewingDirection( int _viewer ) {
return PluginFunctions::viewingDirection(_viewer);
}
Vector ViewControlPlugin::upVector( int _viewer ) {
return PluginFunctions::upVector(_viewer);
}
Vector ViewControlPlugin::eyePosition( int _viewer ) {
return PluginFunctions::eyePos(_viewer);
}
void ViewControlPlugin::setSceneCenter( Vector _center, int _viewer ) {
PluginFunctions::setScenePos(_center, _viewer);
} }
void ViewControlPlugin::setSceneCenter(Vector _center){ Vector ViewControlPlugin::sceneCenter( int _viewer ) {
return PluginFunctions::sceneCenter(_viewer);
}
//-----------------------------------------------------------------------------
void ViewControlPlugin::setEyePosition(Vector _eye){
} }
......
...@@ -166,9 +166,23 @@ class ViewControlPlugin : public QObject, BaseInterface , PickingInterface, Logg ...@@ -166,9 +166,23 @@ class ViewControlPlugin : public QObject, BaseInterface , PickingInterface, Logg
/// Set the draw mode for a viewer /// Set the draw mode for a viewer
void setDrawMode(QString _mode, int _viewer = PluginFunctions::ALL_VIEWERS ); void setDrawMode(QString _mode, int _viewer = PluginFunctions::ALL_VIEWERS );
void setEyePosition(Vector _eye); /// Get a viewers viewing direction
Vector viewingDirection( int _viewer = PluginFunctions::ACTIVE_VIEWER );
/// get a viewers up vector
Vector upVector( int _viewer = PluginFunctions::ACTIVE_VIEWER );
/// get a viewers eye Position
Vector eyePosition( int _viewer = PluginFunctions::ACTIVE_VIEWER );
/// Get the scene center
Vector sceneCenter( int _viewer = PluginFunctions::ACTIVE_VIEWER );
void setSceneCenter(Vector _center); /// Set the scene center
void setSceneCenter( Vector _center, int _viewer = PluginFunctions::ALL_VIEWERS );
void setEyePosition(Vector _eye);
}; };
#endif //ViewControlPlugin_HH #endif //ViewControlPlugin_HH
Supports Markdown
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