fw4spl
fwVtkWheelRepresentation Class Reference

Representation of a wheel widget. More...

#include <fwVtkWheelRepresentation.hpp>

+ Inheritance diagram for fwVtkWheelRepresentation:
+ Collaboration diagram for fwVtkWheelRepresentation:

Public Member Functions

 vtkTypeMacro (fwVtkWheelRepresentation, vtkWidgetRepresentation)
 
void PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE
 Prints class information. Not implemented.
 
FWRENDERVTK_API void BuildRepresentation () VTK_OVERRIDE
 Generates the representation using the center, radius and orientation.
 
FWRENDERVTK_API void UpdateRepresentation ()
 Updates wheel geometry using the center, radius and orientation.
 
FWRENDERVTK_API void GetActors2D (vtkPropCollection *pc) VTK_OVERRIDE
 Adds the wheel actor to the prop collection.
 
FWRENDERVTK_API void ReleaseGraphicsResources (vtkWindow *) VTK_OVERRIDE
 Releases graphic resources used by this class' actor.
 
FWRENDERVTK_API int RenderOverlay (vtkViewport *) VTK_OVERRIDE
 Standard VTK render methods.
 
FWRENDERVTK_API int RenderOpaqueGeometry (vtkViewport *) VTK_OVERRIDE
 
FWRENDERVTK_API int RenderTranslucentPolygonalGeometry (vtkViewport *) VTK_OVERRIDE
 
FWRENDERVTK_API int HasTranslucentPolygonalGeometry () VTK_OVERRIDE
 Check if this class holds any translucent geometry. (Not implemented)
 
FWRENDERVTK_API void SetOrientation (double orientation)
 Set the wheel orientation, expressed in radians.
 
FWRENDERVTK_API void SetHovering (bool hover)
 Set the wheel hovering.
 
FWRENDERVTK_API::glm::dvec2 GetCenterInScreenSpace () const
 Returns the center in viewport coordinates.
 
FWRENDERVTK_API bool isInCenter (int X, int Y) const
 Check if the (X, Y) screen position is inside the wheel center.
 
FWRENDERVTK_API bool isOnWheel (int X, int Y) const
 Check if the (X, Y) screen position is on the wheel.
 
double GetOrientation () const
 Returns the orientation in radians.
 
vtkActor2D * GetWheelActor () const
 Get the actor holding the wheel.
 

Static Public Member Functions

static FWRENDERVTK_API fwVtkWheelRepresentationNew ()
 Calls the constructor. Initializes wheel geometry and actor.
 

Detailed Description

Representation of a wheel widget.

This widget can be moved by dragging its center. The outer part can be rotated.

Definition at line 25 of file fwVtkWheelRepresentation.hpp.


The documentation for this class was generated from the following files: