VTK
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 =========================================================================*/
31 #ifndef vtkSplineWidget2_h
32 #define vtkSplineWidget2_h
33 
34 #include "vtkInteractionWidgetsModule.h" // For export macro
35 #include "vtkAbstractWidget.h"
36 
38 
40 {
41 public:
42  static vtkSplineWidget2* New();
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
47 
51  {
52  this->Superclass::SetWidgetRepresentation(
53  reinterpret_cast<vtkWidgetRepresentation*>(r));
54  }
56 
58 
61 //BTX
62 protected:
66 
68  enum _WidgetState {Start=0,Active};
69 
70  // These methods handle events
71  static void SelectAction(vtkAbstractWidget*);
72  static void EndSelectAction(vtkAbstractWidget*);
73  static void TranslateAction(vtkAbstractWidget*);
74  static void ScaleAction(vtkAbstractWidget*);
75  static void MoveAction(vtkAbstractWidget*);
76 
77 private:
78  vtkSplineWidget2(const vtkSplineWidget2&); // Not implemented.
79  void operator=(const vtkSplineWidget2&); // Not implemented.
80 //ETX
81 };
82 
83 #endif
84 
85 
void PrintSelf(ostream &os, vtkIndent indent)
representation for a spline.
void SetRepresentation(vtkSplineRepresentation *r)
virtual void CreateDefaultRepresentation()=0
#define VTKINTERACTIONWIDGETS_EXPORT
a simple class to control print indentation
Definition: vtkIndent.h:38
widget for vtkSplineRepresentation.
define the API for widget / widget representation
static vtkObject * New()