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 "vtkAbstractWidget.h"
35 
37 
39 {
40 public:
41  static vtkSplineWidget2* New();
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
46 
50  {
51  this->Superclass::SetWidgetRepresentation(
52  reinterpret_cast<vtkWidgetRepresentation*>(r));
53  }
55 
57 
60 //BTX
61 protected:
65 
67  enum _WidgetState {Start=0,Active};
68 
69  // These methods handle events
70  static void SelectAction(vtkAbstractWidget*);
71  static void EndSelectAction(vtkAbstractWidget*);
72  static void TranslateAction(vtkAbstractWidget*);
73  static void ScaleAction(vtkAbstractWidget*);
74  static void MoveAction(vtkAbstractWidget*);
75 
76 private:
77  vtkSplineWidget2(const vtkSplineWidget2&); // Not implemented.
78  void operator=(const vtkSplineWidget2&); // Not implemented.
79 //ETX
80 };
81 
82 #endif
83 
84 
void PrintSelf(ostream &os, vtkIndent indent)
vtkWidgetRepresentation for a spline.
void SetRepresentation(vtkSplineRepresentation *r)
virtual void CreateDefaultRepresentation()=0
a simple class to control print indentation
Definition: vtkIndent.h:37
widget for vtkSplineRepresentation.
#define VTK_WIDGETS_EXPORT
define the API for widget / widget representation
static vtkObject * New()