This is a singleton for rendering geometries and features. More...
#include <Renderer.h>
Public Member Functions | |
| void | begin (QPaintDevice *device, const te::gm::Envelope &e, int srid) |
| void | draw (te::gm::Geometry *geom, bool showVertexes=false) |
| void | draw (te::edit::Feature *feature, bool showVertexes=false) |
| void | drawRepositories (const te::gm::Envelope &e, int srid) |
| void | drawRepository (const std::string &source, const te::gm::Envelope &e, int srid) |
| void | drawText (const std::string &text, te::gm::Point *p) |
| void | drawVertexes (te::gm::Geometry *geom) |
| void | drawVertexes (const std::vector< te::gm::LineString * > &lines) |
| void | drawVertexes (te::gm::LineString *line) |
| void | end () |
| void | prepare (te::gm::GeomType type) |
| void | prepare (te::edit::Feature *feature) |
| void | setLineStyle (const QColor &lineColor, const std::size_t &lineWidth) |
| void | setPointStyle (const QString &mark, const QColor &fillColor, const QColor &contourColor, const std::size_t &contourWidth, const std::size_t &size) |
| void | setPolygonStyle (const QColor &fillColor, const QColor &contourColor, const std::size_t &contourWidth) |
| void | setTextStyle (const QColor &textColor, const std::size_t &textPointSize) |
Static Public Member Functions | |
| static T & | getInstance () |
| It returns a reference to the singleton instance. More... | |
Protected Member Functions | |
| Renderer () | |
| It initializes the singleton instance of the renderer. More... | |
| ~Renderer () | |
| Singleton destructor. More... | |
Private Member Functions | |
| void | setupDefaultStyle () |
Private Attributes | |
| te::qt::widgets::Canvas * | m_canvas |
| te::gm::GeomType | m_currentGeomType |
| QColor | m_lineColor |
| te::map::LineDashStyle | m_lineDashStyle |
| std::size_t | m_lineWidth |
| QColor | m_pointContourColor |
| std::size_t | m_pointContourWidth |
| QColor | m_pointFillColor |
| QString | m_pointMark |
| std::size_t | m_pointSize |
| QColor | m_polygonContourColor |
| std::size_t | m_polygonContourWidth |
| QColor | m_polygonFillColor |
| int | m_srid |
| bool | m_styleChanged |
| QColor | m_textFillColor |
| std::size_t | m_textPointSize |
Friends | |
| class | te::common::Singleton< Renderer > |
This is a singleton for rendering geometries and features.
Definition at line 70 of file Renderer.h.
|
protected |
It initializes the singleton instance of the renderer.
|
protected |
Singleton destructor.
| void te::edit::Renderer::begin | ( | QPaintDevice * | device, |
| const te::gm::Envelope & | e, | ||
| int | srid | ||
| ) |
| void te::edit::Renderer::draw | ( | te::gm::Geometry * | geom, |
| bool | showVertexes = false |
||
| ) |
| void te::edit::Renderer::draw | ( | te::edit::Feature * | feature, |
| bool | showVertexes = false |
||
| ) |
| void te::edit::Renderer::drawRepositories | ( | const te::gm::Envelope & | e, |
| int | srid | ||
| ) |
| void te::edit::Renderer::drawRepository | ( | const std::string & | source, |
| const te::gm::Envelope & | e, | ||
| int | srid | ||
| ) |
| void te::edit::Renderer::drawText | ( | const std::string & | text, |
| te::gm::Point * | p | ||
| ) |
| void te::edit::Renderer::drawVertexes | ( | te::gm::Geometry * | geom | ) |
| void te::edit::Renderer::drawVertexes | ( | const std::vector< te::gm::LineString * > & | lines | ) |
| void te::edit::Renderer::drawVertexes | ( | te::gm::LineString * | line | ) |
| void te::edit::Renderer::end | ( | ) |
|
inlinestaticinherited |
It returns a reference to the singleton instance.
Definition at line 126 of file Singleton.h.
| void te::edit::Renderer::prepare | ( | te::gm::GeomType | type | ) |
| void te::edit::Renderer::prepare | ( | te::edit::Feature * | feature | ) |
| void te::edit::Renderer::setLineStyle | ( | const QColor & | lineColor, |
| const std::size_t & | lineWidth | ||
| ) |
| void te::edit::Renderer::setPointStyle | ( | const QString & | mark, |
| const QColor & | fillColor, | ||
| const QColor & | contourColor, | ||
| const std::size_t & | contourWidth, | ||
| const std::size_t & | size | ||
| ) |
| void te::edit::Renderer::setPolygonStyle | ( | const QColor & | fillColor, |
| const QColor & | contourColor, | ||
| const std::size_t & | contourWidth | ||
| ) |
| void te::edit::Renderer::setTextStyle | ( | const QColor & | textColor, |
| const std::size_t & | textPointSize | ||
| ) |
|
private |
|
friend |
Definition at line 72 of file Renderer.h.
|
private |
Definition at line 123 of file Renderer.h.
|
private |
Definition at line 142 of file Renderer.h.
|
private |
Definition at line 130 of file Renderer.h.
|
private |
Definition at line 145 of file Renderer.h.
|
private |
Definition at line 131 of file Renderer.h.
|
private |
Definition at line 135 of file Renderer.h.
|
private |
Definition at line 136 of file Renderer.h.
|
private |
Definition at line 134 of file Renderer.h.
|
private |
Definition at line 133 of file Renderer.h.
|
private |
Definition at line 137 of file Renderer.h.
|
private |
Definition at line 127 of file Renderer.h.
|
private |
Definition at line 128 of file Renderer.h.
|
private |
Definition at line 126 of file Renderer.h.
|
private |
Definition at line 124 of file Renderer.h.
|
private |
Definition at line 143 of file Renderer.h.
|
private |
Definition at line 139 of file Renderer.h.
|
private |
Definition at line 140 of file Renderer.h.