
Public Member Functions | |
| virtual void | getWeightedBoxes (UT_RefArray< UT_BoundingBox > &boxes, UT_FloatArray &weights, fpreal radius, fpreal dbound) const |
| virtual void | getAttributeBinding (UT_StringArray &names, UT_IntArray &sizes) const |
| virtual void | evaluate (const UT_Vector3 &pos, const UT_Filter &filter, fpreal radius, float time, int idx, float *data) const |
| virtual UT_Vector3 | gradient (const UT_Vector3 &pos, const UT_Filter &filter, fpreal radius, fpreal time, int idx) const |
Definition at line 44 of file VRAY_DemoVolumeSphere.C.
| void vray_VolumeSphere::evaluate | ( | const UT_Vector3 & | pos, | |
| const UT_Filter & | filter, | |||
| fpreal | radius, | |||
| float | time, | |||
| int | idx, | |||
| float * | data | |||
| ) | const [virtual] |
Evaluate a volume attribute at a given position.
| pos | Evaluation position | |
| filter | Filter function | |
| radius | Filter radius in voxels | |
| time | Evaluation time (0-1) | |
| idx | Attribute index (based on getAttributeBinding()) | |
| data | Storage for evaluation data |
Implements VGEO_Volume.
Definition at line 95 of file VRAY_DemoVolumeSphere.C.
| void vray_VolumeSphere::getAttributeBinding | ( | UT_StringArray & | names, | |
| UT_IntArray & | sizes | |||
| ) | const [virtual] |
Return a list of attributes present in this volume. These attributes will be bound to surface shader variables when the volume is rendered. The "idx" passed into evaluation routines will be the array index returned by this operation.
Implements VGEO_Volume.
Definition at line 79 of file VRAY_DemoVolumeSphere.C.
| void vray_VolumeSphere::getWeightedBoxes | ( | UT_RefArray< UT_BoundingBox > & | boxes, | |
| UT_FloatArray & | weights, | |||
| fpreal | radius, | |||
| fpreal | dbound | |||
| ) | const [virtual] |
Return a set of bounding boxes that define the structure of the volumetric data. Each box has an associated weight, which represents the relative importance of that part of the volume (such as the density). The boxes are used to accelerate intersection testing with the volume and to perform adaptive sampling. They need not be an exact representation of the volume, though more accurate boxes will lead to more efficient renders.
Boxes should be defined locally, and need to incorporate the displacement bound.
Implements VGEO_Volume.
Definition at line 66 of file VRAY_DemoVolumeSphere.C.
| UT_Vector3 vray_VolumeSphere::gradient | ( | const UT_Vector3 & | pos, | |
| const UT_Filter & | filter, | |||
| fpreal | radius, | |||
| fpreal | time, | |||
| int | idx | |||
| ) | const [virtual] |
Evaluate the gradient of a volume attribute at a given position.
| pos | Evaluation position | |
| filter | Filter function | |
| radius | Filter radius in voxels | |
| time | Evaluation time (0-1) | |
| idx | Attribute index (based on getAttributeBinding()) |
Reimplemented from VGEO_Volume.
Definition at line 112 of file VRAY_DemoVolumeSphere.C.
1.5.9