fw4spl
SOrientationMarker.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 #ifndef ANDROID
10 
11 #include "visuVTKAdaptor/config.hpp"
12 
13 #include <fwRenderVTK/IAdaptor.hpp>
14 
15 #include <vtkSmartPointer.h>
16 
17 class vtkOrientationMarkerWidget;
18 
19 namespace visuVTKAdaptor
20 {
21 
37 class VISUVTKADAPTOR_CLASS_API SOrientationMarker : public ::fwRenderVTK::IAdaptor
38 {
39 
40 public:
41 
43  VISUVTKADAPTOR_API SOrientationMarker();
44 
45 protected:
46 
47  VISUVTKADAPTOR_API void configuring() override;
48  VISUVTKADAPTOR_API void starting() override;
49 
50  //------------------------------------------------------------------------------
51 
52  void updating() override
53  {
54  }
55 
56  void stopping() override;
57 
59  std::string m_hAlign;
60  vtkSmartPointer<vtkOrientationMarkerWidget> m_widget;
61 };
62 } //namespace visuVTKAdaptor
63 
64 #endif // ANDROID
The namespace visuVTKAdaptor contains the list of adaptors available for the generic scene...
void updating() override
Perform some computations according to object (this service is attached to) attribute values and its ...
std::string m_hAlign
Horizontal alignment.
Adaptor used to display an orientationMarker in a generic scene.
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.