| 21 | #include "vtkVolumeTexture.h" |
| 22 | |
| 23 | VTK_ABI_NAMESPACE_BEGIN |
| 24 | vtkVolumeInputHelper::vtkVolumeInputHelper(vtkSmartPointer<vtkVolumeTexture> tex, vtkVolume* vol) |
| 25 | : Texture(tex) |
| 26 | , Volume(vol) |
| 27 | { |
| 28 | } |
| 29 | |
| 30 | void 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 | |
| 41 | void vtkVolumeInputHelper::InitializeTransferFunction(vtkRenderer* ren, int index) |
| 42 | { |
no test coverage detected