VTK  9.3.1
vtkFinitePlaneWidget.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
63 #ifndef vtkFinitePlaneWidget_h
64 #define vtkFinitePlaneWidget_h
65 
66 #include "vtkAbstractWidget.h"
67 #include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_2_0
68 #include "vtkInteractionWidgetsModule.h" // For export macro
69 #include "vtkLegacy.h" // for VTK_LEGACY_REMOVE
70 
71 VTK_ABI_NAMESPACE_BEGIN
73 class vtkHandleWidget;
74 
75 class VTKINTERACTIONWIDGETS_EXPORT vtkFinitePlaneWidget : public vtkAbstractWidget
76 {
77 public:
81  static vtkFinitePlaneWidget* New();
82 
84 
88  void PrintSelf(ostream& os, vtkIndent indent) override;
90 
96  void SetRepresentation(vtkFinitePlaneRepresentation* r);
97 
102  void CreateDefaultRepresentation() override;
103 
104 protected:
106  ~vtkFinitePlaneWidget() override;
107 
110  {
111  Start = 0,
112  Active
113  };
114 #if !defined(VTK_LEGACY_REMOVE)
115  VTK_DEPRECATED_IN_9_2_0("because leading underscore is reserved")
117 #endif
118 
119  // These methods handle events
120  static void SelectAction(vtkAbstractWidget*);
121  static void EndSelectAction(vtkAbstractWidget*);
122  static void MoveAction(vtkAbstractWidget*);
123 
128  int UpdateCursorShape(int interactionState);
129 
130 private:
132  void operator=(const vtkFinitePlaneWidget&) = delete;
133 };
134 
135 VTK_ABI_NAMESPACE_END
136 #endif
3D widget for manipulating a finite plane
#define VTK_DEPRECATED_IN_9_2_0(reason)
void PrintSelf(ostream &os, vtkIndent indent) override
Standard macros implementing standard VTK methods.
a general widget for moving handles
virtual void CreateDefaultRepresentation()=0
Create the default widget representation if one is not set.
a simple class to control print indentation
Definition: vtkIndent.h:28
represent the vtkFinitePlaneWidget.
define the API for widget / widget representation
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...