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