ModelSaveRequest
-
class ModelSaveRequest
Bases:
AsyncTaskA class object that manages a single asynchronous model save request. Create a new ModelSaveRequest, and add it to the loader via save_async(), to begin an asynchronous save.
Inheritance diagram
-
explicit ModelSaveRequest(std::string const &name, Filename const &filename, LoaderOptions const &options, PandaNode *node, Loader *loader)
-
ModelSaveRequest(ModelSaveRequest const&) = default
Create a new
ModelSaveRequest, and add it to the loader via save_async(), to begin an asynchronous save.
-
static TypeHandle get_class_type(void)
-
Filename const &get_filename(void) const
Returns the filename associated with this asynchronous
ModelSaveRequest.
-
Loader *get_loader(void) const
Returns the Loader object associated with this asynchronous
ModelSaveRequest.
-
LoaderOptions const &get_options(void) const
Returns the
LoaderOptionsassociated with this asynchronousModelSaveRequest.
-
bool get_success(void) const
Returns the true if the model was saved successfully, false otherwise. It is an error to call this unless
done()returns true.
-
bool is_ready(void) const
Returns true if this request has completed, false if it is still pending. When this returns true, you may retrieve the success flag with
get_success(). Equivalent toreq.done() and not req.cancelled().See
AsyncFuture::done().
-
explicit ModelSaveRequest(std::string const &name, Filename const &filename, LoaderOptions const &options, PandaNode *node, Loader *loader)
