18 #ifndef QGSCOMPOSERSHAPE_H
19 #define QGSCOMPOSERSHAPE_H
48 void paint( QPainter* painter,
const QStyleOptionGraphicsItem* itemStyle, QWidget* pWidget );
54 bool writeXML( QDomElement& elem, QDomDocument & doc )
const;
60 bool readXML(
const QDomElement& itemElem,
const QDomDocument& doc );
67 void setCornerRadius(
double radius );
81 void setUseSymbolV2(
bool useSymbolV2 );
85 QRectF boundingRect()
const;
108 void refreshSymbol();
114 double mCornerRadius;
119 double mMaxSymbolBleed;
121 QRectF mCurrentRectangle;
124 void drawShape( QPainter* p );
127 void drawShapeUsingSymbol( QPainter* p );
130 void createDefaultShapeStyleSymbol();
133 QPointF pointOnLineWithDistance(
const QPointF& startPoint,
const QPointF& directionPoint,
double distance )
const;
136 void updateBoundingRect();
139 #endif // QGSCOMPOSERSHAPEITEM_H