98 DataDefinedSizeScale = 1,
99 DataDefinedRotation = 2
154 bool deleteSymbolLayer(
int index );
170 void setColor(
const QColor& color );
204 qreal
alpha()
const {
return mAlpha; }
241 bool hasDataDefinedProperties()
const;
250 void renderFeature(
const QgsFeature& feature,
QgsRenderContext& context,
int layer = -1,
bool selected =
false,
bool drawVertexMarker =
false,
int currentVertexMarkerType = 0,
int currentVertexMarkerSize = 0 );
269 double x = point->
x();
270 double y = point->
y();
320 Q_DECL_DEPRECATED
bool isSymbolLayerCompatible(
SymbolType layerType );
367 void setOriginalValueVariable(
const QVariant& value );
376 qreal
alpha()
const {
return mAlpha; }
414 double outputLineWidth(
double width )
const;
415 double outputPixelSize(
double size )
const;
445 int mGeometryPartCount;
446 int mGeometryPartNum;
476 void setAngle(
double angle );
484 double angle()
const;
507 void setLineAngle(
double lineAngle );
516 void setSize(
double size );
617 void setWidth(
double width );
618 double width()
const;
658 void setAngle(
double angle );
static QgsConstWkbPtr _getPolygon(QPolygonF &pts, QList< QPolygonF > &holes, QgsRenderContext &context, QgsConstWkbPtr &wkb, bool clipToExtent=true)
Creates a polygon in screen coordinates from a wkb string in map coordinates.
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.
void setGeometryPartCount(int count)
Sets the part count of current geometry.
const QgsVectorLayer * mLayer
void setAlpha(qreal alpha)
Set alpha transparency 1 for opaque, 0 for invisible.
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
static QgsConstWkbPtr _getLineString(QPolygonF &pts, QgsRenderContext &context, QgsConstWkbPtr &wkb, bool clipToExtent=true)
Creates a line string in screen coordinates from a wkb string in map coordinates. ...
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 renderVertexMarker(QPointF pt, QgsRenderContext &context)
render editing vertex marker at specified point
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)
int geometryPartCount() const
Part count of current geometry.
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()
int geometryPartNum() const
Part number of current geometry.
const QgsRenderContext & renderContext() const
void setRenderHints(int hints)
void setGeometryPartNum(int num)
Sets the part number of current geometry.
Abstract base class for marker symbol layers.
static QgsConstWkbPtr _getPoint(QPointF &pt, QgsRenderContext &context, QgsConstWkbPtr &wkb)
Creates a point in screen coordinates from a wkb string in map coordinates.
Calculate scale by the area.
Represents a vector layer which manages a vector based data sets.
void setAlpha(qreal alpha)
Set alpha transparency 1 for opaque, 0 for invisible.