VTK  9.7.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 "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:
80  static vtkFinitePlaneWidget* New();
81 
83 
87  void PrintSelf(ostream& os, vtkIndent indent) override;
89 
95  void SetRepresentation(vtkFinitePlaneRepresentation* r);
96 
101  void CreateDefaultRepresentation() override;
102 
103 protected:
105  ~vtkFinitePlaneWidget() override;
106 
109  {
110  Start = 0,
111  Active
112  };
113 
114  // These methods handle events
115  static void SelectAction(vtkAbstractWidget*);
116  static void EndSelectAction(vtkAbstractWidget*);
117  static void MoveAction(vtkAbstractWidget*);
118 
123  int UpdateCursorShape(int interactionState);
124 
125 private:
127  void operator=(const vtkFinitePlaneWidget&) = delete;
128 };
129 
130 VTK_ABI_NAMESPACE_END
131 #endif
3D widget for manipulating a finite plane
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
#define VTK_MARSHALAUTO
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...