27 this->AddPointSetShapes();
28 if (IsValidEnumerationValue(value))
30 this->SetValue(value);
33 MITK_WARN <<
"Warning: invalid point set shape";
38 this->AddPointSetShapes();
39 if (IsValidEnumerationValue(value))
41 this->SetValue(value);
49 return static_cast<int>(this->GetValueAsId());
54 AddEnum(
"None", NONE);
55 AddEnum(
"Vertex", VERTEX);
56 AddEnum(
"Dash", DASH);
57 AddEnum(
"Cross", CROSS);
58 AddEnum(
"ThickCross", THICK_CROSS);
59 AddEnum(
"Triangle", TRIANGLE);
60 AddEnum(
"Square", SQUARE);
61 AddEnum(
"Circle", CIRCLE);
62 AddEnum(
"Diamond", DIAMOND);
63 AddEnum(
"Arrow", ARROW);
64 AddEnum(
"ThickArrow", THICK_ARROW);
65 AddEnum(
"HookedArrow", HOOKED_ARROW);
70 return Superclass::AddEnum(name,
id);
virtual bool SetValue(const std::string &name)
itk::SmartPointer< Self > Pointer
virtual int GetPointSetShape() const
virtual bool AddEnum(const std::string &name, const IdType &id) override
virtual void AddPointSetShapes()