VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Filtering
vtkImplicitSum.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkImplicitSum.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
=========================================================================*/
31
#ifndef __vtkImplicitSum_h
32
#define __vtkImplicitSum_h
33
34
#include "
vtkImplicitFunction.h
"
35
36
class
vtkDoubleArray
;
37
class
vtkImplicitFunctionCollection
;
38
39
class
VTK_FILTERING_EXPORT
vtkImplicitSum
:
public
vtkImplicitFunction
40
{
41
public
:
42
static
vtkImplicitSum
*
New
();
43
44
vtkTypeMacro(
vtkImplicitSum
,
vtkImplicitFunction
);
45
void
PrintSelf
(ostream& os,
vtkIndent
indent);
46
48
49
double
EvaluateFunction
(
double
x[3]);
50
double
EvaluateFunction
(
double
x,
double
y,
double
z)
51
{
return
this->
vtkImplicitFunction::EvaluateFunction
(x, y, z); } ;
53
56
void
EvaluateGradient
(
double
x[3],
double
g[3]);
57
59
unsigned
long
GetMTime
();
60
63
void
AddFunction(
vtkImplicitFunction
*in,
double
weight
);
64
67
void
AddFunction
(
vtkImplicitFunction
*in) { this->
AddFunction
(in, 1.0); }
68
70
void
RemoveAllFunctions();
71
73
void
SetFunctionWeight(
vtkImplicitFunction
*f,
double
weight
);
74
76
81
vtkSetMacro(NormalizeByWeight,
int
);
82
vtkGetMacro(NormalizeByWeight,
int
);
83
vtkBooleanMacro(NormalizeByWeight,
int
);
85
86
protected
:
87
vtkImplicitSum
();
88
~
vtkImplicitSum
();
89
90
vtkImplicitFunctionCollection
*
FunctionList
;
91
vtkDoubleArray
*
Weights
;
92
double
TotalWeight
;
93
94
void
CalculateTotalWeight(
void
);
95
int
NormalizeByWeight
;
96
97
private
:
98
vtkImplicitSum
(
const
vtkImplicitSum
&);
// Not implemented.
99
void
operator=(
const
vtkImplicitSum
&);
// Not implemented.
100
};
101
102
#endif
Generated on Wed Nov 21 2012 21:33:45 for VTK by
1.8.2