![]() |
Plasma Engine
2.0
|
Proxy long ops represent a long operation on the editor side. More...
#include <LongOps.h>
Public Member Functions | |
virtual void | InitializeRegistered (const plUuid &documentGuid, const plUuid &componentGuid) |
Called once by plLongOpControllerManager::RegisterLongOp() to inform the proxy to which plDocument and component (plDocumentObject) it is linked. | |
virtual const char * | GetDisplayName () const =0 |
Called by the plQtLongOpsPanel to determine the display string to be shown in the UI. | |
virtual void | GetReplicationInfo (plStringBuilder &out_sReplicationOpType, plStreamWriter &inout_config)=0 |
Called every time the long op shall be executed. | |
virtual void | Finalize (plResult result, const plDataBuffer &resultData) |
Called once the corresponding plLongOpWorker has finished. | |
![]() | |
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. | |
Additional Inherited Members | |
![]() | |
static const plRTTI * | GetStaticRTTI () |
Proxy long ops represent a long operation on the editor side.
Proxy long ops have little functionality other than naming which plLongOpWorker to execute in the engine process and to feed it with the necessary parameters. Since the proxy long op runs in the editor process, it may access plDocumentObject's and extract data from them.
|
inlinevirtual |
Called once the corresponding plLongOpWorker has finished.
result | Whether the operation succeeded or failed (e.g. via user cancellation). |
resultData | Optional data written by plLongOpWorker::Execute(). |
Reimplemented in plLongOpProxy_BakeScene, and plLongOpProxy_BuildNavMesh.
|
pure virtual |
Called by the plQtLongOpsPanel to determine the display string to be shown in the UI.
Implemented in plLongOpProxy_BakeScene, and plLongOpProxy_BuildNavMesh.
|
pure virtual |
Called every time the long op shall be executed.
out_sReplicationOpType | must name the plLongOpWorker that shall be executed in the engine process. |
config | can be optionally written to. The data is transmitted to the plLongOpWorker on the other side and fed to it in plLongOpWorker::InitializeExecution(). |
Implemented in plLongOpProxy_BakeScene, and plLongOpProxy_BuildNavMesh.
|
inlinevirtual |
Called once by plLongOpControllerManager::RegisterLongOp() to inform the proxy to which plDocument and component (plDocumentObject) it is linked.
Reimplemented in plLongOpProxy_BakeScene, and plLongOpProxy_BuildNavMesh.