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

Method ExecuteDataWithInformation

IO/Image/vtkGESignaReader.cxx:708–728  ·  view source on GitHub ↗

------------------------------------------------------------------------------ This function reads a data from a file. The datas extent/axes are assumed to be the same as the file extent/order.

Source from the content-addressed store, hash-verified

706// This function reads a data from a file. The datas extent/axes
707// are assumed to be the same as the file extent/order.
708void vtkGESignaReader::ExecuteDataWithInformation(vtkDataObject* output, vtkInformation* outInfo)
709{
710 vtkImageData* data = this->AllocateOutputData(output, outInfo);
711
712 if (this->InternalFileName == nullptr)
713 {
714 vtkErrorMacro(<< "Either a FileName or FilePrefix must be specified.");
715 return;
716 }
717
718 data->GetPointData()->GetScalars()->SetName("GESignalImage");
719
720 this->ComputeDataIncrements();
721
722 // Call the correct templated function for the output
723 void* outPtr;
724
725 // Call the correct templated function for the input
726 outPtr = data->GetScalarPointer();
727 vtkGESignaReaderUpdate(this, data, (unsigned short*)(outPtr));
728}
729
730//------------------------------------------------------------------------------
731void vtkGESignaReader::PrintSelf(ostream& os, vtkIndent indent)

Callers

nothing calls this directly

Calls 7

vtkGESignaReaderUpdateFunction · 0.85
GetScalarPointerMethod · 0.80
AllocateOutputDataMethod · 0.45
SetNameMethod · 0.45
GetScalarsMethod · 0.45
GetPointDataMethod · 0.45
ComputeDataIncrementsMethod · 0.45

Tested by

no test coverage detected