57 mDataManager(dataManager)
75 mSliceProxy = sliceProxy;
108 if (!mSliceProxy->getTool())
111 mCalculator->mFollowTooltip =
settings()->
value(
"Navigation/followTooltip").value<
bool>();
112 mCalculator->mFollowTooltipBoundary =
settings()->
value(
"Navigation/followTooltipBoundary").toDouble();
113 mCalculator->mBB_s = mBB_s;
114 mCalculator->mTooltip_s = this->findVirtualTooltip_s();
115 mCalculator->mFollowType = mSliceProxy->getComputer().getFollowType();
116 mCalculator->mROI_s = this->getROI_BB_s();
136 DataPtr data = mDataManager->getData(mRoi);
150 Vector3D ViewFollower::findVirtualTooltip_s()
152 ToolPtr tool = mSliceProxy->getTool();
156 Vector3D pt_s = sMr * rMpr * prMt.coord(
Vector3D(0,0,tool->getTooltipOffset()));
164 Vector3D c_s = sMr.coord(mDataManager->getCenter());
166 Vector3D newcenter_s = c_s + shift_s;
168 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