Go to the documentation of this file.
28 #ifndef __Ogre_Volume_CacheSource_H__
29 #define __Ogre_Volume_CacheSource_H__
73 if (it == mCache.end())
76 mCache[position] = result;
95 virtual Vector4 getValueAndGradient(
const Vector3 &position)
const;
99 virtual Real getValue(
const Vector3 &position)
const;
Vector4 getFromCache(const Vector3 &position) const
Gets a density value and gradient from the cache.
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.
#define _OgreVolumeExport
map< Vector3, Vector4 >::type UMapPositionValue
Map for the cache.
4-dimensional homogeneous vector.
float Real
Software floating point type.
const Source * mSrc
The source to cache.
Standard 3-dimensional vector.
Abstract class defining the density function.
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Tue Apr 13 2021 08:53:15