13 #ifndef mitkLevelWindowPreset_h
14 #define mitkLevelWindowPreset_h
19 #include <vtkXMLParser.h>
35 void newPresets(std::map<std::string, double> newLevel, std::map<std::string, double> newWindow);
44 void StartElement(
const char *elementName,
const char **atts)
override;
51 std::string ReadXMLStringAttribut(std::string name,
const char **atts);
53 static const std::string PRESET;
54 std::map<std::string, double> m_Level;
55 std::map<std::string, double> m_Window;
56 std::string m_XmlFileName;
vtkTypeMacro(LevelWindowPreset, vtkXMLParser)
bool LoadPreset(std::string fileName)
double getLevel(std::string name)
double getWindow(std::string window)
void newPresets(std::map< std::string, double > newLevel, std::map< std::string, double > newWindow)
static LevelWindowPreset * New()
std::map< std::string, double > & getWindowPresets()
~LevelWindowPreset() override
std::map< std::string, double > & getLevelPresets()
Find image slices visible on a given plane.