This class contains Physically-Based-Rendering (PBR) workflow properties. More...
#include <Pbr.hh>
Public Member Functions | |
PbrWorkflow () | |
Default constructor. More... | |
PbrWorkflow (const PbrWorkflow &_workflow) | |
Copy constructor. More... | |
PbrWorkflow (PbrWorkflow &&_workflow) noexcept | |
Move constructor. More... | |
~PbrWorkflow () | |
Destructor. More... | |
std::string | AlbedoMap () const |
Get the albedo map filename. More... | |
std::string | AmbientOcclusionMap () const |
Get the ambient occlusion map filename. More... | |
sdf::ElementPtr | Element () const |
Get a pointer to the SDF element that was used during load. More... | |
std::string | EmissiveMap () const |
Get the emissive map filename. More... | |
std::string | EnvironmentMap () const |
Get the environment map filename. More... | |
double | Glossiness () const |
Get the glossiness value of the material for specular workflow. More... | |
std::string | GlossinessMap () const |
Get the glossiness map filename for specular workflow. More... | |
std::string | LightMap () const |
Get the light map filename. More... | |
unsigned int | LightMapTexCoordSet () const |
Get the light map texture coordinate set. More... | |
Errors | Load (ElementPtr _sdf) |
Load the pbr workflow based on an element pointer. More... | |
double | Metalness () const |
Get the metalness value of the material for metal workflow. More... | |
std::string | MetalnessMap () const |
Get the metalness map filename for metal workflow. More... | |
std::string | NormalMap () const |
Get the normal map filename. More... | |
NormalMapSpace | NormalMapType () const |
Get the normal map type, either tangent or object space. More... | |
bool | operator!= (const PbrWorkflow &_workflow) const |
Return true this PbrWorkflow object does not contain the same values as the passed in parameter. More... | |
PbrWorkflow & | operator= (const PbrWorkflow &_workflow) |
Assignment operator. More... | |
PbrWorkflow & | operator= (PbrWorkflow &&_workflow) |
Move assignment operator. More... | |
bool | operator== (const PbrWorkflow &_workflow) const |
Return true if both PbrWorkflow objects contain the same values. More... | |
double | Roughness () const |
Get the roughness value of the material for metal workflow. More... | |
std::string | RoughnessMap () const |
Get the roughness map filename for metal workflow. More... | |
void | SetAlbedoMap (const std::string &_map) |
Set the albedo map filename. More... | |
void | SetAmbientOcclusionMap (const std::string &_map) |
Set the ambient occlusion map filename. More... | |
void | SetEmissiveMap (const std::string &_map) |
Set the emissive map filename. More... | |
void | SetEnvironmentMap (const std::string &_map) |
Set the environment map filename. More... | |
void | SetGlossiness (const double _value) |
Set the glossiness value of the material for specular workflow. More... | |
void | SetGlossinessMap (const std::string &_map) |
Set the glossiness map filename for specular workflow. More... | |
void | SetLightMap (const std::string &_map, unsigned int _uvSet=0u) |
Set the light map filename. More... | |
void | SetMetalness (const double _value) |
Set the metalness value of the material for metal workflow. More... | |
void | SetMetalnessMap (const std::string &_map) |
Set the metalness map filename for metal workflow. More... | |
void | SetNormalMap (const std::string &_map, NormalMapSpace _space=NormalMapSpace::TANGENT) |
Set the normal map filename. More... | |
void | SetRoughness (const double _value) |
Set the roughness value of the material for metal workflow. More... | |
void | SetRoughnessMap (const std::string &_map) |
Set the roughness map filename for metal workflow. More... | |
void | SetSpecularMap (const std::string &_map) |
Set the specular map filename for specular workflow. More... | |
void | SetType (PbrWorkflowType _type) |
Set the PBR workflow to use. More... | |
std::string | SpecularMap () const |
Get the specular map filename for specular workflow. More... | |
PbrWorkflowType | Type () const |
Get the workflow type. More... | |
This class contains Physically-Based-Rendering (PBR) workflow properties.
sdf::v9::PbrWorkflow::PbrWorkflow | ( | ) |
Default constructor.
sdf::v9::PbrWorkflow::PbrWorkflow | ( | const PbrWorkflow & | _workflow | ) |
Copy constructor.
[in] | _workflow | Workflow to copy. |
|
noexcept |
Move constructor.
[in] | _workflow | to move. |
sdf::v9::PbrWorkflow::~PbrWorkflow | ( | ) |
Destructor.
std::string sdf::v9::PbrWorkflow::AlbedoMap | ( | ) | const |
Get the albedo map filename.
This will be an empty string if an albedo map has not been set.
std::string sdf::v9::PbrWorkflow::AmbientOcclusionMap | ( | ) | const |
Get the ambient occlusion map filename.
This will be an empty string if an ambient occlusion map has not been set.
sdf::ElementPtr sdf::v9::PbrWorkflow::Element | ( | ) | const |
std::string sdf::v9::PbrWorkflow::EmissiveMap | ( | ) | const |
Get the emissive map filename.
This will be an empty string if an emissive map has not been set.
std::string sdf::v9::PbrWorkflow::EnvironmentMap | ( | ) | const |
Get the environment map filename.
This will be an empty string if an environment map has not been set.
double sdf::v9::PbrWorkflow::Glossiness | ( | ) | const |
Get the glossiness value of the material for specular workflow.
std::string sdf::v9::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.
std::string sdf::v9::PbrWorkflow::LightMap | ( | ) | const |
Get the light map filename.
This will be an empty string if an light map has not been set.
unsigned int sdf::v9::PbrWorkflow::LightMapTexCoordSet | ( | ) | const |
Get the light map texture coordinate set.
Errors sdf::v9::PbrWorkflow::Load | ( | ElementPtr | _sdf | ) |
double sdf::v9::PbrWorkflow::Metalness | ( | ) | const |
Get the metalness value of the material for metal workflow.
std::string sdf::v9::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.
std::string sdf::v9::PbrWorkflow::NormalMap | ( | ) | const |
Get the normal map filename.
This will be an empty string if a normal map has not been set.
NormalMapSpace sdf::v9::PbrWorkflow::NormalMapType | ( | ) | const |
Get the normal map type, either tangent or object space.
bool sdf::v9::PbrWorkflow::operator!= | ( | const PbrWorkflow & | _workflow | ) | const |
Return true this PbrWorkflow object does not contain the same values as the passed in parameter.
[_in] | _workflow PbrWorkflow value to compare. \returen True if 'this' != _workflow. |
PbrWorkflow& sdf::v9::PbrWorkflow::operator= | ( | const PbrWorkflow & | _workflow | ) |
Assignment operator.
[in] | _workflow | The workflow to set values from. |
PbrWorkflow& sdf::v9::PbrWorkflow::operator= | ( | PbrWorkflow && | _workflow | ) |
Move assignment operator.
[in] | _workflow | The workflow to move from. |
bool sdf::v9::PbrWorkflow::operator== | ( | const PbrWorkflow & | _workflow | ) | const |
Return true if both PbrWorkflow objects contain the same values.
[_in] | _workflow PbrWorkflow value to compare. \returen True if 'this' == _workflow. |
double sdf::v9::PbrWorkflow::Roughness | ( | ) | const |
Get the roughness value of the material for metal workflow.
std::string sdf::v9::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.
void sdf::v9::PbrWorkflow::SetAlbedoMap | ( | const std::string & | _map | ) |
Set the albedo map filename.
[in] | _map | Filename of the albedo map. |
void sdf::v9::PbrWorkflow::SetAmbientOcclusionMap | ( | const std::string & | _map | ) |
Set the ambient occlusion map filename.
[in] | _map | Filename of the ambient occlusion map. |
void sdf::v9::PbrWorkflow::SetEmissiveMap | ( | const std::string & | _map | ) |
Set the emissive map filename.
[in] | _map | Filename of the emissive map. |
void sdf::v9::PbrWorkflow::SetEnvironmentMap | ( | const std::string & | _map | ) |
Set the environment map filename.
[in] | _map | Filename of the environment map. |
void sdf::v9::PbrWorkflow::SetGlossiness | ( | const double | _value | ) |
Set the glossiness value of the material for specular workflow.
[in] | _value | Glossiness value. |
void sdf::v9::PbrWorkflow::SetGlossinessMap | ( | const std::string & | _map | ) |
Set the glossiness map filename for specular workflow.
[in] | _map | Filename of the glossiness map. |
void sdf::v9::PbrWorkflow::SetLightMap | ( | const std::string & | _map, |
unsigned int | _uvSet = 0u |
||
) |
Set the light map filename.
[in] | _map | Filename of the light map. |
[in] | _uvSet | Index of the light map texture coordinate set |
void sdf::v9::PbrWorkflow::SetMetalness | ( | const double | _value | ) |
Set the metalness value of the material for metal workflow.
[in] | _value | Metalness value. |
void sdf::v9::PbrWorkflow::SetMetalnessMap | ( | const std::string & | _map | ) |
Set the metalness map filename for metal workflow.
[in] | _map | Filename of the metalness map. |
void sdf::v9::PbrWorkflow::SetNormalMap | ( | const std::string & | _map, |
NormalMapSpace | _space = NormalMapSpace::TANGENT |
||
) |
Set the normal map filename.
[in] | _map | Filename of the normal map. |
[in] | _space | Space that the normal map is defined in. Defaults to tangent space. |
void sdf::v9::PbrWorkflow::SetRoughness | ( | const double | _value | ) |
Set the roughness value of the material for metal workflow.
[in] | _value | Roughness value. |
void sdf::v9::PbrWorkflow::SetRoughnessMap | ( | const std::string & | _map | ) |
Set the roughness map filename for metal workflow.
[in] | _map | Filename of the roughness map. |
void sdf::v9::PbrWorkflow::SetSpecularMap | ( | const std::string & | _map | ) |
Set the specular map filename for specular workflow.
[in] | _map | Filename of the specular map. |
void sdf::v9::PbrWorkflow::SetType | ( | PbrWorkflowType | _type | ) |
Set the PBR workflow to use.
[in] | _type | Workflow type to use |
std::string sdf::v9::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.
PbrWorkflowType sdf::v9::PbrWorkflow::Type | ( | ) | const |
Get the workflow type.