7 #ifndef __FWRENDERVTK_VTK_FWVTKWHEELREPRESENTATION_HPP__ 8 #define __FWRENDERVTK_VTK_FWVTKWHEELREPRESENTATION_HPP__ 10 #include "fwRenderVTK/config.hpp" 12 #include <glm/vec2.hpp> 14 #include <vtkActor2D.h> 15 #include <vtkPoints.h> 16 #include <vtkPropCollection.h> 17 #include <vtkUnsignedCharArray.h> 18 #include <vtkWidgetRepresentation.h> 35 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
38 FWRENDERVTK_API
void BuildRepresentation() VTK_OVERRIDE;
41 FWRENDERVTK_API
void UpdateRepresentation();
44 FWRENDERVTK_API
void GetActors2D(vtkPropCollection* pc) VTK_OVERRIDE;
47 FWRENDERVTK_API
void ReleaseGraphicsResources(vtkWindow*) VTK_OVERRIDE;
50 FWRENDERVTK_API
int RenderOverlay(vtkViewport*) VTK_OVERRIDE;
51 FWRENDERVTK_API
int RenderOpaqueGeometry(vtkViewport*) VTK_OVERRIDE;
52 FWRENDERVTK_API
int RenderTranslucentPolygonalGeometry(vtkViewport*) VTK_OVERRIDE;
55 FWRENDERVTK_API
int HasTranslucentPolygonalGeometry() VTK_OVERRIDE;
58 FWRENDERVTK_API
void SetOrientation(
double orientation);
61 FWRENDERVTK_API
void SetHovering(
bool hover);
64 FWRENDERVTK_API ::glm::dvec2 GetCenterInScreenSpace()
const;
67 FWRENDERVTK_API
bool isInCenter(
int X,
int Y)
const;
70 FWRENDERVTK_API
bool isOnWheel(
int X,
int Y)
const;
97 vtkPoints* m_wheelPoints;
100 vtkActor2D* m_wheelActor;
103 vtkUnsignedCharArray* m_colors;
109 double m_centerInnerRadius;
110 double m_centerOuterRadius;
113 double m_wheelInnerRadius;
114 double m_wheelOuterRadius;
117 double m_orientation;
119 unsigned int m_nSectors;
121 unsigned int m_nMarkedSectors;
124 ::glm::dvec2 m_center;
127 ::glm::dvec2 m_widgetToCenterTranslation;
133 #endif // __FWRENDERVTK_VTK_FWVTKWHEELREPRESENTATION_HPP__ double GetOrientation() const
Returns the orientation in radians.
vtkActor2D * GetWheelActor() const
Get the actor holding the wheel.
Representation of a wheel widget.