Main Page
Modules
Namespaces
Classes
Files
File List
File Members
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
31
te::layout::ContextItem::ContextItem
() :
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
52
te::layout::ContextItem::~ContextItem
()
53
{
54
55
}
56
57
void
te::layout::ContextItem::setParams
(
ParamsCreate
params )
58
{
59
m_params = params;
60
}
61
62
te::layout::ParamsCreate
te::layout::ContextItem::getParams
()
63
{
64
return
m_params;
65
}
66
67
void
te::layout::ContextItem::setZoomFactor
(
double
zoomFactor )
68
{
69
m_zoomFactor = zoomFactor;
70
}
71
72
double
te::layout::ContextItem::getZoomFactor
()
73
{
74
return
m_zoomFactor;
75
}
76
77
void
te::layout::ContextItem::setPixmap
(
te::color::RGBAColor
** pixmap )
78
{
79
m_pixmap = pixmap;
80
}
81
82
te::color::RGBAColor
**
te::layout::ContextItem::getPixmap
()
83
{
84
return
m_pixmap;
85
}
86
87
void
te::layout::ContextItem::setShow
(
bool
show )
88
{
89
m_show = show;
90
}
91
92
bool
te::layout::ContextItem::getShow
()
93
{
94
return
m_show;
95
}
96
97
void
te::layout::ContextItem::setWait
(
bool
wait )
98
{
99
m_wait = wait;
100
}
101
102
bool
te::layout::ContextItem::getWait
()
103
{
104
return
m_wait;
105
}
106
107
bool
te::layout::ContextItem::isResizeCanvas
()
108
{
109
return
m_resizeCanvas;
110
}
111
112
void
te::layout::ContextItem::setResizeCanvas
(
bool
clear )
113
{
114
m_resizeCanvas = clear;
115
}
116
te::layout::ContextItem::setPixmap
void setPixmap(te::color::RGBAColor **pixmap)
Definition:
ContextItem.cpp:77
te::layout::ParamsCreate
Definition:
ParamsCreate.h:35
te::layout::ContextItem::~ContextItem
virtual ~ContextItem()
Definition:
ContextItem.cpp:52
te::layout::ContextItem::setShow
void setShow(bool show)
Definition:
ContextItem.cpp:87
te::layout::ContextItem::getZoomFactor
double getZoomFactor()
Definition:
ContextItem.cpp:72
te::layout::ContextItem::getParams
ParamsCreate getParams()
Definition:
ContextItem.cpp:62
te::layout::ContextItem::getPixmap
te::color::RGBAColor ** getPixmap()
Definition:
ContextItem.cpp:82
te::layout::ContextItem::setParams
void setParams(ParamsCreate params)
Definition:
ContextItem.cpp:57
ContextItem.h
te::layout::ContextItem::getWait
bool getWait()
Definition:
ContextItem.cpp:102
te::layout::ContextItem::setResizeCanvas
void setResizeCanvas(bool clear)
Definition:
ContextItem.cpp:112
te::layout::ContextItem::getShow
bool getShow()
Definition:
ContextItem.cpp:92
te::color::RGBAColor
A helper class for 32-bit RGBA (Red-Green-Blue-Alpha channel) color.
Definition:
RGBAColor.h:57
te::layout::ContextItem::setWait
void setWait(bool wait)
Definition:
ContextItem.cpp:97
te::layout::ContextItem::setZoomFactor
void setZoomFactor(double zoomFactor)
Definition:
ContextItem.cpp:67
te::layout::ContextItem::isResizeCanvas
bool isResizeCanvas()
Definition:
ContextItem.cpp:107
te::layout::ContextItem::ContextItem
ContextItem()
Definition:
ContextItem.cpp:31
BB_TL5
terralib5
src
terralib
layout
src
core
ContextItem.cpp
Generated on Mon Sep 29 2014 13:46:34 for TerraLib by
1.8.7