MCPcopy Create free account
hub / github.com/Kitware/VTK / GetBlueDiffuseShadingTable

Method GetBlueDiffuseShadingTable

Rendering/Volume/vtkEncodedGradientShader.cxx:96–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96float* 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
117float* vtkEncodedGradientShader::GetRedSpecularShadingTable(vtkVolume* vol)
118{

Callers 1

UpdateShadingTableMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected