VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Infovis
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
50
class
VTK_INFOVIS_EXPORT
vtkStrahlerMetric
:
public
vtkTreeAlgorithm
51
{
52
public
:
53
static
vtkStrahlerMetric
*
New
();
54
vtkTypeMacro(
vtkStrahlerMetric
,
vtkTreeAlgorithm
);
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
:
78
vtkStrahlerMetric
();
79
~
vtkStrahlerMetric
();
80
81
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
82
83
int
Normalize
;
84
float
MaxStrahler
;
85
char
*
MetricArrayName
;
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
Generated on Wed May 30 2012 13:22:16 for VTK by
1.8.1