71 QgsDebugMsg(
"QgsPluginLayerRegistry::~QgsPluginLayerRegistry(): creator list not empty" );
109 QStringList() << layer->
id() );
129 QgsDebugMsg(
"Unknown plugin layer type: " + typeName );
QgsPluginLayerType * pluginLayerType(QString typeName)
return plugin layer type metadata or NULL if doesn't exist
Base class for all map layer types.
QgsPluginLayer * createLayer(QString typeName)
return new layer if corresponding plugin has been found, else return NULL
QgsMapLayer::LayerType type() const
Get the type of the layer.
a registry of plugin layers types
Base class for plugin layers.
QgsPluginLayerType(QString name)
virtual QgsPluginLayer * createLayer()
return new layer of this type.
bool addPluginLayerType(QgsPluginLayerType *pluginLayerType)
add plugin layer type (take ownership) and return true on success
~QgsPluginLayerRegistry()
virtual ~QgsPluginLayerType()
QString id() const
Get this layer's unique ID, this ID is used to access this layer from map layer registry.
QString pluginLayerType()
return plugin layer type (the same as used in QgsPluginLayerRegistry)
static QgsPluginLayerRegistry * _instance
pointer to canonical Singleton object
virtual bool showLayerProperties(QgsPluginLayer *layer)
show plugin layer properties dialog.
bool removePluginLayerType(QString typeName)
remove plugin layer type and return true on success
QgsPluginLayerRegistry()
private since instance() creates it
static QgsMapLayerRegistry * instance()
Returns the instance pointer, creating the object on the first call.
QStringList pluginLayerTypes()
list all known layer types
void removeMapLayers(QStringList theLayerIds)
Remove a set of layers from the registry.
const QMap< QString, QgsMapLayer * > & mapLayers()
Retrieve the mapLayers collection (mainly intended for use by projection)
static QgsPluginLayerRegistry * instance()
means of accessing canonical single instance
PluginLayerTypes mPluginLayerTypes
class for creating plugin specific layers