18 #include <vtkAbstractMapper.h>
23 #include <itkDirectory.h>
24 #include <itksys/SystemTools.hxx>
51 if (IsValidEnumerationValue(value))
59 if (IsValidEnumerationValue(value))
67 return GetValueAsId();
72 return GetValueAsString();
80 if (shaderRepo == NULL)
83 std::list<mitk::IShaderRepository::Shader::Pointer> l = shaderRepo->
GetShaders();
84 std::list<mitk::IShaderRepository::Shader::Pointer>::const_iterator i = l.begin();
88 AddEnum((*i)->GetName());
99 bool success = Superclass::AddEnum(e.
name, (
IdType)shaderList.size());
101 shaderList.push_back(e);
106 bool mitk::ShaderProperty::Assign(
const BaseProperty &property)
108 Superclass::Assign(property);
109 this->shaderList =
static_cast<const Self &
>(property).shaderList;
116 result->UnRegister();
void SetShader(const IdType &i)
itk::SmartPointer< Self > Pointer
static IShaderRepository * GetShaderRepository()
Get an IShaderRepository instance.
DataCollection - Class to facilitate loading/accessing structured data.
Abstract base class for properties.
Management class for vtkShader XML descriptions.
virtual std::list< Shader::Pointer > GetShaders() const =0
std::string GetShaderName()
bool AddEnum(const std::string &name, const IdType &id=0) override