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 "vtkTreeAlgorithm.h"
47 
48 class vtkFloatArray;
49 
51 {
52 public:
53  static vtkStrahlerMetric *New();
55  void PrintSelf(ostream& os, vtkIndent indent);
56 
58 
60  vtkSetStringMacro(MetricArrayName);
62 
64 
67  vtkSetMacro(Normalize, int);
68  vtkGetMacro(Normalize, int);
69  vtkBooleanMacro(Normalize, int);
71 
73 
74  vtkGetMacro(MaxStrahler,float);
76 
77 protected:
80 
82 
83  int Normalize;
84  float MaxStrahler;
86 
87  float CalculateStrahler(vtkIdType root, vtkFloatArray *metric, vtkTree *graph);
88 
89 private:
90  vtkStrahlerMetric(const vtkStrahlerMetric&); // Not implemented.
91  void operator=(const vtkStrahlerMetric&); // Not implemented.
92 };
93 
94 #endif
95