28#ifndef __Ogre_Volume_CacheSource_H__
29#define __Ogre_Volume_CacheSource_H__
75 result =
mSrc->getValueAndGradient(position);
#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.
virtual Vector4 getValueAndGradient(const Vector3 &position) const
Overridden from Source.
map< Vector3, Vector4 >::type UMapPositionValue
Map for the cache.
CacheSource(const Source *src)
Constructor.
Abstract class defining the density function.
bool _OgreVolumeExport operator<(const Vector3 &a, const Vector3 &b)
A less operator.
float Real
Software floating point type.
std::map< K, V, P, A > type
std::map< K, V, P, A >::iterator iterator