OGRE-Next  4.0.0unstable
Object-Oriented Graphics Rendering Engine
Ogre::Volume::CSGScaleSource Class Reference

Scales the given volume source. More...

#include <OgreVolumeCSGSource.h>

+ Inheritance diagram for Ogre::Volume::CSGScaleSource:

Public Member Functions

 CSGScaleSource (const Source *src, const Real scale)
 Constructor. More...
 
virtual Real getValue (const Vector3 &position) const
 Overridden from Source. More...
 
virtual Vector4 getValueAndGradient (const Vector3 &position) const
 Overridden from Source. More...
 
- Public Member Functions inherited from Ogre::Volume::CSGUnarySource
virtual const SourcegetSource () const
 Gets the source. More...
 
virtual void setSource (Source *a)
 Sets the source. More...
 
- Public Member Functions inherited from Ogre::Volume::Source
virtual ~Source ()
 Destructor. More...
 
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. More...
 
Real getVolumeSpaceToWorldSpaceFactor () const
 Gets a factor to come from volume coordinate to world coordinate. More...
 
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. More...
 
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. More...
 

Additional Inherited Members

- Static Public Attributes inherited from Ogre::Volume::Source
static const size_t SERIALIZATION_CHUNK_SIZE
 The amount of items being written as one chunk during serialization. More...
 
static const uint32 VOLUME_CHUNK_ID
 The id of volume files. More...
 
static const uint16 VOLUME_CHUNK_VERSION
 The version of volume files. More...
 

Detailed Description

Scales the given volume source.

Constructor & Destructor Documentation

◆ CSGScaleSource()

Ogre::Volume::CSGScaleSource::CSGScaleSource ( const Source src,
const Real  scale 
)

Constructor.

Parameters
srcThe source to scale.
scaleThe scale of the source.

Member Function Documentation

◆ getValue()

virtual Real Ogre::Volume::CSGScaleSource::getValue ( const Vector3 position) const
virtual

Overridden from Source.

Implements Ogre::Volume::Source.

◆ getValueAndGradient()

virtual Vector4 Ogre::Volume::CSGScaleSource::getValueAndGradient ( const Vector3 position) const
virtual

Overridden from Source.

Implements Ogre::Volume::Source.


The documentation for this class was generated from the following file: