All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Enums.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 Enums.cpp
22 
23  \brief
24 
25  \ingroup layout
26 */
27 
28 // TerraLib
29 #include "Enums.h"
30 
32  m_dataType(0),
33  m_objType(0),
34  m_gridStyleType(0),
35  m_lineStyleType(0),
36  m_modeType(0),
37  m_templateType(0)
38 {
39 
40 }
41 
43 {
44 
45 }
46 
48 {
49  m_dataType = type;
50 }
51 
53 {
54  return m_dataType;
55 }
56 
58 {
59  m_objType = type;
60 }
61 
63 {
64  return m_objType;
65 }
66 
68 {
69  m_gridStyleType = type;
70 }
71 
73 {
74  return m_gridStyleType;
75 }
76 
78 {
79  m_lineStyleType = type;
80 }
81 
83 {
84  return m_lineStyleType;
85 }
86 
88 {
89  m_modeType = type;
90 }
91 
93 {
94  return m_modeType;
95 }
96 
98 {
99  m_templateType = type;
100 }
101 
103 {
104  return m_templateType;
105 }
Class to represent a graphic object (MVC component) and widget object (MVC widget) type enumeration...
virtual void setEnumGridStyleType(EnumGridStyleType *type)
Change grid style type enumeration.
Definition: Enums.cpp:67
virtual EnumDataType * getEnumDataType()
Returns data type enumeration.
Definition: Enums.cpp:52
Class to represent a template type enumeration. Ex.: json, etc.
virtual EnumModeType * getEnumModeType()
Returns mode type enumeration.
Definition: Enums.cpp:92
virtual void setEnumLineStyleType(EnumLineStyleType *type)
Change line style type enumeration.
Definition: Enums.cpp:77
virtual EnumObjectType * getEnumObjectType()
Returns graphic object (MVC component) and widget object (MVC widget) type enumeration.
Definition: Enums.cpp:62
Class to represent a grid style type enumeration. Ex.: continuous, cross, etc.
virtual EnumGridStyleType * getEnumGridStyleType()
Returns grid style type enumeration.
Definition: Enums.cpp:72
Class to represent a mode type enumeration. Ex.: select, pan, create text, etc. The type of mode is u...
Definition: EnumModeType.h:50
virtual void setEnumDataType(EnumDataType *type)
Change data type enumeration.
Definition: Enums.cpp:47
Class to represent a data type enumeration. Ex.: int, double, bool, te::color::RGBAColor (color)...
Definition: EnumDataType.h:48
virtual void setEnumModeType(EnumModeType *type)
Change mode type enumeration.
Definition: Enums.cpp:87
virtual void setEnumTemplateType(EnumTemplateType *type)
Change template type enumeration.
Definition: Enums.cpp:97
Enums()
Constructor.
Definition: Enums.cpp:31
virtual EnumTemplateType * getEnumTemplateType()
Returns template type enumeration.
Definition: Enums.cpp:102
virtual ~Enums()
Destructor.
Definition: Enums.cpp:42
virtual EnumLineStyleType * getEnumLineStyleType()
Returns line style type enumeration.
Definition: Enums.cpp:82
Class to represent a line style type enumeration. Ex.: solid, dash, dot, etc.
virtual void setEnumObjectType(EnumObjectType *type)
Change graphic object (MVC component) and widget object (MVC widget) type enumeration.
Definition: Enums.cpp:57