![]() |
XII Release 0.1.0
|
Layers that are loaded as sub-documents of a scene share the xiiWorld with their main document scene. Thus, this context attaches itself to its parent xiiSceneContext. More...
#include <LayerContext.h>
Public Member Functions | |
virtual void | HandleMessage (const xiiEditorEngineDocumentMsg *pMsg) override |
void | SceneDeinitialized () |
const xiiTag & | GetLayerTag () const |
![]() | |
xiiEngineProcessDocumentContext (xiiBitflags< xiiEngineProcessDocumentContextFlags > flags) | |
virtual void | Initialize (const xiiUuid &documentGuid, const xiiVariant &metaData, xiiEngineProcessCommunicationChannel *pIPC, xiiStringView sDocumentType) |
void | Deinitialize () |
xiiStringView | GetDocumentType () const |
Returns the document type for which this context was created. Useful in case a context may be used for multiple document types. | |
void | SendProcessMessage (xiiProcessMessage *pMsg=nullptr) |
xiiBoundingBoxSphere | GetWorldBounds (xiiWorld *pWorld) |
void | ProcessEditorEngineSyncObjectMsg (const xiiEditorEngineSyncObjectMsg &msg) |
const xiiUuid & | GetDocumentGuid () const |
virtual void | Reset () |
void | ClearExistingObjects () |
virtual xiiWorldRttiConverterContext & | GetContext () |
virtual const xiiWorldRttiConverterContext & | GetContext () const |
xiiWorld * | GetWorld () const |
virtual xiiGameObjectHandle | ResolveStringToGameObjectHandle (const void *pString, xiiComponentHandle hThis, xiiStringView sProperty) const |
Tries to resolve a 'reference' (given in pData) to a xiiGameObject. | |
![]() | |
virtual const xiiRTTI * | GetDynamicRTTI () 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. | |
Static Public Member Functions | |
static xiiEngineProcessDocumentContext * | AllocateContext (const xiiDocumentOpenMsgToEngine *pMsg) |
![]() | |
static xiiEngineProcessDocumentContext * | GetDocumentContext (xiiUuid guid) |
static void | AddDocumentContext (xiiUuid guid, const xiiVariant &metaData, xiiEngineProcessDocumentContext *pView, xiiEngineProcessCommunicationChannel *pIPC, xiiStringView sDocumentType) |
static bool | PendingOperationsInProgress () |
static void | UpdateDocumentContexts () |
static void | DestroyDocumentContext (xiiUuid guid) |
![]() | |
static const xiiRTTI * | GetStaticRTTI () |
Protected Member Functions | |
virtual void | OnInitialize () override |
virtual void | OnDeinitialize () override |
virtual xiiEngineProcessViewContext * | CreateViewContext () override |
Needs to be implemented to create a view context used for windows and thumbnails rendering. | |
virtual void | DestroyViewContext (xiiEngineProcessViewContext *pContext) override |
Needs to be implemented to destroy the view context created in CreateViewContext. | |
virtual xiiStatus | ExportDocument (const xiiExportDocumentMsgToEngine *pMsg) override |
Exports to current document resource to file. Make sure to write xiiAssetFileHeader at the start of it. | |
virtual void | UpdateDocumentContext () override |
A tick functions that allows each document context to do processing that continues over multiple frames and can't be handled in HandleMessage directly. | |
![]() | |
virtual bool | PendingOperationInProgress () const |
Should return true if this context has any operation in progress like thumbnail rendering and thus needs to continue rendering even if no new messages from the editor come in. | |
void | UpdateSyncObjects () |
void | CreateThumbnailViewContext (const xiiCreateThumbnailMsgToEngine *pMsg) |
Creates the thumbnail view context. It uses 'CreateViewContext' in combination with an off-screen render target. | |
void | DestroyThumbnailViewContext () |
Once a thumbnail is successfully rendered, the thumbnail view context is destroyed again. | |
virtual bool | UpdateThumbnailViewContext (xiiEngineProcessViewContext *pThumbnailViewContext) |
Overwrite this function to apply the thumbnail render settings to the given context. | |
virtual void | OnThumbnailViewContextRequested () |
Called before a thumbnail context is created. | |
virtual void | OnThumbnailViewContextCreated () |
Called after a thumbnail context was created. Allows to insert code before the thumbnail is generated. | |
virtual void | OnDestroyThumbnailViewContext () |
Called before a thumbnail context is destroyed. Used for cleanup of what was done in OnThumbnailViewContextCreated() | |
void | SetTagOnObject (const xiiUuid &object, const char *szTag, bool bSet, bool recursive) |
Sets or removes the given tag on the object and optionally all children. | |
void | SetTagRecursive (xiiGameObject *pObject, const xiiTag &tag) |
Sets the given tag on the object and all children. | |
void | ClearTagRecursive (xiiGameObject *pObject, const xiiTag &tag) |
Clears the given tag on the object and all children. | |
const xiiEngineProcessViewContext * | GetViewContext (xiiUInt32 uiView) const |
Additional Inherited Members | |
![]() | |
xiiIPCObjectMirrorEngine | m_Mirror |
xiiWorldRttiConverterContext | m_Context |
![]() | |
xiiWorld * | m_pWorld = nullptr |
xiiBitflags< xiiEngineProcessDocumentContextFlags > | m_Flags |
xiiUuid | m_DocumentGuid |
xiiVariant | m_MetaData |
xiiEngineProcessCommunicationChannel * | m_pIPC = nullptr |
xiiHybridArray< xiiEngineProcessViewContext *, 4 > | m_ViewContexts |
xiiMap< xiiUuid, xiiEditorEngineSyncObject * > | m_SyncObjects |
Layers that are loaded as sub-documents of a scene share the xiiWorld with their main document scene. Thus, this context attaches itself to its parent xiiSceneContext.
|
overrideprotectedvirtual |
Needs to be implemented to create a view context used for windows and thumbnails rendering.
Implements xiiEngineProcessDocumentContext.
|
overrideprotectedvirtual |
Needs to be implemented to destroy the view context created in CreateViewContext.
Implements xiiEngineProcessDocumentContext.
|
overrideprotectedvirtual |
Exports to current document resource to file. Make sure to write xiiAssetFileHeader at the start of it.
Reimplemented from xiiEngineProcessDocumentContext.
|
overridevirtual |
Reimplemented from xiiEngineProcessDocumentContext.
|
overrideprotectedvirtual |
Reimplemented from xiiEngineProcessDocumentContext.
|
overrideprotectedvirtual |
Reimplemented from xiiEngineProcessDocumentContext.
|
overrideprotectedvirtual |
A tick functions that allows each document context to do processing that continues over multiple frames and can't be handled in HandleMessage directly.
Make sure to call the base implementation when overwriting as this handles the thumbnail rendering that takes multiple frames to complete.
Reimplemented from xiiEngineProcessDocumentContext.