129 if (
mRenderers.
value( renderer )->compatibleLayerTypes() & layerTypes )
130 renderers << renderer;
static QgsRendererV2Registry * instance()
Returns a pointer to the QgsRendererV2Registry singleton.
bool contains(const Key &key) const
static QgsFeatureRendererV2 * create(QDomElement &element)
static QgsFeatureRendererV2 * create(QDomElement &element)
static QgsFeatureRendererV2 * create(QDomElement &symbologyElem)
create a renderer from XML element
QMap< QString, QgsRendererV2AbstractMetadata * > mRenderers
Map of name to renderer.
static QgsFeatureRendererV2 * create(QDomElement &element)
Create a new 2.5D renderer from XML.
static QgsFeatureRendererV2 * createFromSld(QDomElement &element, QGis::GeometryType geomType)
static QgsFeatureRendererV2 * createFromSld(QDomElement &element, QGis::GeometryType geomType)
bool removeRenderer(const QString &rendererName)
Removes a renderer from registry.
QString tr(const char *sourceText, const char *disambiguation, int n)
QgsRendererV2AbstractMetadata * rendererMetadata(const QString &rendererName)
Returns the metadata for a specified renderer.
static QgsFeatureRendererV2 * create(QDomElement &element)
create renderer from XML element
static QgsFeatureRendererV2 * create(QDomElement &element)
Creates a null renderer from XML element.
int removeAll(const T &value)
bool addRenderer(QgsRendererV2AbstractMetadata *metadata)
Adds a renderer to the registry.
QGis::GeometryType geometryType() const
Returns point, line or polygon.
QgsRendererV2Registry()
protected constructor
static QgsFeatureRendererV2 * create(QDomElement &element)
create renderer from XML element
static QgsFeatureRendererV2 * create(QDomElement &element)
create renderer from XML element
QStringList renderersList(QgsRendererV2AbstractMetadata::LayerTypes layerTypes=QgsRendererV2AbstractMetadata::All) const
Returns a list of available renderers.
static QgsFeatureRendererV2 * create(QDomElement &element)
Creates a renderer out of an XML, for loading.
QStringList mRenderersOrder
List of renderers, maintained in the order that they have been added.
Represents a vector layer which manages a vector based data sets.
const T value(const Key &key) const
int remove(const Key &key)