All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ContextItem.h
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.h
22 
23  \brief
24 
25  \ingroup layout
26 */
27 
28 #ifndef __TERRALIB_LAYOUT_INTERNAL_CONTEXT_ITEM_H
29 #define __TERRALIB_LAYOUT_INTERNAL_CONTEXT_ITEM_H
30 
31 // TerraLib
32 #include "ParamsCreate.h"
33 #include "../../../color/RGBAColor.h"
34 
35 namespace te
36 {
37  namespace layout
38  {
39  class LayoutPixmap;
40 
41  class ContextItem
42  {
43  public:
44 
45  /*!
46  \brief
47  */
48  ContextItem();
49 
50  /*!
51  \brief
52  */
53  ContextItem(ParamsCreate params, double zoomFactor);
54 
55  /*!
56  \brief
57  */
58  virtual ~ContextItem();
59 
60  /*!
61  \brief
62  */
63  void setParams(ParamsCreate params);
64 
65  /*!
66  \brief
67  */
69 
70  /*!
71  \brief
72  */
73  void setZoomFactor(double zoomFactor);
74 
75  /*!
76  \brief
77  */
78  double getZoomFactor();
79 
80  /*!
81  \brief
82  */
83  void setPixmap(te::color::RGBAColor** pixmap);
84 
85  /*!
86  \brief
87  */
89 
90  /*!
91  \brief
92  */
93  void setShow( bool show );
94 
95  /*!
96  \brief
97  */
98  bool getShow();
99 
100  /*!
101  \brief
102  */
103  void setWait(bool wait);
104 
105  /*!
106  \brief
107  */
108  bool getWait();
109 
110  /*!
111  \brief
112  */
113  bool isResizeCanvas();
114 
115  /*!
116  \brief
117  */
118  void setResizeCanvas(bool clear);
119 
120  protected:
122  double m_zoomFactor; //!<
124  bool m_show; //!<
125  bool m_wait; //!<
126  bool m_resizeCanvas; //!<
127  };
128  }
129 }
130 
131 #endif
void setPixmap(te::color::RGBAColor **pixmap)
Definition: ContextItem.cpp:77
void setShow(bool show)
Definition: ContextItem.cpp:87
te::color::RGBAColor ** m_pixmap
Definition: ContextItem.h:123
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