26 #ifndef __TERRALIB_SA_INTERNAL_GPMWEIGHTSABSTRACTSTRATEGY_H
27 #define __TERRALIB_SA_INTERNAL_GPMWEIGHTSABSTRACTSTRATEGY_H
30 #include "../Config.h"
48 class GeneralizedProximityMatrix;
Class used to define the edge struct of a graph. Its compose with a identifier, the vertex origin and...
This class defines a an Abstract class to calculates a weight for a GPM.
virtual void calculate(GeneralizedProximityMatrix *gpm)=0
GeneralizedProximityMatrix * m_gpm
GPM Pointer.
GPMWeightsStrategyType m_type
Weight Type.
bool getDistanceAttributeIndex(te::graph::GraphMetadata *gm, int &index)
Function used to get the distance attribute index.
int createWeightAttribute(GeneralizedProximityMatrix *gpm)
Added to the edge a new attribute for weight information and return the attr index.
GPMWeightsStrategyType getWeightsType()
virtual ~GPMWeightsAbstractStrategy()
Virtual destructor.
double getDistanceAttributeValue(te::graph::Edge *e, const int index)
Function used to get the distance value from a edge element.
GPMWeightsAbstractStrategy()
Default constructor.
This class defines a Generalized Proximity Matrix.
GPMWeightsStrategyType
Strategies to calculate the weight for a GPM.
#define TESAEXPORT
You can use this macro in order to export/import classes and functions from this module.