All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
GridModel.cpp
Go to the documentation of this file.
1 /* Copyright (C) 2001-2014 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 GridModel.cpp
22 
23  \brief
24 
25  \ingroup layout
26 */
27 
28 // TerraLib
29 #include "GridModel.h"
30 #include "ContextItem.h"
31 #include "Context.h"
32 #include "../../../../../geometry/Envelope.h"
33 #include "../../../../../geometry/Coord2D.h"
34 #include "Property.h"
35 #include "../../../srs/Config.h"
36 
38  m_name("GRID_MODEL"),
39  m_visible(false),
40  m_lneHrzGap(0),
41  m_lneVrtGap(0),
42  m_initialGridPointX(0),
43  m_initialGridPointY(0),
44  m_gridStyle(StyleContinuous),
45  m_lineStyle(te::map::SolidLine),
46  m_lineWidth(1),
47  m_pointTextSize(12),
48  m_fontText("Arial"),
49  m_textColor(),
50  m_visibleAllTexts(true),
51  m_superscriptText(false),
52  m_lneVrtDisplacement(10),
53  m_lneHrzDisplacement(10),
54  m_bottomText(true),
55  m_leftText(true),
56  m_rightText(true),
57  m_topText(true),
58  m_bottomRotateText(false),
59  m_leftRotateText(false),
60  m_rightRotateText(false),
61  m_topRotateText(false),
62  m_srid(TE_UNKNOWN_SRS)
63 {
64 
65 }
66 
68 {
69 
70 }
71 
73 {
74  return m_name;
75 }
76 
77 void te::layout::GridModel::setName( std::string name )
78 {
79  m_name = name;
80 }
81 
83 {
84  return m_visible;
85 }
86 
88 {
89  m_visible = visible;
90 }
91 
93 {
94  m_mapScale = scale;
95 }
96 
98 {
99  m_worldBox = box;
100 }
101 
103 {
104  m_boxMapMM = box;
105 }
106 
108 {
109  m_boundingBoxItemMM = box;
110 }
111 
virtual std::string getName()
Definition: GridModel.cpp:72
virtual void setVisible(bool visible)
Definition: GridModel.cpp:87
virtual void setName(std::string name)
Definition: GridModel.cpp:77
virtual void setWorldBox(te::gm::Envelope box)
Definition: GridModel.cpp:97
An Envelope defines a 2D rectangular region.
Definition: Envelope.h:51
#define TE_UNKNOWN_SRS
A numeric value to represent a unknown SRS identification in TerraLib.
Definition: Config.h:44
virtual void setMapScale(double scale)
Definition: GridModel.cpp:92
virtual void setBoxMapMM(te::gm::Envelope box)
Definition: GridModel.cpp:102
virtual bool isVisible()
Definition: GridModel.cpp:82
virtual void setBoundingBoxItemMM(te::gm::Envelope box)
Definition: GridModel.cpp:107