FDatasmithUEPbrMaterialElementImpl Class Reference
Inheritance diagram for FDatasmithUEPbrMaterialElementImpl:
FDatasmithBaseMaterialElementImpl< IDatasmithUEPbrMaterialElement > FDatasmithElementImpl< IDatasmithUEPbrMaterialElement > IDatasmithUEPbrMaterialElement IDatasmithBaseMaterialElement IDatasmithElement

Public Member Functions

 FDatasmithUEPbrMaterialElementImpl (const TCHAR *InName)
 
virtual IDatasmithExpressionInput & GetBaseColor () override
 
virtual IDatasmithExpressionInput & GetMetallic () override
 
virtual IDatasmithExpressionInput & GetSpecular () override
 
virtual IDatasmithExpressionInput & GetRoughness () override
 
virtual IDatasmithExpressionInput & GetEmissiveColor () override
 
virtual IDatasmithExpressionInput & GetOpacity () override
 
virtual IDatasmithExpressionInput & GetNormal () override
 
virtual IDatasmithExpressionInput & GetWorldDisplacement () override
 
virtual IDatasmithExpressionInput & GetRefraction () override
 
virtual IDatasmithExpressionInput & GetAmbientOcclusion () override
 
virtual IDatasmithExpressionInput & GetMaterialAttributes () override
 
virtual int GetBlendMode () const override
 
virtual void SetBlendMode (int InBlendMode) override
 
virtual bool GetTwoSided () const override
 
virtual void SetTwoSided (bool bInTwoSided) override
 
virtual bool GetUseMaterialAttributes () const override
 
virtual void SetUseMaterialAttributes (bool bInUseMaterialAttributes) override
 
virtual bool GetMaterialFunctionOnly () const override
 If a material is only referenced by other materials then it is only used as a material function and there is no need to instantiate it. More...
 
virtual void SetMaterialFunctionOnly (bool bInMaterialFunctionOnly) override
 
virtual int32 GetExpressionsCount () const override
 
virtual IDatasmithMaterialExpression * GetExpression (int32 Index) override
 
virtual int32 GetExpressionIndex (const IDatasmithMaterialExpression *Expression) const override
 
virtual IDatasmithMaterialExpression * AddMaterialExpression (const EDatasmithMaterialExpressionType ExpressionType) override
 
virtual void SetParentLabel (const TCHAR *InParentLabel) override
 If a parent material is generated from this material, this will be its label. More...
 
virtual const TCHAR * GetParentLabel () const override
 
- Public Member Functions inherited from FDatasmithBaseMaterialElementImpl< IDatasmithUEPbrMaterialElement >
 FDatasmithBaseMaterialElementImpl (const TCHAR *InName, EDatasmithElementType ChildType)
 
- Public Member Functions inherited from FDatasmithElementImpl< IDatasmithUEPbrMaterialElement >
 FDatasmithElementImpl (const TCHAR *InName, EDatasmithElementType InType, uint64 InSubType=0)
 
virtual bool IsA (EDatasmithElementType InType) const override
 
virtual bool IsSubType (uint64 InSubType) const override
 
virtual const TCHAR * GetName () const override
 
virtual void SetName (const TCHAR *InName) override
 
virtual const TCHAR * GetLabel () const override
 
virtual void SetLabel (const TCHAR *InLabel) override
 
virtual FMD5Hash CalculateElementHash (bool) override
 
- Public Member Functions inherited from IDatasmithUEPbrMaterialElement
template<typename T >
T * AddMaterialExpression ()
 
template<>
IDatasmithMaterialExpressionBool * AddMaterialExpression ()
 
template<>
IDatasmithMaterialExpressionColor * AddMaterialExpression ()
 
template<>
IDatasmithMaterialExpressionFlattenNormal * AddMaterialExpression ()
 
template<>
IDatasmithMaterialExpressionFunctionCall * AddMaterialExpression ()
 
template<>
IDatasmithMaterialExpressionGeneric * AddMaterialExpression ()
 
template<>
IDatasmithMaterialExpressionScalar * AddMaterialExpression ()
 
template<>
IDatasmithMaterialExpressionTexture * AddMaterialExpression ()
 
template<>
IDatasmithMaterialExpressionTextureCoordinate * AddMaterialExpression ()
 

Protected Attributes

FDatasmithExpressionInputImpl< IDatasmithExpressionInput > BaseColor
 
FDatasmithExpressionInputImpl< IDatasmithExpressionInput > Metallic
 
FDatasmithExpressionInputImpl< IDatasmithExpressionInput > Specular
 
FDatasmithExpressionInputImpl< IDatasmithExpressionInput > Roughness
 
FDatasmithExpressionInputImpl< IDatasmithExpressionInput > EmissiveColor
 
FDatasmithExpressionInputImpl< IDatasmithExpressionInput > Opacity
 
FDatasmithExpressionInputImpl< IDatasmithExpressionInput > Normal
 
FDatasmithExpressionInputImpl< IDatasmithExpressionInput > WorldDisplacement
 
FDatasmithExpressionInputImpl< IDatasmithExpressionInput > Refraction
 
FDatasmithExpressionInputImpl< IDatasmithExpressionInput > AmbientOcclusion
 
FDatasmithExpressionInputImpl< IDatasmithExpressionInput > MaterialAttributes
 
TArray< IDatasmithMaterialExpression * > Expressions
 
int BlendMode
 
bool bTwoSided
 
bool bUseMaterialAttributes
 
bool bMaterialFunctionOnly
 
FString ParentLabel
 
- Protected Attributes inherited from FDatasmithElementImpl< IDatasmithUEPbrMaterialElement >
FString Name
 
FString Label
 
FMD5Hash ElementHash
 
EDatasmithElementType Type
 
uint64 SubType
 

Member Function Documentation

◆ GetMaterialFunctionOnly()

virtual bool FDatasmithUEPbrMaterialElementImpl::GetMaterialFunctionOnly ( ) const
inlineoverridevirtual

If a material is only referenced by other materials then it is only used as a material function and there is no need to instantiate it.

Implements IDatasmithUEPbrMaterialElement.

◆ SetParentLabel()

virtual void FDatasmithUEPbrMaterialElementImpl::SetParentLabel ( const TCHAR *  InParentLabel)
inlineoverridevirtual

If a parent material is generated from this material, this will be its label.

If none, the instance and the parent will have the same label.

Implements IDatasmithUEPbrMaterialElement.


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