VTK  9.7.1
vtkAffineRepresentation.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
27 #ifndef vtkAffineRepresentation_h
28 #define vtkAffineRepresentation_h
29 
30 #include "vtkInteractionWidgetsModule.h" // For export macro
32 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
33 
34 VTK_ABI_NAMESPACE_BEGIN
35 class vtkTransform;
36 
37 class VTKINTERACTIONWIDGETS_EXPORT VTK_MARSHALAUTO vtkAffineRepresentation
39 {
40 public:
42 
46  void PrintSelf(ostream& os, vtkIndent indent) override;
48 
55  virtual void GetTransform(vtkTransform* t) = 0;
56 
58 
63  vtkSetClampMacro(Tolerance, int, 1, 100);
64  vtkGetMacro(Tolerance, int);
66 
67  // Enums define the state of the representation relative to the mouse pointer
68  // position. Used by ComputeInteractionState() to communicate with the
69  // widget.
71  {
72  Outside = 0,
91  MoveOrigin
92  };
93 
97  void ShallowCopy(vtkProp* prop) override;
98 
99 protected:
101  ~vtkAffineRepresentation() override;
102 
103  // The tolerance for selecting different parts of the widget.
105 
106  // The internal transformation matrix
108 
109 private:
111  void operator=(const vtkAffineRepresentation&) = delete;
112 };
113 
114 VTK_ABI_NAMESPACE_END
115 #endif
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:49
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instances of this class.
void ShallowCopy(vtkProp *prop) override
Shallow copy of this vtkProp.
abstract class for representing affine transformation widgets
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:50
abstract class defines interface between the widget and widget representation classes ...
a simple class to control print indentation
Definition: vtkIndent.h:28
#define VTK_MARSHALAUTO