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_DiffusionImageNrrdReaderService =
new DiffusionImageNrrdReaderService();
59 m_DiffusionImageNiftiReaderService =
new DiffusionImageNiftiReaderService();
60 m_NrrdTensorImageReader =
new NrrdTensorImageReader();
61 m_NrrdQBallImageReader =
new NrrdQBallImageReader();
63 m_DiffusionImageNrrdWriterService =
new DiffusionImageNrrdWriterService();
64 m_DiffusionImageNiftiWriterService =
new DiffusionImageNiftiWriterService();
65 m_NrrdTensorImageWriter =
new NrrdTensorImageWriter();
66 m_NrrdQBallImageWriter =
new NrrdQBallImageWriter();
93 void Unload(us::ModuleContext*)
override
95 for (
unsigned int loop(0); loop < m_MimeTypes.size(); ++loop)
97 delete m_MimeTypes.at(loop);
100 delete m_DiffusionImageNrrdReaderService;
101 delete m_DiffusionImageNiftiReaderService;
102 delete m_NrrdTensorImageReader;
103 delete m_NrrdQBallImageReader;
105 delete m_DiffusionImageNrrdWriterService;
106 delete m_DiffusionImageNiftiWriterService;
107 delete m_NrrdTensorImageWriter;
108 delete m_NrrdQBallImageWriter;
113 DiffusionImageNrrdReaderService * m_DiffusionImageNrrdReaderService;
114 DiffusionImageNiftiReaderService * m_DiffusionImageNiftiReaderService;
115 NrrdTensorImageReader * m_NrrdTensorImageReader;
116 NrrdQBallImageReader * m_NrrdQBallImageReader;
118 DiffusionImageNrrdWriterService * m_DiffusionImageNrrdWriterService;
119 DiffusionImageNiftiWriterService * m_DiffusionImageNiftiWriterService;
120 NrrdTensorImageWriter * m_NrrdTensorImageWriter;
121 NrrdQBallImageWriter * m_NrrdQBallImageWriter;
123 std::vector<mitk::CustomMimeType*> m_MimeTypes;
static const std::string REFERENCEBVALUEPROPERTYNAME
virtual bool AddDescription(const std::string &propertyName, const std::string &description, const std::string &className="", bool overwrite=false)=0
Add a description for a specific property.
US_Core_EXPORT const std::string & SERVICE_RANKING()
DataCollection - Class to facilitate loading/accessing structured data.
virtual void Unload(ModuleContext *context)=0
static IPropertyDescriptions * GetPropertyDescriptions(us::ModuleContext *context=us::GetModuleContext())
Get an IPropertyDescriptions instance.
static const std::string MEASUREMENTFRAMEPROPERTYNAME
static IPropertyPersistence * GetPropertyPersistence(us::ModuleContext *context=us::GetModuleContext())
Get an IPropertyPersistence instance.
US_UNORDERED_MAP_TYPE< std::string, Any > ServiceProperties
static std::vector< CustomMimeType * > Get()
virtual bool AddInfo(const PropertyPersistenceInfo *info, bool overwrite=false)=0
Add persistence info for a specific base data property. If there is already a property info instance ...
static const std::string GRADIENTCONTAINERPROPERTYNAME
static const std::string MODALITY
static const std::string BVALUEMAPPROPERTYNAME
virtual void Load(ModuleContext *context)=0
US_EXPORT_MODULE_ACTIVATOR(mitk::SimulationActivator)
static const std::string ORIGINALGRADIENTCONTAINERPROPERTYNAME