------------------------------------------------------------------------------
| 135 | |
| 136 | //------------------------------------------------------------------------------ |
| 137 | void 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 | //------------------------------------------------------------------------------ |
| 154 | void vtkImageGridSource::PrintSelf(ostream& os, vtkIndent indent) |
nothing calls this directly
no test coverage detected