35 #ifndef CXTOOLREP2D_H_ 36 #define CXTOOLREP2D_H_ 38 #include "cxResourceVisualizationExport.h" 71 static ToolRep2DPtr New(SpaceProviderPtr spaceProvider,
const QString& uid=
"");
73 virtual QString getType()
const;
78 void setUseCrosshair(
bool on);
79 void setCrosshairColor(
const QColor& color);
80 void setTooltipLineColor(
const QColor& color);
81 void setTooltipPointColor(
const QColor& color);
82 void setToolOffsetPointColor(
const QColor& color);
83 void setToolOffsetLineColor(
const QColor& color);
87 void toolTransformAndTimestampSlot(
Transform3D prMt,
double timestamp);
88 void toolVisibleSlot(
bool visible);
95 virtual void addRepActorsToViewRenderer(
ViewPtr view);
96 virtual void removeRepActorsFromViewRenderer(
ViewPtr view);
97 virtual void onModifiedStartRender();
100 ToolRep2D(SpaceProviderPtr spaceProvider);
104 void setVisibility();
109 void updateOffsetText();
110 void crossHairResized();
112 SpaceProviderPtr mSpaceProvider;
121 bool mMergeOffsetAndToolLine;
boost::shared_ptr< class SpaceProvider > SpaceProviderPtr
vtkSmartPointer< class vtkActor > vtkActorPtr
boost::shared_ptr< class CrossHair2D > CrossHair2DPtr
vtkSmartPointer< class vtkPolyDataMapper > vtkPolyDataMapperPtr
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
boost::shared_ptr< class View > ViewPtr
boost::shared_ptr< class ToolRep2D > ToolRep2DPtr
vtkSmartPointer< class vtkRenderer > vtkRendererPtr
boost::shared_ptr< class TextDisplay > TextDisplayPtr
boost::shared_ptr< class LineSegment > LineSegmentPtr
Default implementation of Rep.
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.
boost::shared_ptr< class ProbeSector > ProbeSectorPtr
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
boost::shared_ptr< class OffsetPoint > OffsetPointPtr
Namespace for all CustusX production code.