33 m_alternatingScaleBarType(0),
34 m_doubleAlternatingScaleBarType(0),
35 m_hollowScaleBarType(0)
47 if(m_alternatingScaleBarType)
49 delete m_alternatingScaleBarType;
50 m_alternatingScaleBarType = 0;
52 if(m_doubleAlternatingScaleBarType)
54 delete m_doubleAlternatingScaleBarType;
55 m_doubleAlternatingScaleBarType = 0;
57 if(m_hollowScaleBarType)
59 delete m_hollowScaleBarType;
60 m_hollowScaleBarType = 0;
65 m_noneType =
new EnumType(0,
"NoneScale",
this);
66 m_noneType->setLabel(
"None Scale");
67 m_enums.push_back(m_noneType);
69 m_alternatingScaleBarType =
new EnumType(1,
"AlternantingScaleBar",
this);
70 m_alternatingScaleBarType->setLabel(
"Alternanting Scale Bar");
71 m_enums.push_back(m_alternatingScaleBarType);
73 m_doubleAlternatingScaleBarType =
new EnumType(2,
"DoubleAlternantingScaleBar",
this);
74 m_doubleAlternatingScaleBarType->setLabel(
"Double Alternanting Scale Bar");
75 m_enums.push_back(m_doubleAlternatingScaleBarType);
77 m_hollowScaleBarType =
new EnumType(3,
"HollowScaleBar",
this);
78 m_hollowScaleBarType->setLabel(
"Hollow Scale Bar");
79 m_enums.push_back(m_hollowScaleBarType);
89 return m_alternatingScaleBarType;
94 return m_doubleAlternatingScaleBarType;
99 return m_hollowScaleBarType;
virtual EnumType * getAlternatingScaleBarType() const
Returns value that represents alternating scale bar type belonging to enumeration.
virtual EnumType * getNoneType() const
Returns value that represents none type belonging to enumeration.
virtual EnumType * getDoubleAlternatingScaleBarType() const
Returns value that represents double alternating scale bar type belonging to enumeration.
EnumScaleType()
Constructor.
virtual void init()
Reimplemented from AbstractEnum.
virtual EnumType * getHollowScaleBarType() const
Returns value that represents hollow scale bar type belonging to enumeration.
Class that represents the value of an enumeration. An enumeration is made of "1..n" objects EnumType...
virtual ~EnumScaleType()
Destructor.