Allocate memory
| 48 | |
| 49 | // Allocate memory |
| 50 | void 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 |
| 62 | void vtkFixedPointRayCastImage::ClearImage() |