VTK  9.1.0
vtkSplineWidget2.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSplineWidget2.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
51 #ifndef vtkSplineWidget2_h
52 #define vtkSplineWidget2_h
53 
54 #include "vtkAbstractWidget.h"
55 #include "vtkInteractionWidgetsModule.h" // For export macro
56 
58 
59 class VTKINTERACTIONWIDGETS_EXPORT vtkSplineWidget2 : public vtkAbstractWidget
60 {
61 public:
62  static vtkSplineWidget2* New();
64  void PrintSelf(ostream& os, vtkIndent indent) override;
65 
72  {
73  this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));
74  }
75 
80  void SetEnabled(int enabling) override;
81 
86  void CreateDefaultRepresentation() override;
87 
88 protected:
90  ~vtkSplineWidget2() override;
91 
94  {
95  Start = 0,
96  Active
97  };
98 
99  // These methods handle events
105 
107  static void ProcessKeyEvents(vtkObject*, unsigned long, void*, void*);
108 
109 private:
110  vtkSplineWidget2(const vtkSplineWidget2&) = delete;
111  void operator=(const vtkSplineWidget2&) = delete;
112 };
113 
114 #endif
vtkSplineWidget2::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard macros implementing standard VTK methods.
vtkSplineWidget2::SelectAction
static void SelectAction(vtkAbstractWidget *)
vtkAbstractWidget.h
vtkSplineWidget2::~vtkSplineWidget2
~vtkSplineWidget2() override
vtkWidgetRepresentation
abstract class defines interface between the widget and widget representation classes
Definition: vtkWidgetRepresentation.h:60
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:82
vtkSplineWidget2::EndSelectAction
static void EndSelectAction(vtkAbstractWidget *)
vtkSplineWidget2::New
static vtkSplineWidget2 * New()
vtkSplineWidget2::TranslateAction
static void TranslateAction(vtkAbstractWidget *)
vtkSplineWidget2::SetEnabled
void SetEnabled(int enabling) override
Override superclasses' SetEnabled() method because the line widget must enable its internal handle wi...
vtkSplineWidget2::MoveAction
static void MoveAction(vtkAbstractWidget *)
vtkSplineWidget2::CreateDefaultRepresentation
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
vtkAbstractWidget
define the API for widget / widget representation
Definition: vtkAbstractWidget.h:66
vtkSplineWidget2::WidgetState
int WidgetState
Definition: vtkSplineWidget2.h:92
vtkSplineWidget2::KeyEventCallbackCommand
vtkCallbackCommand * KeyEventCallbackCommand
Definition: vtkSplineWidget2.h:106
vtkSplineWidget2::ScaleAction
static void ScaleAction(vtkAbstractWidget *)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkSplineWidget2::_WidgetState
_WidgetState
Definition: vtkSplineWidget2.h:94
vtkSplineWidget2::SetRepresentation
void SetRepresentation(vtkSplineRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
Definition: vtkSplineWidget2.h:71
vtkSplineWidget2
widget for vtkSplineRepresentation.
Definition: vtkSplineWidget2.h:60
vtkCallbackCommand
supports function callbacks
Definition: vtkCallbackCommand.h:154
vtkSplineWidget2::vtkSplineWidget2
vtkSplineWidget2()
vtkSplineWidget2::ProcessKeyEvents
static void ProcessKeyEvents(vtkObject *, unsigned long, void *, void *)
vtkSplineRepresentation
representation for a spline.
Definition: vtkSplineRepresentation.h:37