16 #ifndef QGSFILLSYMBOLLAYERV2_H
17 #define QGSFILLSYMBOLLAYERV2_H
21 #define DEFAULT_SIMPLEFILL_COLOR QColor(0,0,255)
22 #define DEFAULT_SIMPLEFILL_STYLE Qt::SolidPattern
23 #define DEFAULT_SIMPLEFILL_BORDERCOLOR QColor(0,0,0)
24 #define DEFAULT_SIMPLEFILL_BORDERSTYLE Qt::SolidLine
25 #define DEFAULT_SIMPLEFILL_BORDERWIDTH DEFAULT_LINE_WIDTH
60 QString
ogrFeatureStyle(
double mmScaleFactor,
double mapUnitScaleFactor )
const;
62 Qt::BrushStyle
brushStyle()
const {
return mBrushStyle; }
83 void setBorderStyle( Qt::PenStyle borderStyle ) { mBorderStyle = borderStyle; }
88 void setOffset( QPointF offset ) { mOffset = offset; }
158 QColor color2 = Qt::white,
159 GradientColorType gradientColorType = SimpleTwoColor,
160 GradientType gradientType = Linear,
161 GradientCoordinateMode coordinateMode = Feature,
162 GradientSpread gradientSpread = Pad
200 QColor
color2()
const {
return mColor2; };
233 QPointF
offset()
const {
return mOffset; };
265 void applyGradient(
const QgsSymbolV2RenderContext& context, QBrush& brush,
const QColor& color,
const QColor& color2,
268 const QPointF &referencePoint1,
const QPointF &referencePoint2,
const double angle );
271 QPointF rotateReferencePoint(
const QPointF & refPoint,
double angle );
334 void setSvgFilePath(
const QString& svgPath );
382 void setDefaultSvgParams();
385 void applyPattern( QBrush& brush,
const QString& svgFilePath,
double patternWidth,
QgsSymbolV2::OutputUnit patternWidthUnit,
const QColor& svgFillColor,
const QColor& svgOutlineColor,
419 void setLineWidth(
double w );
424 double offset()
const {
return mOffset; }
459 void applyPattern(
const QgsSymbolV2RenderContext& context, QBrush& brush,
double lineAngle,
double distance,
double lineWidth,
const QColor& color );
536 double displacementX,
double displacementY );
566 void setColor(
const QColor& color );