MCPcopy Create free account
hub / github.com/Kitware/VTK / FunctionValue

Method FunctionValue

Common/DataModel/vtkImplicitFunction.cxx:101–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99} // end anon namespace
100
101void vtkImplicitFunction::FunctionValue(vtkDataArray* input, vtkDataArray* output)
102{
103 if (!this->Transform)
104 {
105 this->EvaluateFunction(input, output);
106 }
107 else // pass point through transform
108 {
109 FunctionWorker<TransformFunction> worker(TransformFunction(this, this->Transform));
110 using Dispatcher = vtkArrayDispatch::Dispatch2ByArray<vtkArrayDispatch::AllPointArrays,
111 vtkArrayDispatch::AOSPointArrays>;
112 if (!Dispatcher::Execute(input, output, worker))
113 {
114 worker(input, output); // Use vtkDataArray API if dispatch fails.
115 }
116 }
117}
118
119void vtkImplicitFunction::EvaluateFunction(vtkDataArray* input, vtkDataArray* output)
120{

Callers 15

EvaluateFunctionMethod · 0.80
EvaluateGradientMethod · 0.80
FunctionValueFunction · 0.80
ContourMethod · 0.80
ClipMethod · 0.80
EvaluateFunctionMethod · 0.80
TestPlaneFunction · 0.80
RenderOverlayMethod · 0.80
RenderOpaqueGeometryMethod · 0.80
CreateMaskForImageFunction · 0.80
operator()Method · 0.80
RequestDataMethod · 0.80

Calls 4

EvaluateFunctionMethod · 0.95
TransformFunctionClass · 0.85
ExecuteFunction · 0.50
TransformPointMethod · 0.45

Tested by 2

TestPlaneFunction · 0.64
CreateMaskForImageFunction · 0.64