Loading...
Searching...
No Matches
Public Member Functions | List of all members
sdf::SDF_VERSION_NAMESPACE::PbrWorkflow Class Reference

This class contains Physically-Based-Rendering (PBR) workflow properties. More...

#include <Pbr.hh>

Public Member Functions

 PbrWorkflow ()
 Default constructor.
 
std::string AlbedoMap () const
 Get the albedo map filename.
 
std::string AmbientOcclusionMap () const
 Get the ambient occlusion map filename.
 
sdf::ElementPtr Element () const
 Get a pointer to the SDF element that was used during load.
 
std::string EmissiveMap () const
 Get the emissive map filename.
 
std::string EnvironmentMap () const
 Get the environment map filename.
 
double Glossiness () const
 Get the glossiness value of the material for specular workflow.
 
std::string GlossinessMap () const
 Get the glossiness map filename for specular workflow.
 
std::string LightMap () const
 Get the light map filename.
 
unsigned int LightMapTexCoordSet () const
 Get the light map texture coordinate set.
 
Errors Load (ElementPtr _sdf)
 Load the pbr workflow based on an element pointer.
 
double Metalness () const
 Get the metalness value of the material for metal workflow.
 
std::string MetalnessMap () const
 Get the metalness map filename for metal workflow.
 
std::string NormalMap () const
 Get the normal map filename.
 
NormalMapSpace NormalMapType () const
 Get the normal map type, either tangent or object space.
 
bool operator!= (const PbrWorkflow &_workflow) const
 Return true this PbrWorkflow object does not contain the same values as the passed in parameter.
 
bool operator== (const PbrWorkflow &_workflow) const
 Return true if both PbrWorkflow objects contain the same values.
 
double Roughness () const
 Get the roughness value of the material for metal workflow.
 
std::string RoughnessMap () const
 Get the roughness map filename for metal workflow.
 
void SetAlbedoMap (const std::string &_map)
 Set the albedo map filename.
 
void SetAmbientOcclusionMap (const std::string &_map)
 Set the ambient occlusion map filename.
 
void SetEmissiveMap (const std::string &_map)
 Set the emissive map filename.
 
void SetEnvironmentMap (const std::string &_map)
 Set the environment map filename.
 
void SetGlossiness (const double _value)
 Set the glossiness value of the material for specular workflow.
 
void SetGlossinessMap (const std::string &_map)
 Set the glossiness map filename for specular workflow.
 
void SetLightMap (const std::string &_map, unsigned int _uvSet=0u)
 Set the light map filename.
 
void SetMetalness (const double _value)
 Set the metalness value of the material for metal workflow.
 
void SetMetalnessMap (const std::string &_map)
 Set the metalness map filename for metal workflow.
 
void SetNormalMap (const std::string &_map, NormalMapSpace _space=NormalMapSpace::TANGENT)
 Set the normal map filename.
 
void SetRoughness (const double _value)
 Set the roughness value of the material for metal workflow.
 
void SetRoughnessMap (const std::string &_map)
 Set the roughness map filename for metal workflow.
 
void SetSpecularMap (const std::string &_map)
 Set the specular map filename for specular workflow.
 
void SetType (PbrWorkflowType _type)
 Set the PBR workflow to use.
 
std::string SpecularMap () const
 Get the specular map filename for specular workflow.
 
PbrWorkflowType Type () const
 Get the workflow type.
 

Detailed Description

This class contains Physically-Based-Rendering (PBR) workflow properties.

Constructor & Destructor Documentation

◆ PbrWorkflow()

sdf::SDF_VERSION_NAMESPACE::PbrWorkflow::PbrWorkflow ( )

Default constructor.

Member Function Documentation

◆ AlbedoMap()

std::string sdf::SDF_VERSION_NAMESPACE::PbrWorkflow::AlbedoMap ( ) const

Get the albedo map filename.

This will be an empty string if an albedo map has not been set.

Returns
Filename of the albedo map, or empty string if an albedo map has not been specified.

◆ AmbientOcclusionMap()

std::string sdf::SDF_VERSION_NAMESPACE::PbrWorkflow::AmbientOcclusionMap ( ) const

Get the ambient occlusion map filename.

This will be an empty string if an ambient occlusion map has not been set.

Returns
Filename of the ambient occlusion map, or empty string if an ambient occlusion map has not been specified.

◆ Element()

sdf::ElementPtr sdf::SDF_VERSION_NAMESPACE::PbrWorkflow::Element ( ) const

Get a pointer to the SDF element that was used during load.

Returns
SDF element pointer. The value will be nullptr if Load has not been called.

◆ EmissiveMap()

std::string sdf::SDF_VERSION_NAMESPACE::PbrWorkflow::EmissiveMap ( ) const

Get the emissive map filename.

This will be an empty string if an emissive map has not been set.

Returns
Filename of the emissive map, or empty string if an emissive map has not been specified.

◆ EnvironmentMap()

std::string sdf::SDF_VERSION_NAMESPACE::PbrWorkflow::EnvironmentMap ( ) const

Get the environment map filename.

This will be an empty string if an environment map has not been set.

Returns
Filename of the environment map, or empty string if an environment map has not been specified.

◆ Glossiness()

double sdf::SDF_VERSION_NAMESPACE::PbrWorkflow::Glossiness ( ) const

Get the glossiness value of the material for specular workflow.

Returns
Glossiness value of the material

◆ GlossinessMap()

std::string sdf::SDF_VERSION_NAMESPACE::PbrWorkflow::GlossinessMap ( ) const

Get the glossiness map filename for specular workflow.

This will be an empty string if a glossiness map has not been set.

Returns
Filename of the glossiness map, or empty string if a glossiness map has not been specified.

◆ LightMap()

std::string sdf::SDF_VERSION_NAMESPACE::PbrWorkflow::LightMap ( ) const

Get the light map filename.

This will be an empty string if an light map has not been set.

Returns
Filename of the light map, or empty string if a light map has not been specified.

◆ LightMapTexCoordSet()

unsigned int sdf::SDF_VERSION_NAMESPACE::PbrWorkflow::LightMapTexCoordSet ( ) const

Get the light map texture coordinate set.

Returns
Index of the texture coordinate set

◆ Load()

Errors sdf::SDF_VERSION_NAMESPACE::PbrWorkflow::Load ( ElementPtr  _sdf)

Load the pbr workflow based on an element pointer.

This is not the usual entry point. Typical usage of the SDF DOM is through the Root object.

Parameters
[in]_sdfThe SDF Element pointer
Returns
Errors, which is a vector of Error objects. Each Error includes an error code and message. An empty vector indicates no error.

◆ Metalness()

double sdf::SDF_VERSION_NAMESPACE::PbrWorkflow::Metalness ( ) const

Get the metalness value of the material for metal workflow.

Returns
metalness value of the material

◆ MetalnessMap()

std::string sdf::SDF_VERSION_NAMESPACE::PbrWorkflow::MetalnessMap ( ) const

Get the metalness map filename for metal workflow.

This will be an empty string if a metalness map has not been set.

Returns
Filename of the metalness map, or empty string if a metalness map has not been specified.

◆ NormalMap()

std::string sdf::SDF_VERSION_NAMESPACE::PbrWorkflow::NormalMap ( ) const

Get the normal map filename.

This will be an empty string if a normal map has not been set.

Returns
Filename of the normal map, or empty string if a normal map has not been specified.

◆ NormalMapType()

NormalMapSpace sdf::SDF_VERSION_NAMESPACE::PbrWorkflow::NormalMapType ( ) const

Get the normal map type, either tangent or object space.

Returns
Space that the normal map is defined in

◆ operator!=()

bool sdf::SDF_VERSION_NAMESPACE::PbrWorkflow::operator!= ( const PbrWorkflow _workflow) const

Return true this PbrWorkflow object does not contain the same values as the passed in parameter.

Parameters
[_in]_workflow PbrWorkflow value to compare. \returen True if 'this' != _workflow.

◆ operator==()

bool sdf::SDF_VERSION_NAMESPACE::PbrWorkflow::operator== ( const PbrWorkflow _workflow) const

Return true if both PbrWorkflow objects contain the same values.

Parameters
[_in]_workflow PbrWorkflow value to compare. \returen True if 'this' == _workflow.

◆ Roughness()

double sdf::SDF_VERSION_NAMESPACE::PbrWorkflow::Roughness ( ) const

Get the roughness value of the material for metal workflow.

Returns
roughness value of the material

◆ RoughnessMap()

std::string sdf::SDF_VERSION_NAMESPACE::PbrWorkflow::RoughnessMap ( ) const

Get the roughness map filename for metal workflow.

This will be an empty string if a roughness map has not been set.

Returns
Filename of the roughness map, or empty string if a roughness map has not been specified.

◆ SetAlbedoMap()

void sdf::SDF_VERSION_NAMESPACE::PbrWorkflow::SetAlbedoMap ( const std::string &  _map)

Set the albedo map filename.

Parameters
[in]_mapFilename of the albedo map.

◆ SetAmbientOcclusionMap()

void sdf::SDF_VERSION_NAMESPACE::PbrWorkflow::SetAmbientOcclusionMap ( const std::string &  _map)

Set the ambient occlusion map filename.

Parameters
[in]_mapFilename of the ambient occlusion map.

◆ SetEmissiveMap()

void sdf::SDF_VERSION_NAMESPACE::PbrWorkflow::SetEmissiveMap ( const std::string &  _map)

Set the emissive map filename.

Parameters
[in]_mapFilename of the emissive map.

◆ SetEnvironmentMap()

void sdf::SDF_VERSION_NAMESPACE::PbrWorkflow::SetEnvironmentMap ( const std::string &  _map)

Set the environment map filename.

Parameters
[in]_mapFilename of the environment map.

◆ SetGlossiness()

void sdf::SDF_VERSION_NAMESPACE::PbrWorkflow::SetGlossiness ( const double  _value)

Set the glossiness value of the material for specular workflow.

Parameters
[in]_valueGlossiness value.

◆ SetGlossinessMap()

void sdf::SDF_VERSION_NAMESPACE::PbrWorkflow::SetGlossinessMap ( const std::string &  _map)

Set the glossiness map filename for specular workflow.

Parameters
[in]_mapFilename of the glossiness map.

◆ SetLightMap()

void sdf::SDF_VERSION_NAMESPACE::PbrWorkflow::SetLightMap ( const std::string &  _map,
unsigned int  _uvSet = 0u 
)

Set the light map filename.

Parameters
[in]_mapFilename of the light map.
[in]_uvSetIndex of the light map texture coordinate set

◆ SetMetalness()

void sdf::SDF_VERSION_NAMESPACE::PbrWorkflow::SetMetalness ( const double  _value)

Set the metalness value of the material for metal workflow.

Parameters
[in]_valueMetalness value.

◆ SetMetalnessMap()

void sdf::SDF_VERSION_NAMESPACE::PbrWorkflow::SetMetalnessMap ( const std::string &  _map)

Set the metalness map filename for metal workflow.

Parameters
[in]_mapFilename of the metalness map.

◆ SetNormalMap()

void sdf::SDF_VERSION_NAMESPACE::PbrWorkflow::SetNormalMap ( const std::string &  _map,
NormalMapSpace  _space = NormalMapSpace::TANGENT 
)

Set the normal map filename.

Parameters
[in]_mapFilename of the normal map.
[in]_spaceSpace that the normal map is defined in. Defaults to tangent space.

◆ SetRoughness()

void sdf::SDF_VERSION_NAMESPACE::PbrWorkflow::SetRoughness ( const double  _value)

Set the roughness value of the material for metal workflow.

Parameters
[in]_valueRoughness value.

◆ SetRoughnessMap()

void sdf::SDF_VERSION_NAMESPACE::PbrWorkflow::SetRoughnessMap ( const std::string &  _map)

Set the roughness map filename for metal workflow.

Parameters
[in]_mapFilename of the roughness map.

◆ SetSpecularMap()

void sdf::SDF_VERSION_NAMESPACE::PbrWorkflow::SetSpecularMap ( const std::string &  _map)

Set the specular map filename for specular workflow.

Parameters
[in]_mapFilename of the specular map.

◆ SetType()

void sdf::SDF_VERSION_NAMESPACE::PbrWorkflow::SetType ( PbrWorkflowType  _type)

Set the PBR workflow to use.

Parameters
[in]_typeWorkflow type to use

◆ SpecularMap()

std::string sdf::SDF_VERSION_NAMESPACE::PbrWorkflow::SpecularMap ( ) const

Get the specular map filename for specular workflow.

This will be an empty string if a specular map has not been set.

Returns
Filename of the specular map, or empty string if a specular map has not been specified.

◆ Type()

PbrWorkflowType sdf::SDF_VERSION_NAMESPACE::PbrWorkflow::Type ( ) const

Get the workflow type.

Returns
PBR workflow type.

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