fw4spl
IInteractorStyle.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2018.
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 #pragma once
8 
9 #include "fwRenderVTK/config.hpp"
10 
11 namespace fwRenderVTK
12 {
13 
18 class FWRENDERVTK_CLASS_API IInteractorStyle
19 {
20 public:
21 
24 
26  virtual ~IInteractorStyle();
27 
29  bool getAutoRender() const;
30 
32  void setAutoRender(bool _autoRender);
33 
34 private:
35 
37  bool m_autoRender;
38 };
39 
40 //------------------------------------------------------------------------------
41 
43  m_autoRender(true)
44 {
45 }
46 
47 //------------------------------------------------------------------------------
48 
50 {
51 }
52 
53 //------------------------------------------------------------------------------
54 
56 {
57  return m_autoRender;
58 }
59 
60 //------------------------------------------------------------------------------
61 
62 inline void IInteractorStyle::setAutoRender(bool _autoRender)
63 {
64  m_autoRender = _autoRender;
65 }
66 
67 //------------------------------------------------------------------------------
68 
69 }
IInteractorStyle is an interface dedicated to hold some flags for class inherited from vtkInteractorS...
void setAutoRender(bool _autoRender)
Set the autorender flag.
IInteractorStyle()
Constructor. Do nothing.
bool getAutoRender() const
Get the autorender flag.
The namespace fwRenderVTK contains classes for rendering with VTK.
virtual ~IInteractorStyle()
Destructor. Do nothing.