------------------------------------------------------------------------------
| 848 | |
| 849 | //------------------------------------------------------------------------------ |
| 850 | void 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 | //------------------------------------------------------------------------------ |
| 869 | void vtkVolumeTexture::SortBlocksBackToFront(vtkRenderer* ren, vtkMatrix4x4* volumeMat) |
no test coverage detected