#include <GU_PrimVolume.h>

Public Types | |
| typedef float(* | VolumeSampler )(const UT_Vector3 &, void *, const UT_JobInfo &) |
Public Member Functions | |
| GU_PrimVolume (GU_Detail *gdp) | |
| ~GU_PrimVolume () | |
| virtual void * | castTo () const |
| virtual const GEO_Primitive * | castToGeo (void) const |
| GEO_Primitive * | convert (GU_ConvertParms &parms, GB_PointGroup *usedpts=0) |
| GEO_Primitive * | convertNew (GU_ConvertParms &parms) |
| virtual void | normal (const GB_AttributeRef &noff) const |
| virtual void | normal (UT_Vector3Array &output) const |
| virtual int | intersectRay (const UT_Vector3 &o, const UT_Vector3 &d, float tmax=1E17F, float tol=1E-12F, float *distance=0, UT_Vector3 *pos=0, UT_Vector3 *nml=0, int accurate=0, float *u=0, float *v=0, int ignoretrim=1) const |
| virtual GU_RayIntersect * | createRayCache (int &persistent) |
| virtual GU_DisplayCache * | getDisplayCache (void) const |
| virtual int | buildVolumeDisplayCache (GU_PrimVolumeCacheParms &parms) |
| virtual void | destroyCache () |
| virtual void | notifyCache (int type) |
| virtual void | notifyCache (int type, const GEO_Point &ppt) |
| virtual void | notifyCache (int type, const GB_PointGroup &grp) |
| virtual void | notifyCache (int type, const UT_Matrix4 &xform, int push) |
| virtual void | notifyCache (int type, const UT_Vector3 &delta) |
Static Public Member Functions | |
| static GEO_Primitive * | build (GU_Detail *gdp) |
| static GEO_Primitive * | buildFromFunction (GU_Detail *gdp, float(*valAtPoint)(const UT_Vector3 &), const UT_BoundingBox &bbox, int xres, int yres, int zres) |
| static GEO_Primitive * | buildFromFunction (GU_Detail *gdp, float(*valAtPoint)(const UT_Vector3 &, void *, const UT_JobInfo &), const UT_BoundingBox &bbox, int xres, int yres, int zres, void *data, bool allowthreading=true) |
Protected Member Functions | |
| THREADED_METHOD5 (GU_PrimVolume, vox->numTiles() > 1, buildFromFunctionInternal, UT_VoxelArrayF *, vox, const UT_Matrix3 &, xform, const UT_Vector3 &, center, VolumeSampler, valAtPoint, void *, data) void buildFromFunctionInternalPartial(UT_VoxelArrayF *vox | |
Protected Attributes | |
| const UT_Matrix3 & | xform |
| const UT_Matrix3 const UT_Vector3 & | center |
| const UT_Matrix3 const UT_Vector3 VolumeSampler | valAtPoint |
| const UT_Matrix3 const UT_Vector3 VolumeSampler void * | data |
| const UT_Matrix3 const UT_Vector3 VolumeSampler void const UT_JobInfo & | info |
Definition at line 33 of file GU_PrimVolume.h.
| typedef float(* GU_PrimVolume::VolumeSampler)(const UT_Vector3 &, void *, const UT_JobInfo &) |
Definition at line 112 of file GU_PrimVolume.h.
| GU_PrimVolume::GU_PrimVolume | ( | GU_Detail * | gdp | ) | [inline] |
Definition at line 38 of file GU_PrimVolume.h.
| GU_PrimVolume::~GU_PrimVolume | ( | ) |
| static GEO_Primitive* GU_PrimVolume::build | ( | GU_Detail * | gdp | ) | [static] |
| static GEO_Primitive* GU_PrimVolume::buildFromFunction | ( | GU_Detail * | gdp, | |
| float(*)(const UT_Vector3 &, void *, const UT_JobInfo &) | valAtPoint, | |||
| const UT_BoundingBox & | bbox, | |||
| int | xres, | |||
| int | yres, | |||
| int | zres, | |||
| void * | data, | |||
| bool | allowthreading = true | |||
| ) | [static] |
| static GEO_Primitive* GU_PrimVolume::buildFromFunction | ( | GU_Detail * | gdp, | |
| float(*)(const UT_Vector3 &) | valAtPoint, | |||
| const UT_BoundingBox & | bbox, | |||
| int | xres, | |||
| int | yres, | |||
| int | zres | |||
| ) | [static] |
| virtual int GU_PrimVolume::buildVolumeDisplayCache | ( | GU_PrimVolumeCacheParms & | parms | ) | [virtual] |
| virtual void* GU_PrimVolume::castTo | ( | ) | const [virtual] |
Reimplemented from GEO_Primitive.
| virtual const GEO_Primitive* GU_PrimVolume::castToGeo | ( | void | ) | const [virtual] |
Implements GU_Primitive.
| GEO_Primitive* GU_PrimVolume::convert | ( | GU_ConvertParms & | parms, | |
| GB_PointGroup * | usedpts = 0 | |||
| ) | [virtual] |
Implements GU_Primitive.
| GEO_Primitive* GU_PrimVolume::convertNew | ( | GU_ConvertParms & | parms | ) | [virtual] |
Implements GU_Primitive.
| virtual GU_RayIntersect* GU_PrimVolume::createRayCache | ( | int & | persistent | ) | [virtual] |
Implements GU_Primitive.
| virtual void GU_PrimVolume::destroyCache | ( | ) | [virtual] |
Reimplemented from GU_Primitive.
| virtual GU_DisplayCache* GU_PrimVolume::getDisplayCache | ( | void | ) | const [virtual] |
Reimplemented from GU_Primitive.
| virtual int GU_PrimVolume::intersectRay | ( | const UT_Vector3 & | o, | |
| const UT_Vector3 & | d, | |||
| float | tmax = 1E17F, |
|||
| float | tol = 1E-12F, |
|||
| float * | distance = 0, |
|||
| UT_Vector3 * | pos = 0, |
|||
| UT_Vector3 * | nml = 0, |
|||
| int | accurate = 0, |
|||
| float * | u = 0, |
|||
| float * | v = 0, |
|||
| int | ignoretrim = 1 | |||
| ) | const [virtual] |
Implements GU_Primitive.
| virtual void GU_PrimVolume::normal | ( | UT_Vector3Array & | output | ) | const [virtual] |
Implements GU_Primitive.
| virtual void GU_PrimVolume::normal | ( | const GB_AttributeRef & | noff | ) | const [virtual] |
Implements GU_Primitive.
| virtual void GU_PrimVolume::notifyCache | ( | int | type, | |
| const UT_Vector3 & | delta | |||
| ) | [virtual] |
Reimplemented from GU_Primitive.
| virtual void GU_PrimVolume::notifyCache | ( | int | type, | |
| const UT_Matrix4 & | xform, | |||
| int | push | |||
| ) | [virtual] |
Reimplemented from GU_Primitive.
| virtual void GU_PrimVolume::notifyCache | ( | int | type, | |
| const GB_PointGroup & | grp | |||
| ) | [virtual] |
Reimplemented from GU_Primitive.
| virtual void GU_PrimVolume::notifyCache | ( | int | type, | |
| const GEO_Point & | ppt | |||
| ) | [virtual] |
Reimplemented from GU_Primitive.
| virtual void GU_PrimVolume::notifyCache | ( | int | type | ) | [virtual] |
Reimplemented from GU_Primitive.
| GU_PrimVolume::THREADED_METHOD5 | ( | GU_PrimVolume | , | |
| vox-> | numTiles(), | |||
| 1 | , | |||
| buildFromFunctionInternal | , | |||
| UT_VoxelArrayF * | , | |||
| vox | , | |||
| const UT_Matrix3 & | , | |||
| xform | , | |||
| const UT_Vector3 & | , | |||
| center | , | |||
| VolumeSampler | , | |||
| valAtPoint | , | |||
| void * | , | |||
| data | ||||
| ) | [protected] |
const UT_Matrix3 const UT_Vector3& GU_PrimVolume::center [protected] |
Definition at line 124 of file GU_PrimVolume.h.
const UT_Matrix3 const UT_Vector3 VolumeSampler void* GU_PrimVolume::data [protected] |
Definition at line 124 of file GU_PrimVolume.h.
const UT_Matrix3 const UT_Vector3 VolumeSampler void const UT_JobInfo& GU_PrimVolume::info [protected] |
Definition at line 124 of file GU_PrimVolume.h.
const UT_Matrix3 const UT_Vector3 VolumeSampler GU_PrimVolume::valAtPoint [protected] |
Definition at line 124 of file GU_PrimVolume.h.
const UT_Matrix3& GU_PrimVolume::xform [protected] |
Definition at line 124 of file GU_PrimVolume.h.
1.5.9