All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
GridFrame.h
Go to the documentation of this file.
1 /* Copyright (C) 2011-2012 National Institute For Space Research (INPE) - Brazil.
2 
3  This file is part of TerraView - A Free and Open Source GIS Application.
4 
5  TerraView is free software: you can redistribute it and/or modify
6  it under the terms of the GNU 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  TerraView 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 General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with TerraLib Code Editor. See COPYING. If not, write to
17  TerraLib Team at <terralib-team@dpi.inpe.br>.
18  */
19 
20 /*!
21  \file terralib/qt/widgets/canvas/FrameData.h
22 
23  \brief The main class of FrameData.
24 */
25 
26 #ifndef __TERRALIB_QT_WIDGETS_INTERNAL_GRID_FRAME_H
27 #define __TERRALIB_QT_WIDGETS_INTERNAL_GRID_FRAME_H
28 
29 // TerraLib
30 #include "../Config.h"
31 #include "Frame.h"
32 
33 // Qt
34 #include <QtGui/QPixmap>
35 #include <QtGui/QFont>
36 
37 namespace te
38 {
39  namespace qt
40  {
41  namespace widgets
42  {
43  class DataFrame;
44  /*!
45  \class GridFrame
46 
47  \brief A GridFrame ....
48 
49  */
51  {
52  public:
53  GridFrame(te::qt::widgets::DataFrame* df, Qt::WindowFlags f = Qt::Window);
54  GridFrame(const GridFrame& rhs);
55  virtual ~GridFrame();
56 
57  GridFrame& operator=(const GridFrame& rhs);
58 
59  virtual void adjust();
60 
61  void copyToDraftMapDisplay();
62 
63  void setDataFrame(te::qt::widgets::DataFrame* df);
64 
65  QFont& getFont();
66 
67  unsigned int getVerticalLabelSpace();
68  void setVerticalLabelSpace(unsigned int);
69 
70  unsigned int getHorizontalLabelSpace();
71  void setHorizontalLabelSpace(unsigned int);
72 
73  int getVerticalLabelAngle();
74  void setVerticalLabelAngle(int);
75 
76  int getHorizontalLabelAngle();
77  void setHorizontalLabelAngle(int);
78 
79  double getInitialCoordX();
80  void setInitialCoordX(double);
81 
82  double getDeltaX();
83  void setDeltaX(double);
84 
85  double getInitialCoordY();
86  void setInitialCoordY(double);
87 
88  double getDeltaY();
89  void setDeltaY(double);
90 
91  unsigned int getHSpace();
92  void setHSpace(unsigned int);
93 
94  unsigned int getVSpace();
95  void setVSpace(unsigned int);
96 
97  protected:
99  unsigned int m_hSpace; // espaco horizontal (mm) em torno do data frame
100  unsigned int m_vSpace; // espaco vertical (mm) em torno do data frame
101  unsigned int m_verticalLabelSpace; // em mm
102  unsigned int m_horizontalLabelSpace; // em mm
103  int m_verticalLabelAngle; // em graus
104  int m_horizontalLabelAngle; // em graus
105 
106  QPixmap m_pixmap;
107  QFont m_font;
109  double m_deltaX;
111  double m_deltaY;
112  };
113  } // end namespace widgets
114  } // end namespace qt
115 } // end namespace te
116 
117 #endif // __TERRALIB_QT_WIDGETS_INTERNAL_GRID_FRAME_H
A DataFrame ....
Definition: DataFrame.h:59
unsigned int m_verticalLabelSpace
Definition: GridFrame.h:101
te::qt::widgets::DataFrame * m_dataFrame
Definition: GridFrame.h:98
A GridFrame ....
Definition: GridFrame.h:50
unsigned int m_horizontalLabelSpace
Definition: GridFrame.h:102
A connector of the te::qt::widgets::MultiThreadMapDisplay used in te::qt::widgets::DataFrame class to...
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:66