OpenWalnut  1.5.0dev
Public Member Functions | Public Attributes | List of all members
WTransferFunction::AlphaEntry Struct Reference

Alpha entries represent linearly interpolated transparency values along the isovalue scale. More...

+ Inheritance diagram for WTransferFunction::AlphaEntry:
+ Collaboration diagram for WTransferFunction::AlphaEntry:

Public Member Functions

 AlphaEntry (double iso, double alpha)
 default constructor More...
 
bool operator== (const AlphaEntry &rhs) const
 comparison operator to check for changes More...
 
- Public Member Functions inherited from WTransferFunction::Entry
 Entry (double iso)
 Default constructor. More...
 
bool operator<= (const Entry &rhs) const
 comparison by isovalue More...
 

Public Attributes

double alpha
 holds the current alpha at isovalue Entry::iso More...
 
- Public Attributes inherited from WTransferFunction::Entry
double iso
 the isovalue More...
 

Detailed Description

Alpha entries represent linearly interpolated transparency values along the isovalue scale.

Alpha is in the range [ 0...1 ] where 1 signifies entirely opaque ( which makes it more an opacity value instead of alpha, but I use the commonly used language here )

Definition at line 310 of file WTransferFunction.h.

Constructor & Destructor Documentation

◆ AlphaEntry()

WTransferFunction::AlphaEntry::AlphaEntry ( double  iso,
double  alpha 
)
inline

default constructor

Parameters
isothe isovalue
alphathe alpha at the isovalue in the range from 0 = transparent to 1 = opaque

Definition at line 316 of file WTransferFunction.h.

Member Function Documentation

◆ operator==()

bool WTransferFunction::AlphaEntry::operator== ( const AlphaEntry rhs) const
inline

comparison operator to check for changes

Parameters
rhsAlphaEntry to compare to
Returns
true if rhs is equal to this

Definition at line 325 of file WTransferFunction.h.

References alpha, and WTransferFunction::Entry::iso.

Member Data Documentation

◆ alpha

double WTransferFunction::AlphaEntry::alpha

holds the current alpha at isovalue Entry::iso

Definition at line 331 of file WTransferFunction.h.

Referenced by operator==().


The documentation for this struct was generated from the following file: