34 #ifndef CXSLICEPROXY_H_
35 #define CXSLICEPROXY_H_
37 #include "cxResourceExport.h"
39 #include <boost/shared_ptr.hpp>
42 #include "boost/scoped_ptr.hpp"
51 typedef boost::shared_ptr<class Tool>
ToolPtr;
110 void setOrientation(ORIENTATION_TYPE orientation );
111 void setPlane(PLANE_TYPE plane );
112 void setFollowType(FOLLOW_TYPE followType);
113 void initializeFromPlane(PLANE_TYPE plane,
bool useGravity,
const Vector3D& gravityDir,
bool useViewOffset,
double viewportHeight,
double toolViewOffset,
bool useConstrainedViewOffset =
false);
115 void setGravity(
bool use,
const Vector3D& dir);
116 void setToolViewOffset(
bool use,
double viewportHeight,
double toolViewOffset,
bool useConstrainedViewOffset =
false);
117 void setToolViewportHeight(
double viewportHeight);
118 void setDefaultCenter(
const Vector3D& c);
119 void setAlwaysUseDefaultCenter(
bool on);
126 virtual void printSelf(std::ostream & os,
Indent indent);
135 void setUseTooltipOffset(
bool);
138 void toolTransformAndTimestamp(
Transform3D prMt,
double timestamp);
139 void toolVisible(
bool visible);
142 void clinicalApplicationChangedSlot();
143 void tooltipOffsetSlot(
double val);
144 void toolTransformAndTimestampSlot(
Transform3D prMt,
double timestamp);
145 void toolVisibleSlot(
bool visible);
146 void centerChangedSlot();
155 boost::scoped_ptr<SliceComputer> mCutplane;
157 bool mAlwaysUseDefaultCenter;
159 bool mUseTooltipOffset;
void set_sMr(Transform3D sMr)
Provides a slice matrix based on definition and tool.
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...
boost::shared_ptr< class Tool > ToolPtr