TuttleOFX  1
tuttle::Lut3D Class Reference

#include <Lut.hpp>

Inheritance diagram for tuttle::Lut3D:
Collaboration diagram for tuttle::Lut3D:

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

Detailed Description

Definition at line 11 of file Lut.hpp.


Constructor & Destructor Documentation

tuttle::Lut3D::Lut3D ( ) [inline]

Definition at line 14 of file Lut.hpp.

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().

Here is the call graph for this function:

tuttle::Lut3D::Lut3D ( const Lut3D lut3d)

Member Function Documentation

Color tuttle::Lut3D::getColor ( Color const &  color) const [inline, virtual]

Implements tuttle::AbstractLut.

Definition at line 23 of file Lut.hpp.

References tuttle::AbstractLut::_interpolator, and tuttle::Interpolator::interpolate().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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.

Here is the call graph for this function:

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().

Here is the call graph for this function:

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().


The documentation for this class was generated from the following files: