VTK
dox/Interaction/Widgets/vtkSplineWidget2.h
Go to the documentation of this file.
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 "vtkInteractionWidgetsModule.h" // For export macro
00035 #include "vtkAbstractWidget.h"
00036 
00037 class vtkSplineRepresentation;
00038 
00039 class VTKINTERACTIONWIDGETS_EXPORT vtkSplineWidget2 : public vtkAbstractWidget
00040 {
00041 public:
00042   static vtkSplineWidget2* New();
00043   vtkTypeMacro(vtkSplineWidget2, vtkAbstractWidget);
00044   void PrintSelf(ostream& os, vtkIndent indent);
00045 
00047 
00050   void SetRepresentation(vtkSplineRepresentation *r)
00051     {
00052     this->Superclass::SetWidgetRepresentation(
00053       reinterpret_cast<vtkWidgetRepresentation*>(r));
00054     }
00056 
00058 
00060   void CreateDefaultRepresentation();
00061 //BTX
00062 protected:
00063   vtkSplineWidget2();
00064   ~vtkSplineWidget2();
00066 
00067   int WidgetState;
00068   enum _WidgetState {Start=0,Active};
00069 
00070   // These methods handle events
00071   static void SelectAction(vtkAbstractWidget*);
00072   static void EndSelectAction(vtkAbstractWidget*);
00073   static void TranslateAction(vtkAbstractWidget*);
00074   static void ScaleAction(vtkAbstractWidget*);
00075   static void MoveAction(vtkAbstractWidget*);
00076 
00077 private:
00078   vtkSplineWidget2(const vtkSplineWidget2&); // Not implemented.
00079   void operator=(const vtkSplineWidget2&); // Not implemented.
00080 //ETX
00081 };
00082 
00083 #endif
00084 
00085