IDatasmithScene Class Referenceabstract
Inheritance diagram for IDatasmithScene:
IDatasmithElement FDatasmithElementImpl< IDatasmithScene > FDatasmithSceneImpl

Public Member Functions

virtual void Reset ()=0
 Resets all the settings on the scene. More...
 
virtual const TCHAR * GetHost () const =0
 Sets the name of the host application which created the scene. More...
 
virtual void SetHost (const TCHAR *)=0
 Sets the name of the host application from which we're exporting from. More...
 
virtual const TCHAR * GetExporterVersion () const =0
 Returns the Datasmith format version used to export the scene. More...
 
virtual void SetExporterVersion (const TCHAR *)=0
 Sets the Datasmith version used to export the scene. More...
 
virtual const TCHAR * GetExporterSDKVersion () const =0
 Return the enterprise version of the SDK used by the exporter. More...
 
virtual void SetExporterSDKVersion (const TCHAR *)=0
 Sets the enterprise SDK version used to export the scene. More...
 
virtual const TCHAR * GetVendor () const =0
 Returns the vendor name of the application used to export the scene. More...
 
virtual void SetVendor (const TCHAR *)=0
 Sets the vendor name of the application used to export the scene. More...
 
virtual const TCHAR * GetProductName () const =0
 Returns the product name of the application used to export the scene. More...
 
virtual void SetProductName (const TCHAR *)=0
 Sets the product name of the application used to export the scene. More...
 
virtual const TCHAR * GetProductVersion () const =0
 Returns the product version of the application used to export the scene. More...
 
virtual void SetProductVersion (const TCHAR *)=0
 Sets the product version of the application used to export the scene. More...
 
virtual const TCHAR * GetUserID () const =0
 Returns the user identifier who exported the scene. More...
 
virtual void SetUserID (const TCHAR *)=0
 Sets the user identifier who exported the scene. More...
 
virtual const TCHAR * GetUserOS () const =0
 Returns the OS name used by user who exported the scene. More...
 
virtual void SetUserOS (const TCHAR *)=0
 Sets the user's OS name. More...
 
virtual int32 GetExportDuration () const =0
 Returns the time taken to export the scene. More...
 
virtual void SetExportDuration (int32)=0
 Sets the time taken to export the scene. More...
 
virtual bool GetUsePhysicalSky () const =0
 Physical Sky could be generated in a large amount of modes, like material, lights etc that's why it has been added as static, just enable it and it is done. More...
 
virtual void SetUsePhysicalSky (bool bInUsePhysicalSky)=0
 Enable or disable the usage of Physical Sky Notice that if a HDRI environment is used this gets disabled. More...
 
virtual void AddMesh (const TSharedPtr< IDatasmithMeshElement > &InMesh)=0
 Adds a new Mesh to the scene. More...
 
virtual int32 GetMeshesCount () const =0
 Returns the amount of meshes added to the scene. More...
 
virtual TSharedPtr< IDatasmithMeshElement > GetMesh (int32 InIndex)=0
 Returns the mesh using this index. More...
 
virtual const TSharedPtr< IDatasmithMeshElement > & GetMesh (int32 InIndex) const =0
 Returns the mesh using this index. More...
 
virtual void RemoveMesh (const TSharedPtr< IDatasmithMeshElement > &InMesh)=0
 Remove a Mesh to the scene. More...
 
virtual void EmptyMeshes ()=0
 Remove all meshes from the scene. More...
 
virtual void AddActor (const TSharedPtr< IDatasmithActorElement > &InActor)=0
 Adds an Actor to the scene. More...
 
virtual int32 GetActorsCount () const =0
 Returns the amount of actors added to the scene. More...
 
virtual TSharedPtr< IDatasmithActorElement > GetActor (int32 InIndex)=0
 Returns the actor using this index. More...
 
virtual const TSharedPtr< IDatasmithActorElement > & GetActor (int32 InIndex) const =0
 Returns the actor using this index. More...
 
virtual void RemoveActor (const TSharedPtr< IDatasmithActorElement > &InActor, EDatasmithActorRemovalRule RemoveRule)=0
 Remove Actor from the scene. More...
 
virtual void AddMaterial (const TSharedPtr< IDatasmithBaseMaterialElement > &InMaterial)=0
 Adds a new Material to the scene (it won't be applied to any mesh). More...
 
virtual int32 GetMaterialsCount () const =0
 Returns the amount of materials added to the scene. More...
 
virtual TSharedPtr< IDatasmithBaseMaterialElement > GetMaterial (int32 InIndex)=0
 
virtual const TSharedPtr< IDatasmithBaseMaterialElement > & GetMaterial (int32 InIndex) const =0
 
virtual void RemoveMaterial (const TSharedPtr< IDatasmithBaseMaterialElement > &InMaterial)=0
 Removes a Material Element from the scene. More...
 
virtual void EmptyMaterials ()=0
 Remove all materials from the scene. More...
 
virtual void AddTexture (const TSharedPtr< IDatasmithTextureElement > &InTexture)=0
 Adds a new Texture Element to the scene (it won't be applied to any material). More...
 
virtual int32 GetTexturesCount () const =0
 Returns the amount of textures added to the scene. More...
 
virtual TSharedPtr< IDatasmithTextureElement > GetTexture (int32 InIndex)=0
 
virtual const TSharedPtr< IDatasmithTextureElement > & GetTexture (int32 InIndex) const =0
 
virtual void RemoveTexture (const TSharedPtr< IDatasmithTextureElement > &InTexture)=0
 Removes a Texture Element from the scene. More...
 
virtual void EmptyTextures ()=0
 Remove all textures from the scene. More...
 
virtual void SetPostProcess (const TSharedPtr< IDatasmithPostProcessElement > &InPostProcess)=0
 Set a new Postprocess for the scene. More...
 
virtual TSharedPtr< IDatasmithPostProcessElement > GetPostProcess ()=0
 
virtual const TSharedPtr< IDatasmithPostProcessElement > & GetPostProcess () const =0
 
virtual void AddLODScreenSize (float ScreenSize)=0
 Adds a new LOD screen size setting. More...
 
virtual int32 GetLODScreenSizesCount () const =0
 
virtual float GetLODScreenSize (int32 InIndex) const =0
 
virtual void AddMetaData (const TSharedPtr< IDatasmithMetaDataElement > &InMetaData)=0
 Add a metadata to the scene There should be only one metadata per Datasmith element (the element associated with the metadata) More...
 
virtual int32 GetMetaDataCount () const =0
 
virtual TSharedPtr< IDatasmithMetaDataElement > GetMetaData (int32 InIndex)=0
 
virtual const TSharedPtr< IDatasmithMetaDataElement > & GetMetaData (int32 InIndex) const =0
 
virtual TSharedPtr< IDatasmithMetaDataElement > GetMetaData (const TSharedPtr< IDatasmithElement > &Element)=0
 
virtual const TSharedPtr< IDatasmithMetaDataElement > & GetMetaData (const TSharedPtr< IDatasmithElement > &Element) const =0
 
virtual void AddLevelSequence (const TSharedRef< IDatasmithLevelSequenceElement > &InSequence)=0
 Adds a level sequence to the scene. More...
 
virtual int32 GetLevelSequencesCount () const =0
 Returns the number of level sequences in the scene. More...
 
virtual TSharedPtr< IDatasmithLevelSequenceElement > GetLevelSequence (int32 InIndex)=0
 Returns the level sequence using this index. More...
 
virtual void RemoveLevelSequence (const TSharedRef< IDatasmithLevelSequenceElement > &InSequence)=0
 Removes a level sequence from the scene. More...
 
virtual void AttachActor (const TSharedPtr< IDatasmithActorElement > &NewParent, const TSharedPtr< IDatasmithActorElement > &Child, EDatasmithActorAttachmentRule AttachmentRule)=0
 Attach the actor to his new parent. More...
 
virtual void AttachActorToSceneRoot (const TSharedPtr< IDatasmithActorElement > &Child, EDatasmithActorAttachmentRule AttachmentRule)=0
 Attach the actor to the scene root. 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

◆ AddActor()

virtual void IDatasmithScene::AddActor ( const TSharedPtr< IDatasmithActorElement > &  InActor)
pure virtual

Adds an Actor to the scene.

Parameters
InActorthe Actor that will be added

Implemented in FDatasmithSceneImpl.

◆ AddLevelSequence()

virtual void IDatasmithScene::AddLevelSequence ( const TSharedRef< IDatasmithLevelSequenceElement > &  InSequence)
pure virtual

Adds a level sequence to the scene.

Parameters
InSequencethe level sequence to add

Implemented in FDatasmithSceneImpl.

◆ AddLODScreenSize()

virtual void IDatasmithScene::AddLODScreenSize ( float  ScreenSize)
pure virtual

Adds a new LOD screen size setting.

The first one added is used for the base LOD, the second one is for LOD1, etc.

Parameters
ScreenSizeRatio of the screen clamped between 0 and 1

Implemented in FDatasmithSceneImpl.

◆ AddMaterial()

virtual void IDatasmithScene::AddMaterial ( const TSharedPtr< IDatasmithBaseMaterialElement > &  InMaterial)
pure virtual

Adds a new Material to the scene (it won't be applied to any mesh).

Parameters
InMaterialthe Material that will be added

Implemented in FDatasmithSceneImpl.

◆ AddMesh()

virtual void IDatasmithScene::AddMesh ( const TSharedPtr< IDatasmithMeshElement > &  InMesh)
pure virtual

Adds a new Mesh to the scene.

Parameters
InMeshthe Mesh that will be added

Implemented in FDatasmithSceneImpl.

◆ AddMetaData()

virtual void IDatasmithScene::AddMetaData ( const TSharedPtr< IDatasmithMetaDataElement > &  InMetaData)
pure virtual

Add a metadata to the scene There should be only one metadata per Datasmith element (the element associated with the metadata)

Implemented in FDatasmithSceneImpl.

◆ AddTexture()

virtual void IDatasmithScene::AddTexture ( const TSharedPtr< IDatasmithTextureElement > &  InTexture)
pure virtual

Adds a new Texture Element to the scene (it won't be applied to any material).

Parameters
InTexturethe Texture Element that will be added

Implemented in FDatasmithSceneImpl.

◆ AttachActor()

virtual void IDatasmithScene::AttachActor ( const TSharedPtr< IDatasmithActorElement > &  NewParent,
const TSharedPtr< IDatasmithActorElement > &  Child,
EDatasmithActorAttachmentRule  AttachmentRule 
)
pure virtual

Attach the actor to his new parent.

Detach the actor if he was already attach.

Implemented in FDatasmithSceneImpl.

◆ AttachActorToSceneRoot()

virtual void IDatasmithScene::AttachActorToSceneRoot ( const TSharedPtr< IDatasmithActorElement > &  Child,
EDatasmithActorAttachmentRule  AttachmentRule 
)
pure virtual

Attach the actor to the scene root.

Detach the actor if he was already attach.

Implemented in FDatasmithSceneImpl.

◆ EmptyMaterials()

virtual void IDatasmithScene::EmptyMaterials ( )
pure virtual

Remove all materials from the scene.

Implemented in FDatasmithSceneImpl.

◆ EmptyMeshes()

virtual void IDatasmithScene::EmptyMeshes ( )
pure virtual

Remove all meshes from the scene.

Implemented in FDatasmithSceneImpl.

◆ EmptyTextures()

virtual void IDatasmithScene::EmptyTextures ( )
pure virtual

Remove all textures from the scene.

Implemented in FDatasmithSceneImpl.

◆ GetActor() [1/2]

virtual const TSharedPtr< IDatasmithActorElement >& IDatasmithScene::GetActor ( int32  InIndex) const
pure virtual

Returns the actor using this index.

Implemented in FDatasmithSceneImpl.

◆ GetActor() [2/2]

virtual TSharedPtr< IDatasmithActorElement > IDatasmithScene::GetActor ( int32  InIndex)
pure virtual

Returns the actor using this index.

Implemented in FDatasmithSceneImpl.

◆ GetActorsCount()

virtual int32 IDatasmithScene::GetActorsCount ( ) const
pure virtual

Returns the amount of actors added to the scene.

Implemented in FDatasmithSceneImpl.

◆ GetExportDuration()

virtual int32 IDatasmithScene::GetExportDuration ( ) const
pure virtual

Returns the time taken to export the scene.

Implemented in FDatasmithSceneImpl.

◆ GetExporterSDKVersion()

virtual const TCHAR* IDatasmithScene::GetExporterSDKVersion ( ) const
pure virtual

Return the enterprise version of the SDK used by the exporter.

Implemented in FDatasmithSceneImpl.

◆ GetExporterVersion()

virtual const TCHAR* IDatasmithScene::GetExporterVersion ( ) const
pure virtual

Returns the Datasmith format version used to export the scene.

Implemented in FDatasmithSceneImpl.

◆ GetHost()

virtual const TCHAR* IDatasmithScene::GetHost ( ) const
pure virtual

Sets the name of the host application which created the scene.

Implemented in FDatasmithSceneImpl.

◆ GetLevelSequence()

virtual TSharedPtr< IDatasmithLevelSequenceElement > IDatasmithScene::GetLevelSequence ( int32  InIndex)
pure virtual

Returns the level sequence using this index.

Implemented in FDatasmithSceneImpl.

◆ GetLevelSequencesCount()

virtual int32 IDatasmithScene::GetLevelSequencesCount ( ) const
pure virtual

Returns the number of level sequences in the scene.

Implemented in FDatasmithSceneImpl.

◆ GetMaterialsCount()

virtual int32 IDatasmithScene::GetMaterialsCount ( ) const
pure virtual

Returns the amount of materials added to the scene.

Implemented in FDatasmithSceneImpl.

◆ GetMesh() [1/2]

virtual const TSharedPtr< IDatasmithMeshElement >& IDatasmithScene::GetMesh ( int32  InIndex) const
pure virtual

Returns the mesh using this index.

Implemented in FDatasmithSceneImpl.

◆ GetMesh() [2/2]

virtual TSharedPtr< IDatasmithMeshElement > IDatasmithScene::GetMesh ( int32  InIndex)
pure virtual

Returns the mesh using this index.

Implemented in FDatasmithSceneImpl.

◆ GetMeshesCount()

virtual int32 IDatasmithScene::GetMeshesCount ( ) const
pure virtual

Returns the amount of meshes added to the scene.

Implemented in FDatasmithSceneImpl.

◆ GetProductName()

virtual const TCHAR* IDatasmithScene::GetProductName ( ) const
pure virtual

Returns the product name of the application used to export the scene.

Implemented in FDatasmithSceneImpl.

◆ GetProductVersion()

virtual const TCHAR* IDatasmithScene::GetProductVersion ( ) const
pure virtual

Returns the product version of the application used to export the scene.

Implemented in FDatasmithSceneImpl.

◆ GetTexturesCount()

virtual int32 IDatasmithScene::GetTexturesCount ( ) const
pure virtual

Returns the amount of textures added to the scene.

Implemented in FDatasmithSceneImpl.

◆ GetUsePhysicalSky()

virtual bool IDatasmithScene::GetUsePhysicalSky ( ) const
pure virtual

Physical Sky could be generated in a large amount of modes, like material, lights etc that's why it has been added as static, just enable it and it is done.

Notice that if a HDRI environment is used this gets disabled.

Implemented in FDatasmithSceneImpl.

◆ GetUserID()

virtual const TCHAR* IDatasmithScene::GetUserID ( ) const
pure virtual

Returns the user identifier who exported the scene.

Implemented in FDatasmithSceneImpl.

◆ GetUserOS()

virtual const TCHAR* IDatasmithScene::GetUserOS ( ) const
pure virtual

Returns the OS name used by user who exported the scene.

Implemented in FDatasmithSceneImpl.

◆ GetVendor()

virtual const TCHAR* IDatasmithScene::GetVendor ( ) const
pure virtual

Returns the vendor name of the application used to export the scene.

Implemented in FDatasmithSceneImpl.

◆ RemoveActor()

virtual void IDatasmithScene::RemoveActor ( const TSharedPtr< IDatasmithActorElement > &  InActor,
EDatasmithActorRemovalRule  RemoveRule 
)
pure virtual

Remove Actor from the scene.

Parameters
InActorthe Actor that will be removed

Implemented in FDatasmithSceneImpl.

◆ RemoveLevelSequence()

virtual void IDatasmithScene::RemoveLevelSequence ( const TSharedRef< IDatasmithLevelSequenceElement > &  InSequence)
pure virtual

Removes a level sequence from the scene.

Parameters
InSequencethe level sequence to remove

Implemented in FDatasmithSceneImpl.

◆ RemoveMaterial()

virtual void IDatasmithScene::RemoveMaterial ( const TSharedPtr< IDatasmithBaseMaterialElement > &  InMaterial)
pure virtual

Removes a Material Element from the scene.

Parameters
InMaterialthe Material Element to remove

Implemented in FDatasmithSceneImpl.

◆ RemoveMesh()

virtual void IDatasmithScene::RemoveMesh ( const TSharedPtr< IDatasmithMeshElement > &  InMesh)
pure virtual

Remove a Mesh to the scene.

Parameters
InMeshthe Mesh that will be removed

Implemented in FDatasmithSceneImpl.

◆ RemoveTexture()

virtual void IDatasmithScene::RemoveTexture ( const TSharedPtr< IDatasmithTextureElement > &  InTexture)
pure virtual

Removes a Texture Element from the scene.

Parameters
InTexturethe Texture Element that will be removed

Implemented in FDatasmithSceneImpl.

◆ Reset()

virtual void IDatasmithScene::Reset ( )
pure virtual

Resets all the settings on the scene.

Implemented in FDatasmithSceneImpl.

◆ SetExportDuration()

virtual void IDatasmithScene::SetExportDuration ( int32  )
pure virtual

Sets the time taken to export the scene.

Parameters
InExportDurationThe export duration (in seconds)

Implemented in FDatasmithSceneImpl.

◆ SetExporterSDKVersion()

virtual void IDatasmithScene::SetExporterSDKVersion ( const TCHAR *  )
pure virtual

Sets the enterprise SDK version used to export the scene.

Only needs to be set when parsing the .udatasmith during import

Parameters
InVersionThe Datasmith version number as string

Implemented in FDatasmithSceneImpl.

◆ SetExporterVersion()

virtual void IDatasmithScene::SetExporterVersion ( const TCHAR *  )
pure virtual

Sets the Datasmith version used to export the scene.

Only needs to be set when parsing the .udatasmith during import

Parameters
InVersionThe Datasmith version number as string

Implemented in FDatasmithSceneImpl.

◆ SetHost()

virtual void IDatasmithScene::SetHost ( const TCHAR *  )
pure virtual

Sets the name of the host application from which we're exporting from.

Parameters
InHostThe host application name

Implemented in FDatasmithSceneImpl.

◆ SetPostProcess()

virtual void IDatasmithScene::SetPostProcess ( const TSharedPtr< IDatasmithPostProcessElement > &  InPostProcess)
pure virtual

Set a new Postprocess for the scene.

Parameters
InPostProcessthe Environment that will be added

Implemented in FDatasmithSceneImpl.

◆ SetProductName()

virtual void IDatasmithScene::SetProductName ( const TCHAR *  )
pure virtual

Sets the product name of the application used to export the scene.

Parameters
InProductNameThe application name

Implemented in FDatasmithSceneImpl.

◆ SetProductVersion()

virtual void IDatasmithScene::SetProductVersion ( const TCHAR *  )
pure virtual

Sets the product version of the application used to export the scene.

Parameters
InProductVersionThe application version

Implemented in FDatasmithSceneImpl.

◆ SetUsePhysicalSky()

virtual void IDatasmithScene::SetUsePhysicalSky ( bool  bInUsePhysicalSky)
pure virtual

Enable or disable the usage of Physical Sky Notice that if a HDRI environment is used this gets disabled.

Implemented in FDatasmithSceneImpl.

◆ SetUserID()

virtual void IDatasmithScene::SetUserID ( const TCHAR *  )
pure virtual

Sets the user identifier who exported the scene.

Parameters
InUserIDThe user identifier

Implemented in FDatasmithSceneImpl.

◆ SetUserOS()

virtual void IDatasmithScene::SetUserOS ( const TCHAR *  )
pure virtual

Sets the user's OS name.

Parameters
InUserOSThe OS name

Implemented in FDatasmithSceneImpl.

◆ SetVendor()

virtual void IDatasmithScene::SetVendor ( const TCHAR *  )
pure virtual

Sets the vendor name of the application used to export the scene.

Parameters
InVendorThe application vendor name

Implemented in FDatasmithSceneImpl.


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