Source which does a unary operation to another one.  
 More...
#include <OgreVolumeCSGSource.h>
|  | 
| 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. 
 | 
|  | 
| virtual Real | getValue (const Vector3 &position) const =0 | 
|  | Gets the density value at a specific position. 
 | 
|  | 
| virtual Vector4 | getValueAndGradient (const Vector3 &position) const =0 | 
|  | Gets the density value and gradient at a specific position. 
 | 
|  | 
| 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. 
 | 
|  | 
Source which does a unary operation to another one. 
◆ getSource()
  
  | 
        
          | virtual const Source * Ogre::Volume::CSGUnarySource::getSource | ( | void |  | ) | const |  | virtual | 
 
Gets the source. 
- Returns
- The source. 
 
 
◆ setSource()
  
  | 
        
          | virtual void Ogre::Volume::CSGUnarySource::setSource | ( | Source * | a | ) |  |  | virtual | 
 
Sets the source. 
- Parameters
- 
  
  
 
 
The documentation for this class was generated from the following file: