VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Graphics
vtkMassProperties.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkMassProperties.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
=========================================================================*/
38
#ifndef __vtkMassProperties_h
39
#define __vtkMassProperties_h
40
41
#include "
vtkPolyDataAlgorithm.h
"
42
43
class
VTK_GRAPHICS_EXPORT
vtkMassProperties
:
public
vtkPolyDataAlgorithm
44
{
45
public
:
47
static
vtkMassProperties
*
New
();
48
49
vtkTypeMacro(
vtkMassProperties
,
vtkPolyDataAlgorithm
);
50
void
PrintSelf
(ostream& os,
vtkIndent
indent);
51
53
double
GetVolume
() {this->
Update
();
return
this->Volume;}
54
60
double
GetVolumeProjected
() {this->
Update
();
return
this->VolumeProjected;}
61
63
65
double
GetVolumeX
() {this->
Update
();
return
this->VolumeX;}
66
double
GetVolumeY
() {this->
Update
();
return
this->VolumeY;}
67
double
GetVolumeZ
() {this->
Update
();
return
this->VolumeZ;}
69
71
73
double
GetKx
() {this->
Update
();
return
this->Kx;}
74
double
GetKy
() {this->
Update
();
return
this->Ky;}
75
double
GetKz
() {this->
Update
();
return
this->Kz;}
77
79
double
GetSurfaceArea
() {this->
Update
();
return
this->SurfaceArea;}
80
82
double
GetMinCellArea
() {this->
Update
();
return
this->MinCellArea;}
83
85
double
GetMaxCellArea
() {this->
Update
();
return
this->MaxCellArea;}
86
88
91
double
GetNormalizedShapeIndex()
92
{this->
Update
();
return
this->NormalizedShapeIndex;}
94
95
protected
:
96
vtkMassProperties
();
97
~
vtkMassProperties
();
98
99
virtual
int
RequestData
(
vtkInformation
* request,
100
vtkInformationVector
** inputVector,
101
vtkInformationVector
* outputVector);
102
103
double
SurfaceArea
;
104
double
MinCellArea
;
105
double
MaxCellArea
;
106
double
Volume
;
107
double
VolumeProjected
;
// == Projected area of triangles * average z values
108
double
VolumeX
;
109
double
VolumeY
;
110
double
VolumeZ
;
111
double
Kx
;
112
double
Ky
;
113
double
Kz
;
114
double
NormalizedShapeIndex
;
115
116
private
:
117
vtkMassProperties
(
const
vtkMassProperties
&);
// Not implemented.
118
void
operator=(
const
vtkMassProperties
&);
// Not implemented.
119
};
120
121
#endif
122
123
Generated on Wed Nov 21 2012 21:33:48 for VTK by
1.8.2