Go to the documentation of this file.
79 #ifndef vtkInteractorStyleUnicam_h
80 #define vtkInteractorStyleUnicam_h
82 #include "vtkInteractionStyleModule.h"
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
116 void SetWorldUpVector(
double x,
double y,
double z);
117 vtkGetVectorMacro(WorldUpVector,
double, 3);
126 virtual void OnLeftButtonMove();
150 double WorldUpVector[3];
158 void ChooseXY(
int X,
int Y );
159 void RotateXY(
int X,
int Y );
160 void DollyXY(
int X,
int Y );
161 void PanXY(
int X,
int Y );
164 void MyTranslateCamera(
double v[3]);
165 void MyRotateCamera(
double cx,
double cy,
double cz,
166 double ax,
double ay,
double az,
174 void GetRightVandUpV(
double *p,
vtkCamera *cam,
175 double *rightV,
double *upV);
178 void NormalizeMouseXY(
int X,
int Y,
double *NX,
double *NY);
181 double WindowAspect();
187 #endif // vtkInteractorStyleUnicam_h
void SetWorldUpVector(double a[3])
find world x,y,z corresponding to display x,y,z
vtkRenderer * FocusSphereRenderer
virtual void OnMouseMove()
Generic event bindings can be overridden in subclasses.
virtual void OnLeftButtonDown()
represents an object (geometry & properties) in a rendered scene
a simple class to control print indentation
a virtual camera for 3D rendering
provide event-driven interface to the rendering window (defines trackball mode)
virtual void OnLeftButtonUp()
static vtkInteractorStyle * New()
This class must be supplied with a vtkRenderWindowInteractor wrapper or parent.
provides Unicam navigation style
abstract specification for renderers
vtkWorldPointPicker * InteractionPicker
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void OnTimer()
OnTimer calls Rotate, Rotate etc which should be overridden by style subclasses.