Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkInteractorStyleUser.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkInteractorStyleUser.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 =========================================================================*/
00015 
00051 #ifndef __vtkInteractorStyleUser_h
00052 #define __vtkInteractorStyleUser_h
00053 
00054 #include "vtkInteractorStyle.h"
00055 
00056 // new motion flag
00057 #define VTKIS_USERINTERACTION 8 
00058 
00059 class VTK_RENDERING_EXPORT vtkInteractorStyleUser : public vtkInteractorStyle 
00060 {
00061 public:
00062   static vtkInteractorStyleUser *New();
00063   vtkTypeRevisionMacro(vtkInteractorStyleUser,vtkInteractorStyle);
00064   void PrintSelf(ostream& os, vtkIndent indent);
00065   
00067 
00071   vtkGetVector2Macro(LastPos,int);
00073 
00075 
00078   vtkGetVector2Macro(OldPos,int);
00080 
00082 
00084   vtkGetMacro(ShiftKey,int);
00085   vtkGetMacro(CtrlKey,int);
00087 
00089 
00090   vtkGetMacro(Char,int);
00092 
00094 
00096   vtkGetStringMacro(KeySym);
00098 
00100 
00102   vtkGetMacro(Button,int);
00104 
00106 
00107   virtual void OnMouseMove();
00108   virtual void OnLeftButtonDown();
00109   virtual void OnLeftButtonUp();
00110   virtual void OnMiddleButtonDown();
00111   virtual void OnMiddleButtonUp();
00112   virtual void OnRightButtonDown();
00113   virtual void OnRightButtonUp();
00115 
00117 
00118   virtual void OnChar();
00119   virtual void OnKeyPress();
00120   virtual void OnKeyRelease();
00122 
00124 
00125   virtual void OnExpose();
00126   virtual void OnConfigure();
00127   virtual void OnEnter();
00128   virtual void OnLeave();
00130 
00131   virtual void OnTimer();
00132 
00133 protected:
00134 
00135   vtkInteractorStyleUser();
00136   ~vtkInteractorStyleUser();
00137 
00138   int LastPos[2];
00139   int OldPos[2];
00140 
00141   int ShiftKey;
00142   int CtrlKey;
00143   int Char;
00144   char *KeySym;
00145   int Button;
00146 
00147 private:
00148   vtkInteractorStyleUser(const vtkInteractorStyleUser&);  // Not implemented.
00149   void operator=(const vtkInteractorStyleUser&);  // Not implemented.
00150 };
00151 
00152 #endif