mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
139 lines
4.1 KiB
Plaintext
139 lines
4.1 KiB
Plaintext
|
class QgsSimpleMarkerSymbolLayerV2 : QgsMarkerSymbolLayerV2
|
||
|
{
|
||
|
%TypeHeaderCode
|
||
|
#include <qgssymbollayerv2.h>
|
||
|
%End
|
||
|
|
||
|
public:
|
||
|
QgsSimpleMarkerSymbolLayerV2( QString name = DEFAULT_SIMPLEMARKER_NAME,
|
||
|
QColor color = DEFAULT_SIMPLEMARKER_COLOR,
|
||
|
QColor borderColor = DEFAULT_SIMPLEMARKER_BORDERCOLOR,
|
||
|
double size = DEFAULT_SIMPLEMARKER_SIZE,
|
||
|
double angle = DEFAULT_SIMPLEMARKER_ANGLE,
|
||
|
QgsSymbolV2::ScaleMethod scaleMethod = DEFAULT_SCALE_METHOD );
|
||
|
|
||
|
// static stuff
|
||
|
|
||
|
static QgsSymbolLayerV2* create( const QgsStringMap& properties = QgsStringMap() ) /Factory/;
|
||
|
static QgsSymbolLayerV2* createFromSld( QDomElement &element ) /Factory/;
|
||
|
|
||
|
// implemented from base classes
|
||
|
|
||
|
QString layerType() const;
|
||
|
|
||
|
void startRender( QgsSymbolV2RenderContext& context );
|
||
|
|
||
|
void stopRender( QgsSymbolV2RenderContext& context );
|
||
|
|
||
|
void renderPoint( const QPointF& point, QgsSymbolV2RenderContext& context );
|
||
|
|
||
|
QgsStringMap properties() const;
|
||
|
|
||
|
QgsSymbolLayerV2* clone() const /Factory/;
|
||
|
|
||
|
void writeSldMarker( QDomDocument &doc, QDomElement &element, QgsStringMap props ) const;
|
||
|
|
||
|
QString name() const;
|
||
|
void setName( QString name );
|
||
|
|
||
|
QColor borderColor() const;
|
||
|
void setBorderColor( QColor color );
|
||
|
|
||
|
protected:
|
||
|
|
||
|
void drawMarker( QPainter* p, QgsSymbolV2RenderContext& context );
|
||
|
|
||
|
bool prepareShape();
|
||
|
bool preparePath();
|
||
|
|
||
|
void prepareCache( QgsSymbolV2RenderContext& context );
|
||
|
};
|
||
|
|
||
|
class QgsSvgMarkerSymbolLayerV2 : QgsMarkerSymbolLayerV2
|
||
|
{
|
||
|
%TypeHeaderCode
|
||
|
#include <qgsmarkersymbollayerv2.h>
|
||
|
%End
|
||
|
|
||
|
public:
|
||
|
QgsSvgMarkerSymbolLayerV2( QString name = DEFAULT_SVGMARKER_NAME,
|
||
|
double size = DEFAULT_SVGMARKER_SIZE,
|
||
|
double angle = DEFAULT_SVGMARKER_ANGLE );
|
||
|
|
||
|
// static stuff
|
||
|
|
||
|
static QgsSymbolLayerV2* create( const QgsStringMap& properties = QgsStringMap() ) /Factory/;
|
||
|
static QgsSymbolLayerV2* createFromSld( QDomElement &element ) /Factory/;
|
||
|
|
||
|
// implemented from base classes
|
||
|
|
||
|
QString layerType() const;
|
||
|
|
||
|
void startRender( QgsSymbolV2RenderContext& context );
|
||
|
|
||
|
void stopRender( QgsSymbolV2RenderContext& context );
|
||
|
|
||
|
void renderPoint( const QPointF& point, QgsSymbolV2RenderContext& context );
|
||
|
|
||
|
QgsStringMap properties() const;
|
||
|
|
||
|
QgsSymbolLayerV2* clone() const /Factory/;
|
||
|
|
||
|
void writeSldMarker( QDomDocument &doc, QDomElement &element, QgsStringMap props ) const;
|
||
|
|
||
|
QString path() const;
|
||
|
void setPath( QString path );
|
||
|
|
||
|
QColor fillColor() const;
|
||
|
void setFillColor( const QColor& c );
|
||
|
|
||
|
QColor outlineColor() const;
|
||
|
void setOutlineColor( const QColor& c );
|
||
|
|
||
|
double outlineWidth() const;
|
||
|
void setOutlineWidth( double w );
|
||
|
};
|
||
|
|
||
|
class QgsFontMarkerSymbolLayerV2 : QgsMarkerSymbolLayerV2
|
||
|
{
|
||
|
%TypeHeaderCode
|
||
|
#include <qgsmarkersymbollayerv2.h>
|
||
|
%End
|
||
|
|
||
|
public:
|
||
|
QgsFontMarkerSymbolLayerV2( QString fontFamily = DEFAULT_FONTMARKER_FONT,
|
||
|
QChar chr = DEFAULT_FONTMARKER_CHR,
|
||
|
double pointSize = DEFAULT_FONTMARKER_SIZE,
|
||
|
QColor color = DEFAULT_FONTMARKER_COLOR,
|
||
|
double angle = DEFAULT_FONTMARKER_ANGLE );
|
||
|
|
||
|
// static stuff
|
||
|
|
||
|
static QgsSymbolLayerV2* create( const QgsStringMap& properties = QgsStringMap() ) /Factory/;
|
||
|
static QgsSymbolLayerV2* createFromSld( QDomElement &element ) /Factory/;
|
||
|
|
||
|
// implemented from base classes
|
||
|
|
||
|
QString layerType() const;
|
||
|
|
||
|
void startRender( QgsSymbolV2RenderContext& context );
|
||
|
|
||
|
void stopRender( QgsSymbolV2RenderContext& context );
|
||
|
|
||
|
void renderPoint( const QPointF& point, QgsSymbolV2RenderContext& context );
|
||
|
|
||
|
QgsStringMap properties() const;
|
||
|
|
||
|
QgsSymbolLayerV2* clone() const /Factory/;
|
||
|
|
||
|
void writeSldMarker( QDomDocument &doc, QDomElement &element, QgsStringMap props ) const;
|
||
|
|
||
|
// new methods
|
||
|
|
||
|
QString fontFamily() const;
|
||
|
void setFontFamily( QString family );
|
||
|
|
||
|
QChar character() const;
|
||
|
void setCharacter( QChar ch );
|
||
|
};
|