7 #ifndef __FWRENDERVTK_VTK_FWHANDLEREPRESENTATION3D_HPP__ 8 #define __FWRENDERVTK_VTK_FWHANDLEREPRESENTATION3D_HPP__ 10 #include "fwRenderVTK/config.hpp" 12 #include <vtkPolygonalHandleRepresentation3D.h> 13 #include <vtkSmartPointer.h> 16 class vtkSphereSource;
17 class vtkCleanPolyData;
18 class vtkPolyDataAlgorithm;
46 vtkPolygonalHandleRepresentation3D);
47 FWRENDERVTK_API
void PrintSelf(ostream& os, vtkIndent indent)
override;
51 FWRENDERVTK_API
virtual void SetWorldPosition(
double p[3])
override;
55 FWRENDERVTK_API vtkSetMacro( MarkerRadiusFactor,
double );
56 FWRENDERVTK_API vtkGetMacro( MarkerRadiusFactor,
double );
60 FWRENDERVTK_API
void SetShapeRepresentation( Shape shape);
61 FWRENDERVTK_API vtkGetMacro( ShapeRepresentation, Shape );
65 FWRENDERVTK_API
void SetMarkerProperty(vtkProperty*);
66 FWRENDERVTK_API vtkGetObjectMacro(MarkerProperty, vtkProperty);
72 FWRENDERVTK_API
virtual void GetActors(vtkPropCollection*)
override;
78 FWRENDERVTK_API
virtual void ReleaseGraphicsResources(vtkWindow*)
override;
82 FWRENDERVTK_API
virtual int RenderOpaqueGeometry(vtkViewport* viewport)
override;
83 FWRENDERVTK_API
virtual int RenderTranslucentPolygonalGeometry(vtkViewport* viewport)
override;
87 FWRENDERVTK_API
virtual int HasTranslucentPolygonalGeometry()
override;
95 virtual void BuildRepresentation()
override;
98 void CreateDefaultProperties();
100 vtkSmartPointer<vtkCubeSource> CubeSource;
101 vtkSmartPointer<vtkSphereSource> SphereSource;
102 Shape ShapeRepresentation;
105 vtkSmartPointer<vtkFollower> Follower;
106 vtkSmartPointer<vtkCleanPolyData> CleanPolyData;
107 vtkSmartPointer<vtkPolyDataMapper> MarkerMapper;
108 vtkSmartPointer<vtkPolyDataAlgorithm> Marker;
110 double MarkerRadiusFactor;
114 vtkProperty* MarkerProperty;
125 #endif //__FWRENDERVTK_VTK_FWHANDLEREPRESENTATION3D_HPP__ 3D Representation to be used with vtkHandleWidget (represents a cube or a sphere).
The namespace fwRenderVTK contains classes for rendering with VTK.