27 , m_IsoLevelVector(other.m_IsoLevelVector)
39 bool mitk::IsoDoseLevelVectorProperty::IsEqual(
const BaseProperty& property)
const
41 return this->m_IsoLevelVector ==
static_cast<const Self&
>(property).m_IsoLevelVector;
44 bool mitk::IsoDoseLevelVectorProperty::Assign(
const BaseProperty& property)
46 this->m_IsoLevelVector =
static_cast<const Self&
>(property).m_IsoLevelVector;
52 return m_IsoLevelVector;
57 return GetIsoDoseLevelVector();
62 return m_IsoLevelVector;
67 return GetIsoDoseLevelVector();
73 if(m_IsoLevelVector != levelVector)
75 m_IsoLevelVector = levelVector;
82 SetIsoDoseLevelVector(levelVector);
87 std::stringstream myStr;
89 myStr <<
"IsoDoseLevels: ";
91 if (m_IsoLevelVector.IsNotNull())
93 myStr << m_IsoLevelVector->Size() << std::endl;
95 for (IsoDoseLevelVector::ConstIterator pos = m_IsoLevelVector->Begin(); pos != m_IsoLevelVector->End(); ++pos)
97 myStr <<
" " << 100*(pos->Value()->GetDoseValue()) <<
"% : ("<<pos->Value()->GetColor()<<
"); iso line: " << pos->Value()->GetVisibleIsoLine() << std::endl;
itk::SmartPointer< Self > Pointer
::itk::VectorContainer< unsigned int, mitk::IsoDoseLevel::Pointer > IsoDoseLevelVector
const IsoDoseLevelVector * GetIsoDoseLevelVector() const
virtual std::string GetValueAsString() const override
Abstract base class for properties.
virtual ~IsoDoseLevelVectorProperty()
Property class for dose iso level vector.
void SetValue(IsoDoseLevelVector *levelVector)
IsoDoseLevelVectorProperty()
void SetIsoDoseLevelVector(IsoDoseLevelVector *levelVector)
Simple vector that stores dose iso levels.
const IsoDoseLevelVector * GetValue() const