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

Method FinishRendering

Rendering/VolumeOpenGL2/vtkOpenGLGPUVolumeRayCastMapper.cxx:3867–3896  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3865}
3866
3867void vtkOpenGLGPUVolumeRayCastMapper::vtkInternal::FinishRendering(const int numComp)
3868{
3869 for (auto& item : this->Parent->AssembledInputs)
3870 {
3871 auto& input = item.second;
3872 input.Texture->GetCurrentBlock()->TextureObject->Deactivate();
3873 input.DeactivateTransferFunction(this->Parent->BlendMode);
3874 }
3875
3876 if (this->DepthTextureObject && !this->SharedDepthTextureObject)
3877 {
3878 this->DepthTextureObject->Deactivate();
3879 }
3880
3881 if (this->CurrentMask)
3882 {
3883 this->CurrentMask->GetCurrentBlock()->TextureObject->Deactivate();
3884 }
3885
3886 if (numComp == 1 && this->Parent->BlendMode != vtkGPUVolumeRayCastMapper::ADDITIVE_BLEND)
3887 {
3888 if (this->Parent->MaskInput != nullptr && this->Parent->MaskType == LabelMapMaskType)
3889 {
3890 this->LabelMapTransfer2D->Deactivate();
3891 this->LabelMapGradientOpacity->Deactivate();
3892 }
3893 }
3894
3895 vtkOpenGLStaticCheckErrorMacro("Failed after FinishRendering!");
3896}
3897
3898//------------------------------------------------------------------------------
3899void vtkOpenGLGPUVolumeRayCastMapper::DoGPURender(vtkRenderer* ren, vtkOpenGLCamera* cam,

Callers 2

RenderMultipleInputsMethod · 0.95
RenderSingleInputMethod · 0.95

Calls 3

GetCurrentBlockMethod · 0.80
DeactivateMethod · 0.45

Tested by

no test coverage detected