This class defines a an adjacency strategy class for a GPM constructor. More...
#include <GPMConstructorAdjacencyStrategy.h>
  
 Public Member Functions | |
| GPMConstructorAdjacencyStrategy () | |
| Default constructor.  More... | |
| GPMConstructorAdjacencyStrategy (bool calcDistance) | |
| Specific constructor.  More... | |
| virtual | ~GPMConstructorAdjacencyStrategy () | 
| Virtual destructor.  More... | |
Methods  | |
Methods used by the GPM constructor  | |
| virtual void | constructStrategy () | 
| Build the edges using specific strategy.  More... | |
Protected Attributes | |
| bool | m_calcDistance | 
| te::da::DataSource * | m_ds | 
| Data Source pointer.  More... | |
| int | m_edgeId | 
| Attribute used as a index counter for edge objects.  More... | |
| GeneralizedProximityMatrix * | m_gpm | 
| GPM Pointer.  More... | |
| GPMConstructorStrategyType | m_type | 
| Constructor Type.  More... | |
Methods | |
| GPMConstructorStrategyType | getConstructorType () | 
| void | construct (te::da::DataSource *ds, GeneralizedProximityMatrix *gpm) | 
| void | createVertexObjects () | 
| Function used to create all vertex object based on data set.  More... | |
| void | createDistanceAttribute (GeneralizedProximityMatrix *gpm) | 
| Added to the edge a new attribute for distance information.  More... | |
| int | getEdgeId () | 
| Function used to generated the edge id.  More... | |
This class defines a an adjacency strategy class for a GPM constructor.
Definition at line 49 of file GPMConstructorAdjacencyStrategy.h.
| te::sa::GPMConstructorAdjacencyStrategy::GPMConstructorAdjacencyStrategy | ( | ) | 
Default constructor.
Definition at line 41 of file GPMConstructorAdjacencyStrategy.cpp.
References te::sa::AdjacencyStrategy, m_calcDistance, and te::sa::GPMConstructorAbstractStrategy::m_type.
| te::sa::GPMConstructorAdjacencyStrategy::GPMConstructorAdjacencyStrategy | ( | bool | calcDistance | ) | 
Specific constructor.
Definition at line 47 of file GPMConstructorAdjacencyStrategy.cpp.
References te::sa::AdjacencyStrategy, and te::sa::GPMConstructorAbstractStrategy::m_type.
      
  | 
  virtual | 
Virtual destructor.
Definition at line 53 of file GPMConstructorAdjacencyStrategy.cpp.
      
  | 
  inherited | 
Definition at line 61 of file GPMConstructorAbstractStrategy.cpp.
      
  | 
  virtual | 
Build the edges using specific strategy.
Implements te::sa::GPMConstructorAbstractStrategy.
Definition at line 57 of file GPMConstructorAdjacencyStrategy.cpp.
References te::graph::Edge::addAttribute(), te::gm::Geometry::distance(), te::common::FreeContents(), te::graph::Vertex::getAttributes(), te::da::GetFirstSpatialPropertyPos(), te::sam::rtree::Index< DATATYPE, MAXNODES, MINNODES >::insert(), te::common::TaskProgress::isActive(), te::common::TaskProgress::pulse(), te::sam::rtree::Index< DATATYPE, MAXNODES, MINNODES >::search(), te::graph::Edge::setAttributeVecSize(), te::common::TaskProgress::setMessage(), te::common::TaskProgress::setTotalSteps(), and TE_TR.
      
  | 
  protectedinherited | 
Added to the edge a new attribute for distance information.
Definition at line 135 of file GPMConstructorAbstractStrategy.cpp.
References te::graph::AbstractGraph::addEdgeProperty(), te::dt::DOUBLE_TYPE, te::sa::GeneralizedProximityMatrix::getGraph(), te::dt::Property::setId(), te::dt::Property::setParent(), and TE_SA_DISTANCE_ATTR_NAME.
      
  | 
  protectedinherited | 
Function used to create all vertex object based on data set.
Definition at line 76 of file GPMConstructorAbstractStrategy.cpp.
References te::sa::GetCentroidCoord(), te::da::GetFirstGeomProperty(), te::da::GetFirstSpatialPropertyPos(), te::gm::GeometryProperty::getSRID(), te::common::TaskProgress::isActive(), te::gm::PointType, te::common::TaskProgress::pulse(), te::common::TaskProgress::setMessage(), te::common::TaskProgress::setTotalSteps(), TE_SA_GEOMETRY_ATTR_NAME, TE_TR, te::gm::Coord2D::x, and te::gm::Coord2D::y.
      
  | 
  inherited | 
Definition at line 56 of file GPMConstructorAbstractStrategy.cpp.
      
  | 
  protectedinherited | 
Function used to generated the edge id.
Definition at line 146 of file GPMConstructorAbstractStrategy.cpp.
      
  | 
  protected | 
Definition at line 74 of file GPMConstructorAdjacencyStrategy.h.
Referenced by GPMConstructorAdjacencyStrategy().
      
  | 
  protectedinherited | 
Data Source pointer.
Definition at line 103 of file GPMConstructorAbstractStrategy.h.
      
  | 
  protectedinherited | 
Attribute used as a index counter for edge objects.
Definition at line 101 of file GPMConstructorAbstractStrategy.h.
Referenced by te::sa::GPMConstructorAbstractStrategy::GPMConstructorAbstractStrategy().
      
  | 
  protectedinherited | 
GPM Pointer.
Definition at line 105 of file GPMConstructorAbstractStrategy.h.
      
  | 
  protectedinherited | 
Constructor Type.
Definition at line 99 of file GPMConstructorAbstractStrategy.h.
Referenced by GPMConstructorAdjacencyStrategy(), te::sa::GPMConstructorDistanceStrategy::GPMConstructorDistanceStrategy(), and te::sa::GPMConstructorNearestNeighborStrategy::GPMConstructorNearestNeighborStrategy().