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 =========================================================================*/ 00028 #ifndef __vtkSplineWidget2_h 00029 #define __vtkSplineWidget2_h 00030 00031 #include "vtkAbstractWidget.h" 00032 00033 class vtkSplineRepresentation; 00034 00035 class VTK_WIDGETS_EXPORT vtkSplineWidget2 : public vtkAbstractWidget 00036 { 00037 public: 00038 static vtkSplineWidget2* New(); 00039 vtkTypeMacro(vtkSplineWidget2, vtkAbstractWidget); 00040 void PrintSelf(ostream& os, vtkIndent indent); 00041 00043 00046 void SetRepresentation(vtkSplineRepresentation *r) 00047 { 00048 this->Superclass::SetWidgetRepresentation( 00049 reinterpret_cast<vtkWidgetRepresentation*>(r)); 00050 } 00052 00055 void CreateDefaultRepresentation(); 00056 //BTX 00057 protected: 00058 vtkSplineWidget2(); 00059 ~vtkSplineWidget2(); 00060 00061 int WidgetState; 00062 enum _WidgetState {Start=0,Active}; 00063 00064 // These methods handle events 00065 static void SelectAction(vtkAbstractWidget*); 00066 static void EndSelectAction(vtkAbstractWidget*); 00067 static void TranslateAction(vtkAbstractWidget*); 00068 static void ScaleAction(vtkAbstractWidget*); 00069 static void MoveAction(vtkAbstractWidget*); 00070 00071 private: 00072 vtkSplineWidget2(const vtkSplineWidget2&); // Not implemented. 00073 void operator=(const vtkSplineWidget2&); // Not implemented. 00074 //ETX 00075 }; 00076 00077 #endif 00078 00079