#include <RasterProperty.h>
Public Member Functions | |
void | add (te::rst::BandProperty *b) |
It adds a new band information to the property. More... | |
te::dt::Property * | clone () const |
It returns a clone of the object. More... | |
std::vector< te::rst::BandProperty * > & | getBandProperties () |
Returns a reference to the list of bands definitions. More... | |
const std::vector< te::rst::BandProperty * > & | getBandProperties () const |
Returns a reference to the list of bands definitions. More... | |
const std::string & | getDatasetName () const |
It returns the name of the propery's dataset. More... | |
std::string * | getDefaultValue () const |
It returns the default value associated to the property, or NULL if none is associated. More... | |
te::rst::Grid * | getGrid () |
Returns the definition of the raster grid support. More... | |
const te::rst::Grid * | getGrid () const |
Returns the definition of the raster grid support. More... | |
unsigned int | getId () const |
It returns the property identifier. More... | |
const std::map< std::string, std::string > & | getInfo () const |
Returns the detailed information about the raster data. More... | |
const std::string & | getName () const |
It returns the property name. More... | |
Property * | getParent () const |
It returns the parent of this property, or NULL, if it doesn't have one. More... | |
int | getType () const |
It returns the property data type. More... | |
bool | has (Property *p) const |
It checks if the Property "p" is associated to this property or any other parent. More... | |
bool | isAutoNumber () const |
It returns true if the attribute is an autonumber, otherwise it returns false. More... | |
bool | isRequired () const |
It returns true if the attribute is required, otherwise it returns false. More... | |
RasterProperty & | operator= (const RasterProperty &rhs) |
Assignment operator. More... | |
RasterProperty (const std::string &name, bool isRequired=false, unsigned int id=0, te::dt::Property *parent=0) | |
It constructs a new raster property. More... | |
RasterProperty (Grid *grid, const std::vector< BandProperty * > &bands, const std::map< std::string, std::string > &rinfo, bool isRequired=false, unsigned int id=0, te::dt::Property *parent=0) | |
It constructs a new raster property. More... | |
RasterProperty (const RasterProperty &rhs) | |
Copy constructor. More... | |
void | set (te::rst::Grid *grid) |
Sets the definition of the raster grid support. More... | |
void | set (std::size_t i, te::rst::BandProperty *b) |
It sets the i-th band to the new information provided. More... | |
void | setAutoNumber (bool a) |
It tells if the property is an autonumber or not. More... | |
void | setDatasetName (const std::string &dsName) |
It sets the property name. More... | |
void | setDefaultValue (std::string *d) |
It sets the default value associated to the property, or NULL if none is associated. More... | |
void | setId (unsigned int id) |
It sets the property identifier. More... | |
void | setInfo (const std::map< std::string, std::string > &rinfo) |
Sets the detailed information about the raster data. More... | |
void | setName (const std::string &name) |
It sets the property name. More... | |
void | setParent (Property *p) |
It associate this property to the informed parent. More... | |
void | setRequired (bool r) |
It tells if the property is required or not. More... | |
virtual | ~RasterProperty () |
Destructor. More... | |
Protected Attributes | |
std::vector< BandProperty * > | m_bands |
A vector of bands description. More... | |
std::string | m_datasetName |
The property's dataset name. More... | |
std::string * | m_defaultValue |
Default value. More... | |
Grid * | m_grid |
Sets the Raster Property name. More... | |
unsigned int | m_id |
An identification number that can be used internally. More... | |
bool | m_isAutoNumber |
A flag that indicates if this is an autonumber or serial type. More... | |
bool | m_isRequired |
This flag indicates if the attribute is required or not. More... | |
std::string | m_name |
The property name. More... | |
Property * | m_parent |
The parent property type: it must be a CompositeProperty. More... | |
std::map< std::string, std::string > | m_rinfo |
Additional raster information. More... | |
int | m_type |
The property data type. More... | |
Raster property.
A raster property is used to describe a raster data. It inherits from SimpleProperty, so it can be used through the dataaccess API.
It contains a pointer to its grid support and a list of bands description.
Definition at line 58 of file RasterProperty.h.
te::rst::RasterProperty::RasterProperty | ( | const std::string & | name, |
bool | isRequired = false , |
||
unsigned int | id = 0 , |
||
te::dt::Property * | parent = 0 |
||
) |
It constructs a new raster property.
grid | The grid definition. Do not pass a null pointer. |
bands | Information about raster bands (This RasterProperty instance will acquire the ownership of all band properties objects). |
rinfo | Detailed information about the raster data. |
isRequired | Tells if the the property is required (mandatory) or not. |
id | The property identifier. |
parent | A reference to the parent Property of the new object if it has one. |
te::rst::RasterProperty::RasterProperty | ( | Grid * | grid, |
const std::vector< BandProperty * > & | bands, | ||
const std::map< std::string, std::string > & | rinfo, | ||
bool | isRequired = false , |
||
unsigned int | id = 0 , |
||
te::dt::Property * | parent = 0 |
||
) |
It constructs a new raster property.
grid | The grid definition. Do not pass a null pointer. |
bands | Information about raster bands (This RasterProperty instance will acquire the ownership of all band properties objects). |
rinfo | Detailed information about the raster data. |
isRequired | Tells if the the property is required (mandatory) or not. |
id | The property identifier. |
parent | A reference to the parent Property of the new object if it has one. |
te::rst::RasterProperty::RasterProperty | ( | const RasterProperty & | rhs | ) |
Copy constructor.
rhs | The right-hand-side copy that would be used to copy from. |
|
virtual |
Destructor.
void te::rst::RasterProperty::add | ( | te::rst::BandProperty * | b | ) |
It adds a new band information to the property.
b | A pointer to the band definition. |
|
virtual |
It returns a clone of the object.
The new property will NOT have associations to other elements.
Reimplemented from te::dt::SimpleProperty.
std::vector<te::rst::BandProperty*>& te::rst::RasterProperty::getBandProperties | ( | ) |
Returns a reference to the list of bands definitions.
const std::vector<te::rst::BandProperty*>& te::rst::RasterProperty::getBandProperties | ( | ) | const |
Returns a reference to the list of bands definitions.
|
inlineinherited |
It returns the name of the propery's dataset.
Definition at line 144 of file Property.h.
|
inlineinherited |
It returns the default value associated to the property, or NULL if none is associated.
Definition at line 127 of file SimpleProperty.h.
te::rst::Grid* te::rst::RasterProperty::getGrid | ( | ) |
Returns the definition of the raster grid support.
const te::rst::Grid* te::rst::RasterProperty::getGrid | ( | ) | const |
Returns the definition of the raster grid support.
|
inlineinherited |
It returns the property identifier.
Definition at line 109 of file Property.h.
const std::map<std::string, std::string>& te::rst::RasterProperty::getInfo | ( | ) | const |
Returns the detailed information about the raster data.
|
inlineinherited |
It returns the property name.
Definition at line 127 of file Property.h.
|
inlineinherited |
It returns the parent of this property, or NULL, if it doesn't have one.
Definition at line 168 of file Property.h.
|
inlineinherited |
It returns the property data type.
Definition at line 161 of file Property.h.
Referenced by te::dt::CompositeProperty::findFirstPropertyOfType().
|
virtualinherited |
It checks if the Property "p" is associated to this property or any other parent.
This method can be used to ask if a given Property belongs to a more complex type (like: CompositeProperty or DataSetType).
p | The Property we are checking. |
Implements te::dt::Property.
|
inlineinherited |
It returns true if the attribute is an autonumber, otherwise it returns false.
Definition at line 111 of file SimpleProperty.h.
|
inlineinherited |
It returns true if the attribute is required, otherwise it returns false.
Definition at line 97 of file SimpleProperty.h.
RasterProperty& te::rst::RasterProperty::operator= | ( | const RasterProperty & | rhs | ) |
Assignment operator.
rhs | The right-hand-side copy used to copy from. |
void te::rst::RasterProperty::set | ( | te::rst::Grid * | grid | ) |
Sets the definition of the raster grid support.
grid | The grid definition. Do not pass a null pointer. |
void te::rst::RasterProperty::set | ( | std::size_t | i, |
te::rst::BandProperty * | b | ||
) |
It sets the i-th band to the new information provided.
i | The band index. |
b | The i-th band information to be assigned to the property. |
|
inlineinherited |
It tells if the property is an autonumber or not.
a | If true the property is marked as an autonumber (serial), otherwise it is not. |
Definition at line 118 of file SimpleProperty.h.
Referenced by te::pgis::Convert2TerraLib().
|
inlineinherited |
It sets the property name.
name | The new property name. |
Definition at line 154 of file Property.h.
|
inherited |
It sets the default value associated to the property, or NULL if none is associated.
d | The default value associated to the property, or NULL if none is associated. |
|
inlineinherited |
It sets the property identifier.
id | A number used to identify the property. |
Definition at line 118 of file Property.h.
void te::rst::RasterProperty::setInfo | ( | const std::map< std::string, std::string > & | rinfo | ) |
Sets the detailed information about the raster data.
rinfo | Detailed information about the raster data. |
|
inlineinherited |
It sets the property name.
name | The new property name. |
Definition at line 137 of file Property.h.
|
inlineinherited |
It associate this property to the informed parent.
p | Teh parent property. |
Definition at line 177 of file Property.h.
|
inlineinherited |
It tells if the property is required or not.
r | If true the property is marked as required, otherwise it is not required. |
Definition at line 104 of file SimpleProperty.h.
|
protected |
A vector of bands description.
Definition at line 193 of file RasterProperty.h.
|
protectedinherited |
The property's dataset name.
Definition at line 208 of file Property.h.
|
protectedinherited |
Default value.
Definition at line 164 of file SimpleProperty.h.
|
protected |
Sets the Raster Property name.
name | The name. |
Definition at line 192 of file RasterProperty.h.
|
protectedinherited |
An identification number that can be used internally.
Definition at line 205 of file Property.h.
|
protectedinherited |
A flag that indicates if this is an autonumber or serial type.
Definition at line 163 of file SimpleProperty.h.
|
protectedinherited |
This flag indicates if the attribute is required or not.
Definition at line 162 of file SimpleProperty.h.
|
protectedinherited |
The property name.
Definition at line 207 of file Property.h.
|
protectedinherited |
The parent property type: it must be a CompositeProperty.
Definition at line 204 of file Property.h.
|
protected |
Additional raster information.
Definition at line 194 of file RasterProperty.h.
|
protectedinherited |
The property data type.
Definition at line 206 of file Property.h.