VTK
dox/Charts/vtkContextMouseEvent.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkContextScene.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 =========================================================================*/
00015 
00027 #ifndef __vtkContextMouseEvent_h
00028 #define __vtkContextMouseEvent_h
00029 
00030 #include "vtkVector.h" // Needed for vtkVector2f and vtkVector2i
00031 
00032 class vtkContextMouseEvent
00033 {
00034 public:
00036 
00037   enum {
00038     NO_BUTTON = 0,
00039     LEFT_BUTTON = 1,
00040     MIDDLE_BUTTON = 2,
00041     RIGHT_BUTTON = 4
00042   };
00044 
00046   vtkVector2f Pos;
00047 
00049   vtkVector2f ScenePos;
00050 
00052   vtkVector2i ScreenPos;
00053 
00055   vtkVector2f LastPos;
00056 
00058   vtkVector2f LastScenePos;
00059 
00061   vtkVector2i LastScreenPos;
00062 
00064 
00065   int Button;
00066 };
00067 //ETX
00069 
00070 #endif // __vtkContextMouseEvent_h