VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
vtkGraphWeightFilter Class Reference

Base class for filters that weight graph edges. More...

#include <vtkGraphWeightFilter.h>

Inheritance diagram for vtkGraphWeightFilter:
Inheritance graph
[legend]
Collaboration diagram for vtkGraphWeightFilter:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkGraphAlgorithm Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkGraphWeightFilterNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkGraphWeightFilterSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () 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

Detailed Description

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.


Member Typedef Documentation

Reimplemented from vtkGraphAlgorithm.

Reimplemented in vtkGraphWeightEuclideanDistanceFilter.

Definition at line 41 of file vtkGraphWeightFilter.h.


Constructor & Destructor Documentation

Definition at line 45 of file vtkGraphWeightFilter.h.

Definition at line 46 of file vtkGraphWeightFilter.h.


Member Function Documentation

static int vtkGraphWeightFilter::IsTypeOf ( const char *  name) [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkGraphAlgorithm.

Reimplemented in vtkGraphWeightEuclideanDistanceFilter.

virtual int vtkGraphWeightFilter::IsA ( const char *  name) [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkGraphAlgorithm.

Reimplemented in vtkGraphWeightEuclideanDistanceFilter.

Reimplemented from vtkGraphAlgorithm.

Reimplemented in vtkGraphWeightEuclideanDistanceFilter.

virtual vtkObjectBase* vtkGraphWeightFilter::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkGraphAlgorithm.

Reimplemented in vtkGraphWeightEuclideanDistanceFilter.

Reimplemented from vtkGraphAlgorithm.

Reimplemented in vtkGraphWeightEuclideanDistanceFilter.

void vtkGraphWeightFilter::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkGraphAlgorithm.

Reimplemented in vtkGraphWeightEuclideanDistanceFilter.

int vtkGraphWeightFilter::RequestData ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

This is called by the superclass. This is the method you should override.

Reimplemented from vtkGraphAlgorithm.

virtual float vtkGraphWeightFilter::ComputeWeight ( vtkGraph *const  graph,
const vtkEdgeType edge 
) const [protected, pure 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.

virtual bool vtkGraphWeightFilter::CheckRequirements ( vtkGraph *const  graph) const [protected, virtual]

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.


The documentation for this class was generated from the following file: