31 #include "core/common/WLogger.h"
32 #include "core/common/WPropertyVariable.h"
33 #include "core/common/WTransferFunction.h"
34 #include "../WGuiConsts.h"
36 #include "WPropertyTransferFunctionWidget.h"
40 m_transferFunctionProperty( property ),
41 m_layout( &m_parameterWidgets ),
42 m_infoLayout( &m_informationWidgets ),
43 m_transferFunction( &m_parameterWidgets, this ),
46 setAttribute( Qt::WA_DeleteOnClose );
48 m_layout.setMargin( WGLOBAL_MARGIN );
49 m_layout.setSpacing( WGLOBAL_SPACING );
74 QColor toQColor(
const WColor &color )
77 tmp.setRgbF( color[0],
106 for(
size_t i = 0; i< nbColors; ++i )
126 double alpha = tf.
getAlpha( nbAlphas-1 );
131 for(
size_t i = 1; i< nbAlphas-1; ++i )
A class that stores a 1D transfer function which consists of a linear interpolation of alpha and colo...
double getColorIsovalue(size_t i) const
The isovalue of the color at a given index.
const std::vector< double > & getHistogram() const
Returns the histogram.
size_t numAlphas() const
Get the number of alphas.
double getAlphaIsovalue(size_t i) const
Get the isovalue at a given index in the alpha values.
size_t numColors() const
Get the number of colors.
double getAlpha(size_t i) const
Get alpha at given index.
const WColor & getColor(size_t i) const
Get color at given index.