VTK
vtkPolyLineWidget.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPolyLineWidget.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 =========================================================================*/
26 #ifndef vtkPolyLineWidget_h
27 #define vtkPolyLineWidget_h
28 
29 #include "vtkInteractionWidgetsModule.h" // For export macro
30 #include "vtkAbstractWidget.h"
31 
33 
34 class VTKINTERACTIONWIDGETS_EXPORT vtkPolyLineWidget : public vtkAbstractWidget
35 {
36 public:
37  static vtkPolyLineWidget* New();
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
47  {
48  this->Superclass::SetWidgetRepresentation(
49  reinterpret_cast<vtkWidgetRepresentation*>(r));
50  }
51 
56  void CreateDefaultRepresentation() override;
57 
58 protected:
60  ~vtkPolyLineWidget() override;
61 
63  enum _WidgetState {Start=0,Active};
64 
65  // These methods handle events
66  static void SelectAction(vtkAbstractWidget*);
67  static void EndSelectAction(vtkAbstractWidget*);
68  static void TranslateAction(vtkAbstractWidget*);
69  static void ScaleAction(vtkAbstractWidget*);
70  static void MoveAction(vtkAbstractWidget*);
71 
72 private:
73  vtkPolyLineWidget(const vtkPolyLineWidget&) = delete;
74  void operator=(const vtkPolyLineWidget&) = delete;
75 
76 };
77 
78 #endif
widget for vtkPolyLineRepresentation.
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 for a poly line.
a simple class to control print indentation
Definition: vtkIndent.h:33
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...
void SetRepresentation(vtkPolyLineRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene...