Support Forum       G3D Web Page     
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
G3D::PathDirection Class Reference

Direction of light transport along a ray or path. More...

Public Types

enum  Value {
  SOURCE_TO_EYE,
  EYE_TO_SOURCE
}
 

Public Member Functions

 PathDirection (const G3D::String &x)
 
 PathDirection (char v)
 
 PathDirection (int v)
 
 PathDirection (const G3D::Any &a)
 
 PathDirection ()
 
 PathDirection (const Value v)
 
void deserialize (G3D::BinaryInput &b)
 
unsigned int hashCode () const
 
 operator int () const
 
bool operator!= (const PathDirection ::Value other) const
 
bool operator!= (const PathDirection other) const
 
PathDirection operator+ (const int x) const
 
PathDirectionoperator++ ()
 
PathDirectionoperator+= (const int x)
 
PathDirection operator- (const int x) const
 
PathDirectionoperator-- ()
 
PathDirectionoperator-= (const int x)
 
bool operator< (const PathDirection other) const
 
bool operator< (const Value other) const
 
bool operator<= (const Value other) const
 
bool operator<= (const PathDirection other) const
 
PathDirectionoperator= (const G3D::Any &a)
 
bool operator== (const PathDirection ::Value other) const
 
bool operator== (const PathDirection other) const
 
bool operator> (const PathDirection other) const
 
bool operator> (const Value other) const
 
bool operator>= (const PathDirection other) const
 
bool operator>= (const Value other) const
 
void serialize (G3D::BinaryOutput &b) const
 
G3D::Any toAny () const
 
const char * toString () const
 

Static Public Member Functions

static const char * classname ()
 
static int count ()
 
static Value nthValue (int n)
 
static const char * toString (int i, Value &v)
 

Public Attributes

enum G3D::PathDirection::Value value
 

Detailed Description

Direction of light transport along a ray or path.

Member Enumeration Documentation

◆ Value

Enumerator
SOURCE_TO_EYE 

A path originating at a light source that travels in the direction of real photon propagation.

Used in bidirectional path tracing and photon mapping.

EYE_TO_SOURCE 

A path originating in the scene (often, at the "eye" or camera) and propagating backwards towards a light source.

Used in path tracing and Whitted ray tracing.

Constructor & Destructor Documentation

◆ PathDirection() [1/6]

G3D::PathDirection::PathDirection ( const G3D::String x)
inlineexplicit

◆ PathDirection() [2/6]

G3D::PathDirection::PathDirection ( const G3D::Any a)
inlineexplicit

◆ PathDirection() [3/6]

G3D::PathDirection::PathDirection ( char  v)
inlineexplicit

◆ PathDirection() [4/6]

G3D::PathDirection::PathDirection ( )
inline

◆ PathDirection() [5/6]

G3D::PathDirection::PathDirection ( const Value  v)
inline

◆ PathDirection() [6/6]

G3D::PathDirection::PathDirection ( int  v)
inlineexplicit

Member Function Documentation

◆ classname()

static const char* G3D::PathDirection::classname ( )
inlinestatic

◆ count()

static int G3D::PathDirection::count ( )
inlinestatic

◆ deserialize()

void G3D::PathDirection::deserialize ( G3D::BinaryInput b)
inline

◆ hashCode()

unsigned int G3D::PathDirection::hashCode ( ) const
inline

◆ nthValue()

static Value G3D::PathDirection::nthValue ( int  n)
inlinestatic

◆ operator int()

G3D::PathDirection::operator int ( ) const
inline

◆ operator!=() [1/2]

bool G3D::PathDirection::operator!= ( const PathDirection  other) const
inline

◆ operator!=() [2/2]

bool G3D::PathDirection::operator!= ( const PathDirection ::Value  other) const
inline

◆ operator+()

PathDirection G3D::PathDirection::operator+ ( const int  x) const
inline

◆ operator++()

PathDirection& G3D::PathDirection::operator++ ( )
inline

◆ operator+=()

PathDirection& G3D::PathDirection::operator+= ( const int  x)
inline

◆ operator-()

PathDirection G3D::PathDirection::operator- ( const int  x) const
inline

◆ operator--()

PathDirection& G3D::PathDirection::operator-- ( )
inline

◆ operator-=()

PathDirection& G3D::PathDirection::operator-= ( const int  x)
inline

◆ operator<() [1/2]

bool G3D::PathDirection::operator< ( const Value  other) const
inline

◆ operator<() [2/2]

bool G3D::PathDirection::operator< ( const PathDirection  other) const
inline

◆ operator<=() [1/2]

bool G3D::PathDirection::operator<= ( const PathDirection  other) const
inline

◆ operator<=() [2/2]

bool G3D::PathDirection::operator<= ( const Value  other) const
inline

◆ operator=()

PathDirection& G3D::PathDirection::operator= ( const G3D::Any a)
inline

◆ operator==() [1/2]

bool G3D::PathDirection::operator== ( const PathDirection ::Value  other) const
inline

◆ operator==() [2/2]

bool G3D::PathDirection::operator== ( const PathDirection  other) const
inline

◆ operator>() [1/2]

bool G3D::PathDirection::operator> ( const PathDirection  other) const
inline

◆ operator>() [2/2]

bool G3D::PathDirection::operator> ( const Value  other) const
inline

◆ operator>=() [1/2]

bool G3D::PathDirection::operator>= ( const PathDirection  other) const
inline

◆ operator>=() [2/2]

bool G3D::PathDirection::operator>= ( const Value  other) const
inline

◆ serialize()

void G3D::PathDirection::serialize ( G3D::BinaryOutput b) const
inline

◆ toAny()

G3D::Any G3D::PathDirection::toAny ( ) const
inline

◆ toString() [1/2]

static const char* G3D::PathDirection::toString ( int  i,
Value v 
)
inlinestatic

◆ toString() [2/2]

const char* G3D::PathDirection::toString ( ) const
inline

Member Data Documentation

◆ value

enum G3D::PathDirection::Value G3D::PathDirection::value

documentation generated on Wed Nov 24 2021 08:01:59 using doxygen 1.8.15