Class to represent a scale type enumeration. Ex.: hollow scale bar, etc. More...
#include <EnumScaleType.h>
Public Member Functions | |
EnumScaleType () | |
Constructor. More... | |
virtual EnumType * | getAlternatingScaleBarType () const |
Returns value that represents alternating scale bar type belonging to enumeration. More... | |
virtual EnumType * | getDoubleAlternatingScaleBarType () const |
Returns value that represents double alternating scale bar type belonging to enumeration. More... | |
virtual EnumType * | getEnum (int enumId) const |
Searching for a value of the enumeration by id. More... | |
virtual EnumType * | getEnum (std::string name) const |
Searching for an enumeration value by name. More... | |
virtual EnumType * | getHollowScaleBarType () const |
Returns value that represents hollow scale bar type belonging to enumeration. More... | |
virtual EnumType * | getNoneType () const |
Returns value that represents none type belonging to enumeration. More... | |
virtual int | maxId () |
Searching for a max value of the id. More... | |
virtual int | minId () |
Searching for a min value of the id. More... | |
virtual EnumType * | searchLabel (std::string label) const |
Searching for an enumeration value by name. More... | |
virtual int | size () |
virtual | ~EnumScaleType () |
Destructor. More... | |
Protected Member Functions | |
virtual void | init () |
Reimplemented from AbstractEnum. More... | |
Protected Attributes | |
EnumType * | m_alternatingScaleBarType |
value that represents json type belonging to enumeration More... | |
EnumType * | m_doubleAlternatingScaleBarType |
value that represents json type belonging to enumeration More... | |
std::vector< EnumType * > | m_enums |
list of enumeration values More... | |
EnumType * | m_hollowScaleBarType |
value that represents json type belonging to enumeration More... | |
EnumType * | m_noneType |
value that represents none type belonging to enumeration More... | |
Class to represent a scale type enumeration. Ex.: hollow scale bar, etc.
Definition at line 48 of file EnumScaleType.h.
te::layout::EnumScaleType::EnumScaleType | ( | ) |
|
virtual |
Destructor.
Definition at line 40 of file EnumScaleType.cpp.
|
virtual |
Returns value that represents alternating scale bar type belonging to enumeration.
Definition at line 87 of file EnumScaleType.cpp.
Referenced by te::layout::ScaleItem::paint().
|
virtual |
Returns value that represents double alternating scale bar type belonging to enumeration.
Definition at line 92 of file EnumScaleType.cpp.
Referenced by te::layout::ScaleItem::paint(), and te::layout::ScaleModel::ScaleModel().
|
virtualinherited |
Searching for a value of the enumeration by id.
enumId | id |
Definition at line 42 of file AbstractEnum.cpp.
Referenced by te::layout::JSON::retrieve(), te::layout::JSON::retrieveSubPTree(), and te::layout::GridMapModel::updateProperties().
|
virtualinherited |
Searching for an enumeration value by name.
name |
Definition at line 58 of file AbstractEnum.cpp.
|
virtual |
Returns value that represents hollow scale bar type belonging to enumeration.
Definition at line 97 of file EnumScaleType.cpp.
Referenced by te::layout::ScaleItem::paint().
|
virtual |
Returns value that represents none type belonging to enumeration.
Definition at line 82 of file EnumScaleType.cpp.
|
protectedvirtual |
Reimplemented from AbstractEnum.
Implements te::layout::AbstractEnum.
Definition at line 63 of file EnumScaleType.cpp.
Referenced by EnumScaleType().
|
virtualinherited |
Searching for a max value of the id.
Definition at line 90 of file AbstractEnum.cpp.
|
virtualinherited |
Searching for a min value of the id.
Definition at line 108 of file AbstractEnum.cpp.
|
virtualinherited |
Searching for an enumeration value by name.
name |
Definition at line 74 of file AbstractEnum.cpp.
|
virtualinherited |
Definition at line 128 of file AbstractEnum.cpp.
|
protected |
value that represents json type belonging to enumeration
Definition at line 100 of file EnumScaleType.h.
|
protected |
value that represents json type belonging to enumeration
Definition at line 101 of file EnumScaleType.h.
|
protectedinherited |
list of enumeration values
Definition at line 112 of file AbstractEnum.h.
|
protected |
value that represents json type belonging to enumeration
Definition at line 102 of file EnumScaleType.h.
|
protected |
value that represents none type belonging to enumeration
Definition at line 99 of file EnumScaleType.h.