13 #ifndef mitkParamapPresetsParser_h
14 #define mitkParamapPresetsParser_h
17 #include <vtkXMLParser.h>
20 #include <vtkSetGet.h>
56 Type(std::string value, std::string scheme) : codeValue(value), codeScheme(scheme){}
115 void StartElement (
const char *elementName,
const char **atts)
override;
120 std::string ReadXMLStringAttribute(
const std::string& name,
const char **atts);
122 static const std::string PRESET;
123 static const std::string TYPE;
124 static const std::string CODE_VALUE;
125 static const std::string CODE_SCHEME;
127 std::string m_presetName;
129 std::string m_XmlFileName;
#define MITKDICOMPM_EXPORT
Parser for DICOM Parametric Map (PM) preset definitions stored in XML format.
bool LoadPreset(const std::string &fileName)
Load presets from a custom XML file.
bool LoadPreset()
Load presets from the default module resource file.
ParamapPrestsType const GetTypePresets()
Get all currently loaded type presets.
ParamapPresetsParser()=default
~ParamapPresetsParser() override=default
Type GetType(const std::string &name)
Retrieve the type definition for a given preset name.
static ParamapPresetsParser * New()
VTK-style factory method.
void NewPresets(ParamapPrestsType &newType)
Replace all current presets with a new set.
std::map< std::string, Type > ParamapPrestsType
Map type associating preset names to their Type definitions.
vtkTypeMacro(ParamapPresetsParser, vtkXMLParser)
Find image slices visible on a given plane.
Represents a single parametric map type preset with a coded value and coding scheme.
std::string codeValue
Coded value identifying the parametric map type.
Type(std::string value, std::string scheme)
Construct a Type with a given coded value and coding scheme.
std::string codeScheme
Coding scheme designator (e.g., "DCM").