All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::layout::EnumScaleType Class Reference

Class to represent a scale type enumeration. Ex.: hollow scale bar, etc. More...

#include <EnumScaleType.h>

Inheritance diagram for te::layout::EnumScaleType:
te::layout::AbstractEnum

Public Member Functions

 EnumScaleType ()
 Constructor. More...
 
virtual EnumTypegetAlternatingScaleBarType () const
 Returns value that represents alternating scale bar type belonging to enumeration. More...
 
virtual EnumTypegetDoubleAlternatingScaleBarType () const
 Returns value that represents double alternating scale bar type belonging to enumeration. More...
 
virtual EnumTypegetEnum (int enumId) const
 Searching for a value of the enumeration by id. More...
 
virtual EnumTypegetEnum (std::string name) const
 Searching for an enumeration value by name. More...
 
virtual EnumTypegetHollowScaleBarType () const
 Returns value that represents hollow scale bar type belonging to enumeration. More...
 
virtual EnumTypegetNoneType () 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 EnumTypesearchLabel (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

EnumTypem_alternatingScaleBarType
 value that represents json type belonging to enumeration More...
 
EnumTypem_doubleAlternatingScaleBarType
 value that represents json type belonging to enumeration More...
 
std::vector< EnumType * > m_enums
 list of enumeration values More...
 
EnumTypem_hollowScaleBarType
 value that represents json type belonging to enumeration More...
 
EnumTypem_noneType
 value that represents none type belonging to enumeration More...
 

Detailed Description

Class to represent a scale type enumeration. Ex.: hollow scale bar, etc.

See also
te::layout::AbstractEnum

Definition at line 48 of file EnumScaleType.h.

Constructor & Destructor Documentation

te::layout::EnumScaleType::EnumScaleType ( )

Constructor.

Definition at line 31 of file EnumScaleType.cpp.

References init().

te::layout::EnumScaleType::~EnumScaleType ( )
virtual

Destructor.

Definition at line 40 of file EnumScaleType.cpp.

Member Function Documentation

te::layout::EnumType * te::layout::EnumScaleType::getAlternatingScaleBarType ( ) const
virtual

Returns value that represents alternating scale bar type belonging to enumeration.

Returns
enum value

Definition at line 87 of file EnumScaleType.cpp.

Referenced by te::layout::ScaleItem::paint().

te::layout::EnumType * te::layout::EnumScaleType::getDoubleAlternatingScaleBarType ( ) const
virtual

Returns value that represents double alternating scale bar type belonging to enumeration.

Returns
enum value

Definition at line 92 of file EnumScaleType.cpp.

Referenced by te::layout::ScaleItem::paint(), and te::layout::ScaleModel::ScaleModel().

te::layout::EnumType * te::layout::AbstractEnum::getEnum ( int  enumId) const
virtualinherited

Searching for a value of the enumeration by id.

Parameters
enumIdid
Returns
value found in the enumeration or null

Definition at line 42 of file AbstractEnum.cpp.

Referenced by te::layout::JSON::retrieve(), te::layout::JSON::retrieveSubPTree(), and te::layout::GridMapModel::updateProperties().

te::layout::EnumType * te::layout::AbstractEnum::getEnum ( std::string  name) const
virtualinherited

Searching for an enumeration value by name.

Parameters
name
Returns
value found in the enumeration or null

Definition at line 58 of file AbstractEnum.cpp.

te::layout::EnumType * te::layout::EnumScaleType::getHollowScaleBarType ( ) const
virtual

Returns value that represents hollow scale bar type belonging to enumeration.

Returns
enum value

Definition at line 97 of file EnumScaleType.cpp.

Referenced by te::layout::ScaleItem::paint().

te::layout::EnumType * te::layout::EnumScaleType::getNoneType ( ) const
virtual

Returns value that represents none type belonging to enumeration.

Returns
enum value

Definition at line 82 of file EnumScaleType.cpp.

void te::layout::EnumScaleType::init ( )
protectedvirtual

Reimplemented from AbstractEnum.

Implements te::layout::AbstractEnum.

Definition at line 63 of file EnumScaleType.cpp.

Referenced by EnumScaleType().

int te::layout::AbstractEnum::maxId ( )
virtualinherited

Searching for a max value of the id.

Returns
-1 if no found, otherwise the id

Definition at line 90 of file AbstractEnum.cpp.

int te::layout::AbstractEnum::minId ( )
virtualinherited

Searching for a min value of the id.

Returns
-1 if no found, otherwise the id

Definition at line 108 of file AbstractEnum.cpp.

te::layout::EnumType * te::layout::AbstractEnum::searchLabel ( std::string  label) const
virtualinherited

Searching for an enumeration value by name.

Parameters
name
Returns
value found in the enumeration or null

Definition at line 74 of file AbstractEnum.cpp.

int te::layout::AbstractEnum::size ( )
virtualinherited

Definition at line 128 of file AbstractEnum.cpp.

Member Data Documentation

EnumType* te::layout::EnumScaleType::m_alternatingScaleBarType
protected

value that represents json type belonging to enumeration

Definition at line 100 of file EnumScaleType.h.

EnumType* te::layout::EnumScaleType::m_doubleAlternatingScaleBarType
protected

value that represents json type belonging to enumeration

Definition at line 101 of file EnumScaleType.h.

std::vector<EnumType*> te::layout::AbstractEnum::m_enums
protectedinherited

list of enumeration values

Definition at line 112 of file AbstractEnum.h.

EnumType* te::layout::EnumScaleType::m_hollowScaleBarType
protected

value that represents json type belonging to enumeration

Definition at line 102 of file EnumScaleType.h.

EnumType* te::layout::EnumScaleType::m_noneType
protected

value that represents none type belonging to enumeration

Definition at line 99 of file EnumScaleType.h.


The documentation for this class was generated from the following files: