41 #ifndef vtkAffineRepresentation2D_h
42 #define vtkAffineRepresentation2D_h
45 #include "vtkInteractionWidgetsModule.h"
83 vtkGetMacro(BoxWidth,
int);
85 vtkGetMacro(CircleWidth,
int);
87 vtkGetMacro(AxesWidth,
int);
98 vtkGetVector3Macro(Origin,
double);
189 double DisplayOrigin[3];
190 double CurrentTranslation[3];
191 double StartWorldPosition[4];
194 double CurrentScale[2];
195 double CurrentShear[2];
208 double LastEventPosition[2];
a actor that draws 2D data
represent 2D affine transformations
vtkPoints * HCirclePoints
vtkCellArray * CircleCellArray
vtkTransform * CurrentTransform
void EndWidgetInteraction(double eventPos[2]) override
void GetTransform(vtkTransform *t) override
Retrieve a linear transform characterizing the affine transformation generated by this widget.
void PlaceWidget(double bounds[6]) override
Subclasses of vtkAffineRepresentation2D must implement these methods.
void ReleaseGraphicsResources(vtkWindow *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
vtkLeaderActor2D * HYAxis
void WidgetInteraction(double eventPos[2]) override
void Shear(double eventPos[2])
int RenderOverlay(vtkViewport *viewport) override
vtkPolyDataMapper2D * CircleMapper
vtkCellArray * BoxCellArray
void UpdateText(const char *text, double eventPos[2])
vtkPolyDataMapper2D * BoxMapper
void Highlight(int highlight) override
void ShallowCopy(vtkProp *prop) override
Methods to make this class behave as a vtkProp.
vtkLeaderActor2D * HXAxis
vtkPolyDataMapper2D * HCircleMapper
void BuildRepresentation() override
void StartWidgetInteraction(double eventPos[2]) override
vtkTransform * TotalTransform
void GetActors2D(vtkPropCollection *) override
void Translate(double eventPos[2])
void SetOrigin(const double o[3])
Specify the origin of the widget (in world coordinates).
vtkTextMapper * TextMapper
vtkPolyDataMapper2D * HBoxMapper
static vtkAffineRepresentation2D * New()
Instantiate this class.
int ComputeInteractionState(int X, int Y, int modify=0) override
void SetSelectedProperty(vtkProperty2D *)
vtkTextProperty * TextProperty
vtkAffineRepresentation2D()
void SetOrigin(double ox, double oy, double oz)
void Scale(double eventPos[2])
vtkCellArray * HCircleCellArray
void Rotate(double eventPos[2])
void CreateDefaultProperties()
void SetTextProperty(vtkTextProperty *)
vtkActor2D * HCircleActor
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkProperty2D * SelectedProperty
vtkCellArray * HBoxCellArray
void SetProperty(vtkProperty2D *)
Set/Get the properties when unselected and selected.
~vtkAffineRepresentation2D() override
abstract class for representing affine transformation widgets
object to represent cell connectivity
a simple class to control print indentation
create a leader with optional label and arrows
represent and manipulate 3D points
draw vtkPolyData onto the image plane
concrete dataset represents vertices, lines, polygons, and triangle strips
abstract superclass for all actors, volumes and annotations
represent surface properties of a 2D image
represent text properties.
abstract specification for Viewports
window superclass for vtkRenderWindow