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

Method InitializeTransferFunction

Rendering/VolumeOpenGL2/vtkVolumeInputHelper.cxx:41–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41void vtkVolumeInputHelper::InitializeTransferFunction(vtkRenderer* ren, int index)
42{
43 const int transferMode = this->Volume->GetProperty()->GetTransferFunctionMode();
44 switch (transferMode)
45 {
46 case vtkVolumeProperty::TF_2D:
47 this->CreateTransferFunction2D(ren, index);
48 break;
49
50 case vtkVolumeProperty::TF_1D:
51 default:
52 this->CreateTransferFunction1D(ren, index);
53 }
54 this->InitializeTransfer = false;
55}
56
57void vtkVolumeInputHelper::UpdateTransferFunctions(
58 vtkRenderer* ren, int blendMode, float samplingDist)

Callers 1

Calls 3

GetPropertyMethod · 0.45

Tested by

no test coverage detected