FDatasmithMaterialElementImpl Class Reference
Inheritance diagram for FDatasmithMaterialElementImpl:
FDatasmithBaseMaterialElementImpl< IDatasmithMaterialElement > FDatasmithElementImpl< IDatasmithMaterialElement > IDatasmithMaterialElement IDatasmithBaseMaterialElement IDatasmithElement

Public Member Functions

 FDatasmithMaterialElementImpl (const TCHAR *InName)
 
virtual bool IsSingleShaderMaterial () const override
 Returns true if the material has only one shader, false otherwise. More...
 
virtual bool IsClearCoatMaterial () const override
 Returns true if the material has a clear coat layer, false otherwise. More...
 
virtual void AddShader (const TSharedPtr< IDatasmithShaderElement > &InShader) override
 Adds a new shader to the material stack. More...
 
virtual int32 GetShadersCount () const override
 Get the total amount of shaders in this material. More...
 
virtual TSharedPtr< IDatasmithShaderElement > & GetShader (int32 InIndex) override
 Get the shader i-th of this material. More...
 
virtual const TSharedPtr< IDatasmithShaderElement > & GetShader (int32 InIndex) const override
 Get the shader i-th of this material. More...
 
- Public Member Functions inherited from FDatasmithBaseMaterialElementImpl< IDatasmithMaterialElement >
 FDatasmithBaseMaterialElementImpl (const TCHAR *InName, EDatasmithElementType ChildType)
 
- Public Member Functions inherited from FDatasmithElementImpl< IDatasmithMaterialElement >
 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
 

Additional Inherited Members

- Protected Attributes inherited from FDatasmithElementImpl< IDatasmithMaterialElement >
FString Name
 
FString Label
 
FMD5Hash ElementHash
 
EDatasmithElementType Type
 
uint64 SubType
 

Member Function Documentation

◆ AddShader()

virtual void FDatasmithMaterialElementImpl::AddShader ( const TSharedPtr< IDatasmithShaderElement > &  Shader)
overridevirtual

Adds a new shader to the material stack.

Implements IDatasmithMaterialElement.

◆ GetShader() [1/2]

virtual const TSharedPtr< IDatasmithShaderElement >& FDatasmithMaterialElementImpl::GetShader ( int32  InIndex) const
overridevirtual

Get the shader i-th of this material.

Implements IDatasmithMaterialElement.

◆ GetShader() [2/2]

virtual TSharedPtr< IDatasmithShaderElement >& FDatasmithMaterialElementImpl::GetShader ( int32  InIndex)
overridevirtual

Get the shader i-th of this material.

Implements IDatasmithMaterialElement.

◆ GetShadersCount()

virtual int32 FDatasmithMaterialElementImpl::GetShadersCount ( ) const
overridevirtual

Get the total amount of shaders in this material.

Implements IDatasmithMaterialElement.

◆ IsClearCoatMaterial()

virtual bool FDatasmithMaterialElementImpl::IsClearCoatMaterial ( ) const
overridevirtual

Returns true if the material has a clear coat layer, false otherwise.

Implements IDatasmithMaterialElement.

◆ IsSingleShaderMaterial()

virtual bool FDatasmithMaterialElementImpl::IsSingleShaderMaterial ( ) const
overridevirtual

Returns true if the material has only one shader, false otherwise.

Implements IDatasmithMaterialElement.


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