• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

dox/Widgets/vtkImplicitPlaneWidget2.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkImplicitPlaneWidget2.h,v $
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 =========================================================================*/
00097 #ifndef __vtkImplicitPlaneWidget2_h
00098 #define __vtkImplicitPlaneWidget2_h
00099 
00100 #include "vtkAbstractWidget.h"
00101 
00102 class vtkImplicitPlaneRepresentation;
00103 
00104 
00105 class VTK_WIDGETS_EXPORT vtkImplicitPlaneWidget2 : public vtkAbstractWidget
00106 {
00107 public:
00109   static vtkImplicitPlaneWidget2 *New();
00110 
00112 
00113   vtkTypeRevisionMacro(vtkImplicitPlaneWidget2,vtkAbstractWidget);
00114   void PrintSelf(ostream& os, vtkIndent indent);
00116 
00118 
00121   void SetRepresentation(vtkImplicitPlaneRepresentation *r)
00122     {this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));}
00124   
00126   void CreateDefaultRepresentation();
00127 
00128 protected:
00129   vtkImplicitPlaneWidget2();
00130   ~vtkImplicitPlaneWidget2();
00131 
00132 //BTX - manage the state of the widget
00133   int WidgetState;
00134   enum _WidgetState {Start=0,Active};
00135 //ETX
00136     
00137   // These methods handle events
00138   static void SelectAction(vtkAbstractWidget*);
00139   static void TranslateAction(vtkAbstractWidget*);
00140   static void ScaleAction(vtkAbstractWidget*);
00141   static void EndSelectAction(vtkAbstractWidget*);
00142   static void MoveAction(vtkAbstractWidget*);
00143 
00146   int UpdateCursorShape( int interactionState );
00147 
00148 private:
00149   vtkImplicitPlaneWidget2(const vtkImplicitPlaneWidget2&);  //Not implemented
00150   void operator=(const vtkImplicitPlaneWidget2&);  //Not implemented
00151 };
00152 
00153 #endif

Generated by  doxygen 1.7.1