| 52 | } |
| 53 | |
| 54 | float* vtkEncodedGradientShader::GetRedDiffuseShadingTable(vtkVolume* vol) |
| 55 | { |
| 56 | int index; |
| 57 | |
| 58 | for (index = 0; index < VTK_MAX_SHADING_TABLES; index++) |
| 59 | { |
| 60 | if (this->ShadingTableVolume[index] == vol) |
| 61 | { |
| 62 | break; |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | if (index == VTK_MAX_SHADING_TABLES) |
| 67 | { |
| 68 | vtkErrorMacro(<< "No shading table found for that volume!"); |
| 69 | return nullptr; |
| 70 | } |
| 71 | |
| 72 | return this->ShadingTable[index][0]; |
| 73 | } |
| 74 | |
| 75 | float* vtkEncodedGradientShader::GetGreenDiffuseShadingTable(vtkVolume* vol) |
| 76 | { |