ModelLoadRequest
from panda3d.core import ModelLoadRequest
- class ModelLoadRequest
Bases:
AsyncTask
A class object that manages a single asynchronous model load request. Create a new ModelLoadRequest, and add it to the loader via load_async(), to begin an asynchronous load.
Inheritance diagram
- __init__(*args, **kwargs)
- filename
- getClassType()
C++ Interface: get_class_type()
- getFilename()
C++ Interface: get_filename(ModelLoadRequest self)
- /**
Returns the filename associated with this asynchronous ModelLoadRequest.
*/
- getLoader()
C++ Interface: get_loader(ModelLoadRequest self)
- /**
Returns the Loader object associated with this asynchronous
ModelLoadRequest.
*/
- getModel()
C++ Interface: get_model(ModelLoadRequest self)
- /**
Returns the model that was loaded asynchronously, if any, or null if there
was an error. It is an error to call this unless done() returns true.
@deprecated Use result() instead.
*/
- getOptions()
C++ Interface: get_options(ModelLoadRequest self)
- /**
Returns the LoaderOptions associated with this asynchronous
ModelLoadRequest.
*/
- get_class_type()
C++ Interface: get_class_type()
- get_filename()
C++ Interface: get_filename(ModelLoadRequest self)
- /**
Returns the filename associated with this asynchronous ModelLoadRequest.
*/
- get_loader()
C++ Interface: get_loader(ModelLoadRequest self)
- /**
Returns the Loader object associated with this asynchronous
ModelLoadRequest.
*/
- get_model()
C++ Interface: get_model(ModelLoadRequest self)
- /**
Returns the model that was loaded asynchronously, if any, or null if there
was an error. It is an error to call this unless done() returns true.
@deprecated Use result() instead.
*/
- get_options()
C++ Interface: get_options(ModelLoadRequest self)
- /**
Returns the LoaderOptions associated with this asynchronous
ModelLoadRequest.
*/
- isReady()
C++ Interface: is_ready(ModelLoadRequest self)
- /**
Returns true if this request has completed, false if it is still pending or
if it has been cancelled. When this returns true, you may retrieve the
model loaded by calling get_model().
Equivalent to req.done() and not req.cancelled().
@see done()
*/
- is_ready()
C++ Interface: is_ready(ModelLoadRequest self)
- /**
Returns true if this request has completed, false if it is still pending or
if it has been cancelled. When this returns true, you may retrieve the
model loaded by calling get_model().
Equivalent to req.done() and not req.cancelled().
@see done()
*/
- loader
- options