Commit 27df946e authored by Isaak Lim's avatar Isaak Lim

implemented the setEyePosition function for the ViewControl plugin

closes #1575

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@16787 383ad7c9-94d9-4d36-a494-682f7c89f535
parent b85e8851
......@@ -1307,8 +1307,11 @@ void ViewControlPlugin::setView(QAction* _action) {
//-----------------------------------------------------------------------------
void ViewControlPlugin::setEyePosition(Vector /*_eye*/){
emit log(LOGERR, "not yet implemented");
void ViewControlPlugin::setEyePosition(Vector _eye){
PluginFunctions::lookAt(_eye,
PluginFunctions::sceneCenter(PluginFunctions::ACTIVE_VIEWER),
PluginFunctions::upVector(PluginFunctions::ACTIVE_VIEWER),
PluginFunctions::ACTIVE_VIEWER);
}
......
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