14#ifndef MODELSAVEREQUEST_H
15#define MODELSAVEREQUEST_H
55 virtual DoneStatus do_task();
68 static void init_type() {
69 AsyncTask::init_type();
71 AsyncTask::get_class_type());
73 virtual TypeHandle get_type()
const {
74 return get_class_type();
76 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
79 static TypeHandle _type_handle;
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
The name of a file, such as a texture file or an Egg file.
Specifies parameters that may be passed to the loader.
A convenient class for loading models from disk, in bam or egg format (or any of a number of other fo...
get_options
Returns the LoaderOptions associated with this asynchronous ModelSaveRequest.
get_node
Returns the node that was passed to the constructor.
bool get_success() const
Returns the true if the model was saved successfully, false otherwise.
get_loader
Returns the Loader object associated with this asynchronous ModelSaveRequest.
bool is_ready() const
Returns true if this request has completed, false if it is still pending.
ModelSaveRequest(const std::string &name, const Filename &filename, const LoaderOptions &options, PandaNode *node, Loader *loader)
Create a new ModelSaveRequest, and add it to the loader via save_async(), to begin an asynchronous sa...
get_filename
Returns the filename associated with this asynchronous ModelSaveRequest.
A basic node of the scene graph or data graph.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...