XII Release 0.1.0
Loading...
Searching...
No Matches
xiiAnimationClipAssetDocumentGenerator Class Reference
Inheritance diagram for xiiAnimationClipAssetDocumentGenerator:
[legend]

Public Member Functions

virtual void GetImportModes (xiiStringView sAbsInputFile, xiiDynamicArray< xiiAssetDocumentGenerator::ImportMode > &out_modes) const override
 Used to fill out which import modes may be available for the given asset.
 
virtual xiiStringView GetDocumentExtension () const override
 Returns the target asset document file extension.
 
virtual xiiStringView GetGeneratorGroup () const override
 Allows to merge the import modes of multiple generators in the UI in one group.
 
virtual xiiStatus Generate (xiiStringView sInputFileAbs, xiiStringView sMode, xiiDynamicArray< xiiDocument * > &out_generatedDocuments) override
 Tells the generator to create a new asset document with the chosen mode.
 
- Public Member Functions inherited from xiiAssetDocumentGenerator
xiiStatus Import (xiiStringView sInputFileAbs, xiiStringView sMode, bool bOpenDocument)
 Imports the given file with the mode. Must be a mode that the generator supports.
 
bool SupportsFileType (xiiStringView sFile) const
 Returns whether this generator supports the given file type for import.
 
- Public Member Functions inherited from xiiReflectedClass
virtual const xiiRTTIGetDynamicRTTI () const
 
bool IsInstanceOf (const xiiRTTI *pType) const
 Returns whether the type of this instance is of the given type or derived from it.
 
template<typename T>
XII_ALWAYS_INLINE bool IsInstanceOf () const
 Returns whether the type of this instance is of the given type or derived from it.
 

Additional Inherited Members

- Static Public Member Functions inherited from xiiAssetDocumentGenerator
static void GetSupportsFileTypes (xiiSet< xiiString > &out_extensions)
 Creates a list of all importable file extensions. Note that this is an expensive function so the the result should be cached.
 
static void ImportAssets ()
 Opens a file browse dialog to let the user choose which files to import.
 
static void ImportAssets (const xiiDynamicArray< xiiString > &filesToImport)
 Opens the "Asset Import" dialog to let the user choose how to import the given files.
 
static void CreateGenerators (xiiHybridArray< xiiAssetDocumentGenerator *, 16 > &out_generators)
 Instantiates all currently available generators.
 
static void DestroyGenerators (const xiiHybridArray< xiiAssetDocumentGenerator *, 16 > &generators)
 Destroys the previously instantiated generators.
 
- Static Public Member Functions inherited from xiiNoBase
static const xiiRTTIGetStaticRTTI ()
 
- Protected Member Functions inherited from xiiAssetDocumentGenerator
void AddSupportedFileType (xiiStringView sExtension)
 

Member Function Documentation

◆ Generate()

xiiStatus xiiAnimationClipAssetDocumentGenerator::Generate ( xiiStringView sInputFileAbs,
xiiStringView sMode,
xiiDynamicArray< xiiDocument * > & out_generatedDocuments )
overridevirtual

Tells the generator to create a new asset document with the chosen mode.

Implements xiiAssetDocumentGenerator.

◆ GetDocumentExtension()

virtual xiiStringView xiiAnimationClipAssetDocumentGenerator::GetDocumentExtension ( ) const
inlineoverridevirtual

Returns the target asset document file extension.

Implements xiiAssetDocumentGenerator.

◆ GetGeneratorGroup()

virtual xiiStringView xiiAnimationClipAssetDocumentGenerator::GetGeneratorGroup ( ) const
inlineoverridevirtual

Allows to merge the import modes of multiple generators in the UI in one group.

Implements xiiAssetDocumentGenerator.

◆ GetImportModes()

void xiiAnimationClipAssetDocumentGenerator::GetImportModes ( xiiStringView sAbsInputFile,
xiiDynamicArray< xiiAssetDocumentGenerator::ImportMode > & out_modes ) const
overridevirtual

Used to fill out which import modes may be available for the given asset.

Note: sAbsInputFile may be empty, in this case it should fill out the array for "general purpose" import (any file of the supported types).

Implements xiiAssetDocumentGenerator.


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