Commit 2233bd7b authored by Mike Kremer's avatar Mike Kremer

Added scripting function to set FOVY via view control plugin.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10373 383ad7c9-94d9-4d36-a494-682f7c89f535
parent e48f63a5
......@@ -1203,6 +1203,12 @@ void ViewControlPlugin::perspectiveProjection(int _viewer) {
PluginFunctions::perspectiveProjection(_viewer);
}
void ViewControlPlugin::setFOVY( double _fovy, int _viewer ) {
PluginFunctions::setFOVY(_fovy, _viewer);
emit updateView();
}
void ViewControlPlugin::setDescriptions() {
emit setSlotDescription("translate(Vector,int)", "Translate Scene",
QString("TranslationVector,Viewer").split(","),
......@@ -1254,6 +1260,12 @@ void ViewControlPlugin::setDescriptions() {
QStringList(), QStringList());
emit setSlotDescription("perspectiveProjection(int)", "Change all Viewers to perspective projection",
QStringList("Viewer"), QStringList("Id of the viewer to change"));
emit setSlotDescription("setFOVY(double,int)", "Set fovy angle of projection for a viewer.",
QString("fovy;viewer").split(";"), QString("FOVY angle;Id of the target viewer").split(";"));
emit setSlotDescription("setFOVY(double)", "Set fovy angle of projection for all viewers.",
QStringList("fovy"), QStringList("FOVY angle"));
}
......
......@@ -280,6 +280,9 @@ class ViewControlPlugin : public QObject, BaseInterface , PickingInterface, Logg
/// Change all Viewers to perspectiveProjection
void perspectiveProjection(int _viewer);
/// Set fovy angle of projection
void setFOVY( double _fovy, int _viewer = PluginFunctions::ALL_VIEWERS );
};
......
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