18 #ifndef QGSCOMPOSERSHAPE_H 19 #define QGSCOMPOSERSHAPE_H 68 void setCornerRadius(
double radius );
82 void setUseSymbolV2(
bool useSymbolV2 );
109 void refreshSymbol();
115 double mCornerRadius;
120 double mMaxSymbolBleed;
128 void drawShapeUsingSymbol(
QPainter* p );
131 void createDefaultShapeStyleSymbol();
134 QPointF pointOnLineWithDistance(
const QPointF& startPoint,
const QPointF& directionPoint,
double distance )
const;
137 void updateBoundingRect();
140 #endif // QGSCOMPOSERSHAPEITEM_H
virtual QString displayName() const
Get item display name.
A item that forms part of a map composition.
virtual double estimatedFrameBleed() const
Returns the estimated amount the item's frame bleeds outside the item's actual rectangle.
double cornerRadius() const
Returns the radius for rounded rectangle corners.
virtual void drawFrame(QPainter *p)
Draw black frame around item.
virtual bool writeXML(QDomElement &elem, QDomDocument &doc) const
Stores item state in DOM element.
virtual QRectF boundingRect() const
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
QgsComposerShape::Shape shapeType() const
QgsFillSymbolV2 * shapeStyleSymbol()
Returns the QgsFillSymbolV2 used to draw the shape.
Graphics scene for map printing.
A composer items that draws common shapes (ellipse, triangle, rectangle)
virtual bool readXML(const QDomElement &itemElem, const QDomDocument &doc)
Sets item state from DOM element.
virtual int type() const override
Return correct graphics item type.
virtual void drawBackground(QPainter *p)
Draw background.
virtual void setSceneRect(const QRectF &rectangle)
Sets this items bound in scene coordinates such that 1 item size units corresponds to 1 scene size un...