79 #ifndef __vtkInteractorStyleUnicam_h
80 #define __vtkInteractorStyleUnicam_h
82 #include "vtkInteractionStyleModule.h"
83 #include "vtkInteractorStyle.h"
86 class vtkWorldPointPicker;
97 #define VTK_UNICAM_NONE 0
98 #define VTK_UNICAM_BUTTON_LEFT 1
99 #define VTK_UNICAM_BUTTON_MIDDLE 2
100 #define VTK_UNICAM_BUTTON_RIGHT 3
103 #define VTK_UNICAM_CAM_INT_ROT 0
104 #define VTK_UNICAM_CAM_INT_CHOOSE 1
105 #define VTK_UNICAM_CAM_INT_PAN 2
106 #define VTK_UNICAM_CAM_INT_DOLLY 3
113 void PrintSelf(ostream& os, vtkIndent indent);
116 void SetWorldUpVector(
double x,
double y,
double z);
117 vtkGetVectorMacro(WorldUpVector,
double, 3);
121 virtual void OnMouseMove();
122 virtual void OnLeftButtonDown();
123 virtual void OnLeftButtonUp();
124 virtual void OnLeftButtonMove();
129 virtual void OnTimer();
146 double WorldUpVector[3];
154 void ChooseXY(
int X,
int Y );
155 void RotateXY(
int X,
int Y );
156 void DollyXY(
int X,
int Y );
157 void PanXY(
int X,
int Y );
160 void MyTranslateCamera(
double v[3]);
161 void MyRotateCamera(
double cx,
double cy,
double cz,
162 double ax,
double ay,
double az,
170 void GetRightVandUpV(
double *p, vtkCamera *cam,
171 double *rightV,
double *upV);
174 void NormalizeMouseXY(
int X,
int Y,
double *NX,
double *NY);
177 double WindowAspect();
183 #endif // __vtkInteractorStyleUnicam_h
vtkWorldPointPicker * InteractionPicker
void SetWorldUpVector(double a[3])
provides Unicam navigation style
vtkRenderer * FocusSphereRenderer