mi::shader::Map_distance< DIM > Class Template Reference

abstract template class, which defines all the virtual methods of Map_distance_base except the distance from an element. The distance from a bounding box is the quadratic one More...

#include <shader_map.h>

Inheritance diagram for mi::shader::Map_distance< DIM >:

mi::shader::Map_distance_base mi::shader::Map_quad_distance< DIM > List of all members.

Public Member Functions

 Map_distance ()
 empty constructor
 Map_distance (const float *point)
 constructor
const miUint get_dimension () const
 returns the dimension
const float * get_point () const
 returns the search point
float operator() (const float *min, const float *max) const
 returns the distance from a bounding box
virtual float operator() (const Map_iterator *element) const =0
 returns the distance from an element

Static Public Attributes

const miUint DIMENSION = DIM
 DIMENSION of the distance functor, same of the map.

Protected Attributes

float m_point [DIM]
 m_point is the search point

Detailed Description

template<miUint DIM>
class mi::shader::Map_distance< DIM >

abstract template class, which defines all the virtual methods of Map_distance_base except the distance from an element. The distance from a bounding box is the quadratic one


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

Copyright © 1986-2008 by mental images GmbH