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

Method GetMinMaxVolume

Rendering/Volume/vtkVolumeRayCastSpaceLeapingImageFilter.cxx:988–1002  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

986
987//------------------------------------------------------------------------------
988unsigned short* vtkVolumeRayCastSpaceLeapingImageFilter::GetMinMaxVolume(int size[4])
989{
990 if (vtkImageData* output = this->GetOutput())
991 {
992 int dims[3];
993 output->GetDimensions(dims);
994 size[0] = dims[0];
995 size[1] = dims[1];
996 size[2] = dims[2];
997 size[3] = this->GetNumberOfIndependentComponents();
998
999 return static_cast<unsigned short*>(output->GetScalarPointer());
1000 }
1001 return nullptr;
1002}
1003
1004//------------------------------------------------------------------------------
1005// Fill in the min-max space leaping information.

Callers 1

UpdateMinMaxVolumeMethod · 0.80

Calls 4

GetScalarPointerMethod · 0.80
GetOutputMethod · 0.45
GetDimensionsMethod · 0.45

Tested by

no test coverage detected