34 #ifndef CXTOOLREP3D_H_ 35 #define CXTOOLREP3D_H_ 37 #include "cxResourceVisualizationExport.h" 76 static ToolRep3DPtr New(SpaceProviderPtr spaceProvider,
const QString& uid=
"");
78 virtual QString getType()
const;
80 virtual void setTool(
ToolPtr tool);
81 virtual bool hasTool(
ToolPtr tool)
const;
83 ToolTracerPtr getTracer();
84 void setSphereRadius(
double radius);
86 void setStayHiddenAfterVisible(
bool val);
87 void setStayVisibleAfterHide(
bool val);
88 void setOffsetPointVisibleAtZeroOffset(
bool val);
89 void setSphereRadiusInNormalizedViewport(
bool on);
90 void setTooltipPointColor(
const QColor& color);
91 void setToolOffsetPointColor(
const QColor& color);
92 void setToolOffsetLineColor(
const QColor& color);
95 ToolRep3D(SpaceProviderPtr spaceProvider);
96 virtual void addRepActorsToViewRenderer(
ViewPtr view);
97 virtual void removeRepActorsFromViewRenderer(
ViewPtr view);
99 virtual void onModifiedStartRender();
102 void probeSectorChanged();
107 void receiveVisible(
bool visible);
108 void tooltipOffsetSlot(
double val);
109 void updateToolActor();
113 void updateOffsetGraphics();
116 double mSphereRadius;
123 bool mStayHiddenAfterVisible;
124 bool mStayVisibleAfterHide;
125 bool mOffsetPointVisibleAtZeroOffset;
126 bool mSphereRadiusInNormalizedViewport;
127 ToolTracerPtr mTracer;
129 SpaceProviderPtr mSpaceProvider;
135 QColor mTooltipPointColor;
136 QColor mOffsetPointColor;
137 QColor mOffsetLineColor;
boost::shared_ptr< class SpaceProvider > SpaceProviderPtr
vtkSmartPointer< class vtkActor > vtkActorPtr
boost::shared_ptr< class GraphicalPoint3D > GraphicalPoint3DPtr
vtkSmartPointer< class vtkPolyDataMapper > vtkPolyDataMapperPtr
boost::shared_ptr< class ViewportListener > ViewportListenerPtr
boost::shared_ptr< class ToolTracer > ToolTracerPtr
boost::shared_ptr< class View > ViewPtr
boost::shared_ptr< class VideoSourceGraphics > VideoSourceGraphicsPtr
Default implementation of Rep.
boost::shared_ptr< class ProbeSector > ProbeSectorPtr
boost::shared_ptr< class GraphicalLine3D > GraphicalLine3DPtr
boost::shared_ptr< class ToolRep3D > ToolRep3DPtr
Namespace for all CustusX production code.
boost::shared_ptr< class Tool > ToolPtr