13 #ifndef CXTOOLREP3D_H_ 14 #define CXTOOLREP3D_H_ 16 #include "cxResourceVisualizationExport.h" 55 static ToolRep3DPtr New(SpaceProviderPtr spaceProvider,
const QString& uid=
"");
57 virtual QString getType()
const;
59 virtual void setTool(
ToolPtr tool);
60 virtual bool hasTool(
ToolPtr tool)
const;
62 ToolTracerPtr getTracer();
63 void setSphereRadius(
double radius);
65 void setStayHiddenAfterVisible(
bool val);
66 void setStayVisibleAfterHide(
bool val);
67 void setOffsetPointVisibleAtZeroOffset(
bool val);
68 void setSphereRadiusInNormalizedViewport(
bool on);
69 void setTooltipPointColor(
const QColor& color);
70 void setToolOffsetPointColor(
const QColor& color);
71 void setToolOffsetLineColor(
const QColor& color);
74 ToolRep3D(SpaceProviderPtr spaceProvider);
75 virtual void addRepActorsToViewRenderer(
ViewPtr view);
76 virtual void removeRepActorsFromViewRenderer(
ViewPtr view);
78 virtual void onModifiedStartRender();
81 void probeSectorChanged();
86 void receiveVisible(
bool visible);
87 void tooltipOffsetSlot(
double val);
88 void updateToolActor();
92 void updateOffsetGraphics();
102 bool mStayHiddenAfterVisible;
103 bool mStayVisibleAfterHide;
104 bool mOffsetPointVisibleAtZeroOffset;
105 bool mSphereRadiusInNormalizedViewport;
106 ToolTracerPtr mTracer;
108 SpaceProviderPtr mSpaceProvider;
114 QColor mTooltipPointColor;
115 QColor mOffsetPointColor;
116 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