27 this->AddRenderingModes();
28 if (IsValidEnumerationValue(value))
30 this->SetValue(value);
33 MITK_WARN <<
"Warning: invalid image rendering mode";
38 this->AddRenderingModes();
39 if (IsValidEnumerationValue(value))
41 this->SetValue(value);
44 MITK_WARN <<
"Invalid image rendering mode";
49 return static_cast<int>(this->GetValueAsId());
54 AddEnum(
"LookupTable_LevelWindow_Color", LOOKUPTABLE_LEVELWINDOW_COLOR);
55 AddEnum(
"ColorTransferFunction_LevelWindow_Color", COLORTRANSFERFUNCTION_LEVELWINDOW_COLOR);
56 AddEnum(
"LookupTable_Color", LOOKUPTABLE_COLOR);
57 AddEnum(
"ColorTransferFunction_Color", COLORTRANSFERFUNCTION_COLOR);
62 return Superclass::AddEnum(name,
id);
virtual bool SetValue(const std::string &name)
itk::SmartPointer< Self > Pointer
virtual int GetRenderingMode()
virtual bool AddEnum(const std::string &name, const IdType &id) override
virtual void AddRenderingModes()