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 =========================================================================*/
29 #ifndef vtkPolyLineWidget_h
30 #define vtkPolyLineWidget_h
31 
32 #include "vtkInteractionWidgetsModule.h" // For export macro
33 #include "vtkAbstractWidget.h"
34 
36 
37 class VTKINTERACTIONWIDGETS_EXPORT vtkPolyLineWidget : public vtkAbstractWidget
38 {
39 public:
40  static vtkPolyLineWidget* New();
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
50  {
51  this->Superclass::SetWidgetRepresentation(
52  reinterpret_cast<vtkWidgetRepresentation*>(r));
53  }
54 
60 
61 protected:
64 
66  enum _WidgetState {Start=0,Active};
67 
68  // These methods handle events
69  static void SelectAction(vtkAbstractWidget*);
70  static void EndSelectAction(vtkAbstractWidget*);
71  static void TranslateAction(vtkAbstractWidget*);
72  static void ScaleAction(vtkAbstractWidget*);
73  static void MoveAction(vtkAbstractWidget*);
74 
75 private:
76  vtkPolyLineWidget(const vtkPolyLineWidget&) VTK_DELETE_FUNCTION;
77  void operator=(const vtkPolyLineWidget&) VTK_DELETE_FUNCTION;
78 
79 };
80 
81 #endif
void PrintSelf(ostream &os, vtkIndent indent)
Standard macros implementing standard VTK methods.
widget for vtkPolyLineRepresentation.
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:39
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...