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

Method FunctionValues

Common/DataModel/vtkGenericInterpolatedVelocityField.cxx:54–89  ·  view source on GitHub ↗

Evaluate u,v,w at x,y,z,t

Source from the content-addressed store, hash-verified

52static int tmp_count = 0;
53// Evaluate u,v,w at x,y,z,t
54int vtkGenericInterpolatedVelocityField::FunctionValues(double* x, double* f)
55{
56 vtkGenericDataSet* ds;
57 if (!this->LastDataSet && !this->DataSets->empty())
58 {
59 ds = (*this->DataSets)[0];
60 this->LastDataSet = ds;
61 }
62 else
63 {
64 ds = this->LastDataSet;
65 }
66 int retVal = this->FunctionValues(ds, x, f);
67 if (!retVal)
68 {
69 tmp_count = 0;
70 for (DataSetsTypeBase::iterator i = this->DataSets->begin(); i != this->DataSets->end(); ++i)
71 {
72 ds = *i;
73 if (ds && ds != this->LastDataSet)
74 {
75 this->ClearLastCell();
76 retVal = this->FunctionValues(ds, x, f);
77 if (retVal)
78 {
79 this->LastDataSet = ds;
80 return retVal;
81 }
82 }
83 }
84 this->ClearLastCell();
85 return 0;
86 }
87 tmp_count++;
88 return retVal;
89}
90
91const double vtkGenericInterpolatedVelocityField::TOLERANCE_SCALE = 1.0E-8;
92

Callers 4

ComputeAStepMethod · 0.45
ComputeNextStepMethod · 0.45
FunctionValuesFunction · 0.45
ComputeNextStepMethod · 0.45

Calls 15

ClearLastCellMethod · 0.95
GetCenteringMethod · 0.80
emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
FindAttributeMethod · 0.45
GetAttributesMethod · 0.45
GetAttributeMethod · 0.45
GetTypeMethod · 0.45
GetNumberOfAttributesMethod · 0.45
GetLengthMethod · 0.45
IsAtEndMethod · 0.45

Tested by

no test coverage detected