7 #ifndef __FWRENDERVTK_VTK_MARKEDSPHEREHANDLEREPRESENTATION_HPP__ 8 #define __FWRENDERVTK_VTK_MARKEDSPHEREHANDLEREPRESENTATION_HPP__ 11 #include "vtkHandleRepresentation.h" 12 #include "vtkSphereHandleRepresentation.h" 13 #include "vtkCylinderSource.h" 17 class vtkCleanPolyData;
19 #include "fwRenderVTK/config.hpp" 28 public vtkSphereHandleRepresentation
38 FWRENDERVTK_API
void PrintSelf(ostream& os, vtkIndent indent)
override;
40 FWRENDERVTK_API
virtual void SetWorldPosition(
double p[3])
override;
44 FWRENDERVTK_API
void SetMarkerProperty(vtkProperty*);
45 FWRENDERVTK_API vtkGetObjectMacro(MarkerProperty, vtkProperty);
49 FWRENDERVTK_API
virtual void BuildRepresentation()
override;
50 FWRENDERVTK_API
virtual void GetActors(vtkPropCollection*)
override;
51 FWRENDERVTK_API
virtual void ReleaseGraphicsResources(vtkWindow*)
override;
52 FWRENDERVTK_API
virtual int RenderOpaqueGeometry(vtkViewport* viewport)
override;
53 FWRENDERVTK_API
virtual int RenderTranslucentPolygonalGeometry(vtkViewport* viewport)
override;
54 FWRENDERVTK_API
virtual int HasTranslucentPolygonalGeometry()
override;
61 vtkFollower* Follower;
62 vtkCleanPolyData* CleanPolyData;
63 vtkPolyDataMapper* MarkerMapper;
64 vtkCylinderSource* Marker;
66 double MarkerRadiusFactor;
70 vtkProperty* MarkerProperty;
71 void CreateDefaultProperties();
83 #endif //__FWRENDERVTK_VTK_MARKEDSPHEREHANDLEREPRESENTATION_HPP__ The namespace fwRenderVTK contains classes for rendering with VTK.