#include <gl_cross_sections.h>
Public Member Functions | |
template<typename value_type > | |
void | operator() (value_type const &val, value_type const &min_val, value_type const &max_val, GLubyte &red, GLubyte &green, GLubyte &blue, GLubyte &alpha) const |
This color functor can be used to make a grey scale ramp with black corresponding to the minimum value and white to the maximum value.
void OpenTissue::gl::GreyScaleColorFunctor::operator() | ( | value_type const & | val, | |
value_type const & | min_val, | |||
value_type const & | max_val, | |||
GLubyte & | red, | |||
GLubyte & | green, | |||
GLubyte & | blue, | |||
GLubyte & | alpha | |||
) | const [inline] |