70 DataDefinedSizeScale = 1,
71 DataDefinedRotation = 2
94 bool deleteSymbolLayer(
int index );
105 void setColor(
const QColor& color );
106 QColor color()
const;
108 void drawPreviewIcon( QPainter* painter, QSize
size );
110 QImage bigSymbolPreviewImage();
112 QString dump()
const;
116 void toSld( QDomDocument &doc, QDomElement &element,
QgsStringMap props )
const;
125 qreal
alpha()
const {
return mAlpha; }
134 QSet<QString> usedAttributes()
const;
147 bool isSymbolLayerCompatible( SymbolType t );
179 qreal
alpha()
const {
return mAlpha; }
201 double outputLineWidth(
double width )
const;
202 double outputPixelSize(
double size )
const;
235 void setAngle(
double angle );
238 void setSize(
double size );
244 void renderPoint(
const QPointF& point,
const QgsFeature* f,
QgsRenderContext& context,
int layer = -1,
bool selected =
false );
262 void setWidth(
double width );
265 void renderPolyline(
const QPolygonF& points,
const QgsFeature* f,
QgsRenderContext& context,
int layer = -1,
bool selected =
false );
282 void setAngle(
double angle );
283 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
QgsMapUnitScale mMapUnitScale
Container of fields for a vector layer.
void setRenderHints(int hints)
const QgsFeature * mFeature
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)
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.
QList< QgsSymbolLayerV2 * > QgsSymbolLayerV2List
QgsRenderContext & renderContext()
QgsRenderContext & mRenderContext
const QgsFields * fields() const
Fields of the layer.
void setRenderHints(int hints)
const QgsRenderContext & renderContext() const
const QgsFields * mFields
Represents a vector layer which manages a vector based data sets.
QgsSymbolV2::OutputUnit mOutputUnit
void setAlpha(qreal alpha)
Set alpha transparency 1 for opaque, 0 for invisible.