Medical Imaging Interaction Toolkit
2023.12.00
Medical Imaging Interaction Toolkit
|
We will use some concepts during this tutorial which we assume you are aware of, as well as taking advantage of infrastructure which needs to be set up. The following is a list of prerequisites which should be present to effectively use this tutorial.
Some concepts will only be briefly touched upon in this tutorial, for a more concise presentation of these concepts please refer to the following further reading.
A new data type needs to derive from mitk::BaseData in order to be handled by the mitk::DataStorage via mitk::DataNode. An example of a very simple data type is provided in the example module. This type encapsulates a string.
Overloading mitk::Equal to work with your data type will enable you to write simpler, standardized tests.
In order for your data type to be read from and written to disk, you need to implement readers and writers. In order for your readers/writers to be registered and available even if your module has not been loaded (usually after just starting the application), it is advisable to implement them separately in a autoload module. The default location for this is "YourModuleName/autoload/IO".
More information regarding implementing IO and MimeTypes is available at Reader and Writer. An example MimeType is implemented for the example data structure.
If your data type needs a special way to render its data for the user, you need to implement a new mapper. More information can be found at Rendering Concept.
If you meet any difficulties during this How-To, don't hesitate to ask on the MITK mailing list mitk-! People there are kind and will try to help you. If you notice that there is an error, or that the code has changed so the way shown here is no longer correct, please open a bug report at user s@lis ts.s ource forg e.nethttps://phabricator.mitk.org/maniphest/ .