VTK
|
Base class for filters that weight graph edges. More...
#include <vtkGraphWeightFilter.h>
Public Types | |
typedef vtkGraphAlgorithm | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkGraphWeightFilter * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkGraphWeightFilter * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkGraphWeightFilter () | |
~vtkGraphWeightFilter () | |
int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
virtual float | ComputeWeight (vtkGraph *const graph, const vtkEdgeType &edge) const =0 |
virtual bool | CheckRequirements (vtkGraph *const graph) const |
Base class for filters that weight graph edges.
vtkGraphWeightFilter is the abstract base class that provides an interface for classes that apply weights to graph edges. The weights are added as a vtkFloatArray named "Weights." The ComputeWeight function must be implemented to provide the function of two vertices which determines the weight of each edge. The CheckRequirements function can be implemented if you wish to ensure that the input graph has all of the properties that will be required by the ComputeWeight function.
Definition at line 38 of file vtkGraphWeightFilter.h.
typedef vtkGraphAlgorithm vtkGraphWeightFilter::Superclass |
Definition at line 41 of file vtkGraphWeightFilter.h.
|
inlineprotected |
Definition at line 45 of file vtkGraphWeightFilter.h.
|
inlineprotected |
Definition at line 46 of file vtkGraphWeightFilter.h.
|
static |
|
virtual |
Reimplemented in vtkGraphWeightEuclideanDistanceFilter.
|
static |
|
protectedvirtual |
Reimplemented in vtkGraphWeightEuclideanDistanceFilter.
vtkGraphWeightFilter* vtkGraphWeightFilter::NewInstance | ( | ) | const |
void vtkGraphWeightFilter::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
protected |
|
protectedpure virtual |
Compute the weight on the 'graph' for a particular 'edge'. This is a pure virtual function that must be implemented in subclasses.
Implemented in vtkGraphWeightEuclideanDistanceFilter.
|
protectedvirtual |
Ensure that the 'graph' is has all properties that are needed to compute the weights. For example, in vtkGraphWeightEuclideanDistanceFilter, 'graph' must have Points set for each vertex, as the ComputeWeight function calls GetPoint.
Reimplemented in vtkGraphWeightEuclideanDistanceFilter.