/usr/include/qgis/qgssinglesymbolrendererv2.h is in libqgis-dev 1.7.4+1.7.5~20120320-1.1+b1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | #ifndef QGSSINGLESYMBOLRENDERERV2_H
#define QGSSINGLESYMBOLRENDERERV2_H
#include "qgsrendererv2.h"
class CORE_EXPORT QgsSingleSymbolRendererV2 : public QgsFeatureRendererV2
{
public:
QgsSingleSymbolRendererV2( QgsSymbolV2* symbol );
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 );
//! @note added in 1.5
void setRotationField( QString fieldName ) { mRotationField = fieldName; }
//! @note added in 1.5
QString rotationField() const { return mRotationField; }
//! @note added in 1.5
void setSizeScaleField( QString fieldName ) { mSizeScaleField = fieldName; }
//! @note added in 1.5
QString sizeScaleField() const { return mSizeScaleField; }
virtual QString dump();
virtual QgsFeatureRendererV2* clone();
virtual QgsSymbolV2List symbols();
//! create renderer from XML element
static QgsFeatureRendererV2* create( QDomElement& element );
//! 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();
protected:
QgsSymbolV2* mSymbol;
QString mRotationField;
QString mSizeScaleField;
// temporary stuff for rendering
int mRotationFieldIdx, mSizeScaleFieldIdx;
QgsSymbolV2* mTempSymbol;
double mOrigSize;
};
#endif // QGSSINGLESYMBOLRENDERERV2_H
|