This class is used to define a set of properties of a Edge. More...
#include <EdgeProperty.h>
  
 Public Member Functions | |
| void | add (Property *p) | 
| It adds a new property to the CompositeProperty.  More... | |
| void | add (const std::vector< Property * > &ps) | 
| It adds a list of property types to the CompositeProperty.  More... | |
| void | add (const boost::ptr_vector< te::dt::Property > &ps) | 
| virtual void | clear () | 
| It clears the CompositeProperty definition.  More... | |
| virtual Property * | clone () const | 
| It returns a clone of the object.  More... | |
| void | copy (const std::vector< Property * > &ps) | 
| It copies the properties from the vector.  More... | |
| EdgeProperty () | |
| Default constructor.  More... | |
| Property * | findFirstPropertyOfType (const int t) const | 
| returns the first property of the given data type. Caller doesn't take ownership of the returned pointer.  More... | |
| const std::string & | getCompositeName () const | 
| It returns the name of the composite type.  More... | |
| unsigned int | getId () const | 
| It returns the property identifier.  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... | |
| const std::vector< Property * > & | getProperties () const | 
| It returns the list of properties describing the CompositeProperty.  More... | |
| std::vector< Property * > & | getProperties () | 
| It returns the list of properties describing the CompositeProperty.  More... | |
| Property * | getProperty (std::size_t i) const | 
| It returns the i-th property.  More... | |
| Property * | getProperty (const std::string &name) const | 
| It returns the property with the given name or NULL if none is found.  More... | |
| Property * | getPropertyById (unsigned int id) const | 
| It searches for a property with the given ID.  More... | |
| std::size_t | getPropertyPosition (const std::string &name) const | 
| It returns the property position based on its name.  More... | |
| std::size_t | getPropertyPosition (const Property *p) const | 
| It returns the property position .  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 | hasPropertyOfType (const int t) const | 
| Tells if there is a property of the given data type.  More... | |
| virtual void | remove (Property *p) | 
| It removes the property from the composite.  More... | |
| void | setCompositeName (const std::string &cname) | 
| It sets the composite type name.  More... | |
| void | setId (unsigned int id) | 
| It sets the property identifier.  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... | |
| std::size_t | size () const | 
| It returns the number of properties of the CompositeProperty.  More... | |
| ~EdgeProperty () | |
| Default destructor.  More... | |
Protected Attributes | |
| std::string | m_cname | 
| The composite type name.  More... | |
| unsigned int | m_id | 
| An identification number that can be used internally.  More... | |
| std::string | m_name | 
| The property name.  More... | |
| Property * | m_parent | 
| The parent property type: it must be a CompositeProperty.  More... | |
| std::vector< Property * > | m_properties | 
| The list of property types that make the CompositeProperty.  More... | |
| int | m_type | 
| The property data type.  More... | |
This class is used to define a set of properties of a Edge.
Definition at line 51 of file EdgeProperty.h.
| te::graph::EdgeProperty::EdgeProperty | ( | ) | 
Default constructor.
Definition at line 3 of file EdgeProperty.cpp.
| te::graph::EdgeProperty::~EdgeProperty | ( | ) | 
Default destructor.
Definition at line 8 of file EdgeProperty.cpp.
      
  | 
  inherited | 
It adds a new property to the CompositeProperty.
| p | The property to be inserted. | 
Definition at line 70 of file CompositeProperty.cpp.
References te::dt::Property::getParent(), and te::dt::Property::setParent().
      
  | 
  inherited | 
It adds a list of property types to the CompositeProperty.
| ps | The list of properties to be added. | 
Definition at line 77 of file CompositeProperty.cpp.
      
  | 
  inherited | 
Definition at line 91 of file CompositeProperty.cpp.
References te::dt::Property::clone(), and te::dt::Property::setParent().
      
  | 
  virtualinherited | 
It clears the CompositeProperty definition.
Reimplemented in te::da::DataSetType.
Definition at line 180 of file CompositeProperty.cpp.
References te::common::FreeContents().
      
  | 
  virtualinherited | 
It returns a clone of the object.
The new property will NOT have associations to other elements.
Implements te::dt::Property.
Reimplemented in te::da::DataSetType.
Definition at line 202 of file CompositeProperty.cpp.
      
  | 
  inherited | 
It copies the properties from the vector.
| ps | The list of properties to be copied. | 
Definition at line 164 of file CompositeProperty.cpp.
References te::dt::Property::clone(), and te::dt::Property::setParent().
Referenced by te::dt::CompositeProperty::CompositeProperty().
      
  | 
  inlineinherited | 
returns the first property of the given data type. Caller doesn't take ownership of the returned pointer.
Definition at line 278 of file CompositeProperty.h.
References te::dt::Property::getType(), te::dt::CompositeProperty::m_properties, and te::dt::CompositeProperty::size().
Referenced by te::qt::widgets::DataSetOptionsWizardPage::datasetPressed(), te::da::GetFirstGeomProperty(), te::da::GetFirstRasterProperty(), te::dt::CompositeProperty::hasPropertyOfType(), and te::vp::IntersectionMemory::pairwiseIntersection().
      
  | 
  inlineinherited | 
It returns the name of the composite type.
Definition at line 96 of file CompositeProperty.h.
      
  | 
  inlineinherited | 
It returns the property identifier.
Definition at line 108 of file Property.h.
Referenced by te::da::DataSetTypeConverter::DataSetTypeConverter(), te::pgis::Transactor::getConstraints(), te::pgis::Transactor::getIndexes(), te::pgis::Transactor::getPropertyId(), and te::serialize::xml::Save().
      
  | 
  inlineinherited | 
It returns the property name.
Definition at line 126 of file Property.h.
Referenced by te::graph::AddDeepAttribute::AddDeepAttribute(), te::graph::DataSourceGraphMetadata::addEdgeProperty(), te::ado::Transactor::addForeignKey(), te::pgis::Transactor::addForeignKey(), te::ado::Transactor::addPrimaryKey(), te::mem::DataSource::addProperty(), te::ogr::Transactor::addProperty(), te::sqlite::DataSourceTransactor::addProperty(), te::ado::Transactor::addProperty(), terralib4::Transactor::addProperty(), te::pgis::Transactor::addProperty(), te::graph::AddRasterAttribute::AddRasterAttribute(), te::da::DataSourceCatalog::addRef(), te::pgis::Transactor::addSequence(), te::ado::Transactor::addUniqueKey(), te::graph::DataSourceGraphMetadata::addVertexProperty(), te::da::DataSourceCatalog::checkFKsDependency(), te::da::DataSourceCatalog::checkSequenceDependency(), te::qt::widgets::DataExchangerWizard::commit(), te::qt::plugins::terralib4::TL4ConverterWizard::commit(), te::qt::widgets::ConstraintWidget::ConstraintWidget(), te::ogr::Convert2OGR(), te::sqlite::Convert2SQLCreate(), te::da::Create(), te::da::CreateAdapter(), te::mem::DataSource::createDataSet(), te::gdal::Transactor::createDataSet(), te::ogr::Transactor::createDataSet(), te::sqlite::DataSourceTransactor::createDataSet(), te::ado::Transactor::createDataSet(), te::pgis::Transactor::createDataSet(), te::vp::IntersectionMemory::createDataSetType(), DataSetAdapterLayerReader(), DataSetAdapterLayerWriter(), te::qt::widgets::DataSetOptionsWizardPage::datasetPressed(), te::da::DataSetType::DataSetType(), te::da::DataSetTypeConverter::DataSetTypeConverter(), te::qt::widgets::DataSetDisplay::draw(), te::map::AbstractLayerRenderer::draw(), te::map::DrawGeometries(), te::map::DrawRaster(), te::da::DataSourceCatalog::dropDependentSequenceEntry(), te::da::DataSourceCatalog::dropDependentSequences(), te::ado::Transactor::dropProperty(), te::qt::widgets::DirectExchangerDialog::exchangeToDatabase(), te::qt::widgets::Selection::executeSelection(), te::qt::widgets::DataSetCategoryItem::fetchMore(), te::qt::widgets::DataSetGroupItem::fetchMore(), te::qt::widgets::DataSetAdapterWidget::fillDataSetTable(), te::ado::Transactor::getCheckConstraints(), te::pgis::Transactor::getConstraints(), terralib4::Transactor::getDataSetType(), te::da::GetEmptyOIDSet(), te::sqlite::DataSourceCatalogLoader::getGeometryInfo(), te::pgis::Transactor::getGeometryInfo(), te::sqlite::DataSourceCatalogLoader::getIndex(), te::sqlite::DataSourceCatalogLoader::getIndexes(), te::ado::Transactor::getIndexes(), te::pgis::Transactor::getIndexes(), te::qt::widgets::Info::getInfo(), te::qt::widgets::ClassifierWizardPage::getInputParams(), te::sqlite::DataSourceCatalogLoader::getPrimaryKey(), te::ado::Transactor::getPrimaryKey(), te::ado::Transactor::getProperties(), te::pgis::Transactor::getPropertyId(), te::da::GetPropertyInfo(), te::stmem::Transactor::getPropertyNames(), te::da::GetPropertyPos(), te::pgis::Transactor::getRasterInfo(), te::sqlite::DataSourceCatalogLoader::getSpatialIndexes(), te::da::GetSQLValueNames(), te::sqlite::DataSourceCatalogLoader::getUniqueKey(), te::sqlite::DataSourceCatalogLoader::getUniqueKeys(), te::ado::Transactor::getUniqueKeys(), te::da::DataSourceCatalog::indexFKs(), te::da::DataSourceCatalog::indexSequenceDependency(), te::qt::widgets::IndexWidget::IndexWidget(), te::ado::Transactor::insertIntoGeometryColumns(), te::qt::widgets::ChartLayerWidget::listAttributes(), te::qt::widgets::GroupingWidget::listAttributes(), te::da::LoadFull(), te::da::LoadProperties(), te::qt::widgets::GroupingWidget::onImportPushButtonClicked(), te::qt::widgets::DatapPropertiesWidget::onInputDataToolButtonTriggered(), te::qt::widgets::SHP2PostGISDialog::onOkPushButtonClicked(), te::qt::widgets::DataPropertiesDialog::onOkPushButtonClicked(), te::qt::widgets::ROIManagerWidget::onPointPicked(), te::qt::widgets::DataSet2Layer::operator()(), te::da::DataSourceCatalog::remove(), te::graph::DataSourceGraphMetadata::removeEdgeProperty(), te::da::DataSourceCatalog::removeRef(), te::graph::DataSourceGraphMetadata::removeVertexProperty(), te::da::DataSourceCatalog::rename(), te::qt::widgets::DataSetTableView::retypeColumn(), te::vp::IntersectionQuery::run(), te::vp::BufferQuery::run(), te::vp::AggregationQuery::run(), te::vp::AggregationMemory::run(), te::serialize::xml::Save(), te::qt::widgets::DataSetOptionsWizardPage::set(), te::qt::widgets::PropertyConverterDialog::set(), and terralib4::TableDataSet::TableDataSet().
      
  | 
  inlineinherited | 
It returns the parent of this property, or NULL, if it doesn't have one.
Definition at line 150 of file Property.h.
Referenced by te::dt::CompositeProperty::add(), te::pgis::Transactor::addSequence(), te::da::DataSourceCatalog::checkSequenceDependency(), te::sqlite::Convert2SQLCreate(), te::da::DataSourceCatalog::dropDependentSequenceEntry(), te::da::DataSourceCatalog::dropDependentSequences(), te::ado::Transactor::dropProperty(), te::pgis::Transactor::getPropertyId(), and te::da::DataSourceCatalog::indexSequenceDependency().
      
  | 
  inlineinherited | 
It returns the list of properties describing the CompositeProperty.
Definition at line 153 of file CompositeProperty.h.
Referenced by te::qt::widgets::ConstraintWidget::ConstraintWidget(), te::ogr::Convert2OGR(), DataSetAdapterLayerWriter(), te::da::DataSetTypeConverter::DataSetTypeConverter(), te::da::GetOIDPropertyNames(), te::da::GetPropertyPos(), te::vp::IntersectionOp::getTabularProps(), te::qt::widgets::IndexWidget::IndexWidget(), te::da::DataSetTypeConverter::needConverter(), te::qt::widgets::QueryDataSourceDialog::onDataSetItemClicked(), and te::vp::IntersectionQuery::updateGeomType().
      
  | 
  inlineinherited | 
It returns the list of properties describing the CompositeProperty.
Definition at line 160 of file CompositeProperty.h.
      
  | 
  inlineinherited | 
It returns the i-th property.
| i | The property position in the property array. | 
Definition at line 171 of file CompositeProperty.h.
Referenced by te::qt::plugins::terralib4::TL4ConverterWizard::commit(), te::qt::widgets::ConstraintWidget::ConstraintWidget(), te::da::CreateAdapter(), te::gdal::Transactor::createDataSet(), te::ogr::Transactor::createDataSet(), te::sqlite::DataSourceTransactor::createDataSet(), te::ado::Transactor::createDataSet(), te::pgis::Transactor::createDataSet(), te::stmem::DataSet::DataSet(), te::mem::DataSet::DataSet(), te::da::DataSetTypeConverter::DataSetTypeConverter(), te::qt::widgets::DataSetAdapterWidget::fillDataSetTable(), te::da::GetEmptyOIDSet(), te::da::GetFirstSpatialProperty(), te::sqlite::DataSourceCatalogLoader::getIndex(), te::ado::Transactor::getIndexes(), te::pgis::GetLoadDataRow(), te::sqlite::DataSourceCatalogLoader::getPrimaryKey(), te::ado::Transactor::getPrimaryKey(), te::stmem::Transactor::getProperties(), te::stmem::Transactor::getProperty(), te::da::GetPropertyInfo(), te::stmem::Transactor::getPropertyNames(), te::da::GetPropertyPos(), te::sqlite::DataSourceCatalogLoader::getSpatialIndexes(), te::da::GetSQLValueNames(), te::pgis::GetSQLValues(), te::vp::IntersectionOp::getTabularProps(), te::sqlite::DataSourceCatalogLoader::getUniqueKey(), te::ado::Transactor::getUniqueKeys(), te::qt::widgets::IndexWidget::IndexWidget(), te::stmem::Transactor::propertyExists(), te::serialize::xml::Save(), te::qt::widgets::PropertyConverterDialog::set(), and terralib4::TableDataSet::TableDataSet().
      
  | 
  inherited | 
It returns the property with the given name or NULL if none is found.
| name | The name of the property we are looking for. | 
Definition at line 120 of file CompositeProperty.cpp.
      
  | 
  inherited | 
It searches for a property with the given ID.
| id | The property ID. | 
Definition at line 153 of file CompositeProperty.cpp.
Referenced by te::pgis::Transactor::getConstraints(), and te::pgis::Transactor::getIndexes().
      
  | 
  inherited | 
It returns the property position based on its name.
| name | The property name. | 
Definition at line 131 of file CompositeProperty.cpp.
Referenced by te::da::DataSetType::DataSetType(), te::stmem::Transactor::getDataSet(), te::stmem::Transactor::getExtent(), te::da::GetOIDPropertyPos(), te::dt::GetPropertiesPosition(), te::vp::IntersectionMemory::pairwiseIntersection(), te::vp::GeometricOpQuery::SetAggregByAttribute(), te::vp::GeometricOpQuery::SetAggregObj(), and te::vp::GeometricOpQuery::SetAllObjects().
      
  | 
  inherited | 
It returns the property position .
| p | The property. | 
Definition at line 142 of file CompositeProperty.cpp.
      
  | 
  inlineinherited | 
It returns the property data type.
Definition at line 143 of file Property.h.
Referenced by te::ado::Transactor::addForeignKey(), te::ado::Transactor::addPrimaryKey(), te::mem::DataSource::addProperty(), te::ogr::Transactor::addProperty(), te::sqlite::DataSourceTransactor::addProperty(), te::ado::Transactor::addProperty(), terralib4::Transactor::addProperty(), te::pgis::Transactor::addProperty(), te::ado::Transactor::addUniqueKey(), te::ogr::Transactor::changePropertyDefinition(), te::graph::LayerRenderer::checkEdgeGeometryProperty(), te::da::DataSourceCatalog::checkSequenceDependency(), te::graph::LayerRenderer::checkVertexGeometryProperty(), te::qt::plugins::terralib4::TL4ConverterWizard::commit(), te::ogr::Convert2OGR(), te::da::CreateAdapter(), te::sqlite::DataSourceTransactor::createDataSet(), te::graph::DataSourceGraphMetadata::createGraphTableEdgeModel(), te::graph::DataSourceGraphMetadata::createVertexAttrTable(), te::da::DataSetTypeConverter::DataSetTypeConverter(), te::da::DataSourceCatalog::dropDependentSequenceEntry(), te::da::DataSourceCatalog::dropDependentSequences(), te::ado::Transactor::dropProperty(), te::qt::widgets::DataSetCategoryItem::fetchMore(), te::qt::widgets::DataSetGroupItem::fetchMore(), te::qt::widgets::DataSetAdapterWidget::fillDataSetTable(), te::dt::CompositeProperty::findFirstPropertyOfType(), te::sqlite::DataSourceCatalogLoader::getDataSetType(), te::da::GetEmptyOIDSet(), te::qt::widgets::WhereClauseWidget::getExpression(), te::da::GetFirstSpatialProperty(), te::pgis::Transactor::getProperties(), te::pgis::Transactor::getProperty(), te::pgis::Transactor::getPropertyId(), te::da::GetPropertyInfo(), te::sqlite::DataSourceCatalogLoader::getSpatialIndexes(), te::sqlite::GetSQLType(), te::pgis::GetSQLValue(), te::vp::IntersectionOp::getTabularProps(), te::da::DataSourceCatalog::indexSequenceDependency(), te::qt::widgets::ChartLayerWidget::listAttributes(), te::qt::widgets::GroupingWidget::listAttributes(), te::da::DataSetTypeConverter::needConverter(), te::qt::widgets::GroupingWidget::onImportPushButtonClicked(), te::qt::widgets::DataSetTableView::retypeColumn(), te::graph::DataSourceGraphMetadata::saveProperty(), te::vp::GeometricOpMemory::SetAggregByAttribute(), and te::pgis::SetColumnDef().
      
  | 
  virtualinherited | 
It checks if the Property "p" is associated to this property or any other parent.
| p | The Property we are checking. | 
Implements te::dt::Property.
Definition at line 186 of file CompositeProperty.cpp.
      
  | 
  inlineinherited | 
Tells if there is a property of the given data type.
Definition at line 273 of file CompositeProperty.h.
References te::dt::CompositeProperty::findFirstPropertyOfType().
Referenced by te::da::DataSetType::hasRaster().
      
  | 
  virtualinherited | 
It removes the property from the composite.
| p | The property to be removed from the composite. | 
Definition at line 105 of file CompositeProperty.cpp.
      
  | 
  inlineinherited | 
It sets the composite type name.
| name | The composite type name. | 
Definition at line 103 of file CompositeProperty.h.
      
  | 
  inlineinherited | 
It sets the property identifier.
| id | A number used to identify the property. | 
Definition at line 117 of file Property.h.
Referenced by te::graph::AddDeepAttribute::AddDeepAttribute(), te::graph::AddRasterAttribute::AddRasterAttribute(), te::graph::LDDGraphBuilder::build(), te::graph::GPMGraphBuilder::createAdjacencyEdges(), te::pgis::Transactor::createDataSet(), te::graph::GPMGraphBuilder::createDistanceEdges(), te::graph::FlowGraphBuilder::createEdgeObjects(), te::graph::GPMGraphBuilder::createVertexObjects(), te::graph::RAGGraphBuilder::createVertexObjects(), te::graph::FlowGraphBuilder::createVertexObjects(), te::pgis::Transactor::getPropertyId(), and te::graph::SpatialWeightsExchanger::importFromGWT().
      
  | 
  inlineinherited | 
It sets the property name.
| name | The new property name. | 
Definition at line 136 of file Property.h.
Referenced by te::ogr::Transactor::createDataSet(), te::vp::IntersectionMemory::createDataSetType(), te::qt::widgets::DirectExchangerDialog::exchangeToDatabase(), terralib4::Transactor::getDataSetType(), te::qt::widgets::AddColumnDialog::getNewProperty(), te::qt::widgets::PostGIS2SHPDialog::onOkPushButtonClicked(), te::qt::widgets::SHP2PostGISDialog::onOkPushButtonClicked(), te::qt::widgets::SHP2ADODialog::onOkPushButtonClicked(), te::stmem::Transactor::renameDataSet(), and te::vp::IntersectionQuery::run().
      
  | 
  inlineinherited | 
It associate this property to the informed parent.
| p | Teh parent property. | 
Definition at line 159 of file Property.h.
Referenced by te::dt::CompositeProperty::add(), te::graph::AddDeepAttribute::AddDeepAttribute(), te::graph::AddRasterAttribute::AddRasterAttribute(), te::dt::ArrayProperty::ArrayProperty(), te::graph::QueryGraphBuilder::build(), te::dt::CompositeProperty::copy(), te::graph::GPMGraphBuilder::createAdjacencyEdges(), te::graph::GPMGraphBuilder::createDistanceEdges(), te::graph::FlowGraphBuilder::createEdgeObjects(), te::graph::DataSourceGraphMetadata::createGraphTableEdgeModel(), te::graph::DataSourceGraphMetadata::createVertexAttrTable(), te::graph::FlowGraphBuilder::createVertexObjects(), te::vp::GeometricOp::GetDataSetType(), te::graph::SpatialWeightsExchanger::importFromGWT(), te::dt::ArrayProperty::operator=(), and te::dt::ArrayProperty::setElementType().
      
  | 
  inlineinherited | 
It returns the number of properties of the CompositeProperty.
Definition at line 146 of file CompositeProperty.h.
Referenced by te::qt::plugins::terralib4::TL4ConverterWizard::commit(), te::da::CreateAdapter(), te::ogr::Transactor::createDataSet(), te::sqlite::DataSourceTransactor::createDataSet(), te::ado::Transactor::createDataSet(), te::pgis::Transactor::createDataSet(), te::stmem::DataSet::DataSet(), te::mem::DataSet::DataSet(), te::da::DataSetType::DataSetType(), te::da::DataSetTypeConverter::DataSetTypeConverter(), te::qt::widgets::DataSetAdapterWidget::fillDataSetTable(), te::dt::CompositeProperty::findFirstPropertyOfType(), te::da::GetFirstSpatialProperty(), te::pgis::GetLoadDataRow(), te::stmem::Transactor::getNumberOfProperties(), te::stmem::Transactor::getProperties(), te::da::GetPropertyInfo(), te::stmem::Transactor::getPropertyNames(), te::sqlite::DataSourceCatalogLoader::getSpatialIndexes(), te::da::GetSQLValueNames(), te::pgis::GetSQLValues(), te::da::LoadFull(), and te::serialize::xml::Save().
      
  | 
  protectedinherited | 
The composite type name.
Definition at line 269 of file CompositeProperty.h.
Referenced by te::dt::CompositeProperty::operator=().
      
  | 
  protectedinherited | 
An identification number that can be used internally.
Definition at line 187 of file Property.h.
Referenced by te::dt::Property::operator=().
      
  | 
  protectedinherited | 
The property name.
Definition at line 189 of file Property.h.
Referenced by te::dt::Property::operator=().
      
  | 
  protectedinherited | 
The parent property type: it must be a CompositeProperty.
Definition at line 186 of file Property.h.
      
  | 
  protectedinherited | 
The list of property types that make the CompositeProperty.
Definition at line 270 of file CompositeProperty.h.
Referenced by te::dt::CompositeProperty::CompositeProperty(), te::da::DataSetType::DataSetType(), te::dt::CompositeProperty::findFirstPropertyOfType(), and te::dt::CompositeProperty::operator=().
      
  | 
  protectedinherited | 
The property data type.
Definition at line 188 of file Property.h.
Referenced by te::dt::Property::operator=().