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

Method GetInputArrayInformation

Common/ExecutionModel/vtkAlgorithm.cxx:393–411  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

391
392//------------------------------------------------------------------------------
393vtkInformation* vtkAlgorithm::GetInputArrayInformation(int idx)
394{
395 // add this info into the algorithms info object
396 vtkInformationVector* inArrayVec = this->Information->Get(INPUT_ARRAYS_TO_PROCESS());
397 if (!inArrayVec)
398 {
399 inArrayVec = vtkInformationVector::New();
400 this->Information->Set(INPUT_ARRAYS_TO_PROCESS(), inArrayVec);
401 inArrayVec->Delete();
402 }
403 vtkInformation* inArrayInfo = inArrayVec->GetInformationObject(idx);
404 if (!inArrayInfo)
405 {
406 inArrayInfo = vtkInformation::New();
407 inArrayVec->SetInformationObject(idx, inArrayInfo);
408 inArrayInfo->Delete();
409 }
410 return inArrayInfo;
411}
412
413//------------------------------------------------------------------------------
414void vtkAlgorithm::SetInputArrayToProcess(int idx, vtkInformation* inInfo)

Callers 15

RequestDataMethod · 0.80
ShallowCopyMethod · 0.80
ShallowCopyMethod · 0.80
RequestDataMethod · 0.80
RequestDataMethod · 0.80
ClipVolumeMethod · 0.80
RequestDataMethod · 0.80
RequestDataMethod · 0.80

Calls 6

GetInformationObjectMethod · 0.80
SetInformationObjectMethod · 0.80
DeleteMethod · 0.65
NewFunction · 0.50
GetMethod · 0.45
SetMethod · 0.45

Tested by

no test coverage detected