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

Method GetDataDimensions

IO/Image/vtkImageExport.cxx:84–99  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

82
83//------------------------------------------------------------------------------
84void vtkImageExport::GetDataDimensions(int* dims)
85{
86 vtkImageData* input = this->GetInput();
87 if (input == nullptr)
88 {
89 dims[0] = dims[1] = dims[2] = 0;
90 return;
91 }
92
93 this->GetInputAlgorithm()->UpdateInformation();
94 vtkInformation* inInfo = this->GetInputInformation();
95 int* extent = inInfo->Get(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT());
96 dims[0] = extent[1] - extent[0] + 1;
97 dims[1] = extent[3] - extent[2] + 1;
98 dims[2] = extent[5] - extent[4] + 1;
99}
100
101//------------------------------------------------------------------------------
102void vtkImageExport::SetExportVoidPointer(void* ptr)

Callers 1

vtkImageExport.hFile · 0.45

Calls 5

GetInputMethod · 0.95
GetInputAlgorithmMethod · 0.95
GetInputInformationMethod · 0.95
UpdateInformationMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected