IDatasmithTextureElement Class Referenceabstract
Inheritance diagram for IDatasmithTextureElement:
IDatasmithElement FDatasmithElementImpl< IDatasmithTextureElement > FDatasmithTextureElementImpl

Public Member Functions

virtual const TCHAR * GetFile () const =0
 Get texture filename. More...
 
virtual void SetFile (const TCHAR *File)=0
 Set texture filename. More...
 
virtual void SetData (const uint8 *InData, uint32 InDataSize, EDatasmithTextureFormat InFormat)=0
 Set the output data buffer, used only when no output filename is set. More...
 
virtual const uint8 * GetData (uint32 &OutDataSize, EDatasmithTextureFormat &OutFormat) const =0
 Retun the optional data, if loading from memory. More...
 
virtual FMD5Hash GetFileHash () const =0
 Return a MD5 hash of the content of the Texture Element. More...
 
virtual void SetFileHash (FMD5Hash Hash)=0
 Set the MD5 hash of the current texture file. More...
 
virtual EDatasmithTextureMode GetTextureMode () const =0
 Get texture usage. More...
 
virtual void SetTextureMode (EDatasmithTextureMode Mode)=0
 Set texture usage. More...
 
virtual EDatasmithTextureFilter GetTextureFilter () const =0
 Get texture filter. More...
 
virtual void SetTextureFilter (EDatasmithTextureFilter Filter)=0
 Set texture filter. More...
 
virtual EDatasmithTextureAddress GetTextureAddressX () const =0
 Get texture X axis address mode. More...
 
virtual void SetTextureAddressX (EDatasmithTextureAddress Mode)=0
 Set texture X axis address mode. More...
 
virtual EDatasmithTextureAddress GetTextureAddressY () const =0
 Get texture Y axis address mode. More...
 
virtual void SetTextureAddressY (EDatasmithTextureAddress Mode)=0
 Set texture Y axis address mode. More...
 
virtual bool GetAllowResize () const =0
 Get allow texture resizing. More...
 
virtual void SetAllowResize (bool bAllowResize)=0
 Set allow texture resizing. More...
 
virtual float GetRGBCurve () const =0
 Get texture gamma <= 0 for auto. More...
 
virtual void SetRGBCurve (const float InRGBCurve)=0
 Set texture gamma <= 0 for auto. 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

◆ GetAllowResize()

virtual bool IDatasmithTextureElement::GetAllowResize ( ) const
pure virtual

Get allow texture resizing.

Implemented in FDatasmithTextureElementImpl.

◆ GetData()

virtual const uint8* IDatasmithTextureElement::GetData ( uint32 &  OutDataSize,
EDatasmithTextureFormat &  OutFormat 
) const
pure virtual

Retun the optional data, if loading from memory.

Implemented in FDatasmithTextureElementImpl.

◆ GetFile()

virtual const TCHAR* IDatasmithTextureElement::GetFile ( ) const
pure virtual

Get texture filename.

Implemented in FDatasmithTextureElementImpl.

◆ GetFileHash()

virtual FMD5Hash IDatasmithTextureElement::GetFileHash ( ) const
pure virtual

Return a MD5 hash of the content of the Texture Element.

Used in CalculateElementHash to quickly identify Element with identical content

Implemented in FDatasmithTextureElementImpl.

◆ GetRGBCurve()

virtual float IDatasmithTextureElement::GetRGBCurve ( ) const
pure virtual

Get texture gamma <= 0 for auto.

Implemented in FDatasmithTextureElementImpl.

◆ GetTextureAddressX()

virtual EDatasmithTextureAddress IDatasmithTextureElement::GetTextureAddressX ( ) const
pure virtual

Get texture X axis address mode.

Implemented in FDatasmithTextureElementImpl.

◆ GetTextureAddressY()

virtual EDatasmithTextureAddress IDatasmithTextureElement::GetTextureAddressY ( ) const
pure virtual

Get texture Y axis address mode.

Implemented in FDatasmithTextureElementImpl.

◆ GetTextureFilter()

virtual EDatasmithTextureFilter IDatasmithTextureElement::GetTextureFilter ( ) const
pure virtual

Get texture filter.

Implemented in FDatasmithTextureElementImpl.

◆ GetTextureMode()

virtual EDatasmithTextureMode IDatasmithTextureElement::GetTextureMode ( ) const
pure virtual

Get texture usage.

Implemented in FDatasmithTextureElementImpl.

◆ SetAllowResize()

virtual void IDatasmithTextureElement::SetAllowResize ( bool  bAllowResize)
pure virtual

Set allow texture resizing.

Implemented in FDatasmithTextureElementImpl.

◆ SetData()

virtual void IDatasmithTextureElement::SetData ( const uint8 *  InData,
uint32  InDataSize,
EDatasmithTextureFormat  InFormat 
)
pure virtual

Set the output data buffer, used only when no output filename is set.

Parameters
InDatadata to load the texture from
InDataSizesize in bytes of the buffer
InFormattexture format(e.g. png or jpeg)
Note
The given data is not freed by the DatasmithImporter.

Implemented in FDatasmithTextureElementImpl.

◆ SetFile()

virtual void IDatasmithTextureElement::SetFile ( const TCHAR *  File)
pure virtual

Set texture filename.

Implemented in FDatasmithTextureElementImpl.

◆ SetFileHash()

virtual void IDatasmithTextureElement::SetFileHash ( FMD5Hash  Hash)
pure virtual

Set the MD5 hash of the current texture file.

This should be a hash of its content.

Implemented in FDatasmithTextureElementImpl.

◆ SetRGBCurve()

virtual void IDatasmithTextureElement::SetRGBCurve ( const float  InRGBCurve)
pure virtual

Set texture gamma <= 0 for auto.

Implemented in FDatasmithTextureElementImpl.

◆ SetTextureAddressX()

virtual void IDatasmithTextureElement::SetTextureAddressX ( EDatasmithTextureAddress  Mode)
pure virtual

Set texture X axis address mode.

Implemented in FDatasmithTextureElementImpl.

◆ SetTextureAddressY()

virtual void IDatasmithTextureElement::SetTextureAddressY ( EDatasmithTextureAddress  Mode)
pure virtual

Set texture Y axis address mode.

Implemented in FDatasmithTextureElementImpl.

◆ SetTextureFilter()

virtual void IDatasmithTextureElement::SetTextureFilter ( EDatasmithTextureFilter  Filter)
pure virtual

Set texture filter.

Implemented in FDatasmithTextureElementImpl.

◆ SetTextureMode()

virtual void IDatasmithTextureElement::SetTextureMode ( EDatasmithTextureMode  Mode)
pure virtual

Set texture usage.

Implemented in FDatasmithTextureElementImpl.


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