QGIS API Documentation
2.2.0-Valmiera
|
#include <qgssymbolv2.h>
Public Member Functions | |
QgsSymbolV2RenderContext (QgsRenderContext &c, QgsSymbolV2::OutputUnit u, qreal alpha=1.0, bool selected=false, int renderHints=0, const QgsFeature *f=0) | |
~QgsSymbolV2RenderContext () | |
QgsRenderContext & | renderContext () |
const QgsRenderContext & | renderContext () const |
QgsSymbolV2::OutputUnit | outputUnit () const |
void | setOutputUnit (QgsSymbolV2::OutputUnit u) |
qreal | alpha () const |
Get alpha transparency 1 for opaque, 0 for invisible. | |
void | setAlpha (qreal alpha) |
Set alpha transparency 1 for opaque, 0 for invisible. | |
bool | selected () const |
void | setSelected (bool selected) |
int | renderHints () const |
void | setRenderHints (int hints) |
void | setFeature (const QgsFeature *f) |
const QgsFeature * | feature () const |
void | setLayer (const QgsVectorLayer *layer) |
const QgsVectorLayer * | layer () const |
double | outputLineWidth (double width) const |
double | outputPixelSize (double size) const |
QgsSymbolV2RenderContext & | operator= (const QgsSymbolV2RenderContext &) |
Private Attributes | |
QgsRenderContext & | mRenderContext |
QgsSymbolV2::OutputUnit | mOutputUnit |
qreal | mAlpha |
bool | mSelected |
int | mRenderHints |
const QgsFeature * | mFeature |
const QgsVectorLayer * | mLayer |
Definition at line 157 of file qgssymbolv2.h.
QgsSymbolV2RenderContext::QgsSymbolV2RenderContext | ( | QgsRenderContext & | c, |
QgsSymbolV2::OutputUnit | u, | ||
qreal | alpha = 1.0 , |
||
bool | selected = false , |
||
int | renderHints = 0 , |
||
const QgsFeature * | f = 0 |
||
) |
Definition at line 387 of file qgssymbolv2.cpp.
QgsSymbolV2RenderContext::~QgsSymbolV2RenderContext | ( | ) |
Definition at line 393 of file qgssymbolv2.cpp.
|
inline |
Get alpha transparency 1 for opaque, 0 for invisible.
Definition at line 171 of file qgssymbolv2.h.
Referenced by QgsGradientFillSymbolLayerV2::applyGradient(), QgsSVGFillSymbolLayer::applyPattern(), QgsLinePatternFillSymbolLayer::applyPattern(), QgsPointPatternFillSymbolLayer::applyPattern(), QgsSvgMarkerSymbolLayerV2::renderPoint(), QgsFontMarkerSymbolLayerV2::renderPoint(), QgsSimpleFillSymbolLayerV2::startRender(), QgsSimpleLineSymbolLayerV2::startRender(), QgsSimpleMarkerSymbolLayerV2::startRender(), QgsMarkerLineSymbolLayerV2::startRender(), QgsGradientFillSymbolLayerV2::startRender(), and QgsCentroidFillSymbolLayerV2::startRender().
|
inline |
Definition at line 184 of file qgssymbolv2.h.
Referenced by QgsSVGFillSymbolLayer::applyDataDefinedSettings(), QgsLinePatternFillSymbolLayer::applyDataDefinedSettings(), QgsPointPatternFillSymbolLayer::applyDataDefinedSettings(), QgsSimpleFillSymbolLayerV2::applyDataDefinedSymbology(), QgsSimpleLineSymbolLayerV2::applyDataDefinedSymbology(), QgsGradientFillSymbolLayerV2::applyDataDefinedSymbology(), QgsLinePatternFillSymbolLayer::applyPattern(), QgsPointPatternFillSymbolLayer::applyPattern(), QgsSimpleLineSymbolLayerV2::dxfColor(), QgsSimpleFillSymbolLayerV2::dxfColor(), QgsSimpleLineSymbolLayerV2::dxfWidth(), QgsSimpleFillSymbolLayerV2::dxfWidth(), QgsImageFillSymbolLayer::dxfWidth(), QgsMarkerSymbolLayerV2::markerOffset(), QgsEllipseSymbolLayerV2::renderPoint(), QgsSimpleMarkerSymbolLayerV2::renderPoint(), QgsVectorFieldSymbolLayer::renderPoint(), QgsSvgMarkerSymbolLayerV2::renderPoint(), QgsImageFillSymbolLayer::renderPolygon(), QgsCentroidFillSymbolLayerV2::renderPolygon(), QgsMarkerLineSymbolLayerV2::renderPolyline(), QgsMarkerLineSymbolLayerV2::renderPolylineCentral(), QgsMarkerLineSymbolLayerV2::renderPolylineInterval(), QgsMarkerLineSymbolLayerV2::renderPolylineVertex(), QgsEllipseSymbolLayerV2::startRender(), QgsEllipseSymbolLayerV2::writeDxf(), and QgsSimpleMarkerSymbolLayerV2::writeDxf().
|
inline |
Definition at line 187 of file qgssymbolv2.h.
Referenced by QgsFillSymbolLayerV2::_renderPolygon(), QgsSimpleLineSymbolLayerV2::renderPolyline(), QgsEllipseSymbolLayerV2::startRender(), QgsSimpleFillSymbolLayerV2::startRender(), QgsSimpleLineSymbolLayerV2::startRender(), QgsSimpleMarkerSymbolLayerV2::startRender(), QgsVectorFieldSymbolLayer::startRender(), QgsSvgMarkerSymbolLayerV2::startRender(), QgsMarkerLineSymbolLayerV2::startRender(), QgsGradientFillSymbolLayerV2::startRender(), QgsSVGFillSymbolLayer::startRender(), QgsLinePatternFillSymbolLayer::startRender(), and QgsPointPatternFillSymbolLayer::startRender().
QgsSymbolV2RenderContext & QgsSymbolV2RenderContext::operator= | ( | const QgsSymbolV2RenderContext & | ) |
Definition at line 409 of file qgssymbolv2.cpp.
double QgsSymbolV2RenderContext::outputLineWidth | ( | double | width | ) | const |
Definition at line 399 of file qgssymbolv2.cpp.
References QgsSymbolLayerV2Utils::lineWidthScaleFactor(), mOutputUnit, and mRenderContext.
Referenced by QgsPointDisplacementRenderer::drawCircle(), QgsPointDisplacementRenderer::drawLabels(), and QgsPointDisplacementRenderer::renderFeature().
double QgsSymbolV2RenderContext::outputPixelSize | ( | double | size | ) | const |
Definition at line 404 of file qgssymbolv2.cpp.
References mOutputUnit, mRenderContext, and QgsSymbolLayerV2Utils::pixelSizeScaleFactor().
|
inline |
Definition at line 167 of file qgssymbolv2.h.
|
inline |
Definition at line 163 of file qgssymbolv2.h.
Referenced by QgsFillSymbolLayerV2::_renderPolygon(), QgsSimpleFillSymbolLayerV2::applyDataDefinedSymbology(), QgsSimpleLineSymbolLayerV2::applyDataDefinedSymbology(), QgsSVGFillSymbolLayer::applyPattern(), QgsLinePatternFillSymbolLayer::applyPattern(), QgsPointPatternFillSymbolLayer::applyPattern(), QgsPointDisplacementRenderer::drawCircle(), QgsPointDisplacementRenderer::drawLabels(), QgsVectorFieldSymbolLayer::drawPreviewIcon(), QgsSimpleLineSymbolLayerV2::dxfWidth(), QgsMarkerSymbolLayerV2::markerOffset(), QgsSimpleMarkerSymbolLayerV2::prepareCache(), QgsEllipseSymbolLayerV2::preparePath(), QgsEllipseSymbolLayerV2::renderPoint(), QgsSimpleMarkerSymbolLayerV2::renderPoint(), QgsVectorFieldSymbolLayer::renderPoint(), QgsSvgMarkerSymbolLayerV2::renderPoint(), QgsFontMarkerSymbolLayerV2::renderPoint(), QgsSimpleFillSymbolLayerV2::renderPolygon(), QgsGradientFillSymbolLayerV2::renderPolygon(), QgsImageFillSymbolLayer::renderPolygon(), QgsCentroidFillSymbolLayerV2::renderPolygon(), QgsSimpleLineSymbolLayerV2::renderPolyline(), QgsMarkerLineSymbolLayerV2::renderPolyline(), QgsMarkerLineSymbolLayerV2::renderPolylineCentral(), QgsMarkerLineSymbolLayerV2::renderPolylineInterval(), QgsMarkerLineSymbolLayerV2::renderPolylineVertex(), QgsEllipseSymbolLayerV2::startRender(), QgsSimpleFillSymbolLayerV2::startRender(), QgsSimpleLineSymbolLayerV2::startRender(), QgsSimpleMarkerSymbolLayerV2::startRender(), QgsVectorFieldSymbolLayer::startRender(), QgsSvgMarkerSymbolLayerV2::startRender(), QgsMarkerLineSymbolLayerV2::startRender(), QgsGradientFillSymbolLayerV2::startRender(), QgsFontMarkerSymbolLayerV2::startRender(), QgsSVGFillSymbolLayer::startRender(), QgsLinePatternFillSymbolLayer::startRender(), QgsPointPatternFillSymbolLayer::startRender(), QgsCentroidFillSymbolLayerV2::startRender(), QgsVectorFieldSymbolLayer::stopRender(), QgsMarkerLineSymbolLayerV2::stopRender(), QgsSVGFillSymbolLayer::stopRender(), QgsPointPatternFillSymbolLayer::stopRender(), QgsCentroidFillSymbolLayerV2::stopRender(), and QgsSimpleMarkerSymbolLayerV2::writeDxf().
|
inline |
Definition at line 164 of file qgssymbolv2.h.
|
inline |
Definition at line 179 of file qgssymbolv2.h.
Referenced by QgsSimpleLineSymbolLayerV2::applyDataDefinedSymbology(), QgsSimpleLineSymbolLayerV2::dxfWidth(), QgsEllipseSymbolLayerV2::preparePath(), QgsSimpleMarkerSymbolLayerV2::renderPoint(), QgsSvgMarkerSymbolLayerV2::renderPoint(), QgsFontMarkerSymbolLayerV2::renderPoint(), QgsSimpleMarkerSymbolLayerV2::startRender(), QgsMarkerLineSymbolLayerV2::startRender(), QgsEllipseSymbolLayerV2::writeDxf(), QgsSimpleMarkerSymbolLayerV2::writeDxf(), and QgsSvgMarkerSymbolLayerV2::writeDxf().
|
inline |
Definition at line 175 of file qgssymbolv2.h.
Referenced by QgsLinePatternFillSymbolLayer::applyPattern(), QgsSimpleMarkerSymbolLayerV2::renderPoint(), QgsSvgMarkerSymbolLayerV2::renderPoint(), QgsFontMarkerSymbolLayerV2::renderPoint(), QgsSimpleFillSymbolLayerV2::renderPolygon(), QgsGradientFillSymbolLayerV2::renderPolygon(), QgsImageFillSymbolLayer::renderPolygon(), QgsCentroidFillSymbolLayerV2::renderPolygon(), QgsSimpleLineSymbolLayerV2::renderPolyline(), QgsMarkerLineSymbolLayerV2::renderPolylineCentral(), QgsMarkerLineSymbolLayerV2::renderPolylineInterval(), and QgsMarkerLineSymbolLayerV2::renderPolylineVertex().
|
inline |
Set alpha transparency 1 for opaque, 0 for invisible.
Definition at line 173 of file qgssymbolv2.h.
|
inline |
Definition at line 183 of file qgssymbolv2.h.
|
inline |
Definition at line 186 of file qgssymbolv2.h.
Referenced by QgsSymbolV2::drawPreviewIcon(), QgsMarkerSymbolV2::renderPoint(), QgsFillSymbolV2::renderPolygon(), QgsLineSymbolV2::renderPolyline(), QgsSymbolV2::startRender(), and QgsSymbolV2::stopRender().
|
inline |
Definition at line 168 of file qgssymbolv2.h.
|
inline |
Definition at line 181 of file qgssymbolv2.h.
|
inline |
Definition at line 176 of file qgssymbolv2.h.
|
private |
Definition at line 198 of file qgssymbolv2.h.
|
private |
Definition at line 201 of file qgssymbolv2.h.
|
private |
Definition at line 202 of file qgssymbolv2.h.
|
private |
Definition at line 197 of file qgssymbolv2.h.
Referenced by outputLineWidth(), and outputPixelSize().
|
private |
Definition at line 196 of file qgssymbolv2.h.
Referenced by outputLineWidth(), and outputPixelSize().
|
private |
Definition at line 200 of file qgssymbolv2.h.
|
private |
Definition at line 199 of file qgssymbolv2.h.