mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
- 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
64 lines
1.9 KiB
Plaintext
64 lines
1.9 KiB
Plaintext
class QgsSingleSymbolRendererV2 : QgsFeatureRendererV2
|
|
{
|
|
%TypeHeaderCode
|
|
#include <qgssinglesymbolrendererv2.h>
|
|
%End
|
|
public:
|
|
|
|
QgsSingleSymbolRendererV2( QgsSymbolV2* symbol /Transfer/ );
|
|
|
|
virtual ~QgsSingleSymbolRendererV2();
|
|
|
|
virtual QgsSymbolV2* symbolForFeature( QgsFeature& feature );
|
|
|
|
virtual void startRender( QgsRenderContext& context, const QgsVectorLayer *vlayer );
|
|
|
|
virtual void stopRender( QgsRenderContext& context );
|
|
|
|
virtual QList<QString> usedAttributes();
|
|
|
|
QgsSymbolV2* symbol() const;
|
|
void setSymbol( QgsSymbolV2* s /Transfer/ );
|
|
|
|
//! @note added in 1.5
|
|
void setRotationField( QString fieldName );
|
|
//! @note added in 1.5
|
|
QString rotationField() const;
|
|
|
|
//! @note added in 1.5
|
|
void setSizeScaleField( QString fieldName );
|
|
//! @note added in 1.5
|
|
QString sizeScaleField() const;
|
|
|
|
//! @note added in 2.0
|
|
void setScaleMethod( QgsSymbolV2::ScaleMethod scaleMethod );
|
|
//! @note added in 2.0
|
|
QgsSymbolV2::ScaleMethod scaleMethod() const;
|
|
|
|
virtual QString dump();
|
|
|
|
virtual QgsFeatureRendererV2* clone() /Factory/;
|
|
|
|
virtual void toSld( QDomDocument& doc, QDomElement &element ) const;
|
|
static QgsFeatureRendererV2* createFromSld( QDomElement& element, QGis::GeometryType geomType );
|
|
|
|
//! returns bitwise OR-ed capabilities of the renderer
|
|
//! \note added in 2.0
|
|
virtual int capabilities();
|
|
|
|
virtual QgsSymbolV2List symbols();
|
|
|
|
//! create renderer from XML element
|
|
static QgsFeatureRendererV2* create( QDomElement& element ) /Factory/;
|
|
|
|
//! store renderer info to XML element
|
|
virtual QDomElement save( QDomDocument& doc );
|
|
|
|
//! return a list of symbology items for the legend
|
|
virtual QgsLegendSymbologyList legendSymbologyItems( QSize iconSize );
|
|
|
|
//! return a list of item text / symbol
|
|
//! @note: this method was added in version 1.5
|
|
// virtual QgsLegendSymbolList legendSymbolItems();
|
|
};
|