2012-09-24 02:28:15 +02:00
|
|
|
class QgsEllipseSymbolLayerV2 : QgsMarkerSymbolLayerV2
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgsellipsesymbollayerv2.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
public:
|
|
|
|
QgsEllipseSymbolLayerV2();
|
|
|
|
~QgsEllipseSymbolLayerV2();
|
|
|
|
|
|
|
|
static QgsSymbolLayerV2* create( const QgsStringMap& properties = QgsStringMap() ) /Factory/;
|
|
|
|
static QgsSymbolLayerV2* createFromSld( QDomElement &element ) /Factory/;
|
|
|
|
|
2016-02-02 19:46:18 +11:00
|
|
|
void renderPoint( QPointF point, QgsSymbolV2RenderContext& context );
|
2012-09-24 02:28:15 +02:00
|
|
|
QString layerType() const;
|
|
|
|
void startRender( QgsSymbolV2RenderContext& context );
|
|
|
|
void stopRender( QgsSymbolV2RenderContext& context );
|
2015-11-12 19:35:14 +11:00
|
|
|
virtual QgsEllipseSymbolLayerV2* clone() const /Factory/;
|
2012-09-24 02:28:15 +02:00
|
|
|
QgsStringMap properties() const;
|
|
|
|
|
2015-10-07 11:55:34 +11:00
|
|
|
void toSld( QDomDocument& doc, QDomElement &element, const QgsStringMap& props ) const;
|
|
|
|
void writeSldMarker( QDomDocument& doc, QDomElement &element, const QgsStringMap& props ) const;
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2016-04-12 01:25:28 +02:00
|
|
|
bool writeDxf( QgsDxfExport &e, double mmMapUnitScaleFactor, const QString &layerName, QgsSymbolV2RenderContext &context, QPointF shift = QPointF( 0.0, 0.0 ) ) const;
|
2014-01-26 18:35:21 +01:00
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
void setSymbolName( const QString& name );
|
|
|
|
QString symbolName() const;
|
|
|
|
|
|
|
|
void setSymbolWidth( double w );
|
|
|
|
double symbolWidth() const;
|
|
|
|
|
|
|
|
void setSymbolHeight( double h );
|
|
|
|
double symbolHeight() const;
|
|
|
|
|
2014-01-26 18:35:21 +01:00
|
|
|
Qt::PenStyle outlineStyle() const;
|
|
|
|
void setOutlineStyle( Qt::PenStyle outlineStyle );
|
|
|
|
|
2016-04-04 11:38:52 +07:00
|
|
|
/** Get outline join style.
|
|
|
|
* @note added in 2.16 */
|
|
|
|
Qt::PenJoinStyle penJoinStyle() const;
|
|
|
|
/** Set outline join style.
|
|
|
|
* @note added in 2.16 */
|
|
|
|
void setPenJoinStyle( Qt::PenJoinStyle style );
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
void setOutlineWidth( double w );
|
|
|
|
double outlineWidth() const;
|
|
|
|
|
|
|
|
void setFillColor( const QColor& c );
|
|
|
|
QColor fillColor() const;
|
|
|
|
|
|
|
|
void setOutlineColor( const QColor& c );
|
|
|
|
QColor outlineColor() const;
|
|
|
|
|
2016-07-26 09:24:14 +10:00
|
|
|
/** Sets the units for the symbol's width.
|
|
|
|
* @param unit symbol units
|
|
|
|
* @see symbolWidthUnit()
|
|
|
|
* @see setSymbolHeightUnit()
|
|
|
|
*/
|
2016-07-17 22:11:17 +10:00
|
|
|
void setSymbolWidthUnit( QgsUnitTypes::RenderUnit unit );
|
2016-07-26 09:24:14 +10:00
|
|
|
|
|
|
|
/** Returns the units for the symbol's width.
|
|
|
|
* @see setSymbolWidthUnit()
|
|
|
|
* @see symbolHeightUnit()
|
|
|
|
*/
|
2016-07-17 22:11:17 +10:00
|
|
|
QgsUnitTypes::RenderUnit symbolWidthUnit() const;
|
2014-05-07 19:02:11 +02:00
|
|
|
|
2014-04-06 21:14:02 +02:00
|
|
|
void setSymbolWidthMapUnitScale( const QgsMapUnitScale& scale);
|
|
|
|
const QgsMapUnitScale& symbolWidthMapUnitScale() const;
|
2013-04-19 15:20:44 +02:00
|
|
|
|
2016-07-18 09:42:45 +10:00
|
|
|
/** Sets the units for the symbol's height.
|
|
|
|
* @param unit symbol units
|
|
|
|
* @see symbolHeightUnit()
|
2016-07-26 09:24:14 +10:00
|
|
|
* @see setSymbolWidthUnit()
|
2016-07-18 09:42:45 +10:00
|
|
|
*/
|
2016-07-17 22:11:17 +10:00
|
|
|
void setSymbolHeightUnit( QgsUnitTypes::RenderUnit unit );
|
2016-07-18 09:42:45 +10:00
|
|
|
|
|
|
|
/** Returns the units for the symbol's height.
|
|
|
|
* @see setSymbolHeightUnit()
|
2016-07-26 09:24:14 +10:00
|
|
|
* @see symbolWidthUnit()
|
2016-07-18 09:42:45 +10:00
|
|
|
*/
|
2016-07-17 22:11:17 +10:00
|
|
|
QgsUnitTypes::RenderUnit symbolHeightUnit() const;
|
2014-05-07 19:02:11 +02:00
|
|
|
|
2014-04-06 21:14:02 +02:00
|
|
|
void setSymbolHeightMapUnitScale( const QgsMapUnitScale& scale);
|
|
|
|
const QgsMapUnitScale& symbolHeightMapUnitScale() const;
|
2013-04-19 15:20:44 +02:00
|
|
|
|
2016-07-18 09:42:45 +10:00
|
|
|
/** Sets the units for the symbol's outline width.
|
|
|
|
* @param unit symbol units
|
|
|
|
* @see outlineWidthUnit()
|
|
|
|
*/
|
2016-07-17 22:11:17 +10:00
|
|
|
void setOutlineWidthUnit( QgsUnitTypes::RenderUnit unit );
|
2016-07-18 09:42:45 +10:00
|
|
|
|
|
|
|
/** Returns the units for the symbol's outline width.
|
|
|
|
* @see setOutlineWidthUnit()
|
|
|
|
*/
|
2016-07-17 22:11:17 +10:00
|
|
|
QgsUnitTypes::RenderUnit outlineWidthUnit() const;
|
2014-05-07 19:02:11 +02:00
|
|
|
|
2014-04-06 21:14:02 +02:00
|
|
|
void setOutlineWidthMapUnitScale( const QgsMapUnitScale& scale);
|
|
|
|
const QgsMapUnitScale& outlineWidthMapUnitScale() const;
|
2013-04-19 15:20:44 +02:00
|
|
|
|
2016-07-17 22:11:17 +10:00
|
|
|
void setOutputUnit( QgsUnitTypes::RenderUnit unit );
|
|
|
|
QgsUnitTypes::RenderUnit outputUnit() const;
|
2014-05-07 19:02:11 +02:00
|
|
|
|
|
|
|
void setMapUnitScale( const QgsMapUnitScale& scale );
|
2014-04-06 21:14:02 +02:00
|
|
|
QgsMapUnitScale mapUnitScale() const;
|
2015-11-20 19:16:15 +11:00
|
|
|
|
2016-02-02 19:46:18 +11:00
|
|
|
QRectF bounds( QPointF point, QgsSymbolV2RenderContext& context );
|
2012-09-24 02:28:15 +02:00
|
|
|
};
|