Section directions from rotated DPGI's

This commit is contained in:
WandererFan
2016-12-29 14:43:37 +01:00
committed by wmayer
parent 139edb2415
commit 16ce8d40f5
12 changed files with 113 additions and 91 deletions
+4 -5
View File
@@ -121,20 +121,19 @@ void TaskSectionView::resetValues()
bool TaskSectionView::calcValues()
{
bool result = true;
Base::Vector3d view = m_base->Direction.getValue();
if (ui->pb_Up->isChecked()) {
sectionDir = "Up";
sectionProjDir = DrawViewSection::getSectionVector(view,sectionDir);
sectionProjDir = m_section->getSectionVector(sectionDir);
} else if (ui->pb_Down->isChecked()) {
sectionDir = "Down";
sectionProjDir = DrawViewSection::getSectionVector(view,sectionDir);
sectionProjDir = m_section->getSectionVector(sectionDir);
} else if (ui->pb_Left->isChecked()) {
sectionDir = "Left";
sectionProjDir = DrawViewSection::getSectionVector(view,sectionDir);
sectionProjDir = m_section->getSectionVector(sectionDir);
} else if (ui->pb_Right->isChecked()) {
sectionDir = "Right";
sectionProjDir = DrawViewSection::getSectionVector(view,sectionDir);
sectionProjDir = m_section->getSectionVector(sectionDir);
} else {
Base::Console().Message("Select a direction\n");
result = false;