Plasma Engine  2.0
Loading...
Searching...
No Matches
plAnimatedMeshAssetDocumentGenerator Class Reference
Inheritance diagram for plAnimatedMeshAssetDocumentGenerator:

Public Member Functions

virtual void GetImportModes (plStringView sAbsInputFile, plDynamicArray< plAssetDocumentGenerator::ImportMode > &out_modes) const override
 Used to fill out which import modes may be available for the given asset.
 
virtual plStringView GetDocumentExtension () const override
 Returns the target asset document file extension.
 
virtual plStringView GetGeneratorGroup () const override
 Allows to merge the import modes of multiple generators in the UI in one group.
 
virtual plStatus Generate (plStringView sInputFileAbs, plStringView sMode, plDynamicArray< plDocument * > &out_generatedDocuments) override
 Tells the generator to create a new asset document with the chosen mode.
 
- Public Member Functions inherited from plAssetDocumentGenerator
plStatus Import (plStringView sInputFileAbs, plStringView sMode, bool bOpenDocument)
 Imports the given file with the mode. Must be a mode that the generator supports.
 
bool SupportsFileType (plStringView sFile) const
 Returns whether this generator supports the given file type for import.
 
- Public Member Functions inherited from plReflectedClass
virtual const plRTTIGetDynamicRTTI () const
 
bool IsInstanceOf (const plRTTI *pType) const
 Returns whether the type of this instance is of the given type or derived from it.
 
template<typename T >
PL_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 plAssetDocumentGenerator
static void GetSupportsFileTypes (plSet< plString > &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 plDynamicArray< plString > &filesToImport)
 Opens the "Asset Import" dialog to let the user choose how to import the given files.
 
static void CreateGenerators (plHybridArray< plAssetDocumentGenerator *, 16 > &out_generators)
 Instantiates all currently available generators.
 
static void DestroyGenerators (const plHybridArray< plAssetDocumentGenerator *, 16 > &generators)
 Destroys the previously instantiated generators.
 
- Static Public Member Functions inherited from plNoBase
static const plRTTIGetStaticRTTI ()
 
- Protected Member Functions inherited from plAssetDocumentGenerator
void AddSupportedFileType (plStringView sExtension)
 

Member Function Documentation

◆ Generate()

plStatus plAnimatedMeshAssetDocumentGenerator::Generate ( plStringView sInputFileAbs,
plStringView sMode,
plDynamicArray< plDocument * > & out_generatedDocuments )
overridevirtual

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

Implements plAssetDocumentGenerator.

◆ GetDocumentExtension()

virtual plStringView plAnimatedMeshAssetDocumentGenerator::GetDocumentExtension ( ) const
inlineoverridevirtual

Returns the target asset document file extension.

Implements plAssetDocumentGenerator.

◆ GetGeneratorGroup()

virtual plStringView plAnimatedMeshAssetDocumentGenerator::GetGeneratorGroup ( ) const
inlineoverridevirtual

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

Implements plAssetDocumentGenerator.

◆ GetImportModes()

void plAnimatedMeshAssetDocumentGenerator::GetImportModes ( plStringView sAbsInputFile,
plDynamicArray< plAssetDocumentGenerator::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 plAssetDocumentGenerator.


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