OpenVDB  2.1.0
Public Types | Public Member Functions | Public Attributes | List of all members
PositionShader Class Reference

#include <RayTracer.h>

Inherits BaseShader.

Public Types

typedef math::Ray< RealRayT
 

Public Member Functions

 mInvDim (1.0/bbox.extents())
 
 mRGBA (c)
 
virtual ~PositionShader ()
 
virtual Film::RGBA operator() (const Vec3R &xyz, const Vec3R &, const Vec3R &) const
 Defines the interface of the virtual function that returns a RGB color. More...
 
virtual BaseShadercopy () const
 
OPENVDB_DEPRECATED Film::RGBA operator() (const Vec3R &xyz, const Vec3R &nml, const RayT &ray) const
 Deprecated, use the method above instead. More...
 

Public Attributes

 __pad0__: mMin(bbox.min())
 

Detailed Description

Color shader that treats position (x, y, z) as an RGB color in a cube defined from an axis-aligned bounding box in world space.

Member Typedef Documentation

typedef math::Ray<Real> RayT
inherited

Constructor & Destructor Documentation

virtual ~PositionShader ( )
inlinevirtual

Member Function Documentation

virtual BaseShader* copy ( ) const
inlinevirtual

Implements BaseShader.

mInvDim ( 1.0/bbox.  extents())
mRGBA ( )
inline
OPENVDB_DEPRECATED Film::RGBA operator() ( const Vec3R xyz,
const Vec3R nml,
const RayT ray 
) const
inlineinherited

Deprecated, use the method above instead.

virtual Film::RGBA operator() ( const Vec3R xyz,
const Vec3R nml,
const Vec3R dir 
) const
inlinevirtual

Defines the interface of the virtual function that returns a RGB color.

Parameters
xyzWorld position of the intersection point.
nmlNormal in world space at the intersection point.
dirDirection of the ray in world space.

Implements BaseShader.

Member Data Documentation

__pad0__

The documentation for this class was generated from the following file: