Skip to content

Commit

Permalink
Merge pull request #43 from vwaurich/view
Browse files Browse the repository at this point in the history
X-Y perspective as default, remove home view
  • Loading branch information
adeas31 committed Oct 26, 2016
2 parents 0eb4175 + 20ab77a commit 3f78d75
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions OMEdit/OMEditGUI/Animation/AnimationWindow.cpp
Expand Up @@ -99,7 +99,7 @@ AnimationWindow::AnimationWindow(PlotWindowContainer *pPlotWindowContainer)
mpSpeedTextBox->setMaximumSize(QSize(toolbarIconSize*2, toolbarIconSize));
mpSpeedTextBox->setEnabled(false);
mpPerspectiveDropDownBox = new QComboBox(this);
mpPerspectiveDropDownBox->addItem(QIcon(":/Resources/icons/perspective0.svg"), QString("to home position"));
//mpPerspectiveDropDownBox->addItem(QIcon(":/Resources/icons/perspective0.svg"), QString("to home position"));
mpPerspectiveDropDownBox->addItem(QIcon(":/Resources/icons/perspective2.svg"),QString("normal to x-y plane"));
mpPerspectiveDropDownBox->addItem(QIcon(":/Resources/icons/perspective1.svg"),QString("normal to y-z plane"));
mpPerspectiveDropDownBox->addItem(QIcon(":/Resources/icons/perspective3.svg"),QString("normal to x-z plane"));
Expand Down Expand Up @@ -266,6 +266,8 @@ void AnimationWindow::loadVisualization()
}
//add window title
this->setWindowTitle(QString::fromStdString(mFileName));
//jump to xy-view
cameraPositionXY();
}

/*!
Expand Down Expand Up @@ -508,15 +510,12 @@ void AnimationWindow::setPerspective(int value)
{
switch(value) {
case 0:
resetCamera();
break;
case 1:
cameraPositionXY();
break;
case 2:
case 1:
cameraPositionYZ();
break;
case 3:
case 2:
cameraPositionXZ();
break;
}
Expand Down

0 comments on commit 3f78d75

Please sign in to comment.