![]() |
OGRE 14.3
Object-Oriented Graphics Rendering Engine
|
#include <OgreVolumeCSGSource.h>
Public Member Functions | |
CSGNoiseSource (const Source *src, Real *frequencies, Real *amplitudes, size_t numOctaves) | |
Constructor with current time as seed. | |
CSGNoiseSource (const Source *src, Real *frequencies, Real *amplitudes, size_t numOctaves, long seed) | |
Constructor. | |
long | getSeed (void) const |
Gets the initial seed. | |
Real | getValue (const Vector3 &position) const override |
Overridden from Source. | |
Vector4 | getValueAndGradient (const Vector3 &position) const override |
Overridden from Source. | |
![]() | |
virtual const Source * | getSource (void) const |
Gets the source. | |
virtual void | setSource (Source *a) |
Sets the source. | |
![]() | |
virtual | ~Source (void) |
Destructor. | |
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. | |
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. | |
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. | |
Additional Inherited Members | |
![]() | |
static const size_t | SERIALIZATION_CHUNK_SIZE |
The amount of items being written as one chunk during serialization. | |
static const uint32 | VOLUME_CHUNK_ID |
The id of volume files. | |
static const uint16 | VOLUME_CHUNK_VERSION |
The version of volume files. | |
Ogre::Volume::CSGNoiseSource::CSGNoiseSource | ( | const Source * | src, |
Real * | frequencies, | ||
Real * | amplitudes, | ||
size_t | numOctaves, | ||
long | seed | ||
) |
Constructor.
src | The source to add the noise to. |
frequencies | The frequencies of the added noise octaves. |
amplitudes | The amplitudes of the added noise octaves. |
numOctaves | The amount of octaves. |
seed | The seed to initialize the random number generator with. |
Ogre::Volume::CSGNoiseSource::CSGNoiseSource | ( | const Source * | src, |
Real * | frequencies, | ||
Real * | amplitudes, | ||
size_t | numOctaves | ||
) |
Constructor with current time as seed.
src | The source to add the noise to. |
frequencies | The frequencies of the added noise octaves. |
amplitudes | The amplitudes of the added noise octaves. |
numOctaves | The amount of octaves. |
|
overridevirtual |
Overridden from Source.
Implements Ogre::Volume::Source.
Overridden from Source.
Implements Ogre::Volume::Source.
Gets the initial seed.