28#ifndef __Ogre_Volume_CacheSource_H__
29#define __Ogre_Volume_CacheSource_H__
73 if (it == mCache.end())
76 mCache[position] = result;
#define _OgreVolumeExport
Standard 3-dimensional vector.
4-dimensional homogeneous vector.
Vector4 getFromCache(const Vector3 &position) const
Gets a density value and gradient from the cache.
virtual Real getValue(const Vector3 &position) const
Overridden from Source.
const Source * mSrc
The source to cache.
map< Vector3, Vector4 >::type UMapPositionValue
Map for the cache.
virtual Vector4 getValueAndGradient(const Vector3 &position) const
Overridden from Source.
CacheSource(const Source *src)
Constructor.
Abstract class defining the density function.
virtual Vector4 getValueAndGradient(const Vector3 &position) const =0
Gets the density value and gradient at a specific position.
bool _OgreVolumeExport operator<(const Vector3 &a, const Vector3 &b)
A less operator.
float Real
Software floating point type.
std::map< K, V, P, A >::iterator iterator
std::map< K, V, P, A > type