#include <shader_map.h>
Public Member Functions |
|
virtual miUint | get_dimension () const =0 |
returns the dimension of the functor.
|
|
virtual const float * | get_point () const =0 |
returns the search point. |
|
virtual float | operator() (const float *min, const float *max) const =0 |
returns the distance from a bounding box.
|
|
virtual float | operator() (const Map_iterator_base *element) const =0 |
returns the distance from an element.
|
The Map_distance_base class is an interface class for all the lookup distance functors.
virtual miUint mi::shader_v3::Map_distance_base::get_dimension | ( | ) | const [pure virtual] |
returns the dimension of the functor.
Implemented in mi::shader_v3::Map_distance< DIM >.
virtual const float* mi::shader_v3::Map_distance_base::get_point | ( | ) | const [pure virtual] |
returns the search point.
Implemented in mi::shader_v3::Map_distance< DIM >.
virtual float mi::shader_v3::Map_distance_base::operator() | ( | const float * | min, | |
const float * | max | |||
) | const [pure virtual] |
returns the distance from a bounding box.
min | is the minimum point of the bounding box | |
max | is the maximum point of the bounding box |
Implemented in mi::shader_v3::Map_distance< DIM >.
virtual float mi::shader_v3::Map_distance_base::operator() | ( | const Map_iterator_base * | element | ) | const [pure virtual] |
returns the distance from an element.
element | is the current element |
Implemented in mi::shader_v3::Map_distance< DIM >, and mi::shader_v3::Map_quad_distance< DIM >.
Copyright © 1986-2010 by
mental images GmbH