Class representing a lookup table for color coding.
More...
#include <iALookupTable.h>
|
| | iALookupTable () |
| | Set up an empty (uninitialized) iALookupTable.
|
| |
| | iALookupTable (QColor color) |
| | Set up a lookup table with a single color.
|
| |
| | iALookupTable (vtkLookupTable *vtk_lut) |
| | Initialize an iALookupTable from the given vtkLookupTable.
|
| |
| void | allocate (size_t numberOfColors) |
| | Allocate place for a given number of colors and fill with zeros.
|
| |
| void | copyFromVTK (vtkLookupTable *vtk_lut) |
| | Copies data from the existing VTK lookup table (vtkLookupTable).
|
| |
| void | getColor (double val, double *rgba_out) const |
| | Map a scalar value into an RGBA color.
|
| |
| QColor | getQColor (double val) const |
| | Map a scalar value into an QColor object.
|
| |
| const double * | getRange () const |
| | Get the mapped scalar range.
|
| |
| void | getTableValue (size_t index, double *rgba_out) const |
| | Get the RGBA color value for a given index in the table.
|
| |
| bool | initialized () const |
| | Check if the table has data (initialized).
|
| |
| size_t | numberOfValues () const |
| | Get the number of values in the table.
|
| |
| void | setColor (size_t colInd, double *rgba) |
| | Assign an RGBA color (every component 0..1) to a given index in the table.
|
| |
| void | setColor (size_t colInd, QColor const &col) |
| | Assign a color specified by a QColor to a given index in the table.
|
| |
| void | setData (size_t numberOfColors, double *rgba_data) |
| | Fill the lookup table using provided raw RBGA data for a given number of colors.
|
| |
| void | setOpacity (double alpha) |
| | Set a given alpha value for every color in the table.
|
| |
| void | setRange (double const *range) |
| | Set the mapped scalar range.
|
| |
| void | setRange (double from_val, double to_val) |
| | Set the mapped scalar range.
|
| |
|
| std::vector< double > | m_data |
| | lookup table raw color data, each color is 4 doubles (RGBA)
|
| |
| bool | m_isInitialized = false |
| | flag which is on if lookup table data is set
|
| |
| size_t | m_numColors |
| | number of colors stored in the lookup table
|
| |
| double | m_range [2] |
| | scalar range mapped by the lookup table
|
| |
| double | m_rangeLen |
| | length of the total scalar range that is mapped by the lookup table
|
| |
Class representing a lookup table for color coding.
Used for example in the scatter plot matrix iAQSplom. Has methods for importing an existing VTK lookup table, and for mapping scalar values to a corresponding QColor.
◆ iALookupTable() [1/3]
| iALookupTable::iALookupTable |
( |
| ) |
|
◆ iALookupTable() [2/3]
| iALookupTable::iALookupTable |
( |
QColor | color | ) |
|
Set up a lookup table with a single color.
◆ iALookupTable() [3/3]
| iALookupTable::iALookupTable |
( |
vtkLookupTable * | vtk_lut | ) |
|
|
explicit |
◆ allocate()
| void iALookupTable::allocate |
( |
size_t | numberOfColors | ) |
|
Allocate place for a given number of colors and fill with zeros.
◆ copyFromVTK()
| void iALookupTable::copyFromVTK |
( |
vtkLookupTable * | vtk_lut | ) |
|
Copies data from the existing VTK lookup table (vtkLookupTable).
◆ getColor()
| void iALookupTable::getColor |
( |
double | val, |
|
|
double * | rgba_out ) const |
Map a scalar value into an RGBA color.
◆ getQColor()
| QColor iALookupTable::getQColor |
( |
double | val | ) |
const |
Map a scalar value into an QColor object.
◆ getRange()
| const double * iALookupTable::getRange |
( |
| ) |
const |
Get the mapped scalar range.
◆ getTableValue()
| void iALookupTable::getTableValue |
( |
size_t | index, |
|
|
double * | rgba_out ) const |
Get the RGBA color value for a given index in the table.
◆ initialized()
| bool iALookupTable::initialized |
( |
| ) |
const |
Check if the table has data (initialized).
◆ numberOfValues()
| size_t iALookupTable::numberOfValues |
( |
| ) |
const |
Get the number of values in the table.
◆ setColor() [1/2]
| void iALookupTable::setColor |
( |
size_t | colInd, |
|
|
double * | rgba ) |
Assign an RGBA color (every component 0..1) to a given index in the table.
◆ setColor() [2/2]
| void iALookupTable::setColor |
( |
size_t | colInd, |
|
|
QColor const & | col ) |
Assign a color specified by a QColor to a given index in the table.
◆ setData()
| void iALookupTable::setData |
( |
size_t | numberOfColors, |
|
|
double * | rgba_data ) |
Fill the lookup table using provided raw RBGA data for a given number of colors.
◆ setOpacity()
| void iALookupTable::setOpacity |
( |
double | alpha | ) |
|
Set a given alpha value for every color in the table.
◆ setRange() [1/2]
| void iALookupTable::setRange |
( |
double const * | range | ) |
|
Set the mapped scalar range.
◆ setRange() [2/2]
| void iALookupTable::setRange |
( |
double | from_val, |
|
|
double | to_val ) |
Set the mapped scalar range.
◆ m_data
| std::vector<double> iALookupTable::m_data |
|
protected |
lookup table raw color data, each color is 4 doubles (RGBA)
◆ m_isInitialized
| bool iALookupTable::m_isInitialized = false |
|
protected |
flag which is on if lookup table data is set
◆ m_numColors
| size_t iALookupTable::m_numColors |
|
protected |
number of colors stored in the lookup table
◆ m_range
| double iALookupTable::m_range[2] |
|
protected |
scalar range mapped by the lookup table
◆ m_rangeLen
| double iALookupTable::m_rangeLen |
|
protected |
length of the total scalar range that is mapped by the lookup table
The documentation for this class was generated from the following files: