TuttleOFX
1
|
#include <Lut.hpp>
Public Member Functions | |
Lut3D () | |
Lut3D (Interpolator *interpolator, size_t _dimSize, double *data=NULL) | |
Lut3D (const Lut3D &lut3d) | |
const size_t | totalSize () const |
Color | getIndexedColor (int _x, int _y, int _z) const |
Color | getColor (Color const &color) const |
Color | getColor (double _r, double _g, double _b) const |
void | setIndexedColor (int _x, int _y, int _z, Color _color) |
void | setIndexedValues (int _x, int _y, int _z, double _r, double _g, double _b) |
Private Member Functions | |
int | getIndex (const int _x, const int _y, const int _z) const |
tuttle::Lut3D::Lut3D | ( | Interpolator * | interpolator, |
size_t | _dimSize, | ||
double * | data = NULL |
||
) |
Definition at line 7 of file Lut.cpp.
References tuttle::AbstractLut::_data, and totalSize().
tuttle::Lut3D::Lut3D | ( | const Lut3D & | lut3d | ) |
Definition at line 17 of file Lut.cpp.
References tuttle::AbstractLut::_data, tuttle::AbstractLut::_dimSize, tuttle::AbstractLut::_interpolator, and tuttle::AbstractLut::_shared.
Implements tuttle::AbstractLut.
Definition at line 23 of file Lut.hpp.
References tuttle::AbstractLut::_interpolator, and tuttle::Interpolator::interpolate().
Color tuttle::Lut3D::getColor | ( | double | _r, |
double | _g, | ||
double | _b | ||
) | const [inline, virtual] |
Implements tuttle::AbstractLut.
Definition at line 24 of file Lut.hpp.
References tuttle::AbstractLut::_interpolator, and tuttle::Interpolator::interpolate().
int tuttle::Lut3D::getIndex | ( | const int | _x, |
const int | _y, | ||
const int | _z | ||
) | const [inline, private] |
Definition at line 29 of file Lut.hpp.
References tuttle::AbstractLut::_dimSize.
Referenced by getIndexedColor(), and setIndexedValues().
Color tuttle::Lut3D::getIndexedColor | ( | int | _x, |
int | _y, | ||
int | _z | ||
) | const [inline, virtual] |
Implements tuttle::AbstractLut.
Definition at line 41 of file Lut.hpp.
References tuttle::AbstractLut::_data, and getIndex().
void tuttle::Lut3D::setIndexedColor | ( | int | _x, |
int | _y, | ||
int | _z, | ||
Color | _color | ||
) | [inline, virtual] |
Implements tuttle::AbstractLut.
Definition at line 48 of file Lut.hpp.
References setIndexedValues(), tuttle::Color::x, tuttle::Color::y, and tuttle::Color::z.
void tuttle::Lut3D::setIndexedValues | ( | int | _x, |
int | _y, | ||
int | _z, | ||
double | _r, | ||
double | _g, | ||
double | _b | ||
) | [inline, virtual] |
Implements tuttle::AbstractLut.
Definition at line 53 of file Lut.hpp.
References tuttle::AbstractLut::_data, and getIndex().
Referenced by setIndexedColor().
const size_t tuttle::Lut3D::totalSize | ( | ) | const [inline, virtual] |
Implements tuttle::AbstractLut.
Definition at line 36 of file Lut.hpp.
References tuttle::AbstractLut::_dimSize.
Referenced by Lut3D().