VTK  9.3.20240418
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 "vtkInteractionWidgetsModule.h" // For export macro
68 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
69 
70 VTK_ABI_NAMESPACE_BEGIN
72 class vtkHandleWidget;
73 
74 class VTKINTERACTIONWIDGETS_EXPORT VTK_MARSHALAUTO vtkFinitePlaneWidget : public vtkAbstractWidget
75 {
76 public:
81 
83 
87  void PrintSelf(ostream& os, vtkIndent indent) override;
89 
96 
102 
103 protected:
106 
109  {
110  Start = 0,
111  Active
112  };
113 
114  // These methods handle events
118 
123  int UpdateCursorShape(int interactionState);
124 
125 private:
127  void operator=(const vtkFinitePlaneWidget&) = delete;
128 };
129 
130 VTK_ABI_NAMESPACE_END
131 #endif
define the API for widget / widget representation
represent the vtkFinitePlaneWidget.
3D widget for manipulating a finite plane
static vtkFinitePlaneWidget * New()
Instantiate the object.
static void SelectAction(vtkAbstractWidget *)
void PrintSelf(ostream &os, vtkIndent indent) override
Standard vtkObject methods.
void SetRepresentation(vtkFinitePlaneRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
static void MoveAction(vtkAbstractWidget *)
~vtkFinitePlaneWidget() override
int UpdateCursorShape(int interactionState)
Update the cursor shape based on the interaction state.
static void EndSelectAction(vtkAbstractWidget *)
a general widget for moving handles
a simple class to control print indentation
Definition: vtkIndent.h:108
#define VTK_MARSHALAUTO