fw4spl
SImagesProbeCursor.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 __VISUVTKADAPTOR_SIMAGESPROBECURSOR_HPP__
8 #define __VISUVTKADAPTOR_SIMAGESPROBECURSOR_HPP__
9 
10 #include "visuVTKAdaptor/config.hpp"
11 #include "visuVTKAdaptor/SProbeCursor.hpp"
12 
13 #include <fwData/TransferFunction.hpp>
14 
15 #include <fwDataTools/helper/MedicalImageAdaptor.hpp>
16 
17 #include <fwRenderVTK/IAdaptor.hpp>
18 
19 class vtkCommand;
20 class vtkActor;
21 class vtkActor2D;
22 class vtkTextMapper;
23 class vtkPolyData;
24 class vtkPolyDataMapper;
25 
26 namespace visuVTKAdaptor
27 {
28 
51 class VISUVTKADAPTOR_CLASS_API SImagesProbeCursor : public ::visuVTKAdaptor::SProbeCursor
52 {
53 
54 public:
56 
57  VISUVTKADAPTOR_API SImagesProbeCursor() noexcept;
58 
59  VISUVTKADAPTOR_API virtual ~SImagesProbeCursor() noexcept;
60 
61  VISUVTKADAPTOR_API virtual void updateView( double world[3] ) override;
62 
63 protected:
64 
65  VISUVTKADAPTOR_API void configuring() override;
66  VISUVTKADAPTOR_API void starting() override;
67  VISUVTKADAPTOR_API void updating() override;
68  VISUVTKADAPTOR_API void stopping() override;
69 
78  VISUVTKADAPTOR_API virtual KeyConnectionsMap getAutoConnections() const override;
79 
80  std::vector< std::string > m_imagesNames;
81 };
82 
83 } //namespace visuVTKAdaptor
84 
85 #endif // __VISUVTKADAPTOR_SIMAGESPROBECURSOR_HPP__
This class is a helper to define the connections of a service and its data.
Definition: IService.hpp:454
The namespace visuVTKAdaptor contains the list of adaptors available for the generic scene...
Cursor management: displays a red cross representing the image picked point.
STL namespace.
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
Displays pixel information from images.