Go to the documentation of this file.
28 #ifndef __Ogre_Volume_Source_H__
29 #define __Ogre_Volume_Source_H__
void serialize(const Vector3 &from, const Vector3 &to, float voxelWidth, Real maxClampedAbsoluteDensity, const String &file)
Same as the other serialize function but with a user definable maximum absolute density value.
virtual Vector3 getIntersectionStart(const Ray &ray, Real maxDistance) const
Gets the start vector of an intersection.
void serialize(const Vector3 &from, const Vector3 &to, float voxelWidth, const String &file)
Serializes a volume source to a discrete grid file with deflated compression.
bool getFirstRayIntersection(const Ray &ray, Vector3 &result, Real scale=(Real) 1.0, size_t maxIterations=5000, Real maxDistance=(Real) 10000.0) const
Gets the first intersection of a ray with the volume.
Real getVolumeSpaceToWorldSpaceFactor(void) const
Gets a factor to come from volume coordinate to world coordinate.
static const size_t SERIALIZATION_CHUNK_SIZE
The amount of items being written as one chunk during serialization.
static const uint16 VOLUME_CHUNK_VERSION
The version of volume files.
virtual Vector4 getValueAndGradient(const Vector3 &position) const =0
Gets the density value and gradient at a specific position.
virtual ~Source(void)
Destructor.
#define _OgreVolumeExport
virtual Real getValue(const Vector3 &position) const =0
Gets the density value at a specific position.
4-dimensional homogeneous vector.
static const uint32 VOLUME_CHUNK_ID
The id of volume files.
virtual Vector3 getIntersectionEnd(const Ray &ray, Real maxDistance) const
Gets the end vector of an intersection.
float Real
Software floating point type.
Representation of a ray in space, i.e.
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.