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

Public Member Functions

virtual bool IsSingleShaderMaterial () const =0
 Returns true if the material has only one shader, false otherwise. More...
 
virtual bool IsClearCoatMaterial () const =0
 Returns true if the material has a clear coat layer, false otherwise. More...
 
virtual void AddShader (const TSharedPtr< IDatasmithShaderElement > &Shader)=0
 Adds a new shader to the material stack. More...
 
virtual int32 GetShadersCount () const =0
 Get the total amount of shaders in this material. More...
 
virtual TSharedPtr< IDatasmithShaderElement > & GetShader (int32 InIndex)=0
 Get the shader i-th of this material. More...
 
virtual const TSharedPtr< IDatasmithShaderElement > & GetShader (int32 InIndex) const =0
 Get the shader i-th of this material. More...
 
- Public Member Functions inherited from IDatasmithElement
virtual bool IsA (EDatasmithElementType Type) const =0
 returns if this DatasmithElement is of a specified type More...
 
virtual bool IsSubType (uint64 SubType) const =0
 returns if this DatasmithElement is of a specified subtype of its EDatasmithElementType More...
 
virtual const TCHAR * GetName () const =0
 Gets the element name. More...
 
virtual void SetName (const TCHAR *InName)=0
 Sets the element name. More...
 
virtual const TCHAR * GetLabel () const =0
 Gets the element label used in the UI. More...
 
virtual void SetLabel (const TCHAR *InLabel)=0
 Sets the element label used in the UI. More...
 
virtual FMD5Hash CalculateElementHash (bool bForce)=0
 Return a MD5 hash of the content of the Element. More...
 

Member Function Documentation

◆ AddShader()

virtual void IDatasmithMaterialElement::AddShader ( const TSharedPtr< IDatasmithShaderElement > &  Shader)
pure virtual

Adds a new shader to the material stack.

Implemented in FDatasmithMaterialElementImpl.

◆ GetShader() [1/2]

virtual const TSharedPtr< IDatasmithShaderElement >& IDatasmithMaterialElement::GetShader ( int32  InIndex) const
pure virtual

Get the shader i-th of this material.

Implemented in FDatasmithMaterialElementImpl.

◆ GetShader() [2/2]

virtual TSharedPtr< IDatasmithShaderElement >& IDatasmithMaterialElement::GetShader ( int32  InIndex)
pure virtual

Get the shader i-th of this material.

Implemented in FDatasmithMaterialElementImpl.

◆ GetShadersCount()

virtual int32 IDatasmithMaterialElement::GetShadersCount ( ) const
pure virtual

Get the total amount of shaders in this material.

Implemented in FDatasmithMaterialElementImpl.

◆ IsClearCoatMaterial()

virtual bool IDatasmithMaterialElement::IsClearCoatMaterial ( ) const
pure virtual

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

Implemented in FDatasmithMaterialElementImpl.

◆ IsSingleShaderMaterial()

virtual bool IDatasmithMaterialElement::IsSingleShaderMaterial ( ) const
pure virtual

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

Implemented in FDatasmithMaterialElementImpl.


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