Go to the documentation of this file.
23 #include "sdf/sdf_config.h"
29 inline namespace SDF_VERSION_NAMESPACE {
33 class PbrWorkflowPrivate;
241 private: PbrWorkflowPrivate *dataPtr =
nullptr;
294 private: PbrPrivate *dataPtr =
nullptr;
PbrWorkflowType Type() const
Get the workflow type.
This class contains Physically-Based-Rendering (PBR) workflow properties.
Definition: Pbr.hh:61
void SetMetalness(const double _value)
Set the metalness value of the material for metal workflow.
void SetGlossiness(const double _value)
Set the glossiness value of the material for specular workflow.
void SetAmbientOcclusionMap(const std::string &_map)
Set the ambient occlusion map filename.
void SetEmissiveMap(const std::string &_map)
Set the emissive map filename.
PbrWorkflow()
Default constructor.
std::string EmissiveMap() const
Get the emissive map filename.
namespace for Simulation Description Format parser
Definition: Actor.hh:33
Errors Load(ElementPtr _sdf)
Load the pbr workflow based on an element pointer.
PbrWorkflow & operator=(const PbrWorkflow &_workflow)
Assignment operator.
void SetRoughnessMap(const std::string &_map)
Set the roughness map filename for metal workflow.
void SetRoughness(const double _value)
Set the roughness value of the material for metal workflow.
Pbr()
Default constructor.
void SetNormalMap(const std::string &_map, NormalMapSpace _space=NormalMapSpace::TANGENT)
Set the normal map filename.
void SetWorkflow(PbrWorkflowType _type, const PbrWorkflow &_workflow)
Set a PBR workflow by type.
PbrWorkflow * Workflow(PbrWorkflowType _type) const
Get a PBR workflow by type.
bool operator==(const PbrWorkflow &_workflow) const
Return true if both PbrWorkflow objects contain the same values.
PbrWorkflowType
Type of PBR workflow.
Definition: Pbr.hh:37
std::string AmbientOcclusionMap() const
Get the ambient occlusion map filename.
std::vector< Error > Errors
A vector of Error.
Definition: Types.hh:89
Pbr(const Pbr &_pbr)
Copy constructor.
std::string MetalnessMap() const
Get the metalness map filename for metal workflow.
#define SDFORMAT_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system_util.hh:48
double Roughness() const
Get the roughness value of the material for metal workflow.
void SetType(PbrWorkflowType _type)
Set the PBR workflow to use.
void SetSpecularMap(const std::string &_map)
Set the specular map filename for specular workflow.
This class provides access to Physically-Based-Rendering (PBR) material workflows.
Definition: Pbr.hh:247
Pbr & operator=(Pbr &&_pbr)
Move assignment operator.
std::string RoughnessMap() const
Get the roughness map filename for metal workflow.
void SetEnvironmentMap(const std::string &_map)
Set the environment map filename.
NormalMapSpace NormalMapType() const
Get the normal map type, either tangent or object space.
void SetMetalnessMap(const std::string &_map)
Set the metalness map filename for metal workflow.
bool operator!=(const PbrWorkflow &_workflow) const
Return true this PbrWorkflow object does not contain the same values as the passed in parameter.
PbrWorkflow & operator=(PbrWorkflow &&_workflow)
Move assignment operator.
double Metalness() const
Get the metalness value of the material for metal workflow.
NormalMapSpace
Space the normal map is defined in.
Definition: Pbr.hh:50
std::string GlossinessMap() const
Get the glossiness map filename for specular workflow.
PbrWorkflow(const PbrWorkflow &_workflow)
Copy constructor.
std::shared_ptr< Element > ElementPtr
Definition: Element.hh:53
~PbrWorkflow()
Destructor.
sdf::ElementPtr Element() const
Get a pointer to the SDF element that was used during load.
Errors Load(ElementPtr _sdf)
Load the pbr based on an element pointer.
Pbr & operator=(const Pbr &_pbr)
Assignment operator.
void SetGlossinessMap(const std::string &_map)
Set the glossiness map filename for specular workflow.
double Glossiness() const
Get the glossiness value of the material for specular workflow.
std::string AlbedoMap() const
Get the albedo map filename.
PbrWorkflow(PbrWorkflow &&_workflow) noexcept
Move constructor.
Pbr(Pbr &&_pbr) noexcept
Move constructor.
std::string NormalMap() const
Get the normal map filename.
void SetAlbedoMap(const std::string &_map)
Set the albedo map filename.
std::string SpecularMap() const
Get the specular map filename for specular workflow.
std::string EnvironmentMap() const
Get the environment map filename.