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

Public Member Functions

 FDatasmithSceneImpl (const TCHAR *InName)
 
virtual void Reset () override
 Resets all the settings on the scene. More...
 
virtual const TCHAR * GetHost () const
 Sets the name of the host application which created the scene. More...
 
virtual void SetHost (const TCHAR *InHostname)
 Sets the name of the host application from which we're exporting from. More...
 
virtual const TCHAR * GetExporterVersion () const override
 Returns the Datasmith format version used to export the scene. More...
 
virtual void SetExporterVersion (const TCHAR *InVersion) override
 Sets the Datasmith version used to export the scene. More...
 
virtual const TCHAR * GetExporterSDKVersion () const override
 Return the enterprise version of the SDK used by the exporter. More...
 
virtual void SetExporterSDKVersion (const TCHAR *InVersion) override
 Sets the enterprise SDK version used to export the scene. More...
 
virtual const TCHAR * GetVendor () const override
 Returns the vendor name of the application used to export the scene. More...
 
virtual void SetVendor (const TCHAR *InVendor) override
 Sets the vendor name of the application used to export the scene. More...
 
virtual const TCHAR * GetProductName () const override
 Returns the product name of the application used to export the scene. More...
 
virtual void SetProductName (const TCHAR *InProductName) override
 Sets the product name of the application used to export the scene. More...
 
virtual const TCHAR * GetProductVersion () const override
 Returns the product version of the application used to export the scene. More...
 
virtual void SetProductVersion (const TCHAR *InProductVersion) override
 Sets the product version of the application used to export the scene. More...
 
virtual const TCHAR * GetUserID () const override
 Returns the user identifier who exported the scene. More...
 
virtual void SetUserID (const TCHAR *InUserID) override
 Sets the user identifier who exported the scene. More...
 
virtual const TCHAR * GetUserOS () const override
 Returns the OS name used by user who exported the scene. More...
 
virtual void SetUserOS (const TCHAR *InUserOS) override
 Sets the user's OS name. More...
 
virtual int32 GetExportDuration () const override
 Returns the time taken to export the scene. More...
 
virtual void SetExportDuration (int32 InExportDuration) override
 Sets the time taken to export the scene. More...
 
virtual void AddMesh (const TSharedPtr< IDatasmithMeshElement > &InMesh) override
 Adds a new Mesh to the scene. More...
 
virtual int32 GetMeshesCount () const override
 Returns the amount of meshes added to the scene. More...
 
virtual TSharedPtr< IDatasmithMeshElement > GetMesh (int32 InIndex) override
 Returns the mesh using this index. More...
 
virtual const TSharedPtr< IDatasmithMeshElement > & GetMesh (int32 InIndex) const override
 Returns the mesh using this index. More...
 
virtual void RemoveMesh (const TSharedPtr< IDatasmithMeshElement > &InMesh) override
 Remove a Mesh to the scene. More...
 
virtual void EmptyMeshes () override
 Remove all meshes from the scene. More...
 
virtual void AddActor (const TSharedPtr< IDatasmithActorElement > &InActor) override
 Adds an Actor to the scene. More...
 
virtual int32 GetActorsCount () const override
 Returns the amount of actors added to the scene. More...
 
virtual TSharedPtr< IDatasmithActorElement > GetActor (int32 InIndex) override
 Returns the actor using this index. More...
 
virtual const TSharedPtr< IDatasmithActorElement > & GetActor (int32 InIndex) const override
 Returns the actor using this index. More...
 
virtual void RemoveActor (const TSharedPtr< IDatasmithActorElement > &InActor, EDatasmithActorRemovalRule RemoveRule) override
 Remove Actor from the scene. More...
 
virtual void AddMaterial (const TSharedPtr< IDatasmithBaseMaterialElement > &InMaterial) override
 Adds a new Material to the scene (it won't be applied to any mesh). More...
 
virtual int32 GetMaterialsCount () const override
 Returns the amount of materials added to the scene. More...
 
virtual TSharedPtr< IDatasmithBaseMaterialElement > GetMaterial (int32 InIndex) override
 
virtual const TSharedPtr< IDatasmithBaseMaterialElement > & GetMaterial (int32 InIndex) const override
 
virtual void RemoveMaterial (const TSharedPtr< IDatasmithBaseMaterialElement > &InMaterial) override
 Removes a Material Element from the scene. More...
 
virtual void EmptyMaterials () override
 Remove all materials from the scene. More...
 
virtual void AddTexture (const TSharedPtr< IDatasmithTextureElement > &InTexture) override
 Adds a new Texture Element to the scene (it won't be applied to any material). More...
 
virtual int32 GetTexturesCount () const override
 Returns the amount of textures added to the scene. More...
 
virtual TSharedPtr< IDatasmithTextureElement > GetTexture (int32 InIndex) override
 
virtual const TSharedPtr< IDatasmithTextureElement > & GetTexture (int32 InIndex) const override
 
virtual void RemoveTexture (const TSharedPtr< IDatasmithTextureElement > &InTexture) override
 Removes a Texture Element from the scene. More...
 
virtual void EmptyTextures () override
 Remove all textures from the scene. More...
 
virtual void SetPostProcess (const TSharedPtr< IDatasmithPostProcessElement > &InPostProcess) override
 Set a new Postprocess for the scene. More...
 
virtual TSharedPtr< IDatasmithPostProcessElement > GetPostProcess () override
 
virtual const TSharedPtr< IDatasmithPostProcessElement > & GetPostProcess () const override
 
virtual void SetUsePhysicalSky (bool bInUsePhysicalSky) override
 Enable or disable the usage of Physical Sky Notice that if a HDRI environment is used this gets disabled. More...
 
virtual bool GetUsePhysicalSky () const override
 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 AddLODScreenSize (float ScreenSize) override
 Adds a new LOD screen size setting. More...
 
virtual int32 GetLODScreenSizesCount () const override
 
virtual float GetLODScreenSize (int32 InIndex) const override
 
virtual void AddMetaData (const TSharedPtr< IDatasmithMetaDataElement > &InMetaData) override
 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 override
 
virtual TSharedPtr< IDatasmithMetaDataElement > GetMetaData (int32 InIndex) override
 
virtual const TSharedPtr< IDatasmithMetaDataElement > & GetMetaData (int32 InIndex) const override
 
virtual TSharedPtr< IDatasmithMetaDataElement > GetMetaData (const TSharedPtr< IDatasmithElement > &Element) override
 
virtual const TSharedPtr< IDatasmithMetaDataElement > & GetMetaData (const TSharedPtr< IDatasmithElement > &Element) const override
 
virtual void AddLevelSequence (const TSharedRef< IDatasmithLevelSequenceElement > &InSequence) override
 Adds a level sequence to the scene. More...
 
virtual int32 GetLevelSequencesCount () const override
 Returns the number of level sequences in the scene. More...
 
virtual TSharedPtr< IDatasmithLevelSequenceElement > GetLevelSequence (int32 InIndex) override
 Returns the level sequence using this index. More...
 
virtual void RemoveLevelSequence (const TSharedRef< IDatasmithLevelSequenceElement > &InSequence) override
 Removes a level sequence from the scene. More...
 
virtual void AttachActor (const TSharedPtr< IDatasmithActorElement > &NewParent, const TSharedPtr< IDatasmithActorElement > &Child, EDatasmithActorAttachmentRule AttachmentRule) override
 Attach the actor to his new parent. More...
 
virtual void AttachActorToSceneRoot (const TSharedPtr< IDatasmithActorElement > &Child, EDatasmithActorAttachmentRule AttachmentRule) override
 Attach the actor to the scene root. More...
 
- Public Member Functions inherited from FDatasmithElementImpl< IDatasmithScene >
 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< IDatasmithScene >
FString Name
 
FString Label
 
FMD5Hash ElementHash
 
EDatasmithElementType Type
 
uint64 SubType
 

Member Function Documentation

◆ AddActor()

virtual void FDatasmithSceneImpl::AddActor ( const TSharedPtr< IDatasmithActorElement > &  InActor)
inlineoverridevirtual

Adds an Actor to the scene.

Parameters
InActorthe Actor that will be added

Implements IDatasmithScene.

◆ AddLevelSequence()

virtual void FDatasmithSceneImpl::AddLevelSequence ( const TSharedRef< IDatasmithLevelSequenceElement > &  InSequence)
inlineoverridevirtual

Adds a level sequence to the scene.

Parameters
InSequencethe level sequence to add

Implements IDatasmithScene.

◆ AddLODScreenSize()

virtual void FDatasmithSceneImpl::AddLODScreenSize ( float  ScreenSize)
inlineoverridevirtual

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

Implements IDatasmithScene.

◆ AddMaterial()

virtual void FDatasmithSceneImpl::AddMaterial ( const TSharedPtr< IDatasmithBaseMaterialElement > &  InMaterial)
inlineoverridevirtual

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

Parameters
InMaterialthe Material that will be added

Implements IDatasmithScene.

◆ AddMesh()

virtual void FDatasmithSceneImpl::AddMesh ( const TSharedPtr< IDatasmithMeshElement > &  InMesh)
inlineoverridevirtual

Adds a new Mesh to the scene.

Parameters
InMeshthe Mesh that will be added

Implements IDatasmithScene.

◆ AddMetaData()

virtual void FDatasmithSceneImpl::AddMetaData ( const TSharedPtr< IDatasmithMetaDataElement > &  InMetaData)
inlineoverridevirtual

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

Implements IDatasmithScene.

◆ AddTexture()

virtual void FDatasmithSceneImpl::AddTexture ( const TSharedPtr< IDatasmithTextureElement > &  InTexture)
inlineoverridevirtual

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

Parameters
InTexturethe Texture Element that will be added

Implements IDatasmithScene.

◆ AttachActor()

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

Attach the actor to his new parent.

Detach the actor if he was already attach.

Implements IDatasmithScene.

◆ AttachActorToSceneRoot()

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

Attach the actor to the scene root.

Detach the actor if he was already attach.

Implements IDatasmithScene.

◆ EmptyMaterials()

virtual void FDatasmithSceneImpl::EmptyMaterials ( )
inlineoverridevirtual

Remove all materials from the scene.

Implements IDatasmithScene.

◆ EmptyMeshes()

virtual void FDatasmithSceneImpl::EmptyMeshes ( )
inlineoverridevirtual

Remove all meshes from the scene.

Implements IDatasmithScene.

◆ EmptyTextures()

virtual void FDatasmithSceneImpl::EmptyTextures ( )
inlineoverridevirtual

Remove all textures from the scene.

Implements IDatasmithScene.

◆ GetActor() [1/2]

virtual const TSharedPtr< IDatasmithActorElement >& FDatasmithSceneImpl::GetActor ( int32  InIndex) const
inlineoverridevirtual

Returns the actor using this index.

Implements IDatasmithScene.

◆ GetActor() [2/2]

virtual TSharedPtr< IDatasmithActorElement > FDatasmithSceneImpl::GetActor ( int32  InIndex)
inlineoverridevirtual

Returns the actor using this index.

Implements IDatasmithScene.

◆ GetActorsCount()

virtual int32 FDatasmithSceneImpl::GetActorsCount ( ) const
inlineoverridevirtual

Returns the amount of actors added to the scene.

Implements IDatasmithScene.

◆ GetExportDuration()

virtual int32 FDatasmithSceneImpl::GetExportDuration ( ) const
inlineoverridevirtual

Returns the time taken to export the scene.

Implements IDatasmithScene.

◆ GetExporterSDKVersion()

virtual const TCHAR* FDatasmithSceneImpl::GetExporterSDKVersion ( ) const
inlineoverridevirtual

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

Implements IDatasmithScene.

◆ GetExporterVersion()

virtual const TCHAR* FDatasmithSceneImpl::GetExporterVersion ( ) const
inlineoverridevirtual

Returns the Datasmith format version used to export the scene.

Implements IDatasmithScene.

◆ GetHost()

virtual const TCHAR* FDatasmithSceneImpl::GetHost ( ) const
inlinevirtual

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

Implements IDatasmithScene.

◆ GetLevelSequence()

virtual TSharedPtr< IDatasmithLevelSequenceElement > FDatasmithSceneImpl::GetLevelSequence ( int32  InIndex)
inlineoverridevirtual

Returns the level sequence using this index.

Implements IDatasmithScene.

◆ GetLevelSequencesCount()

virtual int32 FDatasmithSceneImpl::GetLevelSequencesCount ( ) const
inlineoverridevirtual

Returns the number of level sequences in the scene.

Implements IDatasmithScene.

◆ GetMaterialsCount()

virtual int32 FDatasmithSceneImpl::GetMaterialsCount ( ) const
inlineoverridevirtual

Returns the amount of materials added to the scene.

Implements IDatasmithScene.

◆ GetMesh() [1/2]

virtual const TSharedPtr< IDatasmithMeshElement >& FDatasmithSceneImpl::GetMesh ( int32  InIndex) const
overridevirtual

Returns the mesh using this index.

Implements IDatasmithScene.

◆ GetMesh() [2/2]

virtual TSharedPtr< IDatasmithMeshElement > FDatasmithSceneImpl::GetMesh ( int32  InIndex)
overridevirtual

Returns the mesh using this index.

Implements IDatasmithScene.

◆ GetMeshesCount()

virtual int32 FDatasmithSceneImpl::GetMeshesCount ( ) const
inlineoverridevirtual

Returns the amount of meshes added to the scene.

Implements IDatasmithScene.

◆ GetProductName()

virtual const TCHAR* FDatasmithSceneImpl::GetProductName ( ) const
inlineoverridevirtual

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

Implements IDatasmithScene.

◆ GetProductVersion()

virtual const TCHAR* FDatasmithSceneImpl::GetProductVersion ( ) const
inlineoverridevirtual

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

Implements IDatasmithScene.

◆ GetTexturesCount()

virtual int32 FDatasmithSceneImpl::GetTexturesCount ( ) const
inlineoverridevirtual

Returns the amount of textures added to the scene.

Implements IDatasmithScene.

◆ GetUsePhysicalSky()

virtual bool FDatasmithSceneImpl::GetUsePhysicalSky ( ) const
inlineoverridevirtual

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.

Implements IDatasmithScene.

◆ GetUserID()

virtual const TCHAR* FDatasmithSceneImpl::GetUserID ( ) const
inlineoverridevirtual

Returns the user identifier who exported the scene.

Implements IDatasmithScene.

◆ GetUserOS()

virtual const TCHAR* FDatasmithSceneImpl::GetUserOS ( ) const
inlineoverridevirtual

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

Implements IDatasmithScene.

◆ GetVendor()

virtual const TCHAR* FDatasmithSceneImpl::GetVendor ( ) const
inlineoverridevirtual

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

Implements IDatasmithScene.

◆ RemoveActor()

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

Remove Actor from the scene.

Parameters
InActorthe Actor that will be removed

Implements IDatasmithScene.

◆ RemoveLevelSequence()

virtual void FDatasmithSceneImpl::RemoveLevelSequence ( const TSharedRef< IDatasmithLevelSequenceElement > &  InSequence)
inlineoverridevirtual

Removes a level sequence from the scene.

Parameters
InSequencethe level sequence to remove

Implements IDatasmithScene.

◆ RemoveMaterial()

virtual void FDatasmithSceneImpl::RemoveMaterial ( const TSharedPtr< IDatasmithBaseMaterialElement > &  InMaterial)
inlineoverridevirtual

Removes a Material Element from the scene.

Parameters
InMaterialthe Material Element to remove

Implements IDatasmithScene.

◆ RemoveMesh()

virtual void FDatasmithSceneImpl::RemoveMesh ( const TSharedPtr< IDatasmithMeshElement > &  InMesh)
inlineoverridevirtual

Remove a Mesh to the scene.

Parameters
InMeshthe Mesh that will be removed

Implements IDatasmithScene.

◆ RemoveTexture()

virtual void FDatasmithSceneImpl::RemoveTexture ( const TSharedPtr< IDatasmithTextureElement > &  InTexture)
inlineoverridevirtual

Removes a Texture Element from the scene.

Parameters
InTexturethe Texture Element that will be removed

Implements IDatasmithScene.

◆ Reset()

virtual void FDatasmithSceneImpl::Reset ( )
overridevirtual

Resets all the settings on the scene.

Implements IDatasmithScene.

◆ SetExportDuration()

virtual void FDatasmithSceneImpl::SetExportDuration ( int32  )
inlineoverridevirtual

Sets the time taken to export the scene.

Parameters
InExportDurationThe export duration (in seconds)

Implements IDatasmithScene.

◆ SetExporterSDKVersion()

virtual void FDatasmithSceneImpl::SetExporterSDKVersion ( const TCHAR *  )
inlineoverridevirtual

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

Implements IDatasmithScene.

◆ SetExporterVersion()

virtual void FDatasmithSceneImpl::SetExporterVersion ( const TCHAR *  )
inlineoverridevirtual

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

Implements IDatasmithScene.

◆ SetHost()

virtual void FDatasmithSceneImpl::SetHost ( const TCHAR *  )
inlinevirtual

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

Parameters
InHostThe host application name

Implements IDatasmithScene.

◆ SetPostProcess()

virtual void FDatasmithSceneImpl::SetPostProcess ( const TSharedPtr< IDatasmithPostProcessElement > &  InPostProcess)
inlineoverridevirtual

Set a new Postprocess for the scene.

Parameters
InPostProcessthe Environment that will be added

Implements IDatasmithScene.

◆ SetProductName()

virtual void FDatasmithSceneImpl::SetProductName ( const TCHAR *  )
inlineoverridevirtual

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

Parameters
InProductNameThe application name

Implements IDatasmithScene.

◆ SetProductVersion()

virtual void FDatasmithSceneImpl::SetProductVersion ( const TCHAR *  )
inlineoverridevirtual

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

Parameters
InProductVersionThe application version

Implements IDatasmithScene.

◆ SetUsePhysicalSky()

virtual void FDatasmithSceneImpl::SetUsePhysicalSky ( bool  bInUsePhysicalSky)
inlineoverridevirtual

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

Implements IDatasmithScene.

◆ SetUserID()

virtual void FDatasmithSceneImpl::SetUserID ( const TCHAR *  )
inlineoverridevirtual

Sets the user identifier who exported the scene.

Parameters
InUserIDThe user identifier

Implements IDatasmithScene.

◆ SetUserOS()

virtual void FDatasmithSceneImpl::SetUserOS ( const TCHAR *  )
inlineoverridevirtual

Sets the user's OS name.

Parameters
InUserOSThe OS name

Implements IDatasmithScene.

◆ SetVendor()

virtual void FDatasmithSceneImpl::SetVendor ( const TCHAR *  )
inlineoverridevirtual

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

Parameters
InVendorThe application vendor name

Implements IDatasmithScene.


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