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

Function HasGradientOpacity

Rendering/VolumeOpenGL2/vtkVolumeShaderComposer.h:26–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24namespace
25{
26inline bool HasGradientOpacity(vtkOpenGLGPUVolumeRayCastMapper::VolumeInputMap& inputs)
27{
28 for (auto& item : inputs)
29 {
30 vtkVolumeProperty* volProp = item.second.Volume->GetProperty();
31 const bool gradOp = (volProp->HasGradientOpacity() || volProp->HasLabelGradientOpacity()) &&
32 !volProp->GetDisableGradientOpacity();
33 if (gradOp)
34 return true;
35 }
36 return false;
37}
38
39inline bool HasLighting(vtkOpenGLGPUVolumeRayCastMapper::VolumeInputMap& inputs)
40{

Calls 2

GetPropertyMethod · 0.45

Tested by

no test coverage detected