17 #ifndef QGSCOMPOSERPOLYGON_H    18 #define QGSCOMPOSERPOLYGON_H    70     bool _addNode( 
const int indexPoint, 
const QPointF &newPoint, 
const double radius ) 
override;
    84     void createDefaultPolygonStyleSymbol();
    87 #endif // QGSCOMPOSERPOLYGON_H 
An abstract composer item that provides generic methods for nodes based shapes such as polygon or pol...
 
virtual QString displayName() const
Get item display name. 
 
virtual void _readXMLStyle(const QDomElement &elmt)=0
Method called in readXML. 
 
virtual void _writeXMLStyle(QDomDocument &doc, QDomElement &elmt) const =0
Method called in writeXML. 
 
virtual bool _removeNode(const int nodeIndex)=0
Method called in removeNode. 
 
virtual int type() const override
Return correct graphics item type. 
 
virtual bool _addNode(const int nodeIndex, const QPointF &newNode, const double radius)=0
Method called in addNode. 
 
virtual void _draw(QPainter *painter)=0
Method called in paint. 
 
Graphics scene for map printing. 
 
QgsFillSymbolV2 * polygonStyleSymbol()
Returns the QgsSymbolV2 used to draw the shape. 
 
Composer item for polygons. 
 
QScopedPointer< QgsFillSymbolV2 > mPolygonStyleSymbol
QgsSymbolV2 use to draw the shape.