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