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
26 #define DEFAULT_SIMPLEFILL_JOINSTYLE Qt::BevelJoin
65 QString
ogrFeatureStyle(
double mmScaleFactor,
double mapUnitScaleFactor )
const;
67 Qt::BrushStyle
brushStyle()
const {
return mBrushStyle; }
88 void setBorderStyle( Qt::PenStyle borderStyle ) { mBorderStyle = borderStyle; }
96 void setOffset( QPointF offset ) { mOffset = offset; }
180 QColor color2 = Qt::white,
181 GradientColorType gradientColorType = SimpleTwoColor,
182 GradientType gradientType = Linear,
183 GradientCoordinateMode coordinateMode = Feature,
184 GradientSpread gradientSpread = Pad
222 QColor
color2()
const {
return mColor2; }
255 QPointF
offset()
const {
return mOffset; }
297 void applyGradient(
const QgsSymbolV2RenderContext& context, QBrush& brush,
const QColor& color,
const QColor& color2,
300 const QPointF &referencePoint1,
const QPointF &referencePoint2,
const double angle );
303 QPointF rotateReferencePoint(
const QPointF & refPoint,
double angle );
317 ShapeburstColorType colorType = SimpleTwoColor,
318 int blurRadius = 0,
bool useWholeShape =
true,
double maxDistance = 5 );
455 QColor
color2()
const {
return mColor2; }
484 QPointF
offset()
const {
return mOffset; }
535 void applyDataDefinedSymbology(
QgsSymbolV2RenderContext& context, QColor& color, QColor& color2,
int& blurRadius,
bool& useWholeShape,
536 double& maxDistance,
bool &ignoreRings );
539 void distanceTransform1d(
double *f,
int n,
int *v,
double *z,
double *d );
541 void distanceTransform2d(
double * im,
int width,
int height );
543 double * distanceTransform( QImage * im );
546 void dtArrayToQImage(
double * array, QImage *im,
QgsVectorColorRampV2* ramp,
double layerAlpha = 1,
bool useWholeShape =
true,
int maxPixelDistance = 0 );
619 void setSvgFilePath(
const QString& svgPath );
677 void setDefaultSvgParams();
680 void applyPattern( QBrush& brush,
const QString& svgFilePath,
double patternWidth,
QgsSymbolV2::OutputUnit patternWidthUnit,
const QColor& svgFillColor,
const QColor& svgOutlineColor,
714 void setLineWidth(
double w );
719 double offset()
const {
return mOffset; }
769 void applyPattern(
const QgsSymbolV2RenderContext& context, QBrush& brush,
double lineAngle,
double distance,
double lineWidth,
const QColor& color );
865 double displacementX,
double displacementY );
895 void setColor(
const QColor& color );