#include <PDG_ApplicationShim.h>
Shim class for integrating PDG with another application, e.g. Houdini. A single subclass of this should be installed statically with PDG using PDG_ApplicationShim::setShim.
Definition at line 39 of file PDG_ApplicationShim.h.
PDG_ApplicationShim::PDG_ApplicationShim |
( |
| ) |
|
Constructs a new application shim and caches configuration vars.
virtual PDG_ApplicationShim::~PDG_ApplicationShim |
( |
| ) |
|
|
inlinevirtual |
Adds a dependency on the global PDG work item for the specified thread.
Adds a new Python search path to the PDG type system.
virtual bool PDG_ApplicationShim::areAppDependenciesDirty |
( |
fpreal |
t | ) |
const |
|
protectedpure virtual |
static bool PDG_ApplicationShim::areDependenciesDirty |
( |
fpreal |
t | ) |
|
|
static |
Returns true if the application-specific work item dependency is dirty
virtual bool PDG_ApplicationShim::canAppUseFarm |
( |
| ) |
const |
|
protectedpure virtual |
static bool PDG_ApplicationShim::canUseFarm |
( |
| ) |
|
|
static |
Returns true if the integration is allowed to use farm schedulers.
Returns true if the file in the specified path is cached.
Notifies the application that the global PDG work item has been changed.
virtual bool PDG_ApplicationShim::evaluatingAppChannel |
( |
UT_WorkBuffer & |
buffer, |
|
|
bool |
full_path, |
|
|
int |
thread |
|
) |
| |
|
protectedpure virtual |
static bool PDG_ApplicationShim::evaluatingChannel |
( |
UT_WorkBuffer & |
buffer, |
|
|
bool |
full_path, |
|
|
int |
thread |
|
) |
| |
|
static |
Queries the name of the evaluating channel for the specified thread.
virtual bool PDG_ApplicationShim::getAppVariable |
( |
const char * |
name, |
|
|
UT_StringHolder & |
value |
|
) |
| const |
|
protectedpure virtual |
static bool PDG_ApplicationShim::getVariable |
( |
const char * |
name, |
|
|
UT_StringHolder & |
value |
|
) |
| |
|
static |
Queries the value of a global variable.
static bool PDG_ApplicationShim::isExperimental |
( |
| ) |
|
|
static |
Enable experimental features.
virtual bool PDG_ApplicationShim::lockApp |
( |
| ) |
const |
|
protectedpure virtual |
template<typename Task , typename... Args>
static TaskPtr PDG_ApplicationShim::pushDeferred |
( |
Args &&... |
args | ) |
|
|
inlinestatic |
Queue a task with the deferred processing queue, to be run on the main thread.
Definition at line 225 of file PDG_ApplicationShim.h.
virtual void PDG_ApplicationShim::setAppVariable |
( |
const char * |
name, |
|
|
const UT_StringHolder & |
value |
|
) |
| |
|
protectedpure virtual |
Sets the shared static shim instance. This can only be called once during the lifetime of the program.
static void PDG_ApplicationShim::setVariable |
( |
const char * |
name, |
|
|
const UT_StringHolder & |
value |
|
) |
| |
|
static |
Sets the value of a global variable.
virtual bool PDG_ApplicationShim::tickAppMainThread |
( |
| ) |
|
|
protectedvirtual |
static bool PDG_ApplicationShim::tickMainThread |
( |
| ) |
|
|
static |
Runs the application shims logic for a main thread event tick. The base application instance will drain pending deferred events from the queue and run some of them.
virtual bool PDG_ApplicationShim::trySaveAppScene |
( |
| ) |
const |
|
protectedpure virtual |
static bool PDG_ApplicationShim::trySaveScene |
( |
| ) |
|
|
static |
Saves the current application scene. Returns false if the application wants to abort the current operationi because of save conflict or a request to cancel, otherwise returns true.
virtual bool PDG_ApplicationShim::unlockApp |
( |
| ) |
const |
|
protectedpure virtual |
template<typename Func >
static void PDG_ApplicationShim::unlockedExecute |
( |
const Func & |
func | ) |
|
|
inlinestatic |
The documentation for this class was generated from the following file: