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

Method UpdateInterpolationType

Rendering/VolumeOpenGL2/vtkVolumeTexture.cxx:850–866  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

848
849//------------------------------------------------------------------------------
850void vtkVolumeTexture::UpdateInterpolationType(int interpolation)
851{
852 if (interpolation == VTK_LINEAR_INTERPOLATION &&
853 this->InterpolationType != vtkTextureObject::Linear)
854 {
855 this->SetInterpolation(vtkTextureObject::Linear);
856 }
857 else if (interpolation == VTK_NEAREST_INTERPOLATION &&
858 this->InterpolationType != vtkTextureObject::Nearest)
859 {
860 this->SetInterpolation(vtkTextureObject::Nearest);
861 }
862 else if (interpolation != VTK_LINEAR_INTERPOLATION && interpolation != VTK_NEAREST_INTERPOLATION)
863 {
864 std::cerr << "Interpolation type not supported in this mapper." << std::endl;
865 }
866}
867
868//------------------------------------------------------------------------------
869void vtkVolumeTexture::SortBlocksBackToFront(vtkRenderer* ren, vtkMatrix4x4* volumeMat)

Callers 1

UpdateVolumeMethod · 0.95

Calls 1

SetInterpolationMethod · 0.95

Tested by

no test coverage detected