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

Class to represent a scale point enumeration. Ex.: X, square, circle, etc. More...

#include <EnumPointType.h>

Inheritance diagram for te::layout::EnumPointType:
te::layout::AbstractEnum

Public Member Functions

 EnumPointType ()
 Constructor. More...
 
virtual EnumTypegetCircleType () const
 Returns value that represents circle type belonging to enumeration. More...
 
virtual EnumTypegetCrossType () const
 Returns value that represents cross 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 EnumTypegetNoneType () const
 Returns value that represents none type belonging to enumeration. More...
 
virtual EnumTypegetRhombusType () const
 Returns value that represents rhombus type belonging to enumeration. More...
 
virtual EnumTypegetSquareType () const
 Returns value that represents square type belonging to enumeration. More...
 
virtual EnumTypegetStarType () const
 Returns value that represents star type belonging to enumeration. More...
 
virtual EnumTypegetXType () const
 Returns value that represents X 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 ~EnumPointType ()
 Destructor. More...
 

Protected Member Functions

virtual void init ()
 Reimplemented from AbstractEnum. More...
 

Protected Attributes

EnumTypem_circle
 value that represents circle type belonging to enumeration More...
 
EnumTypem_cross
 value that represents cross type belonging to enumeration More...
 
std::vector< EnumType * > m_enums
 list of enumeration values More...
 
EnumTypem_noneType
 value that represents none type belonging to enumeration More...
 
EnumTypem_rhombus
 value that represents rhombus type belonging to enumeration More...
 
EnumTypem_square
 value that represents square type belonging to enumeration More...
 
EnumTypem_star
 value that represents star type belonging to enumeration More...
 
EnumTypem_x
 value that represents x type belonging to enumeration More...
 

Detailed Description

Class to represent a scale point enumeration. Ex.: X, square, circle, etc.

See also
te::layout::AbstractEnum

Definition at line 48 of file EnumPointType.h.

Constructor & Destructor Documentation

te::layout::EnumPointType::EnumPointType ( )

Constructor.

Definition at line 31 of file EnumPointType.cpp.

References init().

te::layout::EnumPointType::~EnumPointType ( )
virtual

Destructor.

Definition at line 43 of file EnumPointType.cpp.

Member Function Documentation

te::layout::EnumType * te::layout::EnumPointType::getCircleType ( ) const
virtual

Returns value that represents circle type belonging to enumeration.

Returns
enum value

Definition at line 89 of file EnumPointType.cpp.

Referenced by te::layout::PointItem::paint(), and te::layout::PointModel::PointModel().

te::layout::EnumType * te::layout::EnumPointType::getCrossType ( ) const
virtual

Returns value that represents cross type belonging to enumeration.

Returns
enum value

Definition at line 109 of file EnumPointType.cpp.

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

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::EnumPointType::getNoneType ( ) const
virtual

Returns value that represents none type belonging to enumeration.

Returns
enum value

Definition at line 79 of file EnumPointType.cpp.

te::layout::EnumType * te::layout::EnumPointType::getRhombusType ( ) const
virtual

Returns value that represents rhombus type belonging to enumeration.

Returns
enum value

Definition at line 104 of file EnumPointType.cpp.

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

te::layout::EnumType * te::layout::EnumPointType::getSquareType ( ) const
virtual

Returns value that represents square type belonging to enumeration.

Returns
enum value

Definition at line 99 of file EnumPointType.cpp.

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

te::layout::EnumType * te::layout::EnumPointType::getStarType ( ) const
virtual

Returns value that represents star type belonging to enumeration.

Returns
enum value

Definition at line 84 of file EnumPointType.cpp.

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

te::layout::EnumType * te::layout::EnumPointType::getXType ( ) const
virtual

Returns value that represents X type belonging to enumeration.

Returns
enum value

Definition at line 94 of file EnumPointType.cpp.

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

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

Reimplemented from AbstractEnum.

Implements te::layout::AbstractEnum.

Definition at line 48 of file EnumPointType.cpp.

Referenced by EnumPointType().

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::EnumPointType::m_circle
protected

value that represents circle type belonging to enumeration

Definition at line 122 of file EnumPointType.h.

EnumType* te::layout::EnumPointType::m_cross
protected

value that represents cross type belonging to enumeration

Definition at line 126 of file EnumPointType.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::EnumPointType::m_noneType
protected

value that represents none type belonging to enumeration

Definition at line 120 of file EnumPointType.h.

EnumType* te::layout::EnumPointType::m_rhombus
protected

value that represents rhombus type belonging to enumeration

Definition at line 125 of file EnumPointType.h.

EnumType* te::layout::EnumPointType::m_square
protected

value that represents square type belonging to enumeration

Definition at line 124 of file EnumPointType.h.

EnumType* te::layout::EnumPointType::m_star
protected

value that represents star type belonging to enumeration

Definition at line 121 of file EnumPointType.h.

EnumType* te::layout::EnumPointType::m_x
protected

value that represents x type belonging to enumeration

Definition at line 123 of file EnumPointType.h.


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