Public Member Functions |
| QgsGradientFillSymbolLayerV2 (QColor color=DEFAULT_SIMPLEFILL_COLOR, QColor color2=Qt::white, GradientColorType gradientColorType=SimpleTwoColor, GradientType gradientType=Linear, GradientCoordinateMode coordinateMode=Feature, GradientSpread gradientSpread=Pad) |
virtual | ~QgsGradientFillSymbolLayerV2 () |
QString | layerType () const |
void | startRender (QgsSymbolV2RenderContext &context) |
void | stopRender (QgsSymbolV2RenderContext &context) |
void | renderPolygon (const QPolygonF &points, QList< QPolygonF > *rings, QgsSymbolV2RenderContext &context) |
QgsStringMap | properties () const |
QgsSymbolLayerV2 * | clone () const |
double | estimateMaxBleed () const |
| Returns the estimated maximum distance which the layer style will bleed outside the drawn shape.
|
GradientType | gradientType () const |
| Type of gradient, eg linear or radial.
|
void | setGradientType (GradientType gradientType) |
GradientColorType | gradientColorType () const |
| Gradient color mode, controls how gradient color stops are created.
|
void | setGradientColorType (GradientColorType gradientColorType) |
QgsVectorColorRampV2 * | colorRamp () |
| Color ramp used for the gradient fill, only used if the gradient color type is set to ColorRamp.
|
void | setColorRamp (QgsVectorColorRampV2 *ramp) |
QColor | color2 () const |
| Color for endpoint of gradient, only used if the gradient color type is set to SimpleTwoColor.
|
void | setColor2 (QColor color2) |
GradientCoordinateMode | coordinateMode () const |
| Coordinate mode for gradient.
|
void | setCoordinateMode (GradientCoordinateMode coordinateMode) |
GradientSpread | gradientSpread () const |
| Gradient spread mode.
|
void | setGradientSpread (GradientSpread gradientSpread) |
void | setReferencePoint1 (QPointF referencePoint) |
| Starting point of gradient fill, in the range [0,0] - [1,1].
|
QPointF | referencePoint1 () const |
void | setReferencePoint1IsCentroid (bool isCentroid) |
| Sets the starting point of the gradient to be the feature centroid.
|
bool | referencePoint1IsCentroid () const |
void | setReferencePoint2 (QPointF referencePoint) |
| End point of gradient fill, in the range [0,0] - [1,1].
|
QPointF | referencePoint2 () const |
void | setReferencePoint2IsCentroid (bool isCentroid) |
| Sets the end point of the gradient to be the feature centroid.
|
bool | referencePoint2IsCentroid () const |
void | setAngle (double angle) |
| Rotation angle for gradient fill.
|
double | angle () const |
void | setOffset (QPointF offset) |
| Offset for gradient fill.
|
QPointF | offset () const |
void | setOffsetUnit (QgsSymbolV2::OutputUnit unit) |
| Units for gradient fill offset.
|
QgsSymbolV2::OutputUnit | offsetUnit () const |
void | setOffsetMapUnitScale (const QgsMapUnitScale &scale) |
const QgsMapUnitScale & | offsetMapUnitScale () const |
void | setOutputUnit (QgsSymbolV2::OutputUnit unit) |
QgsSymbolV2::OutputUnit | outputUnit () const |
void | setMapUnitScale (const QgsMapUnitScale &scale) |
QgsMapUnitScale | mapUnitScale () const |
void | drawPreviewIcon (QgsSymbolV2RenderContext &context, QSize size) |
virtual QColor | color () const |
virtual void | setColor (const QColor &color) |
virtual void | setOutlineColor (const QColor &color) |
| Set outline color.
|
virtual QColor | outlineColor () const |
| Get outline color.
|
virtual void | setFillColor (const QColor &color) |
| Set fill color.
|
virtual QColor | fillColor () const |
| Get fill color.
|
virtual | ~QgsSymbolLayerV2 () |
virtual void | toSld (QDomDocument &doc, QDomElement &element, QgsStringMap props) const |
virtual QString | ogrFeatureStyle (double mmScaleFactor, double mapUnitScaleFactor) const |
virtual QgsSymbolV2 * | subSymbol () |
virtual bool | setSubSymbol (QgsSymbolV2 *symbol) |
QgsSymbolV2::SymbolType | type () const |
void | setLocked (bool locked) |
bool | isLocked () const |
void | setRenderingPass (int renderingPass) |
int | renderingPass () const |
virtual QSet< QString > | usedAttributes () const |
virtual const QgsExpression * | dataDefinedProperty (const QString &property) const |
virtual QString | dataDefinedPropertyString (const QString &property) const |
virtual void | setDataDefinedProperty (const QString &property, const QString &expressionString) |
virtual void | removeDataDefinedProperty (const QString &property) |
virtual void | removeDataDefinedProperties () |
bool | hasDataDefinedProperties () const |
virtual bool | writeDxf (QgsDxfExport &e, double mmMapUnitScaleFactor, const QString &layerName, const QgsSymbolV2RenderContext *context, const QgsFeature *f, const QPointF &shift=QPointF(0.0, 0.0)) const |
virtual double | dxfWidth (const QgsDxfExport &e, const QgsSymbolV2RenderContext &context) const |
virtual QColor | dxfColor (const QgsSymbolV2RenderContext &context) const |
virtual QVector< qreal > | dxfCustomDashPattern (QgsSymbolV2::OutputUnit &unit) const |
virtual Qt::PenStyle | dxfPenStyle () const |
virtual QColor | dxfBrushColor (const QgsSymbolV2RenderContext &context) const |
virtual Qt::BrushStyle | dxfBrushStyle () const |