|
| VolumeRender (const IntersectorT &inter, BaseCamera &camera) |
| Constructor taking an intersector and a base camera. More...
|
|
| VolumeRender (const VolumeRender &other) |
| Copy constructor which creates a thread-safe clone. More...
|
|
void | render (bool threaded=true) const |
| Perform the actual (potentially multithreaded) volume rendering. More...
|
|
void | setCamera (BaseCamera &camera) |
| Set the camera derived from the abstract BaseCamera class. More...
|
|
void | setIntersector (const IntersectorT &inter) |
| Set the intersector that performs the actual intersection of the rays against the volume. More...
|
|
void | setLightDir (Real x, Real y, Real z) |
| Set the vector components of a directional light source. More...
|
|
void | setLightColor (Real r, Real g, Real b) |
| Set the color of the directional light source. More...
|
|
void | setPrimaryStep (Real primaryStep) |
| Set the integration step-size in voxel units for the primay ray. More...
|
|
void | setShadowStep (Real shadowStep) |
| Set the integration step-size in voxel units for the primay ray. More...
|
|
void | setScattering (Real x, Real y, Real z) |
| Set Scattering coefficients. More...
|
|
void | setAbsorption (Real x, Real y, Real z) |
| Set absorption coefficients. More...
|
|
void | setLightGain (Real gain) |
| Set parameter that imitates multi-scattering. A value of zero implies no multi-scattering. More...
|
|
void | setCutOff (Real cutOff) |
| Set the cut-off value for density and transmittance. More...
|
|
void | print (std::ostream &os=std::cout, int verboseLevel=1) |
| Print parameters, statistics, memory usage and other information. More...
|
|
void | operator() (const tbb::blocked_range< size_t > &range) const |
| Public method required by tbb::parallel_for. More...
|
|
template<typename IntersectorT, typename SamplerT = tools::BoxSampler>
class openvdb::v12_0::tools::VolumeRender< IntersectorT, SamplerT >
A (very) simple multithreaded volume render specifically for scalar density.
Included primarily as a reference implementation.
- Note
- It will only compile if the IntersectorT is templated on a Grid with a floating-point voxel type.