All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
EnumPointType.cpp
Go to the documentation of this file.
1 /* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2 
3  This file is part of the TerraLib - a Framework for building GIS enabled applications.
4 
5  TerraLib is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  TerraLib is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with TerraLib. See COPYING. If not, write to
17  TerraLib Team at <terralib-team@terralib.org>.
18  */
19 
20 /*!
21  \file EnumPointType.cpp
22 
23  \brief
24 
25  \ingroup layout
26 */
27 
28 // TerraLib
29 #include "EnumPointType.h"
30 
32  m_noneType(0),
33  m_star(0),
34  m_circle(0),
35  m_x(0),
36  m_square(0),
37  m_rhombus(0),
38  m_cross(0)
39 {
40  init();
41 }
42 
44 {
45 
46 }
47 
49 {
50  m_noneType = new EnumType(0, "NoneScale", this);
51  m_noneType->setLabel("None Scale");
52  m_enums.push_back(m_noneType);
53 
54  m_star = new EnumType(1, "Star", this);
55  m_star->setLabel("Star");
56  m_enums.push_back(m_star);
57 
58  m_circle = new EnumType(2, "Circle", this);
59  m_circle->setLabel("Circle");
60  m_enums.push_back(m_circle);
61 
62  m_x = new EnumType(3, "X", this);
63  m_x->setLabel("X");
64  m_enums.push_back(m_x);
65 
66  m_square = new EnumType(4, "Square", this);
67  m_square->setLabel("Square");
68  m_enums.push_back(m_square);
69 
70  m_rhombus = new EnumType(5, "Rhombus", this);
71  m_rhombus->setLabel("Rhombus");
72  m_enums.push_back(m_rhombus);
73 
74  m_cross = new EnumType(6, "Cross", this);
75  m_cross->setLabel("Cross");
76  m_enums.push_back(m_cross);
77 }
78 
80 {
81  return m_noneType;
82 }
83 
85 {
86  return m_star;
87 }
88 
90 {
91  return m_circle;
92 }
93 
95 {
96  return m_x;
97 }
98 
100 {
101  return m_square;
102 }
103 
105 {
106  return m_rhombus;
107 }
108 
110 {
111  return m_cross;
112 }
113 
virtual EnumType * getCircleType() const
Returns value that represents circle type belonging to enumeration.
virtual void init()
Reimplemented from AbstractEnum.
virtual EnumType * getRhombusType() const
Returns value that represents rhombus type belonging to enumeration.
virtual ~EnumPointType()
Destructor.
Class that represents the value of an enumeration. An enumeration is made of "1..n" objects EnumType...
Definition: EnumType.h:48
virtual EnumType * getSquareType() const
Returns value that represents square type belonging to enumeration.
virtual EnumType * getNoneType() const
Returns value that represents none type belonging to enumeration.
virtual EnumType * getXType() const
Returns value that represents X type belonging to enumeration.
Class to represent a scale point enumeration. Ex.: X, square, circle, etc.
virtual EnumType * getStarType() const
Returns value that represents star type belonging to enumeration.
virtual EnumType * getCrossType() const
Returns value that represents cross type belonging to enumeration.
EnumPointType()
Constructor.