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 | 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) |
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 68 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::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 | ) |
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 | ||
) |
|
private |
|
friend |
Definition at line 70 of file Renderer.h.
|
private |
Definition at line 117 of file Renderer.h.
|
private |
Definition at line 133 of file Renderer.h.
|
private |
Definition at line 124 of file Renderer.h.
|
private |
Definition at line 125 of file Renderer.h.
|
private |
Definition at line 129 of file Renderer.h.
|
private |
Definition at line 130 of file Renderer.h.
|
private |
Definition at line 128 of file Renderer.h.
|
private |
Definition at line 127 of file Renderer.h.
|
private |
Definition at line 131 of file Renderer.h.
|
private |
Definition at line 121 of file Renderer.h.
|
private |
Definition at line 122 of file Renderer.h.
|
private |
Definition at line 120 of file Renderer.h.
|
private |
Definition at line 118 of file Renderer.h.
|
private |
Definition at line 134 of file Renderer.h.