VTK
vtkStrahlerMetric.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkStrahlerMetric.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 //-------------------------------------------------------------------------
16 //Copyright 2008 Sandia Corporation.
17 //Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18 //the U.S. Government retains certain rights in this software.
19 //-------------------------------------------------------------------------
20 //
43 #ifndef vtkStrahlerMetric_h
44 #define vtkStrahlerMetric_h
45 
46 #include "vtkFiltersStatisticsModule.h" // For export macro
47 #include "vtkTreeAlgorithm.h"
48 
49 class vtkFloatArray;
50 
52 {
53 public:
56  void PrintSelf(ostream& os, vtkIndent indent);
57 
59 
61  vtkSetStringMacro(MetricArrayName);
63 
65 
68  vtkSetMacro(Normalize, int);
69  vtkGetMacro(Normalize, int);
70  vtkBooleanMacro(Normalize, int);
72 
74 
75  vtkGetMacro(MaxStrahler,float);
77 
78 protected:
81 
83 
84  int Normalize;
85  float MaxStrahler;
87 
88  float CalculateStrahler(vtkIdType root, vtkFloatArray *metric, vtkTree *graph);
89 
90 private:
91  vtkStrahlerMetric(const vtkStrahlerMetric&); // Not implemented.
92  void operator=(const vtkStrahlerMetric&); // Not implemented.
93 };
94 
95 #endif
96 
vtkStrahlerMetric::vtkStrahlerMetric
vtkStrahlerMetric()
vtkFiltersStatisticsModule.h
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkStrahlerMetric::New
static vtkStrahlerMetric * New()
vtkFloatArray
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:49
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTreeAlgorithm.h
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkStrahlerMetric::MaxStrahler
float MaxStrahler
Definition: vtkStrahlerMetric.h:85
vtkStrahlerMetric::MetricArrayName
char * MetricArrayName
Definition: vtkStrahlerMetric.h:86
vtkStrahlerMetric::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkTree
A rooted tree data structure.
Definition: vtkTree.h:60
vtkStrahlerMetric::~vtkStrahlerMetric
~vtkStrahlerMetric()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetStringMacro
#define vtkSetStringMacro(name)
Definition: vtkSetGet.h:104
VTKFILTERSSTATISTICS_EXPORT
#define VTKFILTERSSTATISTICS_EXPORT
Definition: vtkFiltersStatisticsModule.h:15
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkTreeAlgorithm
Superclass for algorithms that produce only Tree as output.
Definition: vtkTreeAlgorithm.h:48
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkStrahlerMetric::Normalize
int Normalize
Definition: vtkStrahlerMetric.h:84
vtkStrahlerMetric::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkStrahlerMetric
compute Strahler metric for a tree
Definition: vtkStrahlerMetric.h:52
vtkStrahlerMetric::CalculateStrahler
float CalculateStrahler(vtkIdType root, vtkFloatArray *metric, vtkTree *graph)