Go to the documentation of this file.
26 #ifndef __TERRALIB_EDIT_QT_INTERNAL_RENDERER_H
27 #define __TERRALIB_EDIT_QT_INTERNAL_RENDERER_H
30 #include "../../common/Singleton.h"
31 #include "../../geometry/Enums.h"
36 #include <QApplication>
38 #include <QPaintDevice>
100 void setPolygonStyle(
const QColor& fillColor,
const QColor& contourColor,
const std::size_t& contourWidth);
102 void setPointStyle(
const QString& mark,
const QColor& fillColor,
const QColor& contourColor,
103 const std::size_t& contourWidth,
const std::size_t& size);
105 void setLineStyle(
const QColor& lineColor,
const std::size_t& lineWidth);
107 void setTextStyle(
const QColor& textColor,
const std::size_t& textPointSize);
152 #endif // __TERRALIB_EDIT_QT_INTERNAL_RENDERER_H
void drawRepositories(const te::gm::Envelope &e, int srid)
An Envelope defines a 2D rectangular region.
void begin(QPaintDevice *device, const te::gm::Envelope &e, int srid)
void prepare(te::gm::GeomType type)
Renderer()
It initializes the singleton instance of the renderer.
void drawText(const std::string &text, te::gm::Point *p)
void setTextStyle(const QColor &textColor, const std::size_t &textPointSize)
void drawVertexes(te::gm::LineString *line)
#define TEEDITQTEXPORT
You can use this macro in order to export/import classes and functions from this module.
QColor m_polygonFillColor
std::size_t m_textPointSize
QColor m_polygonContourColor
te::gm::GeomType m_currentGeomType
void draw(te::gm::Geometry *geom, bool showVertexes=false)
std::size_t m_polygonContourWidth
void setPolygonStyle(const QColor &fillColor, const QColor &contourColor, const std::size_t &contourWidth)
te::map::LineDashStyle m_lineDashStyle
void drawRepository(const std::string &source, const te::gm::Envelope &e, int srid)
This is a singleton for rendering geometries and features.
void setPointStyle(const QString &mark, const QColor &fillColor, const QColor &contourColor, const std::size_t &contourWidth, const std::size_t &size)
LineDashStyle
This enum encodes enumerated values telling how lines should be drawn. e.g. as a plain line or dash l...
Template support for singleton pattern.
void drawVertexes(te::gm::Geometry *geom)
void prepare(te::edit::Feature *feature)
LineString is a curve with linear interpolation between points.
void drawVertexes(const std::vector< te::gm::LineString * > &lines)
QColor m_pointContourColor
te::qt::widgets::Canvas * m_canvas
~Renderer()
Singleton destructor.
void draw(te::edit::Feature *feature, bool showVertexes=false)
Proxy configuration file for TerraView (see terraview_config.h).
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
GeomType
Each enumerated type is compatible with a Well-known Binary (WKB) type code.
std::size_t m_pointContourWidth
A point with x and y coordinate values.
void setLineStyle(const QColor &lineColor, const std::size_t &lineWidth)