68 DataDefinedSizeScale = 1,
69 DataDefinedRotation = 2
92 bool deleteSymbolLayer(
int index );
103 void setColor(
const QColor& color );
104 QColor color()
const;
106 void drawPreviewIcon( QPainter* painter, QSize
size );
108 QImage bigSymbolPreviewImage();
110 QString dump()
const;
114 void toSld( QDomDocument &doc, QDomElement &element,
QgsStringMap props )
const;
120 qreal
alpha()
const {
return mAlpha; }
129 QSet<QString> usedAttributes()
const;
142 bool isSymbolLayerCompatible( SymbolType t );
171 qreal
alpha()
const {
return mAlpha; }
189 double outputLineWidth(
double width )
const;
190 double outputPixelSize(
double size )
const;
222 void setAngle(
double angle );
225 void setSize(
double size );
231 void renderPoint(
const QPointF& point,
const QgsFeature* f,
QgsRenderContext& context,
int layer = -1,
bool selected =
false );
249 void setWidth(
double width );
252 void renderPolyline(
const QPolygonF& points,
const QgsFeature* f,
QgsRenderContext& context,
int layer = -1,
bool selected =
false );
269 void setAngle(
double angle );
270 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
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
const QgsVectorLayer * layer() const
qreal alpha() const
Get alpha transparency 1 for opaque, 0 for invisible.
QgsSymbolLayerV2List mLayers
const QgsFeature * feature() const
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()
void setLayer(const QgsVectorLayer *layer)
QgsRenderContext & mRenderContext
void setRenderHints(int hints)
const QgsRenderContext & renderContext() const
Represents a vector layer which manages a vector based data sets.
const QgsVectorLayer * mLayer
QgsSymbolV2::OutputUnit mOutputUnit
void setAlpha(qreal alpha)
Set alpha transparency 1 for opaque, 0 for invisible.
const QgsVectorLayer * layer() const