QGIS/python/core/symbology-ng/qgspointdisplacementrenderer.sip
Juergen E. Fischer f3cb57b1eb SIP bindings update:
- update methods of existing classes
- add comment to methods missing in the sip bindings
- split up collective sip files into single files and use
  same directory structure in python/ as in src/
- add a lot of missing classes (some might not make sense because of
  missing python methods in those classes)
- remove some non-existing methods from the header files
- add scripts/sipdiff
- replace some usages of std::vector and std::set with QVector/QSet
2012-09-24 02:42:57 +02:00

69 lines
2.2 KiB
Plaintext

class QgsPointDisplacementRenderer : QgsFeatureRendererV2
{
%TypeHeaderCode
#include <qgspointdisplacementrenderer.h>
%End
public:
QgsPointDisplacementRenderer( const QString& labelAttributeName = "" );
~QgsPointDisplacementRenderer();
QgsFeatureRendererV2* clone() /Factory/;
virtual void toSld( QDomDocument& doc, QDomElement &element ) const;
/**Reimplemented from QgsFeatureRendererV2*/
bool renderFeature( QgsFeature& feature, QgsRenderContext& context, int layer = -1, bool selected = false, bool drawVertexMarker = false );
QgsSymbolV2* symbolForFeature( QgsFeature& feature );
void startRender( QgsRenderContext& context, const QgsVectorLayer *vlayer );
void stopRender( QgsRenderContext& context );
QList<QString> usedAttributes();
QgsSymbolV2List symbols();
//! create a renderer from XML element
static QgsFeatureRendererV2* create( QDomElement& symbologyElem );
QDomElement save( QDomDocument& doc );
QgsLegendSymbologyList legendSymbologyItems( QSize iconSize );
// QgsLegendSymbolList legendSymbolItems();
void setLabelAttributeName( const QString& name );
QString labelAttributeName() const;
/**Sets embedded renderer (takes ownership)*/
void setEmbeddedRenderer( QgsFeatureRendererV2* r );
QgsFeatureRendererV2* embeddedRenderer();
// void setDisplacementGroups( const QList<QMap<QgsFeatureId, QgsFeature> >& list );
void setLabelFont( const QFont& f );
QFont labelFont() const;
void setCircleWidth( double w );
double circleWidth() const;
void setCircleColor( const QColor& c );
QColor circleColor() const;
void setLabelColor( const QColor& c );
QColor labelColor() const;
void setCircleRadiusAddition( double d );
double circleRadiusAddition() const;
void setMaxLabelScaleDenominator( double d );
double maxLabelScaleDenominator() const;
/**Returns the symbol for the center of a displacement group (but _not_ ownership of the symbol)*/
QgsMarkerSymbolV2* centerSymbol();
/**Sets the center symbol (takes ownership)*/
void setCenterSymbol( QgsMarkerSymbolV2* symbol );
void setTolerance( double t );
double tolerance() const;
};