36 this->moveManualToolToPosition(p_r);
38 if (viewType.testFlag(
v2D))
41 mServices->patient()->setCenter(p_r);
44 if (viewType.testFlag(
v3D))
47 mCamera3D->translateByFocusTo(p_r);
53 void Navigation::centerToData(
DataPtr image)
57 Vector3D p_r = image->get_rMd().coord(image->boundingBox().center());
65 void Navigation::centerToData(
const std::vector<DataPtr>& images)
67 Vector3D p_r = findDataCenter(images);
82 std::vector<DataPtr> visibleData = group->getData(properties);
83 if(visibleData.empty())
88 if(activeImage && std::count(visibleData.begin(), visibleData.end(), activeImage))
89 this->centerToData(activeImage);
91 this->centerToData(visibleData);
99 ToolPtr tool = mServices->tracking()->getActiveTool();
100 Vector3D p_pr = tool->get_prMt().coord(
Vector3D(0, 0, tool->getTooltipOffset()));
101 Vector3D p_r = mServices->patient()->get_rMpr().coord(p_pr);
111 Vector3D Navigation::findDataCenter(
const std::vector<DataPtr>& data)
117 void Navigation::moveManualToolToPosition(
Vector3D& p_r)
120 ToolPtr manual = mServices->tracking()->getManualTool();
121 Vector3D p_pr = mServices->patient()->get_rMpr().inv().coord(p_r);
127 manual->set_prMt(prM1t);