VTK  9.3.1
vtk3DCursorWidget.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
16 #ifndef vtk3DCursorWidget_h
17 #define vtk3DCursorWidget_h
18 
19 #include "vtkAbstractWidget.h"
20 #include "vtkInteractionWidgetsModule.h" // For export macro
21 
22 VTK_ABI_NAMESPACE_BEGIN
24 
25 class VTKINTERACTIONWIDGETS_EXPORT vtk3DCursorWidget : public vtkAbstractWidget
26 {
27 public:
28  static vtk3DCursorWidget* New();
30  void PrintSelf(ostream& os, vtkIndent indent) override;
31 
38  {
39  this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));
40  }
41 
46  {
47  return reinterpret_cast<vtk3DCursorRepresentation*>(this->WidgetRep);
48  }
49 
54  void CreateDefaultRepresentation() override;
55 
56 protected:
58  ~vtk3DCursorWidget() override = default;
59 
63  static void MoveAction(vtkAbstractWidget*);
64 
65 private:
66  vtk3DCursorWidget(const vtk3DCursorWidget&) = delete;
67  void operator=(const vtk3DCursorWidget&) = delete;
68 };
69 
70 VTK_ABI_NAMESPACE_END
71 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
Standard macros implementing standard VTK methods.
virtual void CreateDefaultRepresentation()=0
Create the default widget representation if one is not set.
vtkWidgetRepresentation * WidgetRep
Widget reprensenting a 3D cursor.
Representation of the vtk3DCursorWidget.
vtk3DCursorRepresentation * Get3DCursorRepresentation()
Return the widget representation as a vtk3DCursorRepresentation.
a simple class to control print indentation
Definition: vtkIndent.h:28
void SetRepresentation(vtk3DCursorRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene...
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...