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

Method GetRedSpecularShadingTable

Rendering/Volume/vtkEncodedGradientShader.cxx:117–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117float* vtkEncodedGradientShader::GetRedSpecularShadingTable(vtkVolume* vol)
118{
119 int index;
120
121 for (index = 0; index < VTK_MAX_SHADING_TABLES; index++)
122 {
123 if (this->ShadingTableVolume[index] == vol)
124 {
125 break;
126 }
127 }
128
129 if (index == VTK_MAX_SHADING_TABLES)
130 {
131 vtkErrorMacro(<< "No shading table found for that volume!");
132 return nullptr;
133 }
134
135 return this->ShadingTable[index][3];
136}
137
138float* vtkEncodedGradientShader::GetGreenSpecularShadingTable(vtkVolume* vol)
139{

Callers 1

UpdateShadingTableMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected