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

Method GetPointerToData

IO/Image/vtkImageExport.cxx:164–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162// update, though)
163
164void* vtkImageExport::GetPointerToData()
165{
166 // Error checking
167 if (this->GetInput() == nullptr)
168 {
169 vtkErrorMacro(<< "Export: Please specify an input!");
170 return nullptr;
171 }
172
173 vtkImageData* input = this->GetInput();
174 vtkAlgorithm* inpAlgorithm = this->GetInputAlgorithm();
175 inpAlgorithm->UpdateInformation();
176 inpAlgorithm->ReleaseDataFlagOff();
177
178 inpAlgorithm->UpdateWholeExtent();
179 this->UpdateProgress(0.0);
180 this->UpdateProgress(1.0);
181
182 return input->GetScalarPointer();
183}
184
185//------------------------------------------------------------------------------
186void* vtkImageExport::GetCallbackUserData()

Callers 1

ExportMethod · 0.95

Calls 7

GetInputMethod · 0.95
GetInputAlgorithmMethod · 0.95
ReleaseDataFlagOffMethod · 0.80
GetScalarPointerMethod · 0.80
UpdateInformationMethod · 0.45
UpdateWholeExtentMethod · 0.45
UpdateProgressMethod · 0.45

Tested by

no test coverage detected