| 73 | } |
| 74 | |
| 75 | float* vtkEncodedGradientShader::GetGreenDiffuseShadingTable(vtkVolume* vol) |
| 76 | { |
| 77 | int index; |
| 78 | |
| 79 | for (index = 0; index < VTK_MAX_SHADING_TABLES; index++) |
| 80 | { |
| 81 | if (this->ShadingTableVolume[index] == vol) |
| 82 | { |
| 83 | break; |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | if (index == VTK_MAX_SHADING_TABLES) |
| 88 | { |
| 89 | vtkErrorMacro(<< "No shading table found for that volume!"); |
| 90 | return nullptr; |
| 91 | } |
| 92 | |
| 93 | return this->ShadingTable[index][1]; |
| 94 | } |
| 95 | |
| 96 | float* vtkEncodedGradientShader::GetBlueDiffuseShadingTable(vtkVolume* vol) |
| 97 | { |