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

Method GetGreenDiffuseShadingTable

Rendering/Volume/vtkEncodedGradientShader.cxx:75–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75float* 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
96float* vtkEncodedGradientShader::GetBlueDiffuseShadingTable(vtkVolume* vol)
97{

Callers 1

UpdateShadingTableMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected