00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00022 #ifndef __vtkPVTrackballRotate_h
00023 #define __vtkPVTrackballRotate_h
00024
00025 #include "vtkPVCameraManipulator.h"
00026
00027 class VTK_EXPORT vtkPVTrackballRotate : public vtkPVCameraManipulator
00028 {
00029 public:
00030 static vtkPVTrackballRotate *New();
00031 vtkTypeRevisionMacro(vtkPVTrackballRotate, vtkPVCameraManipulator);
00032 void PrintSelf(ostream& os, vtkIndent indent);
00033
00035
00037 virtual void OnMouseMove(int x, int y, vtkRenderer *ren,
00038 vtkRenderWindowInteractor *rwi);
00039 virtual void OnButtonDown(int x, int y, vtkRenderer *ren,
00040 vtkRenderWindowInteractor *rwi);
00041 virtual void OnButtonUp(int x, int y, vtkRenderer *ren,
00042 vtkRenderWindowInteractor *rwi);
00044
00046
00047 vtkSetVector3Macro(Center, float);
00048 vtkGetVector3Macro(Center, float);
00050
00051 protected:
00052 vtkPVTrackballRotate();
00053 ~vtkPVTrackballRotate();
00054
00055 float Center[3];
00056 float DisplayCenter[2];
00057
00058 vtkPVTrackballRotate(const vtkPVTrackballRotate&);
00059 void operator=(const vtkPVTrackballRotate&);
00060 };
00061
00062 #endif