19 #ifndef AXLINTERACTORSSTYLEWITCH
20 #define AXLINTERACTORSSTYLEWITCH
22 #include "vtkInteractorStyle.h"
23 #include <QtCore/QObject>
28 #define VTKIS_JOYSTICK 0
29 #define VTKIS_TRACKBALL 1
31 #define VTKIS_CAMERA 0
34 class vtkInteractorStyleJoystickActor;
35 class vtkInteractorStyleJoystickCamera;
36 class vtkInteractorStyleTrackballActor;
37 class vtkInteractorStyleTrackballCamera;
39 class axlInteractorStyleSwitchPrivate;
48 void PrintSelf(ostream& os, vtkIndent indent);
52 void SetInteractor(vtkRenderWindowInteractor *iren);
57 void SetAutoAdjustCameraClippingRange(
int value )
override;
61 vtkGetObjectMacro(CurrentStyle, vtkInteractorStyle);
62 void SetCurrentStyleToJoystickActor();
63 void SetCurrentStyleToJoystickCamera();
64 void SetCurrentStyleToTrackballActor();
65 void SetCurrentStyleToTrackballCamera();
70 virtual void OnChar();
75 virtual void SetDefaultRenderer(vtkRenderer*)
override;
76 virtual void SetCurrentRenderer(vtkRenderer*)
override;
82 void SetCurrentStyle();
98 axlInteractorStyleSwitchPrivate *d;
101 #endif //AXLINTERACTORSSTYLEWITCH
#define AXLVTKVIEWPLUGIN_EXPORT
vtkInteractorStyleJoystickCamera * JoystickCamera
vtkInteractorStyleTrackballActor * TrackballActor
vtkInteractorStyleJoystickActor * JoystickActor
vtkInteractorStyleTrackballCamera * TrackballCamera
vtkInteractorStyle * CurrentStyle