![]() |
OGRE-Next 3.0.0
Object-Oriented Graphics Rendering Engine
|
Negates the given volume. More...
#include <OgreVolumeCSGSource.h>
Inheritance diagram for Ogre::Volume::CSGNegateSource:Public Member Functions | |
| CSGNegateSource () | |
| Constructor. | |
| CSGNegateSource (const Source *src) | |
| Constructor. | |
| virtual Real | getValue (const Vector3 &position) const |
| Overridden from Source. | |
| virtual Vector4 | getValueAndGradient (const Vector3 &position) const |
| Overridden from Source. | |
Public Member Functions inherited from Ogre::Volume::CSGUnarySource | |
| virtual const Source * | getSource () const |
| Gets the source. | |
| virtual void | setSource (Source *a) |
| Sets the source. | |
Public Member Functions inherited from Ogre::Volume::Source | |
| virtual | ~Source () |
| 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 () 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 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. | |
| static const uint32 | VOLUME_CHUNK_ID |
| The id of volume files. | |
| static const uint16 | VOLUME_CHUNK_VERSION |
| The version of volume files. | |
Negates the given volume.
|
explicit |
Constructor.
| src | The source to negate. |
| Ogre::Volume::CSGNegateSource::CSGNegateSource | ( | ) |
Constructor.
Sets the source to null.
Overridden from Source.
Implements Ogre::Volume::Source.
|
virtual |
Overridden from Source.
Implements Ogre::Volume::Source.