This class object manages a single asynchronous request to flatten a model. More...
Public Member Functions | |
ModelFlattenRequest (PandaNode orig) | |
Create a new ModelFlattenRequest, and add it to the loader via load_async(), to begin an asynchronous load. | |
PandaNode | getModel () |
Returns the flattened copy of the model. | |
PandaNode | getOrig () |
Returns the original, unflattened node. | |
bool | isReady () |
Returns true if this request has completed, false if it is still pending. | |
Static Public Member Functions | |
static TypeHandle | getClassType () |
This class object manages a single asynchronous request to flatten a model.
The model will be duplicated and flattened in a sub-thread (if threading is available), without affecting the original model; and when the result is done it may be retrieved from this object.
ModelFlattenRequest | ( | PandaNode | orig | ) |
Create a new ModelFlattenRequest, and add it to the loader via load_async(), to begin an asynchronous load.
static TypeHandle getClassType | ( | ) | [static] |
Reimplemented from AsyncTask.
Returns the flattened copy of the model.
It is an error to call this unless is_ready() returns true.
bool isReady | ( | ) |
Returns true if this request has completed, false if it is still pending.
When this returns true, you may retrieve the model loaded by calling get_result().