fw4spl
InteractorStyle3DForNegato.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2017.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #ifndef __FWRENDERVTK_VTK_INTERACTORSTYLE3DFORNEGATO_HPP__
8 #define __FWRENDERVTK_VTK_INTERACTORSTYLE3DFORNEGATO_HPP__
9 
10 #include "fwRenderVTK/config.hpp"
11 #include "fwRenderVTK/IInteractorStyle.hpp"
12 
13 #include <vtkInteractorStyleTrackballCamera.h>
14 
15 class Renderer;
16 
17 class FWRENDERVTK_CLASS_API InteractorStyle3DForNegato : public vtkInteractorStyleTrackballCamera,
19 {
20 
21 public:
22 
23  FWRENDERVTK_API static InteractorStyle3DForNegato* New();
24 
25  vtkTypeMacro(InteractorStyle3DForNegato, vtkInteractorStyle);
26 
27  FWRENDERVTK_API virtual void OnMiddleButtonDown() override;
28 
29  FWRENDERVTK_API virtual void OnChar() override;
30  FWRENDERVTK_API virtual void OnKeyUp() override;
31  FWRENDERVTK_API virtual void OnKeyDown() override;
32 
33  FWRENDERVTK_API virtual void OnLeftButtonDown() override;
34  FWRENDERVTK_API virtual void OnMouseMove() override;
35  FWRENDERVTK_API virtual void OnRightButtonDown() override;
36  FWRENDERVTK_API virtual void OnMouseWheelBackward() override;
37  FWRENDERVTK_API virtual void OnMouseWheelForward() override;
38 
39  FWRENDERVTK_API virtual void Rotate() override;
40  FWRENDERVTK_API virtual void Spin() override;
41  FWRENDERVTK_API virtual void Pan() override;
42  FWRENDERVTK_API virtual void Dolly() override;
43 
44 protected:
45 
46  FWRENDERVTK_API InteractorStyle3DForNegato();
47  FWRENDERVTK_API ~InteractorStyle3DForNegato();
48 
49  FWRENDERVTK_API virtual void Dolly(double factor) override;
50 private:
51 
52  InteractorStyle3DForNegato(const InteractorStyle3DForNegato&); // Not implemented.
53 
54  void operator=(const InteractorStyle3DForNegato&); // Not implemented.
55 
56  double m_newPickPoint[4];
57  double m_oldPickPoint[4];
58 };
59 
60 #endif // __FWRENDERVTK_VTK_INTERACTORSTYLE3DFORNEGATO_HPP__
IInteractorStyle is an interface dedicated to hold some flags for class inherited from vtkInteractorS...