VTK
vtkAffineRepresentation.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkAffineRepresentation.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
39#ifndef vtkAffineRepresentation_h
40#define vtkAffineRepresentation_h
41
42#include "vtkInteractionWidgetsModule.h" // For export macro
44
45class vtkTransform;
46
47class VTKINTERACTIONWIDGETS_EXPORT vtkAffineRepresentation : public vtkWidgetRepresentation
48{
49public:
51
55 void PrintSelf(ostream& os, vtkIndent indent);
57
64 virtual void GetTransform(vtkTransform *t) = 0;
65
67
72 vtkSetClampMacro(Tolerance,int,1,100);
73 vtkGetMacro(Tolerance,int);
75
76 // Enums define the state of the representation relative to the mouse pointer
77 // position. Used by ComputeInteractionState() to communicate with the
78 // widget.
80 {
81 Outside=0, Rotate, Translate, TranslateX, TranslateY, ScaleWEdge, ScaleEEdge,
82 ScaleNEdge, ScaleSEdge, ScaleNE, ScaleSW, ScaleNW, ScaleSE,
83 ShearEEdge, ShearWEdge, ShearNEdge, ShearSEdge,
84 MoveOriginX, MoveOriginY, MoveOrigin
85 };
86
90 virtual void ShallowCopy(vtkProp *prop);
91
92protected:
95
96 // The tolerance for selecting different parts of the widget.
98
99 // The internal transformation matrix
101
102private:
103 vtkAffineRepresentation(const vtkAffineRepresentation&) VTK_DELETE_FUNCTION;
104 void operator=(const vtkAffineRepresentation&) VTK_DELETE_FUNCTION;
105};
106
107#endif
abstract class for representing affine transformation widgets
virtual void GetTransform(vtkTransform *t)=0
Retrieve a linear transform characterizing the affine transformation generated by this widget.
virtual void ShallowCopy(vtkProp *prop)
Methods to make this class properly act like a vtkWidgetRepresentation.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:40
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:48
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:61
abstract class defines interface between the widget and widget representation classes