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, const bool &removed=false) |
| void | drawRepositories (const te::gm::Envelope &e, int srid) |
| void | drawRepository (const std::string &source, const te::gm::Envelope &e, int srid) |
| 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, const bool &removed=false) |
| 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) |
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 |
| 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 |
Friends | |
| class | te::common::Singleton< Renderer > |
This is a singleton for rendering geometries and features.
Definition at line 67 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, |
||
| const bool & | removed = 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::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 120 of file Singleton.h.
| void te::edit::Renderer::prepare | ( | te::gm::GeomType | type, |
| const bool & | removed = false |
||
| ) |
| 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 | ||
| ) |
|
private |
|
friend |
Definition at line 69 of file Renderer.h.
|
private |
Definition at line 110 of file Renderer.h.
|
private |
Definition at line 126 of file Renderer.h.
|
private |
Definition at line 117 of file Renderer.h.
|
private |
Definition at line 118 of file Renderer.h.
|
private |
Definition at line 122 of file Renderer.h.
|
private |
Definition at line 123 of file Renderer.h.
|
private |
Definition at line 121 of file Renderer.h.
|
private |
Definition at line 120 of file Renderer.h.
|
private |
Definition at line 124 of file Renderer.h.
|
private |
Definition at line 114 of file Renderer.h.
|
private |
Definition at line 115 of file Renderer.h.
|
private |
Definition at line 113 of file Renderer.h.
|
private |
Definition at line 111 of file Renderer.h.
|
private |
Definition at line 127 of file Renderer.h.