46 void Load(us::ModuleContext* context)
override
52 for (std::vector<mitk::CustomMimeType*>::const_iterator mimeTypeIter = m_MimeTypes.begin(),
53 iterEnd = m_MimeTypes.end(); mimeTypeIter != iterEnd; ++mimeTypeIter)
55 context->RegisterService(*mimeTypeIter, props);
58 m_FiberBundleVtkReader =
new FiberBundleVtkReader();
59 m_FiberBundleTrackVisReader =
new FiberBundleTrackVisReader();
60 m_ConnectomicsNetworkReader =
new ConnectomicsNetworkReader();
61 m_PlanarFigureCompositeReader =
new PlanarFigureCompositeReader();
63 m_FiberBundleVtkWriter =
new FiberBundleVtkWriter();
64 m_FiberBundleTrackVisWriter =
new FiberBundleTrackVisWriter();
65 m_ConnectomicsNetworkWriter =
new ConnectomicsNetworkWriter();
66 m_ConnectomicsNetworkCSVWriter =
new ConnectomicsNetworkCSVWriter();
67 m_ConnectomicsNetworkMatrixWriter =
new ConnectomicsNetworkMatrixWriter();
68 m_PlanarFigureCompositeWriter =
new PlanarFigureCompositeWriter();
71 void Unload(us::ModuleContext*)
override
73 for (
unsigned int loop(0); loop < m_MimeTypes.size(); ++loop)
75 delete m_MimeTypes.at(loop);
78 delete m_FiberBundleVtkReader;
79 delete m_FiberBundleTrackVisReader;
80 delete m_ConnectomicsNetworkReader;
81 delete m_PlanarFigureCompositeReader;
83 delete m_FiberBundleVtkWriter;
84 delete m_FiberBundleTrackVisWriter;
85 delete m_ConnectomicsNetworkWriter;
86 delete m_ConnectomicsNetworkCSVWriter;
87 delete m_ConnectomicsNetworkMatrixWriter;
88 delete m_PlanarFigureCompositeWriter;
93 FiberBundleVtkReader * m_FiberBundleVtkReader;
94 FiberBundleTrackVisReader * m_FiberBundleTrackVisReader;
95 ConnectomicsNetworkReader * m_ConnectomicsNetworkReader;
96 PlanarFigureCompositeReader* m_PlanarFigureCompositeReader;
98 FiberBundleVtkWriter * m_FiberBundleVtkWriter;
99 FiberBundleTrackVisWriter * m_FiberBundleTrackVisWriter;
100 ConnectomicsNetworkWriter * m_ConnectomicsNetworkWriter;
101 ConnectomicsNetworkCSVWriter * m_ConnectomicsNetworkCSVWriter;
102 ConnectomicsNetworkMatrixWriter * m_ConnectomicsNetworkMatrixWriter;
103 PlanarFigureCompositeWriter* m_PlanarFigureCompositeWriter;
105 std::vector<mitk::CustomMimeType*> m_MimeTypes;
US_Core_EXPORT const std::string & SERVICE_RANKING()
DataCollection - Class to facilitate loading/accessing structured data.
virtual void Unload(ModuleContext *context)=0
static std::vector< CustomMimeType * > Get()
US_UNORDERED_MAP_TYPE< std::string, Any > ServiceProperties
virtual void Load(ModuleContext *context)=0
US_EXPORT_MODULE_ACTIVATOR(mitk::SimulationActivator)