This class defines a an Abstract class to calculates a weight for a GPM. More...
#include <GPMWeightsAbstractStrategy.h>
Public Member Functions | |
GPMWeightsAbstractStrategy () | |
Default constructor. More... | |
virtual | ~GPMWeightsAbstractStrategy () |
Virtual destructor. More... | |
Protected Attributes | |
GeneralizedProximityMatrix * | m_gpm |
GPM Pointer. More... | |
GPMWeightsStrategyType | m_type |
Weight Type. More... | |
Methods | |
GPMWeightsStrategyType | getWeightsType () |
virtual void | calculate (GeneralizedProximityMatrix *gpm)=0 |
int | createWeightAttribute (GeneralizedProximityMatrix *gpm) |
Added to the edge a new attribute for weight information and return the attr index. More... | |
bool | getDistanceAttributeIndex (te::graph::GraphMetadata *gm, int &index) |
Function used to get the distance attribute index. More... | |
double | getDistanceAttributeValue (te::graph::Edge *e, const int index) |
Function used to get the distance value from a edge element. More... | |
This class defines a an Abstract class to calculates a weight for a GPM.
Definition at line 58 of file GPMWeightsAbstractStrategy.h.
te::sa::GPMWeightsAbstractStrategy::GPMWeightsAbstractStrategy | ( | ) |
Default constructor.
|
virtual |
Virtual destructor.
|
pure virtual |
|
protected |
Added to the edge a new attribute for weight information and return the attr index.
|
protected |
Function used to get the distance attribute index.
|
protected |
Function used to get the distance value from a edge element.
GPMWeightsStrategyType te::sa::GPMWeightsAbstractStrategy::getWeightsType | ( | ) |
|
protected |
GPM Pointer.
Definition at line 97 of file GPMWeightsAbstractStrategy.h.
|
protected |
Weight Type.
Definition at line 95 of file GPMWeightsAbstractStrategy.h.