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

Method Execute

Filters/Hybrid/vtkTemporalArrayOperatorFilter.cxx:222–249  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

220
221//------------------------------------------------------------------------------
222int vtkTemporalArrayOperatorFilter::Execute(vtkInformation*,
223 const std::vector<vtkSmartPointer<vtkDataObject>>& inputs, vtkInformationVector* outputVector)
224{
225 if (inputs.size() != 2)
226 {
227 vtkErrorMacro(<< "The number of time blocks is incorrect.");
228 return 0;
229 }
230
231 auto& data0 = inputs[0];
232 auto& data1 = inputs[1];
233 if (!data0 || !data1)
234 {
235 vtkErrorMacro(<< "Unable to retrieve data objects.");
236 return 0;
237 }
238
239 vtkSmartPointer<vtkDataObject> newOutData;
240 newOutData.TakeReference(this->Process(data0, data1));
241
242 vtkInformation* outInfo = outputVector->GetInformationObject(0);
243 vtkDataObject* outData = vtkDataObject::GetData(outInfo);
244 outData->ShallowCopy(newOutData);
245
246 this->CheckAbort();
247
248 return newOutData != nullptr ? 1 : 0;
249}
250
251//------------------------------------------------------------------------------
252int vtkTemporalArrayOperatorFilter::GetInputArrayAssociation()

Callers

nothing calls this directly

Calls 7

ProcessMethod · 0.95
GetInformationObjectMethod · 0.80
CheckAbortMethod · 0.80
GetDataFunction · 0.50
sizeMethod · 0.45
TakeReferenceMethod · 0.45
ShallowCopyMethod · 0.45

Tested by

no test coverage detected