Read@CVL
rdf::LayerElement Class Reference

#include <Elements.h>

Public Member Functions

 LayerElement ()
 
bool readAttributes (QXmlStreamReader &reader)
 Reads the attributes of the layer element. More...
 
void readChildren (QXmlStreamReader &reader)
 Reads the children of the layer element, which can only be RegionRef elements. More...
 
void write (QXmlStreamWriter &writer) const
 Writes the layer element to an XML stream. More...
 
void setId (const QString &id)
 
QString id () const
 
void setZIndex (int zIndex)
 
int zIndex () const
 
void setCaption (const QString &caption)
 
QString caption () const
 
void setRegionRefIds (const QVector< QString > &regionRefIds)
 
QVector< QString > regionRefIds () const
 
void setRegions (const QVector< QSharedPointer< Region >> &regions)
 
QVector< QSharedPointer< Region > > regions () const
 

Protected Attributes

bool mChanged = false
 
QString mId = ""
 
int mZIndex = 0
 
QString mCaption = ""
 
QVector< QString > mRegionRefIds
 
QVector< QSharedPointer< Region > > mRegions
 

Constructor & Destructor Documentation

rdf::LayerElement::LayerElement ( )

Member Function Documentation

QString rdf::LayerElement::caption ( ) const
QString rdf::LayerElement::id ( ) const
bool rdf::LayerElement::readAttributes ( QXmlStreamReader &  reader)

Reads the attributes of the layer element.

Parameters
readerThe reader.
Returns
void rdf::LayerElement::readChildren ( QXmlStreamReader &  reader)

Reads the children of the layer element, which can only be RegionRef elements.

Parameters
readerThe reader.
QVector< QString > rdf::LayerElement::regionRefIds ( ) const
QVector< QSharedPointer< Region > > rdf::LayerElement::regions ( ) const
void rdf::LayerElement::setCaption ( const QString &  caption)
void rdf::LayerElement::setId ( const QString &  id)
void rdf::LayerElement::setRegionRefIds ( const QVector< QString > &  regionRefIds)
void rdf::LayerElement::setRegions ( const QVector< QSharedPointer< Region >> &  regions)
void rdf::LayerElement::setZIndex ( int  zIndex)
void rdf::LayerElement::write ( QXmlStreamWriter &  writer) const

Writes the layer element to an XML stream.

Parameters
writerThe writer.
int rdf::LayerElement::zIndex ( ) const

Member Data Documentation

QString rdf::LayerElement::mCaption = ""
protected
bool rdf::LayerElement::mChanged = false
protected
QString rdf::LayerElement::mId = ""
protected
QVector<QString> rdf::LayerElement::mRegionRefIds
protected
QVector<QSharedPointer<Region> > rdf::LayerElement::mRegions
protected
int rdf::LayerElement::mZIndex = 0
protected

The documentation for this class was generated from the following files: