This class implements the grid, planar or geographic, to be used with the MapDisplay.
More...
#include <Grid.h>
|
|
Methods to update the internal attributes of the class, using the signal-slot mechanism of QT.
|
void | setColor (const QColor &color) |
| Updates the color of the lines and texts.
|
|
void | setFont (const QFont &font) |
| Updates the font of the texts.
|
|
void | setGridType (const int &type) |
| Updates the type of grid: planar or geographic.
|
|
void | redraw () |
| Refresh the grid image. This method MUST BE called when the area of visualization changes in MapDisplay.
|
|
|
|
Methods related to instantiation and destruction.
|
| Grid (MapDisplay *parent) |
| Constructor.
|
|
| ~Grid () |
| Destuctor.
|
|
|
Methods to access the internal attributes of the class.
|
QColor | getColor () const |
| Returns the current color being used.
|
|
QFont | getFont () const |
| Returns the current font being used.
|
|
int | getType () const |
| Returns the current type of grid being used.
|
|
This class implements the grid, planar or geographic, to be used with the MapDisplay.
Definition at line 74 of file Grid.h.
◆ Grid()
te::qt::widgets::Grid::Grid |
( |
MapDisplay * |
parent | ) |
|
Constructor.
- Parameters
-
parent | The display over what the scale will reflect. |
◆ ~Grid()
te::qt::widgets::Grid::~Grid |
( |
| ) |
|
◆ aboutToBeclosed
void te::qt::widgets::Grid::aboutToBeclosed |
( |
| ) |
|
|
signal |
Signal emmited when the widget is about to be closed.
◆ closeEvent()
void te::qt::widgets::Grid::closeEvent |
( |
QCloseEvent * |
event | ) |
|
|
protected |
Reimplementation of the QFrame method.
- Parameters
-
event | The event generated. |
◆ getColor()
QColor te::qt::widgets::Grid::getColor |
( |
| ) |
const |
Returns the current color being used.
- Returns
- The current color of the grid and texts.
◆ getFont()
QFont te::qt::widgets::Grid::getFont |
( |
| ) |
const |
Returns the current font being used.
- Returns
- The current font of the texts.
◆ getType()
int te::qt::widgets::Grid::getType |
( |
| ) |
const |
Returns the current type of grid being used.
- Returns
- The current type of grid being used.
- See also
- GridTypes
◆ initialize()
void te::qt::widgets::Grid::initialize |
( |
| ) |
|
|
protected |
◆ makeGeographicGrid()
void te::qt::widgets::Grid::makeGeographicGrid |
( |
| ) |
|
|
protected |
Builds the geographic grid.
◆ makePlanarGrid()
void te::qt::widgets::Grid::makePlanarGrid |
( |
| ) |
|
|
protected |
◆ paintEvent()
void te::qt::widgets::Grid::paintEvent |
( |
QPaintEvent * |
event | ) |
|
|
protected |
Reimplementation of the QFrame method.
- Parameters
-
event | The event generated. |
◆ redraw
void te::qt::widgets::Grid::redraw |
( |
| ) |
|
|
slot |
Refresh the grid image. This method MUST BE called when the area of visualization changes in MapDisplay.
◆ setColor
void te::qt::widgets::Grid::setColor |
( |
const QColor & |
color | ) |
|
|
slot |
Updates the color of the lines and texts.
- Parameters
-
color | The new color to be used. |
◆ setFont
void te::qt::widgets::Grid::setFont |
( |
const QFont & |
font | ) |
|
|
slot |
Updates the font of the texts.
- Parameters
-
◆ setGridType
void te::qt::widgets::Grid::setGridType |
( |
const int & |
type | ) |
|
|
slot |
Updates the type of grid: planar or geographic.
- Parameters
-
◆ m_backGround
QPixmap* te::qt::widgets::Grid::m_backGround |
|
protected |
Pixmap with the grid image.
Definition at line 215 of file Grid.h.
◆ m_color
QColor te::qt::widgets::Grid::m_color |
|
protected |
Color to be used.
Definition at line 220 of file Grid.h.
◆ m_display
◆ m_font
QFont te::qt::widgets::Grid::m_font |
|
protected |
Font to be used.
Definition at line 221 of file Grid.h.
◆ m_geoSrid
int te::qt::widgets::Grid::m_geoSrid |
|
protected |
Geographic SRID being used to reproject the world box to a geographic coordinate system.
Definition at line 219 of file Grid.h.
◆ m_hlines
◆ m_horizontalGap
double te::qt::widgets::Grid::m_horizontalGap |
|
protected |
Distance between lines in x-axis.
Definition at line 212 of file Grid.h.
◆ m_initialX
double te::qt::widgets::Grid::m_initialX |
|
protected |
Initial coordinate in x-axis.
Definition at line 213 of file Grid.h.
◆ m_initialY
double te::qt::widgets::Grid::m_initialY |
|
protected |
Initial coordinate in y-axis.
Definition at line 214 of file Grid.h.
◆ m_maxGap
int te::qt::widgets::Grid::m_maxGap |
|
protected |
Maximum number of lines to be presented on the grid.
Definition at line 210 of file Grid.h.
◆ m_srid
int te::qt::widgets::Grid::m_srid |
|
protected |
SRID being used to reproject the world box to a planar coordinate system.
Definition at line 218 of file Grid.h.
◆ m_type
Type of the grid (planar or geographic).
Definition at line 222 of file Grid.h.
◆ m_verticalGap
double te::qt::widgets::Grid::m_verticalGap |
|
protected |
Distance between lines in y-axis.
Definition at line 211 of file Grid.h.
◆ m_vlines
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_release/src/terralib/qt/widgets/canvas/Grid.h