1 #ifndef QGSSYMBOLLAYERV2_H
2 #define QGSSYMBOLLAYERV2_H
26 virtual void setColor(
const QColor& color ) { mColor = color; }
27 virtual QColor
color()
const {
return mColor; }
31 virtual QString layerType()
const = 0;
57 : mType( type ), mLocked( locked ), mRenderingPass( 0 ) {}
65 static const bool selectionIsOpaque =
true;
66 static const bool selectFillBorder =
false;
67 static const bool selectFillStyle =
false;
81 double angle()
const {
return mAngle; }
83 void setSize(
double size ) { mSize = size; }
84 double size()
const {
return mSize; }
86 void setOffset( QPointF offset ) { mOffset = offset; }
103 virtual void renderPolygonOutline(
const QPolygonF& points, QList<QPolygonF>* rings,
QgsSymbolV2RenderContext& context );
105 virtual void setWidth(
double width ) { mWidth = width; }
106 virtual double width()
const {
return mWidth; }
119 virtual void renderPolygon(
const QPolygonF& points, QList<QPolygonF>* rings,
QgsSymbolV2RenderContext& context ) = 0;
124 double angle()
const {
return mAngle; }
129 void _renderPolygon( QPainter* p,
const QPolygonF& points,
const QList<QPolygonF>* rings );
134 class QgsSymbolLayerV2Widget;