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


The depth of field model. More...

Public Types

enum  Value {
  NONE,
  PHYSICAL,
  ARTIST
}
 

Public Member Functions

 DepthOfFieldModel (const G3D::String &x)
 
 DepthOfFieldModel (char v)
 
 DepthOfFieldModel (int v)
 
 DepthOfFieldModel (const G3D::Any &a)
 
 DepthOfFieldModel ()
 
 DepthOfFieldModel (const Value v)
 
void deserialize (G3D::BinaryInput &b)
 
unsigned int hashCode () const
 
 operator int () const
 
 operator Value () const
 
bool operator!= (const DepthOfFieldModel other) const
 
bool operator!= (const DepthOfFieldModel ::Value other) const
 
DepthOfFieldModel operator+ (const int x) const
 
DepthOfFieldModeloperator++ ()
 
DepthOfFieldModeloperator+= (const int x)
 
DepthOfFieldModel operator- (const int x) const
 
DepthOfFieldModeloperator-- ()
 
DepthOfFieldModeloperator-= (const int x)
 
bool operator< (const DepthOfFieldModel other) const
 
bool operator< (const Value other) const
 
bool operator<= (const Value other) const
 
bool operator<= (const DepthOfFieldModel other) const
 
DepthOfFieldModeloperator= (const G3D::Any &a)
 
bool operator== (const DepthOfFieldModel ::Value other) const
 
bool operator== (const DepthOfFieldModel other) const
 
bool operator> (const Value other) const
 
bool operator> (const DepthOfFieldModel other) const
 
bool operator>= (const DepthOfFieldModel 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)
 

Detailed Description


The depth of field model.

See also
DepthOfFieldSettings, DepthOfField

Member Enumeration Documentation

◆ Value

Enumerator
NONE 

Pinhole lens, circle of confusion is always zero.

PHYSICAL 

In this model, the circle of confusion is determined by the Gaussian lens model for an ideal single-lens camera.

ARTIST 

In this model, the circle of confusion is determined by linear interpolation between depth stops in an explicit gradient:

            eye     nearBlurryPlaneZ   nearSharpPlaneZ    farSharpPlaneZ   farBlurryPlaneZ
            <)             |                 .                 .                 |
                            |                                                     |
        

Constructor & Destructor Documentation

◆ DepthOfFieldModel() [1/6]

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

◆ DepthOfFieldModel() [2/6]

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

◆ DepthOfFieldModel() [3/6]

G3D::DepthOfFieldModel::DepthOfFieldModel ( char  v)
inlineexplicit

◆ DepthOfFieldModel() [4/6]

G3D::DepthOfFieldModel::DepthOfFieldModel ( )
inline

◆ DepthOfFieldModel() [5/6]

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

◆ DepthOfFieldModel() [6/6]

G3D::DepthOfFieldModel::DepthOfFieldModel ( int  v)
inlineexplicit

Member Function Documentation

◆ classname()

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

◆ count()

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

◆ deserialize()

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

◆ hashCode()

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

◆ nthValue()

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

◆ operator int()

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

◆ operator Value()

G3D::DepthOfFieldModel::operator Value ( ) const
inline

◆ operator!=() [1/2]

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

◆ operator!=() [2/2]

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

◆ operator+()

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

◆ operator++()

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

◆ operator+=()

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

◆ operator-()

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

◆ operator--()

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

◆ operator-=()

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

◆ operator<() [1/2]

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

◆ operator<() [2/2]

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

◆ operator<=() [1/2]

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

◆ operator<=() [2/2]

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

◆ operator=()

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

◆ operator==() [1/2]

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

◆ operator==() [2/2]

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

◆ operator>() [1/2]

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

◆ operator>() [2/2]

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

◆ operator>=() [1/2]

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

◆ operator>=() [2/2]

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

◆ serialize()

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

◆ toAny()

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

◆ toString()

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

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