34 #ifndef CXSLICEPROXY_H_ 35 #define CXSLICEPROXY_H_ 37 #include "cxResourceExport.h" 39 #include <boost/shared_ptr.hpp> 42 #include "boost/scoped_ptr.hpp" 52 typedef boost::shared_ptr<class Tool>
ToolPtr;
76 void transformChanged(Transform3D sMr);
110 void setTool(ToolPtr tool);
111 void setOrientation(ORIENTATION_TYPE orientation );
112 void setPlane(PLANE_TYPE plane );
113 void setFollowType(FOLLOW_TYPE followType);
114 void initializeFromPlane(PLANE_TYPE plane,
bool useGravity,
bool useViewOffset,
double viewportHeight,
double toolViewOffset);
116 void setGravity(
bool use,
const Vector3D& dir);
117 void setToolViewOffset(
bool use,
double viewportHeight,
double toolViewOffset);
118 void setToolViewportHeight(
double viewportHeight);
119 void setDefaultCenter(
const Vector3D& c);
120 void setAlwaysUseDefaultCenter(
bool on);
127 virtual void printSelf(std::ostream & os,
Indent indent);
136 void setUseTooltipOffset(
bool);
139 void toolTransformAndTimestamp(
Transform3D prMt,
double timestamp);
140 void toolVisible(
bool visible);
143 void clinicalApplicationChangedSlot();
144 void tooltipOffsetSlot(
double val);
145 void toolTransformAndTimestampSlot(
Transform3D prMt,
double timestamp);
146 void toolVisibleSlot(
bool visible);
147 void centerChangedSlot();
156 boost::scoped_ptr<SliceComputer> mCutplane;
158 bool mAlwaysUseDefaultCenter;
160 bool mUseTooltipOffset;
void set_sMr(Transform3D sMr)
Provides a slice matrix based on definition and tool.
A 2D slice plane in 3D. i,j are perpendicular unit vectors.
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
virtual Transform3D get_sMr()
get slice transform, i.e. the matrix sMr transforming a point p in ref to slice space.
virtual ~SliceProxyInterface()
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
Formatting class for debug printing of the ssc library.
void printSelf(std::ostream &os, Indent indent)
virtual ~SimpleSliceProxy()
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
Calculates a slice plane given a definition.
boost::shared_ptr< class SliceProxyInterface > SliceProxyInterfacePtr
bool getUseTooltipOffset()
Return true if the active tools configured tool tip offset should be used for this slice proxy...
Namespace for all CustusX production code.
boost::shared_ptr< class Tool > ToolPtr