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

Method AllocateImage

Rendering/Volume/vtkFixedPointRayCastImage.cxx:50–59  ·  view source on GitHub ↗

Allocate memory

Source from the content-addressed store, hash-verified

48
49// Allocate memory
50void vtkFixedPointRayCastImage::AllocateImage()
51{
52 delete[] this->Image;
53 this->Image = nullptr;
54
55 if (this->ImageMemorySize[0] > 0 && this->ImageMemorySize[1] > 0)
56 {
57 this->Image = new unsigned short[(4 * this->ImageMemorySize[0] * this->ImageMemorySize[1])];
58 }
59}
60
61// Clear image to 0
62void vtkFixedPointRayCastImage::ClearImage()

Callers 1

ComputeRowBoundsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected