|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Parser for DICOM Parametric Map (PM) preset definitions stored in XML format. More...
#include <mitkParamapPresetsParser.h>


Classes | |
| struct | Type |
| Represents a single parametric map type preset with a coded value and coding scheme. More... | |
Public Types | |
| using | ParamapPrestsType = std::map< std::string, Type > |
| Map type associating preset names to their Type definitions. More... | |
Public Member Functions | |
| vtkTypeMacro (ParamapPresetsParser, vtkXMLParser) | |
| bool | LoadPreset () |
| Load presets from the default module resource file. More... | |
| bool | LoadPreset (const std::string &fileName) |
| Load presets from a custom XML file. More... | |
| Type | GetType (const std::string &name) |
| Retrieve the type definition for a given preset name. More... | |
| ParamapPrestsType const | GetTypePresets () |
| Get all currently loaded type presets. More... | |
| void | NewPresets (ParamapPrestsType &newType) |
| Replace all current presets with a new set. More... | |
Static Public Member Functions | |
| static ParamapPresetsParser * | New () |
| VTK-style factory method. More... | |
Protected Member Functions | |
| ParamapPresetsParser ()=default | |
| ~ParamapPresetsParser () override=default | |
Parser for DICOM Parametric Map (PM) preset definitions stored in XML format.
This class reads XML files that define parametric map type presets, each consisting of a coded value and a coding scheme designator. These presets are used to populate DICOM parametric map objects with standardized coded entries.
The default preset file is loaded from the module resources (mitkParamapPresets.xml). Alternatively, a custom XML file can be specified.
Definition at line 38 of file mitkParamapPresetsParser.h.
| using mitk::ParamapPresetsParser::ParamapPrestsType = std::map<std::string, Type> |
Map type associating preset names to their Type definitions.
Definition at line 60 of file mitkParamapPresetsParser.h.
|
protecteddefault |
|
overrideprotecteddefault |
| Type mitk::ParamapPresetsParser::GetType | ( | const std::string & | name | ) |
| ParamapPrestsType const mitk::ParamapPresetsParser::GetTypePresets | ( | ) |
Get all currently loaded type presets.
| bool mitk::ParamapPresetsParser::LoadPreset | ( | ) |
Load presets from the default module resource file.
Loads and parses the built-in mitkParamapPresets.xml from the module resources.
true if the presets were loaded and parsed successfully, false otherwise. | bool mitk::ParamapPresetsParser::LoadPreset | ( | const std::string & | fileName | ) |
Load presets from a custom XML file.
| [in] | fileName | Path to the XML file containing preset definitions. |
true if the file was parsed successfully, false if the file name is empty or parsing failed.
|
static |
VTK-style factory method.
| void mitk::ParamapPresetsParser::NewPresets | ( | ParamapPrestsType & | newType | ) |
Replace all current presets with a new set.
| [in] | newType | The new map of preset name-to-Type associations to use. |
| mitk::ParamapPresetsParser::vtkTypeMacro | ( | ParamapPresetsParser | , |
| vtkXMLParser | |||
| ) |