------------------------------------------------------------------------------
| 28 | |
| 29 | //------------------------------------------------------------------------------ |
| 30 | vtkImageData* vtkUniformGrid::NewImageDataCopy() |
| 31 | { |
| 32 | vtkImageData* copy = vtkImageData::New(); |
| 33 | |
| 34 | copy->ShallowCopy(this); |
| 35 | |
| 36 | double origin[3]; |
| 37 | double spacing[3]; |
| 38 | this->GetOrigin(origin); |
| 39 | this->GetSpacing(spacing); |
| 40 | // First set the extent of the copy to empty so that |
| 41 | // the next call computes the DataDescription for us |
| 42 | copy->SetExtent(0, -1, 0, -1, 0, -1); |
| 43 | copy->SetExtent(this->GetExtent()); |
| 44 | copy->SetOrigin(origin); |
| 45 | copy->SetSpacing(spacing); |
| 46 | |
| 47 | return copy; |
| 48 | } |
| 49 | |
| 50 | //------------------------------------------------------------------------------ |
| 51 | vtkUniformGrid* vtkUniformGrid::GetData(vtkInformation* info) |
nothing calls this directly
no test coverage detected