Clear image to 0
| 60 | |
| 61 | // Clear image to 0 |
| 62 | void vtkFixedPointRayCastImage::ClearImage() |
| 63 | { |
| 64 | unsigned short* ucptr = this->Image; |
| 65 | |
| 66 | for (int i = 0; i < this->ImageMemorySize[0] * this->ImageMemorySize[1]; i++) |
| 67 | { |
| 68 | *(ucptr++) = 0; |
| 69 | *(ucptr++) = 0; |
| 70 | *(ucptr++) = 0; |
| 71 | *(ucptr++) = 0; |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | void vtkFixedPointRayCastImage::AllocateZBuffer() |
| 76 | { |