open_iA 2025.6
Loading...
Searching...
No Matches
iATransferFunctionOwner Class Reference

Implements iATransferFunction and owns both color and opacity transfer function. More...

#include <iATransferFunctionOwner.h>

Inheritance diagram for iATransferFunctionOwner:
[legend]
Collaboration diagram for iATransferFunctionOwner:
[legend]

Public Member Functions

 iATransferFunctionOwner ()
 Create an "empty" transfer function.
 
 iATransferFunctionOwner (double const range[2], bool opacityRamp=true)
 Create own transfer functions and initialize to default for the given range.
 
 iATransferFunctionOwner (vtkSmartPointer< vtkColorTransferFunction > ctf, vtkSmartPointer< vtkPiecewiseFunction > otf, bool opacityRamp=true)
 Create from the given transfer functions, taking on co-ownership; the transfer functions are assumed to be initialized already.
 
void resetFunctions (double const range[2])
 for resetting to a specified range
 
vtkPiecewiseFunction * opacityTF () override
 functions overridden from iATransferFunction:
 
vtkColorTransferFunction * colorTF () override
 
void resetFunctions () override
 
- Public Member Functions inherited from iATransferFunction
virtual ~iATransferFunction ()
 
void ensureValidity (double range[2])
 make sure the contained transfer function matches the given range, adapt TF if necessary in order to better encapsulate modification, this would probably better not be allowed here
 

Detailed Description

Implements iATransferFunction and owns both color and opacity transfer function.

Constructor & Destructor Documentation

◆ iATransferFunctionOwner() [1/3]

iATransferFunctionOwner::iATransferFunctionOwner ( )

Create an "empty" transfer function.

◆ iATransferFunctionOwner() [2/3]

iATransferFunctionOwner::iATransferFunctionOwner ( vtkSmartPointer< vtkColorTransferFunction > ctf,
vtkSmartPointer< vtkPiecewiseFunction > otf,
bool opacityRamp = true )

Create from the given transfer functions, taking on co-ownership; the transfer functions are assumed to be initialized already.

Parameters
ctfa smart pointer to an (allocated and initialized) color transfer function
otfa smart pointer to an (allocated and initialized) opacity transfer function
opacityRampwhether, in case the function is reset through resetFunction, the opacity transfer function should go from 0..1 (true) or always be 1 (false)

◆ iATransferFunctionOwner() [3/3]

iATransferFunctionOwner::iATransferFunctionOwner ( double const range[2],
bool opacityRamp = true )

Create own transfer functions and initialize to default for the given range.

Parameters
rangethe range of values for which the transfer function applies
opacityRampwhether the created default transfer function (and in case the function is reset through resetFunction), the opacity transfer function should go from 0..1 (true) or always be 1 (false)

Member Function Documentation

◆ colorTF()

vtkColorTransferFunction * iATransferFunctionOwner::colorTF ( )
overridevirtual

Implements iATransferFunction.

◆ opacityTF()

vtkPiecewiseFunction * iATransferFunctionOwner::opacityTF ( )
overridevirtual

functions overridden from iATransferFunction:

Implements iATransferFunction.

◆ resetFunctions() [1/2]

void iATransferFunctionOwner::resetFunctions ( )
overridevirtual

Implements iATransferFunction.

◆ resetFunctions() [2/2]

void iATransferFunctionOwner::resetFunctions ( double const range[2])

for resetting to a specified range


The documentation for this class was generated from the following files: