36 mDataManager(dataManager)
54 mSliceProxy = sliceProxy;
87 if (!mSliceProxy->getTool())
90 mCalculator->mFollowTooltip =
settings()->
value(
"Navigation/followTooltip").value<
bool>();
91 mCalculator->mFollowTooltipBoundary =
settings()->
value(
"Navigation/followTooltipBoundary").toDouble();
92 mCalculator->mBB_s = mBB_s;
93 mCalculator->mTooltip_s = this->findVirtualTooltip_s();
94 mCalculator->mFollowType = mSliceProxy->getComputer().getFollowType();
95 mCalculator->mROI_s = this->getROI_BB_s();
115 DataPtr data = mDataManager->getData(mRoi);
129 Vector3D ViewFollower::findVirtualTooltip_s()
131 ToolPtr tool = mSliceProxy->getTool();
135 Vector3D pt_s = sMr * rMpr * prMt.coord(
Vector3D(0,0,tool->getTooltipOffset()));
143 Vector3D c_s = sMr.coord(mDataManager->getCenter());
145 Vector3D newcenter_s = c_s + shift_s;
147 Vector3D newcenter_r = sMr.inv().coord(newcenter_s);
boost::shared_ptr< class ViewFollower > ViewFollowerPtr
void setView(DoubleBoundingBox3D bb_s)
SliceAutoViewportCalculator::ReturnType calculate()
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
QVariant value(const QString &key, const QVariant &defaultValue=QVariant()) const
Vector3D findCenter_r_fromShift_s(Vector3D shift_s)
void setSliceProxy(SliceProxyPtr sliceProxy)
boost::shared_ptr< class Data > DataPtr
static DoubleBoundingBox3D zero()
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
Settings * settings()
Shortcut for accessing the settings instance.
boost::shared_ptr< class RegionOfInterestMetric > RegionOfInterestMetricPtr
Representation of a floating-point bounding box in 3D. The data are stored as {xmin,xmax,ymin,ymax,zmin,zmax}, in order to simplify communication with vtk.
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
static ViewFollowerPtr create(PatientModelServicePtr dataManager)
void setAutoZoomROI(QString uid)
Namespace for all CustusX production code.
boost::shared_ptr< class Tool > ToolPtr