#include <LayerList.h>

Public Member Functions | |
| virtual RasterElement * | getPrimaryRasterElement () const =0 |
| virtual bool | containsLayer (Layer *pLayer) const =0 |
| virtual Layer * | getLayer (const LayerType &layerType, const DataElement *pElement) const =0 |
| virtual Layer * | getLayer (const LayerType &layerType, const DataElement *pElement, const std::string &layerName) const =0 |
| virtual void | getLayers (LayerType layerType, std::vector< Layer * > &layers) const =0 |
| virtual void | getLayers (std::vector< Layer * > &layers) const =0 |
| virtual std::vector< Layer * > | getLayers () const =0 |
| virtual std::vector< Layer * > | getLayers (const LocationType &worldCoord) const =0 |
| virtual std::vector< Layer * > | getLayers (LayerType layerType) const =0 |
| virtual std::vector< Layer * > | getLayers (LayerType layerType, const LocationType &worldCoord) const =0 |
| virtual unsigned int | getNumLayers (LayerType layerType) const =0 |
| virtual unsigned int | getNumLayers () const =0 |
| virtual unsigned int | getNumLayers (const LocationType &worldCoord) const =0 |
| virtual unsigned int | getNumLayers (LayerType layerType, const LocationType &worldCoord) const =0 |
| virtual bool | renameLayer (Layer *pLayer) const =0 |
| virtual bool | renameLayer (Layer *pLayer, const std::string &newName) const =0 |
Static Public Member Functions | |
| static const std::string & | signalLayerAdded () |
| static const std::string & | signalLayerDeleted () |
Protected Member Functions | |
| virtual | ~LayerList () |
The layer list manages layers associated with a data set. The layer list is contained within a spatial data view to provide access to draw the layers.
This subclass of Subject will notify upon the following conditions:
Definition at line 39 of file LayerList.h.
| virtual LayerList::~LayerList | ( | ) | [protected, virtual] |
A plug-in cannot create this object, it can only retrieve an already existing object from SpatialDataView::getLayerList.
The SpatialDataView will manage any instances of this object.
Definition at line 310 of file LayerList.h.
| static const std::string& LayerList::signalLayerAdded | ( | ) | [static] |
| static const std::string& LayerList::signalLayerDeleted | ( | ) | [static] |
Emitted with boost::any<Layer*> when a layer is deleted from the list.
Definition at line 50 of file LayerList.h.
| virtual RasterElement* LayerList::getPrimaryRasterElement | ( | ) | const [pure virtual] |
Returns the primary RasterElement associated with the list.
| virtual bool LayerList::containsLayer | ( | Layer * | pLayer | ) | const [pure virtual] |
Queries whether the list contains a given layer.
| pLayer | The layer to query for its existence. Cannot be NULL. |
| virtual Layer* LayerList::getLayer | ( | const LayerType & | layerType, | |
| const DataElement * | pElement | |||
| ) | const [pure virtual] |
Retrieves a layer in the list.
| layerType | The layer type. | |
| pElement | The data element used as the basis for drawing the layer. |
| virtual Layer* LayerList::getLayer | ( | const LayerType & | layerType, | |
| const DataElement * | pElement, | |||
| const std::string & | layerName | |||
| ) | const [pure virtual] |
Retrieves a layer in the list.
| layerType | The layer type. | |
| pElement | The data element used as the basis for drawing the layer. If NULL is passed in, the layer with the given name and type is returned. | |
| layerName | The layer name. If the name is empty, the name of the data element is used. |
NULL is returned if a layer with the given parameters does not exist in the list.| virtual void LayerList::getLayers | ( | LayerType | layerType, | |
| std::vector< Layer * > & | layers | |||
| ) | const [pure virtual] |
Retrieves all layers of a given type in the list.
| layerType | The layer type. | |
| layers | A vector that is populated with pointers to the layers of the given type contained in the list. |
| virtual void LayerList::getLayers | ( | std::vector< Layer * > & | layers | ) | const [pure virtual] |
Retrieves all layers in the list.
| layers | A vector that is populated with pointers to all layers contained in the list. |
| virtual std::vector<Layer*> LayerList::getLayers | ( | ) | const [pure virtual] |
Retrieves all layers in the list.
| virtual std::vector<Layer*> LayerList::getLayers | ( | const LocationType & | worldCoord | ) | const [pure virtual] |
Retrieves all layers at a given pixel coordinate in the list.
| worldCoord | The pixel coordinate in world coordinates. |
Retrieves all layers of a given type in the list.
| layerType | The layer type. |
| virtual std::vector<Layer*> LayerList::getLayers | ( | LayerType | layerType, | |
| const LocationType & | worldCoord | |||
| ) | const [pure virtual] |
Retrieves all layers of a given type at a given pixel coordinate in the list.
| layerType | The layer type. | |
| worldCoord | The pixel coordinate in world coordinates. |
| virtual unsigned int LayerList::getNumLayers | ( | LayerType | layerType | ) | const [pure virtual] |
Returns the number of layers in the list of a given type.
| layerType | The layer type for which to get the number of layers contained in the list. |
| virtual unsigned int LayerList::getNumLayers | ( | ) | const [pure virtual] |
Returns the total number of layers in the list.
| virtual unsigned int LayerList::getNumLayers | ( | const LocationType & | worldCoord | ) | const [pure virtual] |
Returns the number of layers in the list at a given pixel coordinate.
| worldCoord | The pixel coordinate in world coordinates. |
| virtual unsigned int LayerList::getNumLayers | ( | LayerType | layerType, | |
| const LocationType & | worldCoord | |||
| ) | const [pure virtual] |
Returns the number of layers of a given type at a given pixel coordinate in the list.
| layerType | The layer type. | |
| worldCoord | The pixel coordinate in world coordinates. |
| virtual bool LayerList::renameLayer | ( | Layer * | pLayer | ) | const [pure virtual] |
Renames a layer to a user-defined name.
This method prompts the user to select a new layer name and renames the layer. The user selected name is guaranteed to be unique within the layer list for the layer type.
| pLayer | The layer to rename, which must be contained within the layer list. This method does nothing and returns false if NULL is passed in. |
true if the layer was successfully renamed. Returns false if the layer does not exist in the layer list or if the user cancels the dialog to select a new name.| virtual bool LayerList::renameLayer | ( | Layer * | pLayer, | |
| const std::string & | newName | |||
| ) | const [pure virtual] |
Renames a layer to a given name.
| pLayer | The layer to rename, which must be contained within the layer list. This method does nothing and returns false if NULL is passed in. | |
| newName | The new name for the layer, which must be unique within the layer list for the layer type. This method does nothing and returns false if an empty string is passed in. |
true if the layer was successfully renamed. Returns false if another layer of the same type in the layer list already has the given name.