OpenVDB  0.104.0
Public Types | Public Member Functions | List of all members
Ray< _Real > Class Template Reference

#include <Ray.h>

Public Types

typedef _Real Real
 
typedef Vec3< RealVec3R
 

Public Member Functions

OPENVDB_DEPRECATED Ray ()
 
OPENVDB_DEPRECATED Ray (const Vec3R &origin, const Vec3R &direction, Real time=std::numeric_limits< Real >::epsilon(), Real start=0, Real end=std::numeric_limits< Real >::max())
 
Vec3R getOrigin () const
 
Real getOrigin (int i) const
 
Vec3R getDirection () const
 
Real getDirection (int i) const
 
Vec3R getInvDirection () const
 
Real getInvDirection (int i) const
 
Real getTime () const
 
Real getMinTime () const
 
Real getMaxTime () const
 
void setOrigin (const Vec3R &orig)
 
void setOrigin (Real x, Real y, Real z)
 
void setDirection (const Vec3R &dir)
 
void setDirection (Real x, Real y, Real z)
 
void setTime (Real time)
 
void setMinTime (Real time)
 
void setMaxTime (Real time)
 
void setMinMaxTimes (Real t0, Real t1)
 
Realtimer ()
 
Vec3R position (Real time) const
 
Vec3R start () const
 
Vec3R end () const
 
bool isValid () const
 
void worldToIndex (const Transform::Ptr &xform)
 
void indexToWorld (const Transform::Ptr &xform)
 

Member Typedef Documentation

typedef _Real Real
typedef Vec3<Real> Vec3R

Constructor & Destructor Documentation

OPENVDB_DEPRECATED Ray ( )
inline
OPENVDB_DEPRECATED Ray ( const Vec3R origin,
const Vec3R direction,
Real  time = std::numeric_limits<Real>::epsilon(),
Real  start = 0,
Real  end = std::numeric_limits<Real>::max() 
)
inline

Member Function Documentation

Vec3R end ( ) const
inline
Vec3R getDirection ( ) const
inline
Real getDirection ( int  i) const
inline
Vec3R getInvDirection ( ) const
inline
Real getInvDirection ( int  i) const
inline
Real getMaxTime ( ) const
inline
Real getMinTime ( ) const
inline
Vec3R getOrigin ( ) const
inline
Real getOrigin ( int  i) const
inline
Real getTime ( ) const
inline
void indexToWorld ( const Transform::Ptr xform)
inline

Transform this ray (origin and direction) from indexspace to worldspace.

Parameters
xformTransform definition.
bool isValid ( ) const
inline
Vec3R position ( Real  time) const
inline
void setDirection ( const Vec3R dir)
inline
void setDirection ( Real  x,
Real  y,
Real  z 
)
inline
void setMaxTime ( Real  time)
inline
void setMinMaxTimes ( Real  t0,
Real  t1 
)
inline
void setMinTime ( Real  time)
inline
void setOrigin ( const Vec3R orig)
inline
void setOrigin ( Real  x,
Real  y,
Real  z 
)
inline
void setTime ( Real  time)
inline
Vec3R start ( ) const
inline
Real& timer ( )
inline
void worldToIndex ( const Transform::Ptr xform)
inline

Transform this ray (origin and direction) from worldspace to indexspace.

Parameters
xformTransform definition.

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