fw4spl
SSeriesViewer.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 "uiMedDataQt/config.hpp"
10 
11 #include <fwServices/IAppConfigManager.hpp>
12 #include <fwServices/IController.hpp>
13 
14 #include <map>
15 
16 namespace uiMedDataQt
17 {
18 
53 class UIMEDDATAQT_CLASS_API SSeriesViewer : public ::fwServices::IController
54 {
55 
56 public:
58 
60  UIMEDDATAQT_API SSeriesViewer();
61 
63  UIMEDDATAQT_API virtual ~SSeriesViewer() noexcept;
64 
72  UIMEDDATAQT_API virtual KeyConnectionsType getObjSrvConnections() const override;
73 
74 protected:
75 
77  virtual void starting() override;
78 
80  virtual void stopping() override;
81 
83  virtual void configuring() override;
84 
93  virtual void updating() override;
94 
102  UIMEDDATAQT_API virtual KeyConnectionsMap getAutoConnections() const override;
103 
104  virtual void info( std::ostream& _sstream ) override;
105 
106 private:
107 
108  typedef std::map<std::string, std::string> ReplaceValuesMapType;
109 
111  struct SeriesConfigInfo
112  {
114  std::string configId;
115 
117  ReplaceValuesMapType extractValues;
118 
120  ReplaceValuesMapType parameters;
121  };
122 
123  typedef std::map<std::string, SeriesConfigInfo> SeriesConfigMapType;
124 
126  ::fwServices::IAppConfigManager::sptr m_configTemplateManager;
127 
129  std::string m_parentView;
130 
132  SeriesConfigMapType m_seriesConfigs;
133 };
134 } // namespace uiMedDataQt
The namespace uiMedDataQt contains editors for medical data.
This class is a helper to define the connections of a service and its data.
Definition: IService.hpp:454
STL namespace.
This Service allows to preview the selected series in the Vector. For the moment, it works only on a ...
This interface defines control service API. Does nothing particularly, can be considered as a default...
Definition: IController.hpp:23
::fwCom::helper::SigSlotConnection::KeyConnectionsType KeyConnectionsType
Returns proposals to connect service slots to associated object signals, this method is used for obj/...
Definition: IService.hpp:449
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.