95 DataDefinedSizeScale = 1,
96 DataDefinedRotation = 2
151 bool deleteSymbolLayer(
int index );
167 void setColor(
const QColor& color );
201 qreal
alpha()
const {
return mAlpha; }
238 bool hasDataDefinedProperties()
const;
247 void renderFeature(
const QgsFeature& feature,
QgsRenderContext& context,
int layer = -1,
bool selected =
false,
bool drawVertexMarker =
false,
int currentVertexMarkerType = 0,
int currentVertexMarkerSize = 0 );
266 double x = point->
x();
267 double y = point->
y();
317 Q_DECL_DEPRECATED
bool isSymbolLayerCompatible(
SymbolType layerType );
354 void setOriginalValueVariable(
const QVariant& value );
363 qreal
alpha()
const {
return mAlpha; }
383 double outputLineWidth(
double width )
const;
384 double outputPixelSize(
double size )
const;
441 void setAngle(
double angle );
449 double angle()
const;
472 void setLineAngle(
double lineAngle );
481 void setSize(
double size );
580 void setWidth(
double width );
581 double width()
const;
619 void setAngle(
double angle );
void setClipFeaturesToExtent(bool clipFeaturesToExtent)
Sets whether features drawn by the symbol should be clipped to the render context's extent...
const QgsFields * fields() const
Fields of the layer.
OutputUnit
The unit of the output.
bool mClipFeaturesToExtent
A container class for data source field mapping or expression.
const QgsVectorLayer * mLayer
void setAlpha(qreal alpha)
Set alpha transparency 1 for opaque, 0 for invisible.
static QgsConstWkbPtr _getLineString(QPolygonF &pts, QgsRenderContext &context, QgsConstWkbPtr wkb, bool clipToExtent=true)
virtual QgsSymbolV2 * clone() const =0
QList< OutputUnit > OutputUnitList
The output shall be in pixels.
Base class for visual effects which can be applied to QPicture drawings.
static void _getPoint(QPointF &pt, QgsRenderContext &context, const QgsPointV2 *point)
Creates a point in screen coordinates from a QgsPointV2 in map coordinates.
Container of fields for a vector layer.
void setRenderHints(int hints)
const QgsFeature * feature() const
Current feature being rendered - may be null.
QgsSymbolLayerV2List symbolLayers()
Returns list of symbol layers contained in the symbol.
virtual QList< QString > usedAttributes()=0
Returns a set of attributes required for this renderer.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
double y() const
Returns the point's y-coordinate.
virtual void toSld(QDomDocument &doc, QDomElement &element) const
used from subclasses to create SLD Rule elements following SLD v1.1 specs
virtual void startRender(QgsRenderContext &context, const QgsFields &fields)=0
Needs to be called when a new render cycle is started.
void setMapUnitScale(const QgsMapUnitScale &scale)
virtual void stopRender(QgsRenderContext &context)=0
Needs to be called when a render cycle has finished to clean up.
void transformInPlace(double &x, double &y) const
Transform device coordinates to map coordinates.
virtual bool renderFeature(QgsFeature &feature, QgsRenderContext &context, int layer=-1, bool selected=false, bool drawVertexMarker=false)
Render a feature using this renderer in the given context.
Mixed units in symbol layers.
virtual QgsFeatureRendererV2 * clone() const =0
QgsSymbolLayerV2List mLayers
virtual QString dump() const
for debugging
const QgsVectorLayer * layer() const
The ouput shall be a percentage of another measurement (eg canvas size, feature size) ...
qreal alpha() const
Get alpha transparency 1 for opaque, 0 for invisible.
void setLayer(const QgsVectorLayer *layer)
Point geometry type, with support for z-dimension and m-values.
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
The output shall be in map unitx.
const QgsCoordinateTransform * coordinateTransform() const
int symbolLayerCount()
Returns total number of symbol layers contained in the symbol.
double x() const
Returns the point's x-coordinate.
qreal mAlpha
Symbol opacity (in the range 0 - 1)
QPointF toQPointF() const
Returns the point as a QPointF.
void setFeature(const QgsFeature *f)
Single scope for storing variables and functions for use within a QgsExpressionContext.
qreal alpha() const
Get alpha transparency 1 for opaque, 0 for invisible.
QgsSymbolV2::OutputUnit outputUnit() const
void setOutputUnit(QgsSymbolV2::OutputUnit u)
double ANALYSIS_EXPORT angle(Point3D *p1, Point3D *p2, Point3D *p3, Point3D *p4)
Calculates the angle between two segments (in 2 dimension, z-values are ignored)
void setSelected(bool selected)
bool clipFeaturesToExtent() const
Returns whether features drawn by the symbol will be clipped to the render context's extent...
SymbolType
Type of the symbol.
Contains information about the context of a rendering operation.
const QgsMapToPixel & mapToPixel() const
Struct for storing maximum and minimum scales for measurements in map units.
QList< QgsSymbolLayerV2 * > QgsSymbolLayerV2List
QgsMapUnitScale mapUnitScale() const
QgsRenderContext & renderContext()
const QgsRenderContext & renderContext() const
void setRenderHints(int hints)
Calculate scale by the area.
static QgsConstWkbPtr _getPolygon(QPolygonF &pts, QList< QPolygonF > &holes, QgsRenderContext &context, QgsConstWkbPtr wkb, bool clipToExtent=true)
static QgsConstWkbPtr _getPoint(QPointF &pt, QgsRenderContext &context, QgsConstWkbPtr wkb)
Represents a vector layer which manages a vector based data sets.
void setAlpha(qreal alpha)
Set alpha transparency 1 for opaque, 0 for invisible.