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){}
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;
vtkTypeMacro(AnatomicalStructureColorPresets, vtkXMLParser)
AnatomicalStructureColorPresets()=default
Category GetCategory(const std::string &name)
Color GetColor(const std::string &name)
Type GetType(const std::string &name)
bool LoadPreset(const std::string &fileName)
static AnatomicalStructureColorPresets * New()
~AnatomicalStructureColorPresets() override=default
std::map< std::string, Category > const GetCategoryPresets()
std::map< std::string, Color > const GetColorPresets()
std::map< std::string, Type > const GetTypePresets()
void NewPresets(std::map< std::string, Category > &newCategory, std::map< std::string, Type > &newType, std::map< std::string, Color > &newColor)
Find image slices visible on a given plane.
itk::RGBPixel< float > Color
Color Standard RGB color typedef (float)
Category(std::string value, std::string scheme, std::string name)
Modifier(std::string value, std::string scheme, std::string name)
Type(std::string value, std::string scheme, std::string name)