43 const std::string& title,
57 std::list<te::common::TreeItemPtr> children =
getChildren();
59 for (
auto child : children)
74 std::vector<AbstractLayer*> childrenVec(numChildren);
76 for(
int i = 0; i < numChildren; ++i)
107 bool allVisible =
true;
108 bool allNotVisible =
true;
111 std::vector<AbstractLayer*> childrenVec(numChildren);
113 for(
int i = 0; i < numChildren; ++i)
120 allNotVisible =
false;
124 allNotVisible =
false;
132 else if(allNotVisible)
143 return std::unique_ptr<LayerSchema>(
nullptr);
149 return std::unique_ptr<te::da::DataSet>(
nullptr);
158 return std::unique_ptr<te::da::DataSet>(
nullptr);
167 return std::unique_ptr<te::da::DataSet>(
nullptr);
174 return std::unique_ptr<te::da::DataSet>(
nullptr);
181 return std::unique_ptr<te::da::DataSet>(
nullptr);
std::unique_ptr< LayerSchema > getSchema() const
It returns the layer schema.
const std::list< TreeItemPtr > & getChildren() const
It returns the children of this tree item.
AbstractLayer * clone()
It returns a clone of the object.
const TreeItemPtr & getChild(std::size_t i) const
It returns the n-th child.
std::size_t getChildrenCount() const
It returns the number of children of this node.
TEMAPEXPORT void CopyAbstractLayerInfo(const te::map::AbstractLayer *refLayer, te::map::AbstractLayer *layer)
Make a copy of refLayer abstract attributes to layer. Creating new id.
This is the base class for layers.
bool hasChildren() const
It returns true if the item has descendants.
SpatialRelation
Spatial relations between geometric objects.
void updateVisibility()
It updates the visibility of this layer.
virtual Visibility getVisibility() const
It returns the layer visibility.
A layer that can be used as a container for other kind of layers.
void add(const TreeItemPtr &childItem)
It adds (appends) the item to the end of the children's list.
This is an abstract class that models a query expression.
AccessPolicy
Supported data access policies (can be used as bitfield).
TraverseType
A dataset can be traversed in two ways:
static const std::string sm_type
A static data member used in the implementation of getType method.
std::unique_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.
An Envelope defines a 2D rectangular region.
~FolderLayer()
Destructor.
This class represents a set of unique ids created in the same context. i.e. from the same data set...
void setVisibility(Visibility v)
It sets the layer visibility.
void updateVisibilityOfAncestors()
It updates the visibility of the ancestors of this layer, if any.
virtual void setVisibility(Visibility v)
It sets the layer visibility.
bool isValid() const
It returns true if the layer can be used for instance to draw, otherwise, it returns false...
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
virtual AbstractLayer * clone()=0
It returns a clone of the object.
FolderLayer(AbstractLayer *parent=0)
It initializes a new layer.
Visibility
Each layer can have three states of visibility.
Visibility m_visibility
It indicates the layer visibility.
A layer that can be used as a container for other kind of layers.
const std::string & getType() const
It returns the layer type: FOLDERLAYER.
bool m_visibilityChanged
It indicates if the layer visibility has changed.