35 mDataManager(dataManager)
53 mSliceProxy = sliceProxy;
86 if (!mSliceProxy->getTool())
89 mCalculator->mFollowTooltip =
settings()->
value(
"Navigation/followTooltip").value<
bool>();
90 mCalculator->mFollowTooltipBoundary =
settings()->
value(
"Navigation/followTooltipBoundary").toDouble();
91 mCalculator->mBB_s = mBB_s;
92 mCalculator->mTooltip_s = this->findVirtualTooltip_s();
93 mCalculator->mFollowType = mSliceProxy->getComputer().getFollowType();
94 mCalculator->mROI_s = this->getROI_BB_s();
114 DataPtr data = mDataManager->getData(mRoi);
128 Vector3D ViewFollower::findVirtualTooltip_s()
130 ToolPtr tool = mSliceProxy->getTool();
134 Vector3D pt_s = sMr * rMpr * prMt.coord(
Vector3D(0,0,tool->getTooltipOffset()));
142 Vector3D c_s = sMr.coord(mDataManager->getCenter());
144 Vector3D newcenter_s = c_s + shift_s;
146 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