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

Method RefreshTransferFunction

Rendering/VolumeOpenGL2/vtkVolumeInputHelper.cxx:23–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21#include "vtkVolumeTexture.h"
22
23VTK_ABI_NAMESPACE_BEGIN
24vtkVolumeInputHelper::vtkVolumeInputHelper(vtkSmartPointer<vtkVolumeTexture> tex, vtkVolume* vol)
25 : Texture(tex)
26 , Volume(vol)
27{
28}
29
30void vtkVolumeInputHelper::RefreshTransferFunction(
31 vtkRenderer* ren, int uniformIndex, int blendMode, float samplingDist)
32{
33 if (this->InitializeTransfer ||
34 this->Volume->GetProperty()->GetMTime() > this->LutInit.GetMTime())
35 {
36 this->InitializeTransferFunction(ren, uniformIndex);
37 }
38 this->UpdateTransferFunctions(ren, blendMode, samplingDist);
39}
40
41void vtkVolumeInputHelper::InitializeTransferFunction(vtkRenderer* ren, int index)
42{

Callers 1

Calls 4

GetMTimeMethod · 0.45
GetPropertyMethod · 0.45

Tested by

no test coverage detected