A layer with reference to a raster. More...
#include <RasterLayer.h>
Public Types | |
typedef std::list< TreeItemPtr >::const_iterator | const_iterator |
typedef std::list< TreeItemPtr >::iterator | iterator |
Public Member Functions | |
void | add (const TreeItemPtr &childItem) |
It adds (appends) the item to the end of the children's list. More... | |
void | attach () |
Increases the number of references to this object. More... | |
const_iterator | begin () const |
It returns the constant iterator associated to the first child of this item. More... | |
iterator | begin () |
It returns the iterator associated to the first child of this item. More... | |
virtual void | clearSelected () |
It clears the selected group of this Layer. More... | |
virtual void | deselect (const te::da::ObjectIdSet *oids) |
It removes the given oids from the selected group of this Layer. More... | |
void | detach () |
Decreases the number of references to this object. Destroy it if there are no more references to it. More... | |
void | disconnect () |
It disconnects this item from its parent, if it has one. More... | |
void | draw (Canvas *canvas, const te::gm::Envelope &bbox, int srid, const double &scale, bool *cancel) |
It draws the layer geographic objects in the given canvas using the informed SRS. More... | |
const_iterator | end () const |
It returns the constant iterator that refers to one past the end of the children of this item. More... | |
iterator | end () |
It returns the iterator that refers to one past the children of this item. More... | |
std::vector< te::map::AbstractLayer * > | getAncestors () |
It returns a list with the ancestors of this layer. More... | |
virtual te::map::Chart * | getChart () const |
It returns the Chart associated to the Layer. More... | |
const TreeItemPtr & | getChild (std::size_t i) const |
It returns the n-th child. More... | |
const std::list< TreeItemPtr > & | getChildren () const |
It returns the children of this tree item. More... | |
std::size_t | getChildrenCount () const |
It returns the number of children of this node. More... | |
te::map::CompositionMode | getCompositionMode () const |
It returns the composition mode. More... | |
std::auto_ptr< te::da::DataSet > | getData (te::common::TraverseType travType=te::common::FORWARDONLY, const te::common::AccessPolicy accessPolicy=te::common::RAccess) const |
It gets the dataset identified by the layer name. More... | |
std::auto_ptr< te::da::DataSet > | getData (const std::string &, const te::gm::Envelope *, te::gm::SpatialRelation=te::gm::INTERSECTS, te::common::TraverseType=te::common::FORWARDONLY, const te::common::AccessPolicy accessPolicy=te::common::RAccess) const |
It gets the dataset identified by the layer name using a spatial filter over the specified property. More... | |
std::auto_ptr< te::da::DataSet > | getData (const std::string &, const te::gm::Geometry *, te::gm::SpatialRelation, te::common::TraverseType=te::common::FORWARDONLY, const te::common::AccessPolicy accessPolicy=te::common::RAccess) const |
It gets the dataset identified by the layer name using a spatial filter over the given geometric property. More... | |
std::auto_ptr< te::da::DataSet > | getData (te::da::Expression *, te::common::TraverseType=te::common::FORWARDONLY, const te::common::AccessPolicy accessPolicy=te::common::RAccess) const |
It gets the dataset identified by the layer name using the given restriction. More... | |
std::auto_ptr< te::da::DataSet > | getData (const te::da::ObjectIdSet *, te::common::TraverseType=te::common::FORWARDONLY, const te::common::AccessPolicy accessPolicy=te::common::RAccess) const |
It gets the dataset from the given set of objects identification. More... | |
const std::string & | getDataSetName () const |
virtual const std::string & | getDataSourceId () const |
std::vector< te::map::AbstractLayer * > | getDescendants () |
It returns a list with the descendants of this layer. More... | |
void | getDescendantsCount (std::size_t &count) const |
It returns the number of nodes that descends from this node. More... | |
te::core::EncodingType | getEncoding () const |
It returns the encoding type. More... | |
virtual const te::gm::Envelope & | getExtent () const |
It returns the Layer extent (or minimum bounding box). More... | |
virtual const std::string & | getGeomPropertyName () const |
virtual te::map::Grouping * | getGrouping () const |
It returns the Grouping associated to the Layer. More... | |
virtual const std::string & | getId () const |
It returns the layer id. More... | |
std::size_t | getIndex () const |
It returns the index of this item in the list of children of its parent item. More... | |
TreeItem * | getParent () const |
It returns a pointer to the parent of this node. More... | |
te::rst::Raster * | getRaster () const |
std::map< std::string, std::string > | getRasterInfo () const |
const std::string & | getRendererType () const |
std::auto_ptr< LayerSchema > | getSchema () const |
It returns the layer schema. More... | |
virtual const te::da::ObjectIdSet * | getSelected () const |
It returns the selected group of this Layer. More... | |
virtual te::se::Style * | getSelectionStyle () const |
It returns the selection Style associated to the layer. More... | |
virtual int | getSRID () const |
It returns the Spatial Reference System ID associated to the Layer. More... | |
virtual te::se::Style * | getStyle () const |
It returns the Style associated to the layer. More... | |
virtual const std::string & | getTitle () const |
It returns the layer title. More... | |
const std::string & | getType () const |
It returns the layer type: RASTER_LAYER. More... | |
virtual Visibility | getVisibility () const |
It returns the layer visibility. More... | |
bool | hasChildren () const |
It returns true if the item has descendants. More... | |
bool | hasVisibilityChanged () |
It gets the flag that indicates if the layer visibility has changed. More... | |
void | insert (std::size_t i, const TreeItemPtr &childItem) |
It inserts an item in the informed position. More... | |
bool | isSibling (const TreeItem *item) const |
It checks if the given layer is sibling of this one. More... | |
bool | isValid () const |
It returns true if the layer can be used for instance to draw, otherwise, it returns false. More... | |
const TreeItemPtr & | operator[] (std::size_t i) const |
It returns the n-th child. More... | |
RasterLayer (AbstractLayer *parent=0) | |
It initializes a new layer. More... | |
RasterLayer (const std::string &id, AbstractLayer *parent=0) | |
It initializes a new layer. More... | |
RasterLayer (const std::string &id, const std::string &title, AbstractLayer *parent=0) | |
It initializes a new Layer. More... | |
int | refCount () |
Returns the number of references to this object. More... | |
TreeItemPtr | remove (std::size_t i) |
It removes the i-th child. More... | |
std::list< TreeItemPtr > | remove (std::size_t i, std::size_t count) |
It removes from the given position a certain number of items as children of this item. The items to be removed will be disconnected from this item. More... | |
TreeItemPtr | replace (std::size_t i, const TreeItemPtr &childItem) |
It replaces the child item at the given position by the new one. The replaced item will be disconnected from this item. More... | |
virtual void | select (te::da::ObjectIdSet *oids) |
It adds the given oids to the selected group of this Layer. More... | |
virtual void | setChart (te::map::Chart *chart) |
It sets the Chart associated to the Layer. More... | |
void | setCompositionMode (te::map::CompositionMode mode) |
It sets the composition mode. More... | |
void | setDataSetName (const std::string &name) |
virtual void | setDataSourceId (const std::string &id) |
void | setEncoding (te::core::EncodingType et) |
It set the encoding type. More... | |
virtual void | setExtent (const te::gm::Envelope &mbr) |
It sets the Layer extent (or minimum bounding box). More... | |
virtual void | setGeomPropertytName (const std::string &name) |
virtual void | setGrouping (te::map::Grouping *grouping) |
It sets the Grouping associated to the Layer. More... | |
virtual void | setId (const std::string &id) |
It sets the layer id. More... | |
virtual void | setOutOfDate () |
Its indicate that the layer schema is out of date. More... | |
void | setRasterInfo (const std::map< std::string, std::string > &rinfo) |
void | setRendererType (const std::string &t) |
virtual void | setSelectionStyle (te::se::Style *style) |
It sets the selection Style associated to the layer. More... | |
virtual void | setSRID (int srid) |
It sets the Spatial Reference System ID associated to the Layer. More... | |
virtual void | setStyle (te::se::Style *style) |
It sets the Style associated to the layer. More... | |
virtual void | setTitle (const std::string &title) |
It sets the layer title. More... | |
virtual void | setVisibility (Visibility v) |
It sets the layer visibility. More... | |
void | setVisibilityAsChanged (bool visChanged) |
It sets that the status of the layer visibility is to be changed or not.. More... | |
void | swap (const TreeItemPtr &firstChild, const TreeItemPtr &secondChild) |
It swaps the position of the given children. More... | |
void | swap (const TreeItemPtr &sibling) |
It swaps this item with its sibling in their parent node. More... | |
virtual void | updateVisibility () |
It updates the visibility of this layer. More... | |
void | updateVisibilityOfAncestors () |
It updates the visibility of the ancestors of this layer, if any. More... | |
~RasterLayer () | |
Destructor. More... | |
Static Public Attributes | |
static const std::size_t | npos |
A value to indicate no match. More... | |
Protected Member Functions | |
void | setParent (TreeItem *parent) |
It sets the parent of this item to the specified one. Don't use this method if you are not sure how to handle all the pointers involved in this operation. More... | |
Protected Attributes | |
te::map::Chart * | m_chart |
The chart information. More... | |
std::list< TreeItemPtr > | m_children |
Pointers to the items that are children. More... | |
te::map::CompositionMode | m_compositionMode |
The composition mode used to merged the canvas. More... | |
std::string | m_datasetName |
The dataset name where we will retrieve the layer objects. More... | |
std::string | m_datasourceId |
DataSource id. More... | |
te::core::EncodingType | m_encoding |
The char encoding of the layer;. More... | |
std::string | m_geomPropertyName |
The name of the referenced geometry property. More... | |
te::map::Grouping * | m_grouping |
The grouping information. More... | |
std::string | m_id |
Layer id. More... | |
te::gm::Envelope | m_mbr |
The layer bounding box. More... | |
TreeItem * | m_parent |
A pointer to the parent node. More... | |
te::da::ObjectIdSet * | m_selected |
The selected group of the layer. More... | |
te::se::Style * | m_selectionStyle |
The selection style to be applied to the geographic objects in the layer. More... | |
int | m_srid |
The identifier of the layer spatial reference system. More... | |
te::se::Style * | m_style |
The style to be applied to the geographic objects in the layer. More... | |
std::string | m_title |
A brief description of this Layer that can be used by applications to show a text identifying this layer. More... | |
Visibility | m_visibility |
It indicates the layer visibility. More... | |
bool | m_visibilityChanged |
It indicates if the layer visibility has changed. More... | |
Private Attributes | |
std::string | m_rendererType |
A pointer to the internal renderer used to paint this layer. More... | |
std::map< std::string, std::string > | m_rinfo |
A raster connection info. More... | |
Static Private Attributes | |
static const std::string | sm_type |
A static data member used in the implementation of getType method. More... | |
A layer with reference to a raster.
Definition at line 52 of file RasterLayer.h.
|
inherited |
Definition at line 67 of file TreeItem.h.
|
inherited |
Definition at line 66 of file TreeItem.h.
te::map::RasterLayer::RasterLayer | ( | AbstractLayer * | parent = 0 | ) |
It initializes a new layer.
parent | The parent layer (NULL if it has no parent). |
te::map::RasterLayer::RasterLayer | ( | const std::string & | id, |
AbstractLayer * | parent = 0 |
||
) |
It initializes a new layer.
id | The layer id. |
parent | The parent layer (NULL if it has no parent). |
te::map::RasterLayer::RasterLayer | ( | const std::string & | id, |
const std::string & | title, | ||
AbstractLayer * | parent = 0 |
||
) |
It initializes a new Layer.
id | The layer id. |
title | The title is a brief description about the layer. |
parent | The parent layer (NULL if it has no parent). |
te::map::RasterLayer::~RasterLayer | ( | ) |
Destructor.
|
inherited |
It adds (appends) the item to the end of the children's list.
If the child item already has a parent, it will be disconnected from it and will be attached to this one.
childItem | The item to be added as a child of this item. |
The children's list will be increased with one element.
|
inlineinherited |
Increases the number of references to this object.
Definition at line 88 of file Counted.h.
References te::common::Counted::m_refCount.
Referenced by te::common::intrusive_ptr_add_ref().
|
inherited |
It returns the constant iterator associated to the first child of this item.
|
inherited |
It returns the iterator associated to the first child of this item.
|
virtualinherited |
It clears the selected group of this Layer.
|
virtualinherited |
It removes the given oids from the selected group of this Layer.
oids | The oids that will be removed. |
|
inlineinherited |
Decreases the number of references to this object. Destroy it if there are no more references to it.
Definition at line 93 of file Counted.h.
References te::common::Counted::m_refCount.
Referenced by te::common::intrusive_ptr_release().
|
inherited |
It disconnects this item from its parent, if it has one.
|
virtual |
It draws the layer geographic objects in the given canvas using the informed SRS.
The informed bounding box can be used to constraint the layer objects to be drawn.
The bbox coordinates must be in the same Spatial Reference System given by srid.
canvas | The canvas were the layer objects will be drawn. |
bbox | The interest area to render the map. |
srid | The SRS to be used to draw the layer objects. |
scale | The current scale of display. |
Implements te::map::AbstractLayer.
|
inherited |
It returns the constant iterator that refers to one past the end of the children of this item.
|
inherited |
It returns the iterator that refers to one past the children of this item.
|
inherited |
It returns a list with the ancestors of this layer.
|
virtualinherited |
|
inherited |
It returns the n-th child.
i | The child index. |
|
inherited |
It returns the children of this tree item.
|
inherited |
It returns the number of children of this node.
|
inherited |
It returns the composition mode.
Composition modes are used to specify how the pixels in one image, the source, are merged with the pixel in another image, the destination.
|
virtual |
It gets the dataset identified by the layer name.
travType | The traverse type associated to the returned dataset. |
accessPolicy | Access policy. |
Exception | It can throws an exception if:
|
Implements te::map::AbstractLayer.
|
virtual |
It gets the dataset identified by the layer name using a spatial filter over the specified property.
propertyName | The name of the spatial property used to apply the spatial filter. |
e | A rectangle to be used as a spatial filter when retrieving datasets. |
r | The spatial relation to be used during the filter. |
travType | The traverse type associated to the returned dataset. |
accessPolicy | Access policy. |
Exception | It can throws an exception if:
|
Implements te::map::AbstractLayer.
|
virtual |
It gets the dataset identified by the layer name using a spatial filter over the given geometric property.
propertyName | The name of the spatial property used to apply the spatial filter. |
g | A geometry to be used as a spatial filter when retrieving datasets. |
r | The spatial relation to be used during the filter. |
travType | The traverse type associated to the returned dataset. |
accessPolicy | Access policy. |
Exception | It can throws an exception if:
|
Implements te::map::AbstractLayer.
|
virtual |
It gets the dataset identified by the layer name using the given restriction.
restriction | The restriction expression that will be used. |
travType | The traverse type associated to the returned dataset. |
accessPolicy | Access policy. |
Exception | It can throws an exception if:
|
Implements te::map::AbstractLayer.
|
virtual |
It gets the dataset from the given set of objects identification.
oids | The set of object ids. |
travType | The traverse type associated to the returned dataset. |
accessPolicy | Access policy. |
Exception | It can throws an exception if:
|
Implements te::map::AbstractLayer.
|
inherited |
|
virtualinherited |
Reimplemented in te::st::TrajectoryDataSetLayer, te::st::TimeSeriesDataSetLayer, te::st::ObservationDataSetLayer, and te::ws::ogc::wms::WMSLayer.
|
inherited |
It returns a list with the descendants of this layer.
|
inherited |
It returns the number of nodes that descends from this node.
count | The number of nodes that descends from this node. |
|
inherited |
It returns the encoding type.
Char enconding is used to inform to data source how to load string information from data.
|
virtualinherited |
It returns the Layer extent (or minimum bounding box).
|
virtualinherited |
|
virtualinherited |
|
virtualinherited |
It returns the layer id.
|
inherited |
It returns the index of this item in the list of children of its parent item.
|
inherited |
It returns a pointer to the parent of this node.
te::rst::Raster* te::map::RasterLayer::getRaster | ( | ) | const |
std::map<std::string, std::string> te::map::RasterLayer::getRasterInfo | ( | ) | const |
const std::string& te::map::RasterLayer::getRendererType | ( | ) | const |
|
virtual |
It returns the layer schema.
Implements te::map::AbstractLayer.
|
virtualinherited |
It returns the selected group of this Layer.
The selected group of this Layer.
|
virtualinherited |
It returns the selection Style associated to the layer.
|
virtualinherited |
It returns the Spatial Reference System ID associated to the Layer.
|
virtualinherited |
It returns the Style associated to the layer.
|
virtualinherited |
It returns the layer title.
|
virtual |
It returns the layer type: RASTER_LAYER.
Implements te::map::AbstractLayer.
|
virtualinherited |
It returns the layer visibility.
This information can be used, for instance, to know if the layer must be drawn.
|
inherited |
It returns true if the item has descendants.
|
inherited |
It gets the flag that indicates if the layer visibility has changed.
|
inherited |
It inserts an item in the informed position.
If the item has a parent, it will be disconnected from it and will be attached to this one.
i | The position where the item will be inserted. |
item | The item to be inserted. |
The children's list will be increased with one element.
|
inherited |
It checks if the given layer is sibling of this one.
layer | The layer to be compared to. |
|
virtual |
It returns true if the layer can be used for instance to draw, otherwise, it returns false.
This method can be used to check if the data referenced by the layer is available (accessible), or not.
Implements te::map::AbstractLayer.
|
inherited |
It returns the n-th child.
i | The child index. |
|
inlineinherited |
Returns the number of references to this object.
Definition at line 99 of file Counted.h.
References te::common::Counted::m_refCount.
|
inherited |
It removes the i-th child.
i | The position of the item to be removed. |
The children's list will be decreased by one element.
|
inherited |
It removes from the given position a certain number of items as children of this item. The items to be removed will be disconnected from this item.
i | The position from where the items will be removed. |
count | The number of items to be removed (> 0). |
|
inherited |
It replaces the child item at the given position by the new one. The replaced item will be disconnected from this item.
i | The item position where the replace operation will be taken. |
childItem | The new child item that will replace the item in the i-th position. |
|
virtualinherited |
It adds the given oids to the selected group of this Layer.
oids | The oids that will be added. |
|
virtualinherited |
|
inherited |
It sets the composition mode.
Composition modes are used to specify how the pixels in one image, the source, are merged with the pixel in another image, the destination.
mode | The composition mode enum. |
|
inherited |
name |
|
virtualinherited |
id |
Reimplemented in te::ws::ogc::wms::WMSLayer.
|
inherited |
It set the encoding type.
Char enconding is used to inform to data source how to load string information from data.
The | encoding type. |
|
virtualinherited |
It sets the Layer extent (or minimum bounding box).
mbr | The Layer extent (or minimum bounding box). |
|
virtualinherited |
name |
|
virtualinherited |
|
virtualinherited |
It sets the layer id.
id | The layer id. |
|
virtualinherited |
Its indicate that the layer schema is out of date.
Reimplemented in te::map::DataSetLayer.
|
protectedinherited |
It sets the parent of this item to the specified one. Don't use this method if you are not sure how to handle all the pointers involved in this operation.
parent | The item to be set as parent of this item. |
void te::map::RasterLayer::setRasterInfo | ( | const std::map< std::string, std::string > & | rinfo | ) |
rinfo | Map of string for raster connection info. |
void te::map::RasterLayer::setRendererType | ( | const std::string & | t | ) |
t |
|
virtualinherited |
It sets the selection Style associated to the layer.
style | The Style associated to the layer. |
|
virtualinherited |
It sets the Spatial Reference System ID associated to the Layer.
srid | The Spatial Reference System ID to be associated to the Layer. |
Reimplemented in te::map::DataSetLayer.
|
virtualinherited |
It sets the Style associated to the layer.
style | The Style associated to the layer. |
|
virtualinherited |
It sets the layer title.
title | The layer title. |
|
virtualinherited |
It sets the layer visibility.
This information can be used, for instance, to know if the layer must be drawn.
v | The layer visibility. |
Reimplemented in te::map::FolderLayer.
|
inherited |
It sets that the status of the layer visibility is to be changed or not..
visChanged | If true, the status of the layer visibility is to be changed; otherwise, it returns false. |
|
inherited |
It swaps the position of the given children.
firstChild | One of the children. |
secondChild | The other child. |
|
inherited |
It swaps this item with its sibling in their parent node.
sibling | The sibling to swap. |
|
virtualinherited |
It updates the visibility of this layer.
Reimplemented in te::map::FolderLayer.
|
inherited |
It updates the visibility of the ancestors of this layer, if any.
|
protectedinherited |
The chart information.
Definition at line 583 of file AbstractLayer.h.
|
protectedinherited |
Pointers to the items that are children.
Definition at line 290 of file TreeItem.h.
|
protectedinherited |
The composition mode used to merged the canvas.
Definition at line 585 of file AbstractLayer.h.
|
protectedinherited |
The dataset name where we will retrieve the layer objects.
Definition at line 586 of file AbstractLayer.h.
|
protectedinherited |
DataSource id.
Definition at line 587 of file AbstractLayer.h.
|
protectedinherited |
The char encoding of the layer;.
Definition at line 588 of file AbstractLayer.h.
|
protectedinherited |
The name of the referenced geometry property.
Definition at line 584 of file AbstractLayer.h.
|
protectedinherited |
The grouping information.
Definition at line 582 of file AbstractLayer.h.
|
protectedinherited |
Layer id.
Definition at line 573 of file AbstractLayer.h.
|
protectedinherited |
The layer bounding box.
Definition at line 575 of file AbstractLayer.h.
|
protectedinherited |
A pointer to the parent node.
Definition at line 289 of file TreeItem.h.
|
private |
A pointer to the internal renderer used to paint this layer.
Definition at line 158 of file RasterLayer.h.
|
private |
A raster connection info.
Definition at line 159 of file RasterLayer.h.
|
protectedinherited |
The selected group of the layer.
Definition at line 579 of file AbstractLayer.h.
|
protectedinherited |
The selection style to be applied to the geographic objects in the layer.
Definition at line 581 of file AbstractLayer.h.
|
protectedinherited |
The identifier of the layer spatial reference system.
Definition at line 576 of file AbstractLayer.h.
|
protectedinherited |
The style to be applied to the geographic objects in the layer.
Definition at line 580 of file AbstractLayer.h.
|
protectedinherited |
A brief description of this Layer that can be used by applications to show a text identifying this layer.
Definition at line 574 of file AbstractLayer.h.
|
protectedinherited |
It indicates the layer visibility.
Definition at line 577 of file AbstractLayer.h.
|
protectedinherited |
It indicates if the layer visibility has changed.
Definition at line 578 of file AbstractLayer.h.
|
staticinherited |
A value to indicate no match.
Definition at line 285 of file TreeItem.h.
|
staticprivate |
A static data member used in the implementation of getType method.
Definition at line 160 of file RasterLayer.h.