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

Method ExecuteDataWithInformation

Imaging/Sources/vtkImageGridSource.cxx:137–151  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

135
136//------------------------------------------------------------------------------
137void vtkImageGridSource::ExecuteDataWithInformation(vtkDataObject* output, vtkInformation* outInfo)
138{
139 vtkImageData* data = this->AllocateOutputData(output, outInfo);
140 int* outExt = data->GetExtent();
141 void* outPtr = data->GetScalarPointerForExtent(outExt);
142
143 // Call the correct templated function for the output
144 switch (this->GetDataScalarType())
145 {
146 vtkTemplateMacro(
147 vtkImageGridSourceExecute(this, data, static_cast<VTK_TT*>(outPtr), outExt, 0));
148 default:
149 vtkErrorMacro(<< "Execute: Unknown data type");
150 }
151}
152
153//------------------------------------------------------------------------------
154void vtkImageGridSource::PrintSelf(ostream& os, vtkIndent indent)

Callers

nothing calls this directly

Calls 5

GetDataScalarTypeMethod · 0.80
AllocateOutputDataMethod · 0.45
GetExtentMethod · 0.45

Tested by

no test coverage detected