|
virtual void | AddEntriesToAssetTable (plStringView sDataDirectory, const plPlatformProfile *pAssetProfile, plDelegate< void(plStringView sGuid, plStringView sPath, plStringView sType)> addEntry) const override |
|
virtual plString | GetAssetTableEntry (const plSubAsset *pSubAsset, plStringView sDataDirectory, const plPlatformProfile *pAssetProfile) const override |
|
plStatus | GenerateDecalTexture (const plPlatformProfile *pAssetProfile) |
| There is only a single decal texture per project. This function creates it, in case any decal asset was modified.
|
|
plString | GetDecalTexturePath (const plPlatformProfile *pAssetProfile) const |
|
virtual plStatus | ReadAssetDocumentInfo (plUniquePtr< plAssetDocumentInfo > &out_pInfo, plStreamReader &inout_stream) const |
| Opens the asset file and reads the "Header" into the given plAssetDocumentInfo.
|
|
virtual void | FillOutSubAssetList (const plAssetDocumentInfo &assetInfo, plDynamicArray< plSubAssetData > &out_subAssets) const |
|
virtual plStatus | GetAdditionalOutputs (plDynamicArray< plString > &ref_files) |
|
virtual plStatus | CloneDocument (plStringView sPath, plStringView sClonePath, plUuid &inout_cloneGuid) override |
|
virtual plResult | OpenPickedDocument (const plDocumentObject *pPickedComponent, plUInt32 uiPartIndex) |
| Called by the editor to try to open a document for the matching picking result.
|
|
plResult | TryOpenAssetDocument (const char *szPathOrGuid) |
|
virtual void | GetAssetTypesRequiringTransformForSceneExport (plSet< plTempHashedString > &inout_assetTypes) |
|
virtual plString | GenerateResourceThumbnailPath (plStringView sDocumentPath, plStringView sSubAssetName=plStringView()) |
| Returns the absolute path to the thumbnail that belongs to the given document.
|
|
virtual bool | IsThumbnailUpToDate (plStringView sDocumentPath, plStringView sSubAssetName, plUInt64 uiThumbnailHash, plUInt32 uiTypeVersion) |
|
plString | GetAbsoluteOutputFileName (const plAssetDocumentTypeDescriptor *pTypeDesc, plStringView sDocumentPath, plStringView sOutputTag, const plPlatformProfile *pAssetProfile=nullptr) const |
| Calls GetRelativeOutputFileName and prepends [DataDir]/AssetCache/ .
|
|
virtual plString | GetRelativeOutputFileName (const plAssetDocumentTypeDescriptor *pTypeDesc, plStringView sDataDirectory, plStringView sDocumentPath, plStringView sOutputTag, const plPlatformProfile *pAssetProfile=nullptr) const |
| Relative to 'AssetCache' folder.
|
|
bool | IsOutputUpToDate (plStringView sDocumentPath, const plDynamicArray< plString > &outputs, plUInt64 uiHash, const plAssetDocumentTypeDescriptor *pTypeDescriptor) |
|
virtual bool | IsOutputUpToDate (plStringView sDocumentPath, plStringView sOutputTag, plUInt64 uiHash, const plAssetDocumentTypeDescriptor *pTypeDescriptor) |
|
virtual OutputReliability | GetAssetTypeOutputReliability () const |
|
void | ComputeAssetProfileHash (const plPlatformProfile *pAssetProfile) |
| Called by the plAssetCurator when the active asset profile changes to re-compute m_uiAssetProfileHash.
|
|
PL_ALWAYS_INLINE plUInt64 | GetAssetProfileHash () const |
| Returns the hash that was previously computed through ComputeAssetProfileHash().
|
|
plStatus | CanOpenDocument (plStringView sFilePath) const |
|
plStatus | CreateDocument (plStringView sDocumentTypeName, plStringView sPath, plDocument *&out_pDocument, plBitflags< plDocumentFlags > flags=plDocumentFlags::None, const plDocumentObject *pOpenContext=nullptr) |
| Creates a new document.
|
|
plStatus | OpenDocument (plStringView sDocumentTypeName, plStringView sPath, plDocument *&out_pDocument, plBitflags< plDocumentFlags > flags=plDocumentFlags::AddToRecentFilesList|plDocumentFlags::RequestWindow, const plDocumentObject *pOpenContext=nullptr) |
| Opens an existing document.
|
|
void | CloseDocument (plDocument *pDocument) |
|
void | EnsureWindowRequested (plDocument *pDocument, const plDocumentObject *pOpenContext=nullptr) |
|
const plDynamicArray< plDocument * > & | GetAllOpenDocuments () const |
| Returns a list of all currently open documents that are managed by this document manager.
|
|
plDocument * | GetDocumentByPath (plStringView sPath) const |
|
bool | EnsureDocumentIsClosed (plStringView sPath) |
| If the given document is open, it will be closed. User is not asked about it, unsaved changes are discarded. Returns true if the document was open and needed to be closed. This function only operates on documents opened by this manager. Use EnsureDocumentIsClosedInAllManagers() to close documents of any type.
|
|
void | CloseAllDocumentsOfManager () |
|
void | GetSupportedDocumentTypes (plDynamicArray< const plDocumentTypeDescriptor * > &inout_documentTypes) const |
|
virtual const plRTTI * | GetDynamicRTTI () 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.
|
|
|
enum | OutputReliability : plUInt8 { Unknown = 0
, Good = 1
, Perfect = 2
} |
|
using | CustomAction = plVariant (*)(const plDocument*) |
|
static const plPlatformProfile * | DetermineFinalTargetProfile (const plPlatformProfile *pAssetProfile) |
| Returns pAssetProfile, or if that is null, plAssetCurator::GetSingleton()->GetActiveAssetProfile().
|
|
static const plHybridArray< plDocumentManager *, 16 > & | GetAllDocumentManagers () |
|
static plResult | FindDocumentTypeFromPath (plStringView sPath, bool bForCreation, const plDocumentTypeDescriptor *&out_pTypeDesc) |
|
static plDocument * | GetDocumentByGuid (const plUuid &guid) |
|
static bool | EnsureDocumentIsClosedInAllManagers (plStringView sPath) |
| If the given document is open, it will be closed. User is not asked about it, unsaved changes are discarded. Returns true if the document was open and needed to be closed.
|
|
static void | CloseAllDocuments () |
|
static const plDocumentTypeDescriptor * | GetDescriptorForDocumentType (plStringView sDocumentType) |
|
static const plMap< plString, const plDocumentTypeDescriptor * > & | GetAllDocumentDescriptors () |
|
static const plRTTI * | GetStaticRTTI () |
|
static plCopyOnBroadcastEvent< const Event & > | s_Events |
|
static plEvent< Request & > | s_Requests |
|
static plMap< plString, CustomAction > | s_CustomActions |
|
virtual void | InternalCloneDocument (plStringView sPath, plStringView sClonePath, const plUuid &documentId, const plUuid &seedGuid, const plUuid &cloneGuid, plAbstractObjectGraph *pHeader, plAbstractObjectGraph *pObjects, plAbstractObjectGraph *pTypes) |
|
static bool | IsResourceUpToDate (const char *szResourceFile, plUInt64 uiHash, plUInt16 uiTypeVersion) |
|
static void | GenerateOutputFilename (plStringBuilder &inout_sRelativeDocumentPath, const plPlatformProfile *pAssetProfile, const char *szExtension, bool bPlatformSpecific) |
|