ModelSaveRequest

class ModelSaveRequest

Bases: AsyncTask

A 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

Inheritance diagram of ModelSaveRequest

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.

PandaNode *get_node(void) const

Returns the node that was passed to the constructor.

LoaderOptions const &get_options(void) const

Returns the LoaderOptions associated with this asynchronous ModelSaveRequest.

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 to req.done() and not req.cancelled().

See AsyncFuture::done().