Open CASCADE Technology  7.6.0
Public Member Functions | Static Public Member Functions | Protected Member Functions

Graphic3d_Fresnel Class Reference

Describes Fresnel reflectance parameters. More...

#include <Graphic3d_BSDF.hxx>

Public Member Functions

 Graphic3d_Fresnel ()
 Creates uninitialized Fresnel factor. More...
 
Graphic3d_Vec4 Serialize () const
 Returns serialized representation of Fresnel factor. More...
 
bool operator== (const Graphic3d_Fresnel &theOther) const
 Performs comparison of two objects describing Fresnel factor. More...
 
Graphic3d_FresnelModel FresnelType () const
 Returns type of Fresnel. More...
 
void DumpJson (Standard_OStream &theOStream, Standard_Integer theDepth=-1) const
 Dumps the content of me into the stream. More...
 

Static Public Member Functions

static Graphic3d_Fresnel CreateSchlick (const Graphic3d_Vec3 &theSpecularColor)
 Creates Schlick's approximation of Fresnel factor. More...
 
static Graphic3d_Fresnel CreateConstant (const Standard_ShortReal theReflection)
 Creates Fresnel factor for constant reflection. More...
 
static Graphic3d_Fresnel CreateDielectric (Standard_ShortReal theRefractionIndex)
 Creates Fresnel factor for physical-based dielectric model. More...
 
static Graphic3d_Fresnel CreateConductor (Standard_ShortReal theRefractionIndex, Standard_ShortReal theAbsorptionIndex)
 Creates Fresnel factor for physical-based conductor model. More...
 
static Graphic3d_Fresnel CreateConductor (const Graphic3d_Vec3 &theRefractionIndex, const Graphic3d_Vec3 &theAbsorptionIndex)
 Creates Fresnel factor for physical-based conductor model (spectral version). More...
 

Protected Member Functions

 Graphic3d_Fresnel (Graphic3d_FresnelModel theType, const Graphic3d_Vec3 &theData)
 Creates new Fresnel reflectance factor. More...
 

Detailed Description

Describes Fresnel reflectance parameters.

Constructor & Destructor Documentation

◆ Graphic3d_Fresnel() [1/2]

Graphic3d_Fresnel::Graphic3d_Fresnel ( )
inline

Creates uninitialized Fresnel factor.

◆ Graphic3d_Fresnel() [2/2]

Graphic3d_Fresnel::Graphic3d_Fresnel ( Graphic3d_FresnelModel  theType,
const Graphic3d_Vec3 theData 
)
inlineprotected

Creates new Fresnel reflectance factor.

Member Function Documentation

◆ CreateConductor() [1/2]

static Graphic3d_Fresnel Graphic3d_Fresnel::CreateConductor ( const Graphic3d_Vec3 theRefractionIndex,
const Graphic3d_Vec3 theAbsorptionIndex 
)
static

Creates Fresnel factor for physical-based conductor model (spectral version).

◆ CreateConductor() [2/2]

static Graphic3d_Fresnel Graphic3d_Fresnel::CreateConductor ( Standard_ShortReal  theRefractionIndex,
Standard_ShortReal  theAbsorptionIndex 
)
inlinestatic

Creates Fresnel factor for physical-based conductor model.

◆ CreateConstant()

static Graphic3d_Fresnel Graphic3d_Fresnel::CreateConstant ( const Standard_ShortReal  theReflection)
inlinestatic

Creates Fresnel factor for constant reflection.

◆ CreateDielectric()

static Graphic3d_Fresnel Graphic3d_Fresnel::CreateDielectric ( Standard_ShortReal  theRefractionIndex)
inlinestatic

Creates Fresnel factor for physical-based dielectric model.

◆ CreateSchlick()

static Graphic3d_Fresnel Graphic3d_Fresnel::CreateSchlick ( const Graphic3d_Vec3 theSpecularColor)
inlinestatic

Creates Schlick's approximation of Fresnel factor.

◆ DumpJson()

void Graphic3d_Fresnel::DumpJson ( Standard_OStream theOStream,
Standard_Integer  theDepth = -1 
) const

Dumps the content of me into the stream.

◆ FresnelType()

Graphic3d_FresnelModel Graphic3d_Fresnel::FresnelType ( ) const
inline

Returns type of Fresnel.

◆ operator==()

bool Graphic3d_Fresnel::operator== ( const Graphic3d_Fresnel theOther) const
inline

Performs comparison of two objects describing Fresnel factor.

◆ Serialize()

Graphic3d_Vec4 Graphic3d_Fresnel::Serialize ( ) const

Returns serialized representation of Fresnel factor.


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