00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkSplineWidget2.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00031 #ifndef __vtkSplineWidget2_h 00032 #define __vtkSplineWidget2_h 00033 00034 #include "vtkAbstractWidget.h" 00035 00036 class vtkSplineRepresentation; 00037 00038 class VTK_WIDGETS_EXPORT vtkSplineWidget2 : public vtkAbstractWidget 00039 { 00040 public: 00041 static vtkSplineWidget2* New(); 00042 vtkTypeMacro(vtkSplineWidget2, vtkAbstractWidget); 00043 void PrintSelf(ostream& os, vtkIndent indent); 00044 00046 00049 void SetRepresentation(vtkSplineRepresentation *r) 00050 { 00051 this->Superclass::SetWidgetRepresentation( 00052 reinterpret_cast<vtkWidgetRepresentation*>(r)); 00053 } 00055 00057 00059 void CreateDefaultRepresentation(); 00060 //BTX 00061 protected: 00062 vtkSplineWidget2(); 00063 ~vtkSplineWidget2(); 00065 00066 int WidgetState; 00067 enum _WidgetState {Start=0,Active}; 00068 00069 // These methods handle events 00070 static void SelectAction(vtkAbstractWidget*); 00071 static void EndSelectAction(vtkAbstractWidget*); 00072 static void TranslateAction(vtkAbstractWidget*); 00073 static void ScaleAction(vtkAbstractWidget*); 00074 static void MoveAction(vtkAbstractWidget*); 00075 00076 private: 00077 vtkSplineWidget2(const vtkSplineWidget2&); // Not implemented. 00078 void operator=(const vtkSplineWidget2&); // Not implemented. 00079 //ETX 00080 }; 00081 00082 #endif 00083 00084