Update opacity transfer function texture. ------------------------------------------------------------------------------
| 13 | // Update opacity transfer function texture. |
| 14 | //------------------------------------------------------------------------------ |
| 15 | void vtkOpenGLVolumeGradientOpacityTable::InternalUpdate(vtkObject* func, int vtkNotUsed(blendMode), |
| 16 | double vtkNotUsed(sampleDistance), double vtkNotUsed(unitDistance), int filterValue) |
| 17 | { |
| 18 | vtkPiecewiseFunction* gradientOpacity = vtkPiecewiseFunction::SafeDownCast(func); |
| 19 | if (!gradientOpacity) |
| 20 | { |
| 21 | return; |
| 22 | } |
| 23 | gradientOpacity->GetTable( |
| 24 | 0, (this->LastRange[1] - this->LastRange[0]) * 0.25, this->TextureWidth, this->Table); |
| 25 | |
| 26 | this->TextureObject->Create2DFromRaw( |
| 27 | this->TextureWidth, 1, this->NumberOfColorComponents, VTK_FLOAT, this->Table); |
| 28 | |
| 29 | this->TextureObject->SetWrapS(vtkTextureObject::ClampToEdge); |
| 30 | this->TextureObject->SetMagnificationFilter(filterValue); |
| 31 | this->TextureObject->SetMinificationFilter(filterValue); |
| 32 | this->BuildTime.Modified(); |
| 33 | } |
| 34 | |
| 35 | //------------------------------------------------------------------------------ |
| 36 | void vtkOpenGLVolumeGradientOpacityTable::PrintSelf(ostream& os, vtkIndent indent) |
nothing calls this directly
no test coverage detected