OpenVDB  0.104.0
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
RayInterval< Real, ValueType > Class Template Reference

#include <Ray.h>

Classes

class  Hit
 Dummy class to distinguish constructors. More...
 

Public Types

enum  Tag { EMPTY =0, CONSTANT, VARIABLE }
 

Public Member Functions

OPENVDB_DEPRECATED RayInterval ()
 
OPENVDB_DEPRECATED RayInterval (Real _t0, Real _t1)
 
OPENVDB_DEPRECATED RayInterval (Real _t0, Real _t1, Hit)
 
OPENVDB_DEPRECATED RayInterval (Real _t0, Real _t1, const ValueType &_value)
 
bool isEmpty () const
 
bool isConstant () const
 
bool isVariable () const
 
void set (Real _t0, Real _t1)
 
void set (Real _t0, Real _t1, bool empty=false)
 
void set (Real _t0, Real _t1, const ValueType &_value)
 
bool operator< (const RayInterval &other) const
 
bool operator== (const RayInterval &other) const
 
bool merge (const RayInterval &other, Real tolerance=1e-4)
 we assume the two intervals are non-overlapping More...
 
void print () const
 

Public Attributes

Real t0
 
Real t1
 
Tag tag
 
ValueType value
 

Member Enumeration Documentation

enum Tag
Enumerator
EMPTY 
CONSTANT 
VARIABLE 

Constructor & Destructor Documentation

OPENVDB_DEPRECATED RayInterval ( Real  _t0,
Real  _t1 
)
inline
OPENVDB_DEPRECATED RayInterval ( Real  _t0,
Real  _t1,
Hit   
)
inline
OPENVDB_DEPRECATED RayInterval ( Real  _t0,
Real  _t1,
const ValueType &  _value 
)
inline

Member Function Documentation

bool isConstant ( ) const
inline
bool isEmpty ( ) const
inline
bool isVariable ( ) const
inline
bool merge ( const RayInterval< Real, ValueType > &  other,
Real  tolerance = 1e-4 
)
inline

we assume the two intervals are non-overlapping

bool operator< ( const RayInterval< Real, ValueType > &  other) const
inline
Returns
true if this->t0 < other.t0
bool operator== ( const RayInterval< Real, ValueType > &  other) const
inline
void print ( ) const
inline
void set ( Real  _t0,
Real  _t1 
)
inline
void set ( Real  _t0,
Real  _t1,
bool  empty = false 
)
inline
void set ( Real  _t0,
Real  _t1,
const ValueType &  _value 
)
inline

Member Data Documentation

Real t0
Real t1
Tag tag
ValueType value

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