|
TuttleOFX
1
|
#include <AbstractLut.hpp>


Public Member Functions | |
| AbstractLut () | |
| AbstractLut (Interpolator *interpolator, size_t dimSize, double *data=NULL) | |
| AbstractLut (Interpolator *interpolator, LutReader &reader) | |
| virtual | ~AbstractLut () |
| void | reset (Interpolator *interpolator, LutReader &reader) |
| void | reset (LutReader &reader) |
| void | reset (size_t dimSize, double *data=NULL) |
| const size_t & | dimSize () const |
| double * | getData () |
| virtual const size_t | totalSize () const =0 |
| virtual Color | getIndexedColor (int _x, int _y, int _z) const =0 |
| virtual Color | getColor (Color const &color) const =0 |
| virtual Color | getColor (double _r, double _g, double _b) const =0 |
| virtual void | setIndexedColor (int _x, int _y, int _z, Color _color)=0 |
| virtual void | setIndexedValues (int _x, int _y, int _z, double _r, double _g, double _b)=0 |
Protected Attributes | |
| size_t | _dimSize |
| double * | _data |
| bool | _shared |
| Interpolator * | _interpolator |
Definition at line 12 of file AbstractLut.hpp.
| tuttle::AbstractLut::AbstractLut | ( | ) |
Definition at line 9 of file AbstractLut.cpp.
| tuttle::AbstractLut::AbstractLut | ( | Interpolator * | interpolator, |
| size_t | dimSize, | ||
| double * | data = NULL |
||
| ) |
Definition at line 16 of file AbstractLut.cpp.
| tuttle::AbstractLut::AbstractLut | ( | Interpolator * | interpolator, |
| LutReader & | reader | ||
| ) |
Definition at line 23 of file AbstractLut.cpp.
| tuttle::AbstractLut::~AbstractLut | ( | ) | [virtual] |
Definition at line 30 of file AbstractLut.cpp.
References _data, _interpolator, and _shared.
| const size_t& tuttle::AbstractLut::dimSize | ( | ) | const [inline] |
Definition at line 30 of file AbstractLut.hpp.
References _dimSize.
Referenced by tuttle::TetraInterpolator::interpolate(), and tuttle::TrilinInterpolator::interpolate().
Implemented in tuttle::Lut3D.
| virtual Color tuttle::AbstractLut::getColor | ( | double | _r, |
| double | _g, | ||
| double | _b | ||
| ) | const [pure virtual] |
Implemented in tuttle::Lut3D.
| double* tuttle::AbstractLut::getData | ( | ) | [inline] |
Definition at line 31 of file AbstractLut.hpp.
References _data.
| virtual Color tuttle::AbstractLut::getIndexedColor | ( | int | _x, |
| int | _y, | ||
| int | _z | ||
| ) | const [pure virtual] |
Implemented in tuttle::Lut3D.
Referenced by tuttle::TetraInterpolator::interpolate(), and tuttle::TrilinInterpolator::interpolate().
| void tuttle::AbstractLut::reset | ( | Interpolator * | interpolator, |
| LutReader & | reader | ||
| ) |
Definition at line 40 of file AbstractLut.cpp.
References _data, _dimSize, _interpolator, _shared, tuttle::LutReader::data(), and tuttle::LutReader::steps().
Referenced by tuttle::plugin::lut::LutPlugin::changedParam(), and tuttle::plugin::lut::LutPlugin::render().

| void tuttle::AbstractLut::reset | ( | LutReader & | reader | ) |
Definition at line 54 of file AbstractLut.cpp.
References _data, _dimSize, _interpolator, _shared, tuttle::LutReader::data(), and tuttle::LutReader::steps().

| void tuttle::AbstractLut::reset | ( | size_t | dimSize, |
| double * | data = NULL |
||
| ) |
Definition at line 68 of file AbstractLut.cpp.
References _data, _dimSize, _interpolator, _shared, and totalSize().

| virtual void tuttle::AbstractLut::setIndexedColor | ( | int | _x, |
| int | _y, | ||
| int | _z, | ||
| Color | _color | ||
| ) | [pure virtual] |
Implemented in tuttle::Lut3D.
| virtual void tuttle::AbstractLut::setIndexedValues | ( | int | _x, |
| int | _y, | ||
| int | _z, | ||
| double | _r, | ||
| double | _g, | ||
| double | _b | ||
| ) | [pure virtual] |
Implemented in tuttle::Lut3D.
| virtual const size_t tuttle::AbstractLut::totalSize | ( | ) | const [pure virtual] |
Implemented in tuttle::Lut3D.
Referenced by reset().
double* tuttle::AbstractLut::_data [protected] |
Definition at line 16 of file AbstractLut.hpp.
Referenced by getData(), tuttle::Lut3D::getIndexedColor(), tuttle::Lut3D::Lut3D(), reset(), tuttle::Lut3D::setIndexedValues(), and ~AbstractLut().
size_t tuttle::AbstractLut::_dimSize [protected] |
Definition at line 15 of file AbstractLut.hpp.
Referenced by dimSize(), tuttle::Lut3D::getIndex(), tuttle::Lut3D::Lut3D(), reset(), and tuttle::Lut3D::totalSize().
Interpolator* tuttle::AbstractLut::_interpolator [protected] |
Definition at line 18 of file AbstractLut.hpp.
Referenced by tuttle::Lut3D::getColor(), tuttle::Lut3D::Lut3D(), reset(), and ~AbstractLut().
bool tuttle::AbstractLut::_shared [protected] |
Definition at line 17 of file AbstractLut.hpp.
Referenced by tuttle::Lut3D::Lut3D(), reset(), and ~AbstractLut().