FDatasmithMasterMaterialElementImpl Class Reference
Inheritance diagram for FDatasmithMasterMaterialElementImpl:
FDatasmithBaseMaterialElementImpl< IDatasmithMasterMaterialElement > FDatasmithElementImpl< IDatasmithMasterMaterialElement > IDatasmithMasterMaterialElement IDatasmithBaseMaterialElement IDatasmithElement

Public Member Functions

 FDatasmithMasterMaterialElementImpl (const TCHAR *InName)
 
virtual EDatasmithMasterMaterialType GetMaterialType () const
 
virtual void SetMaterialType (EDatasmithMasterMaterialType InType) override
 
virtual EDatasmithMasterMaterialQuality GetQuality () const
 
virtual void SetQuality (EDatasmithMasterMaterialQuality InQuality)
 
virtual const TCHAR * GetCustomMaterialPathName () const
 Only used when the material type is set to Custom. More...
 
virtual void SetCustomMaterialPathName (const TCHAR *InPathName)
 
int32 GetPropertiesCount () const override
 Get the total amount of properties in this material. More...
 
const TSharedPtr< IDatasmithKeyValueProperty > & GetProperty (int32 InIndex) const override
 Get the property i-th of this material. More...
 
TSharedPtr< IDatasmithKeyValueProperty > & GetProperty (int32 InIndex) override
 
const TSharedPtr< IDatasmithKeyValueProperty > & GetPropertyByName (const TCHAR *InName) const override
 Get a property by its name if it exists. More...
 
TSharedPtr< IDatasmithKeyValueProperty > & GetPropertyByName (const TCHAR *InName) override
 
void AddProperty (const TSharedPtr< IDatasmithKeyValueProperty > &InProperty) override
 Add a property to this material. More...
 
- Public Member Functions inherited from FDatasmithBaseMaterialElementImpl< IDatasmithMasterMaterialElement >
 FDatasmithBaseMaterialElementImpl (const TCHAR *InName, EDatasmithElementType ChildType)
 
- Public Member Functions inherited from FDatasmithElementImpl< IDatasmithMasterMaterialElement >
 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< IDatasmithMasterMaterialElement >
FString Name
 
FString Label
 
FMD5Hash ElementHash
 
EDatasmithElementType Type
 
uint64 SubType
 

Member Function Documentation

◆ AddProperty()

void FDatasmithMasterMaterialElementImpl::AddProperty ( const TSharedPtr< IDatasmithKeyValueProperty > &  Property)
overridevirtual

Add a property to this material.

Implements IDatasmithMasterMaterialElement.

◆ GetCustomMaterialPathName()

virtual const TCHAR* FDatasmithMasterMaterialElementImpl::GetCustomMaterialPathName ( ) const
inlinevirtual

Only used when the material type is set to Custom.

The path name to an existing material to instantiate.

Implements IDatasmithMasterMaterialElement.

◆ GetPropertiesCount()

int32 FDatasmithMasterMaterialElementImpl::GetPropertiesCount ( ) const
inlineoverridevirtual

Get the total amount of properties in this material.

Implements IDatasmithMasterMaterialElement.

◆ GetProperty()

const TSharedPtr< IDatasmithKeyValueProperty >& FDatasmithMasterMaterialElementImpl::GetProperty ( int32  i) const
overridevirtual

Get the property i-th of this material.

Implements IDatasmithMasterMaterialElement.

◆ GetPropertyByName()

const TSharedPtr< IDatasmithKeyValueProperty >& FDatasmithMasterMaterialElementImpl::GetPropertyByName ( const TCHAR *  Name) const
overridevirtual

Get a property by its name if it exists.

Implements IDatasmithMasterMaterialElement.


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