70 DataDefinedSizeScale = 1,
71 DataDefinedRotation = 2
115 bool deleteSymbolLayer(
int index );
126 void setColor(
const QColor& color );
127 QColor color()
const;
132 void drawPreviewIcon( QPainter* painter, QSize size,
QgsRenderContext* customContext = 0 );
136 QImage bigSymbolPreviewImage();
138 QString dump()
const;
142 void toSld( QDomDocument &doc, QDomElement &element,
QgsStringMap props )
const;
151 qreal
alpha()
const {
return mAlpha; }
158 QSet<QString> usedAttributes()
const;
201 qreal
alpha()
const {
return mAlpha; }
221 double outputLineWidth(
double width )
const;
222 double outputPixelSize(
double size )
const;
254 void setAngle(
double angle );
257 void setSize(
double size );
263 void renderPoint(
const QPointF& point,
const QgsFeature* f,
QgsRenderContext& context,
int layer = -1,
bool selected =
false );
280 void setWidth(
double width );
283 void renderPolyline(
const QPolygonF& points,
const QgsFeature* f,
QgsRenderContext& context,
int layer = -1,
bool selected =
false );
299 void setAngle(
double angle );
300 void renderPolygon(
const QPolygonF& points, QList<QPolygonF>* rings,
const QgsFeature* f,
QgsRenderContext& context,
int layer = -1,
bool selected =
false );
const QgsVectorLayer * mLayer
void setAlpha(qreal alpha)
Set alpha transparency 1 for opaque, 0 for invisible.
virtual QgsSymbolV2 * clone() const =0
Container of fields for a vector layer.
void setRenderHints(int hints)
QgsSymbolLayerV2List symbolLayers()
Returns list of symbol layers contained in the symbol.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
QMap< QString, QString > QgsStringMap
void setMapUnitScale(const QgsMapUnitScale &scale)
const QgsVectorLayer * layer() const
qreal alpha() const
Get alpha transparency 1 for opaque, 0 for invisible.
QgsSymbolLayerV2List mLayers
QgsMapUnitScale mapUnitScale() const
const QgsFeature * feature() const
Current feature being rendered - may be null.
qreal alpha() const
Get alpha transparency 1 for opaque, 0 for invisible.
void setLayer(const QgsVectorLayer *layer)
int symbolLayerCount()
Returns total number of symbol layers contained in the symbol.
qreal mAlpha
Symbol opacity (in the range 0 - 1)
void setFeature(const QgsFeature *f)
void setOutputUnit(QgsSymbolV2::OutputUnit u)
QgsSymbolV2::OutputUnit outputUnit() const
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)
Contains information about the context of a rendering operation.
Struct for storing maximum and minimum scales for measurements in map units.
QList< QgsSymbolLayerV2 * > QgsSymbolLayerV2List
QgsRenderContext & renderContext()
const QgsFields * fields() const
Fields of the layer.
void setRenderHints(int hints)
const QgsRenderContext & renderContext() const
Represents a vector layer which manages a vector based data sets.
void setAlpha(qreal alpha)
Set alpha transparency 1 for opaque, 0 for invisible.