13 #ifndef mitkAnatomicalStructureColorPresets_h
14 #define mitkAnatomicalStructureColorPresets_h
16 #include <vtkXMLParser.h>
33 Category(std::string value, std::string scheme, std::string name) : codeValue(value), codeScheme(scheme), codeName(name){}
44 Modifier(std::string value, std::string scheme, std::string name) : codeValue(value), codeScheme(scheme), codeName(name){}
51 Type(std::string value, std::string scheme, std::string name) : codeValue(value), codeScheme(scheme), codeName(name){}
58 bool LoadPreset(
const std::string& fileName);
59 Category GetCategory(
const std::string& name);
60 Type GetType(
const std::string& name);
61 Color GetColor(
const std::string& name);
62 std::map<std::string, Category>
const GetCategoryPresets();
63 std::map<std::string, Type>
const GetTypePresets();
64 std::map<std::string, Color>
const GetColorPresets();
65 void NewPresets(std::map<std::string, Category>& newCategory, std::map<std::string, Type>& newType, std::map<std::string, Color>& newColor);
74 void StartElement (
const char *elementName,
const char **atts)
override;
80 std::string ReadXMLStringAttribute(
const std::string& name,
const char **atts);
82 static const std::string PRESET;
83 static const std::string CATEGORY;
84 static const std::string TYPE;
85 static const std::string MODIFIER;
86 static const std::string COLOR;
87 static const std::string CODE_VALUE;
88 static const std::string CODE_SCHEME;
89 static const std::string CODE_NAME;
91 static const std::string COLOR_R;
92 static const std::string COLOR_G;
93 static const std::string COLOR_B;
95 std::string m_presetName;
96 std::map<std::string, Category> m_Category;
97 std::map<std::string, Type> m_Type;
98 std::map<std::string, Color> m_Color;
99 std::string m_XmlFileName;