mi::shader_v3::Map_distance_base Class Reference

Map_distance_base class. The Map_distance_base class is an interface class for all the lookup distance functors. More...

#include <shader_map.h>

Inheritance diagram for mi::shader_v3::Map_distance_base:

mi::shader_v3::Map_distance< DIM > mi::shader_v3::Map_quad_distance< DIM > List of all members.

Public Member Functions

virtual const 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.

Detailed Description

Map_distance_base class. The Map_distance_base class is an interface class for all the lookup distance functors.


Member Function Documentation

virtual const miUint mi::shader_v3::Map_distance_base::get_dimension  )  const [pure virtual]
 

returns the dimension of the functor.

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.

Returns:
a pointer to the search point

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.

Parameters:
element is the current element
Returns:
the distance from the element

Implemented in mi::shader_v3::Map_distance< DIM >, and mi::shader_v3::Map_quad_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.

Parameters:
min is the minimum point of the bounding box
max is the maximum point of the bounding box
Returns:
the distance from the bounding box

Implemented in mi::shader_v3::Map_distance< DIM >.


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

Copyright © 1986-2008 by mental images GmbH