VTK
|
compute Strahler metric for a tree More...
#include <vtkStrahlerMetric.h>
Inherits vtkTreeAlgorithm.
Public Types | |
typedef vtkTreeAlgorithm | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkStrahlerMetric * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetMetricArrayName (const char *) |
virtual void | SetNormalize (int) |
virtual int | GetNormalize () |
virtual void | NormalizeOn () |
virtual void | NormalizeOff () |
virtual float | GetMaxStrahler () |
Static Public Member Functions | |
static vtkStrahlerMetric * | New () |
static int | IsTypeOf (const char *type) |
static vtkStrahlerMetric * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkStrahlerMetric () | |
~vtkStrahlerMetric () | |
int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
float | CalculateStrahler (vtkIdType root, vtkFloatArray *metric, vtkTree *graph) |
Protected Attributes | |
int | Normalize |
float | MaxStrahler |
char * | MetricArrayName |
compute Strahler metric for a tree
The Strahler metric is a value assigned to each vertex of a tree that characterizes the structural complexity of the sub-tree rooted at that node. The metric originated in the study of river systems, but has been applied to other tree- structured systes, Details of the metric and the rationale for using it in infovis can be found in:
Tree Visualization and Navigation Clues for Information Visualization, I. Herman, M. Delest, and G. Melancon, Computer Graphics Forum, Vol 17(2), Blackwell, 1998.
The input tree is copied to the output, but with a new array added to the output vertex data.
Definition at line 51 of file vtkStrahlerMetric.h.
typedef vtkTreeAlgorithm vtkStrahlerMetric::Superclass |
Definition at line 55 of file vtkStrahlerMetric.h.
|
protected |
|
protected |
|
static |
|
static |
|
virtual |
|
static |
|
protectedvirtual |
vtkStrahlerMetric* vtkStrahlerMetric::NewInstance | ( | ) | const |
void vtkStrahlerMetric::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
virtual |
Set the name of the array in which the Strahler values will be stored within the output vertex data. Default is "Strahler"
|
virtual |
Set/get setting of normalize flag. If this is set, the Strahler values are scaled into the range [0..1]. Default is for normalization to be OFF.
|
virtual |
Set/get setting of normalize flag. If this is set, the Strahler values are scaled into the range [0..1]. Default is for normalization to be OFF.
|
virtual |
Set/get setting of normalize flag. If this is set, the Strahler values are scaled into the range [0..1]. Default is for normalization to be OFF.
|
virtual |
Set/get setting of normalize flag. If this is set, the Strahler values are scaled into the range [0..1]. Default is for normalization to be OFF.
|
virtual |
Get the maximum strahler value for the tree.
|
protected |
|
protected |
|
protected |
Definition at line 84 of file vtkStrahlerMetric.h.
|
protected |
Definition at line 85 of file vtkStrahlerMetric.h.
|
protected |
Definition at line 86 of file vtkStrahlerMetric.h.