|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Provides anatomical structure color presets loaded from XML. More...
#include <mitkAnatomicalStructureColorPresets.h>


Classes | |
| struct | Category |
| Represents a DICOM coding scheme category entry. More... | |
| struct | Type |
| Represents a DICOM coding scheme type entry with an optional modifier. More... | |
Public Member Functions | |
| vtkTypeMacro (AnatomicalStructureColorPresets, vtkXMLParser) | |
| bool | LoadPreset () |
| Load the default presets from the module resource XML file. More... | |
| bool | LoadPreset (const std::string &fileName) |
| Load presets from the specified XML file. More... | |
| Category | GetCategory (const std::string &name) |
| Get the category for the given preset name. More... | |
| Type | GetType (const std::string &name) |
| Get the type for the given preset name. More... | |
| Color | GetColor (const std::string &name) |
| Get the color for the given preset name. More... | |
| std::map< std::string, Category > const | GetCategoryPresets () |
| Get all category presets. More... | |
| std::map< std::string, Type > const | GetTypePresets () |
| Get all type presets. More... | |
| std::map< std::string, Color > const | GetColorPresets () |
| Get all color presets. More... | |
| void | NewPresets (std::map< std::string, Category > &newCategory, std::map< std::string, Type > &newType, std::map< std::string, Color > &newColor) |
| Replace all presets with new ones and save. More... | |
Static Public Member Functions | |
| static AnatomicalStructureColorPresets * | New () |
Protected Member Functions | |
| AnatomicalStructureColorPresets ()=default | |
| Default constructor. More... | |
| ~AnatomicalStructureColorPresets () override=default | |
| Destructor. More... | |
Provides anatomical structure color presets loaded from XML.
Parses an XML file containing color, category, and type information for anatomical structures as defined by DICOM coding schemes. Used to associate structures with standardized colors, categories, and types.
Definition at line 32 of file mitkAnatomicalStructureColorPresets.h.
|
protecteddefault |
Default constructor.
|
overrideprotecteddefault |
Destructor.
| Category mitk::AnatomicalStructureColorPresets::GetCategory | ( | const std::string & | name | ) |
Get the category for the given preset name.
| name | The preset name. |
| std::map<std::string, Category> const mitk::AnatomicalStructureColorPresets::GetCategoryPresets | ( | ) |
Get all category presets.
| Color mitk::AnatomicalStructureColorPresets::GetColor | ( | const std::string & | name | ) |
Get the color for the given preset name.
| name | The preset name. |
| std::map<std::string, Color> const mitk::AnatomicalStructureColorPresets::GetColorPresets | ( | ) |
Get all color presets.
| Type mitk::AnatomicalStructureColorPresets::GetType | ( | const std::string & | name | ) |
Get the type for the given preset name.
| name | The preset name. |
| std::map<std::string, Type> const mitk::AnatomicalStructureColorPresets::GetTypePresets | ( | ) |
Get all type presets.
| bool mitk::AnatomicalStructureColorPresets::LoadPreset | ( | ) |
Load the default presets from the module resource XML file.
| bool mitk::AnatomicalStructureColorPresets::LoadPreset | ( | const std::string & | fileName | ) |
Load presets from the specified XML file.
| fileName | Path to the XML preset file. |
|
static |
| void mitk::AnatomicalStructureColorPresets::NewPresets | ( | std::map< std::string, Category > & | newCategory, |
| std::map< std::string, Type > & | newType, | ||
| std::map< std::string, Color > & | newColor | ||
| ) |
Replace all presets with new ones and save.
| newCategory | The new category presets map. |
| newType | The new type presets map. |
| newColor | The new color presets map. |
| mitk::AnatomicalStructureColorPresets::vtkTypeMacro | ( | AnatomicalStructureColorPresets | , |
| vtkXMLParser | |||
| ) |