13 #ifndef CXSLICEPROXY_H_ 14 #define CXSLICEPROXY_H_ 16 #include "cxResourceExport.h" 18 #include <boost/shared_ptr.hpp> 21 #include "boost/scoped_ptr.hpp" 31 typedef boost::shared_ptr<class Tool>
ToolPtr;
55 void transformChanged(Transform3D sMr);
89 void setTool(ToolPtr tool);
90 void setOrientation(ORIENTATION_TYPE orientation );
91 void setPlane(PLANE_TYPE plane );
92 void setFollowType(FOLLOW_TYPE followType);
93 void initializeFromPlane(PLANE_TYPE plane,
bool useGravity,
bool useViewOffset,
double viewportHeight,
double toolViewOffset);
95 void setGravity(
bool use,
const Vector3D& dir);
96 void setToolViewOffset(
bool use,
double viewportHeight,
double toolViewOffset);
97 void setToolViewportHeight(
double viewportHeight);
98 void setDefaultCenter(
const Vector3D& c);
99 void setAlwaysUseDefaultCenter(
bool on);
106 virtual void printSelf(std::ostream & os,
Indent indent);
115 void setUseTooltipOffset(
bool);
116 void setClinicalApplicationToFixedValue(CLINICAL_VIEW application);
119 void toolTransformAndTimestamp(
Transform3D prMt,
double timestamp);
120 void toolVisible(
bool visible);
123 void clinicalApplicationChangedSlot();
124 void tooltipOffsetSlot(
double val);
125 void toolTransformAndTimestampSlot(
Transform3D prMt,
double timestamp);
126 void toolVisibleSlot(
bool visible);
127 void centerChangedSlot();
136 boost::scoped_ptr<SliceComputer> mCutplane;
138 bool mAlwaysUseDefaultCenter;
140 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