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

Method GetRedDiffuseShadingTable

Rendering/Volume/vtkEncodedGradientShader.cxx:54–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54float* vtkEncodedGradientShader::GetRedDiffuseShadingTable(vtkVolume* vol)
55{
56 int index;
57
58 for (index = 0; index < VTK_MAX_SHADING_TABLES; index++)
59 {
60 if (this->ShadingTableVolume[index] == vol)
61 {
62 break;
63 }
64 }
65
66 if (index == VTK_MAX_SHADING_TABLES)
67 {
68 vtkErrorMacro(<< "No shading table found for that volume!");
69 return nullptr;
70 }
71
72 return this->ShadingTable[index][0];
73}
74
75float* vtkEncodedGradientShader::GetGreenDiffuseShadingTable(vtkVolume* vol)
76{

Callers 1

UpdateShadingTableMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected