|
| ezDocument (ezStringView sPath, ezDocumentObjectManager *pDocumentObjectManagerImpl) |
|
|
bool | IsModified () const |
|
bool | IsReadOnly () const |
|
const ezUuid | GetGuid () const |
|
const ezDocumentObjectManager * | GetObjectManager () const |
|
ezDocumentObjectManager * | GetObjectManager () |
|
ezSelectionManager * | GetSelectionManager () const |
|
ezCommandHistory * | GetCommandHistory () const |
|
virtual ezObjectAccessorBase * | GetObjectAccessor () const |
|
|
virtual void | GetSupportedMimeTypesForPasting (ezHybridArray< ezString, 4 > &out_mimeTypes) const |
| Whether this document supports pasting the given mime format into it.
|
|
virtual bool | CopySelectedObjects (ezAbstractObjectGraph &out_objectGraph, ezStringBuilder &out_sMimeType) const |
| Creates the abstract graph of data to be copied and returns the mime type for the clipboard to identify the data.
|
|
virtual bool | Paste (const ezArrayPtr< PasteInfo > &info, const ezAbstractObjectGraph &objectGraph, bool bAllowPickedPosition, ezStringView sMimeType) |
|
|
void | BroadcastInterDocumentMessage (ezReflectedClass *pMessage, ezDocument *pSender) |
| This will deliver the message to all open documents. The documents may respond, e.g. by modifying the content of the message.
|
|
virtual void | OnInterDocumentMessage (ezReflectedClass *pMessage, ezDocument *pSender) |
| Called on all documents when BroadcastInterDocumentMessage() is called. More...
|
|
|
virtual ezEditorInputContext * | GetEditorInputContextOverride () |
| Allows to return a single input context that currently overrides all others (in priority). More...
|
|
|
virtual void | DeleteSelectedObjects () const |
|
const ezSet< ezString > & | GetUnknownObjectTypes () const |
|
ezUInt32 | GetUnknownObjectTypeInstances () const |
|
void | SetAddToResetFilesList (bool b) |
| If disabled, this document will not be put into the recent files list.
|
|
bool | GetAddToRecentFilesList () const |
| Whether this document shall be put into the recent files list.
|
|
void | ShowDocumentStatus (const ezFormatString &msg) const |
| Broadcasts a status message event. The window that displays the document may show this in some form, e.g. in the status bar.
|
|
virtual ezResult | ComputeObjectTransformation (const ezDocumentObject *pObject, ezTransform &out_result) const |
| Tries to compute the position and rotation for an object in the document. Returns EZ_SUCCESS if it was possible.
|
|
virtual ezManipulatorSearchStrategy | GetManipulatorSearchStrategy () const |
| Needed by ezManipulatorManager to know where to look for the manipulator attributes. More...
|
|
virtual const ezRTTI * | GetDynamicRTTI () const |
|
bool | IsInstanceOf (const ezRTTI *pType) const |
| Returns whether the type of this instance is of the given type or derived from it.
|
|
template<typename T > |
EZ_ALWAYS_INLINE bool | IsInstanceOf () const |
| Returns whether the type of this instance is of the given type or derived from it.
|
|
|
ezDocument * | m_pHostDocument = nullptr |
|
ezDocument * | m_pActiveSubDocument = nullptr |
|
bool | IsMainDocument () const |
| Returns whether this document is a main document, i.e. self contained.
|
|
bool | IsSubDocument () const |
| Returns whether this document is a sub-document, i.e. is part of another document.
|
|
const ezDocument * | GetMainDocument () const |
| In case this is a sub-document, returns the main document this belongs to. Otherwise 'this' is returned.
|
|
const ezDocument * | GetActiveSubDocument () const |
| At any given time, only the active sub-document can be edited. This returns the active sub-document which can also be this document itself. Changes to the active sub-document are generally triggered by ezDocumentObjectStructureEvent::Type::AfterReset.
|
|
ezDocument * | GetMainDocument () |
|
ezDocument * | GetActiveSubDocument () |
|
|
virtual bool | ArePrefabsAllowed () const |
| Whether the document allows to create prefabs in it. This may note be allowed for prefab documents themselves, to prevent nested prefabs.
|
|
virtual void | UpdatePrefabs () |
| Updates ALL prefabs in the document with the latest changes. Merges the current prefab templates with the instances in the document.
|
|
void | RevertPrefabs (ezArrayPtr< const ezDocumentObject * > selection) |
| Resets the given objects to their template prefab state, if they have local modifications.
|
|
virtual void | UnlinkPrefabs (ezArrayPtr< const ezDocumentObject * > selection) |
| Removes the link between a prefab instance and its template, turning the instance into a regular object.
|
|
virtual ezStatus | CreatePrefabDocumentFromSelection (ezStringView sFile, const ezRTTI *pRootType, ezDelegate< void(ezAbstractObjectNode *)> adjustGraphNodeCB={}, ezDelegate< void(ezDocumentObject *)> adjustNewNodesCB={}, ezDelegate< void(ezAbstractObjectGraph &graph, ezDynamicArray< ezAbstractObjectNode * > &graphRootNodes)> finalizeGraphCB={}) |
|
virtual ezStatus | CreatePrefabDocument (ezStringView sFile, ezArrayPtr< const ezDocumentObject * > rootObjects, const ezUuid &invPrefabSeed, ezUuid &out_newDocumentGuid, ezDelegate< void(ezAbstractObjectNode *)> adjustGraphNodeCB={}, bool bKeepOpen=false, ezDelegate< void(ezAbstractObjectGraph &graph, ezDynamicArray< ezAbstractObjectNode * > &graphRootNodes)> finalizeGraphCB={}) |
|
virtual ezUuid | ReplaceByPrefab (const ezDocumentObject *pRootObject, ezStringView sPrefabFile, const ezUuid &prefabAsset, const ezUuid &prefabSeed, bool bEnginePrefab) |
|
virtual ezUuid | RevertPrefab (const ezDocumentObject *pObject) |
|
virtual void | UpdatePrefabsRecursive (ezDocumentObject *pObject) |
|
virtual void | UpdatePrefabObject (ezDocumentObject *pObject, const ezUuid &PrefabAsset, const ezUuid &PrefabSeed, ezStringView sBasePrefab) |
|