#884 Changed colors to megenta, and improved interface for manipulator a bit. Adjusted size of handles.

This commit is contained in:
Jacob Støren
2016-10-03 09:39:18 +02:00
parent 58acd22afa
commit 87e7b5dc80
3 changed files with 22 additions and 18 deletions

View File

@@ -82,17 +82,14 @@ bool RicBoxManipulatorEventHandler::eventFilter(QObject *obj, QEvent* inputEvent
cvf::HitItemCollection hitItems;
if (m_viewer->rayPick(mouseEvent->x(), mouseEvent->y(), &hitItems))
{
if (hitItems.firstItem() && hitItems.firstItem()->part())
{
m_partManager->activateManipulator(hitItems.firstItem()->part(), hitItems.firstItem()->intersectionPoint());
m_partManager->tryToActivateManipulator(hitItems.firstItem());
if (m_partManager->isManipulatorActive())
{
updateParts();
emit notifyRedraw();
return true;
}
if(m_partManager->isManipulatorActive())
{
updateParts();
emit notifyRedraw();
return true;
}
}
}