fw4spl
InteractorStyle2DForNegato.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_INTERACTORSTYLE2DFORNEGATO_HPP__
8 #define __FWRENDERVTK_VTK_INTERACTORSTYLE2DFORNEGATO_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 InteractorStyle2DForNegato : public vtkInteractorStyleTrackballCamera,
19 {
20 
21 public:
22 
23  FWRENDERVTK_API static InteractorStyle2DForNegato* New();
24 
25  vtkTypeMacro(InteractorStyle2DForNegato, vtkInteractorStyle);
26 
27  FWRENDERVTK_API virtual void OnMiddleButtonDown() override;
28 
29  FWRENDERVTK_API virtual void OnChar() override;
30 
31  FWRENDERVTK_API virtual void OnLeftButtonDown() override;
32  FWRENDERVTK_API virtual void OnMouseMove() override;
33  FWRENDERVTK_API virtual void OnMouseWheelBackward() override;
34  FWRENDERVTK_API virtual void OnMouseWheelForward() override;
35  FWRENDERVTK_API virtual void OnRightButtonDown() override;
36 
37  FWRENDERVTK_API virtual void Pan() override;
38  FWRENDERVTK_API virtual void Dolly() override;
39 
40 protected:
41 
42  FWRENDERVTK_API InteractorStyle2DForNegato();
43  FWRENDERVTK_API ~InteractorStyle2DForNegato();
44 
45  FWRENDERVTK_API virtual void Dolly(double factor) override;
46 private:
47 
48  InteractorStyle2DForNegato(const InteractorStyle2DForNegato&); // Not implemented.
49 
50  void operator=(const InteractorStyle2DForNegato&); // Not implemented.
51 
52  double m_newPickPoint[4];
53  double m_oldPickPoint[4];
54 };
55 
56 #endif // __FWRENDERVTK_VTK_INTERACTORSTYLE2DFORNEGATO_HPP__
IInteractorStyle is an interface dedicated to hold some flags for class inherited from vtkInteractorS...