All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ContextItem.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 ContextItem.cpp
22 
23  \brief
24 
25  \ingroup layout
26 */
27 
28 // TerraLib
29 #include "ContextItem.h"
30 
32  m_zoomFactor(1.),
33  m_pixmap(0),
34  m_show(false),
35  m_wait(false),
36  m_resizeCanvas(true)
37 {
38 
39 }
40 
41 te::layout::ContextItem::ContextItem( ParamsCreate params, double zoomFactor ) :
42  m_params(params),
43  m_zoomFactor(zoomFactor),
44  m_pixmap(0),
45  m_show(false),
46  m_wait(false),
47  m_resizeCanvas(true)
48 {
49 
50 }
51 
53 {
54 
55 }
56 
58 {
59  m_params = params;
60 }
61 
63 {
64  return m_params;
65 }
66 
67 void te::layout::ContextItem::setZoomFactor( double zoomFactor )
68 {
69  m_zoomFactor = zoomFactor;
70 }
71 
73 {
74  return m_zoomFactor;
75 }
76 
78 {
79  m_pixmap = pixmap;
80 }
81 
83 {
84  return m_pixmap;
85 }
86 
88 {
89  m_show = show;
90 }
91 
93 {
94  return m_show;
95 }
96 
98 {
99  m_wait = wait;
100 }
101 
103 {
104  return m_wait;
105 }
106 
108 {
109  return m_resizeCanvas;
110 }
111 
113 {
114  m_resizeCanvas = clear;
115 }
116 
void setPixmap(te::color::RGBAColor **pixmap)
Definition: ContextItem.cpp:77
void setShow(bool show)
Definition: ContextItem.cpp:87
ParamsCreate getParams()
Definition: ContextItem.cpp:62
te::color::RGBAColor ** getPixmap()
Definition: ContextItem.cpp:82
void setParams(ParamsCreate params)
Definition: ContextItem.cpp:57
void setResizeCanvas(bool clear)
A helper class for 32-bit RGBA (Red-Green-Blue-Alpha channel) color.
Definition: RGBAColor.h:57
void setWait(bool wait)
Definition: ContextItem.cpp:97
void setZoomFactor(double zoomFactor)
Definition: ContextItem.cpp:67