| 94 | } |
| 95 | |
| 96 | float* vtkEncodedGradientShader::GetBlueDiffuseShadingTable(vtkVolume* vol) |
| 97 | { |
| 98 | int index; |
| 99 | |
| 100 | for (index = 0; index < VTK_MAX_SHADING_TABLES; index++) |
| 101 | { |
| 102 | if (this->ShadingTableVolume[index] == vol) |
| 103 | { |
| 104 | break; |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | if (index == VTK_MAX_SHADING_TABLES) |
| 109 | { |
| 110 | vtkErrorMacro(<< "No shading table found for that volume!"); |
| 111 | return nullptr; |
| 112 | } |
| 113 | |
| 114 | return this->ShadingTable[index][2]; |
| 115 | } |
| 116 | |
| 117 | float* vtkEncodedGradientShader::GetRedSpecularShadingTable(vtkVolume* vol) |
| 118 | { |