Panda3D
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
Public Member Functions | Static Public Member Functions
ModelFlattenRequest Class Reference

This class object manages a single asynchronous request to flatten a model. More...

Inheritance diagram for ModelFlattenRequest:
AsyncTask AsyncTaskBase TypedReferenceCount Namable TypedObject ReferenceCount

List of all members.

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 ()

Detailed Description

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.


Constructor & Destructor Documentation

Create a new ModelFlattenRequest, and add it to the loader via load_async(), to begin an asynchronous load.


Member Function Documentation

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.

Returns the original, unflattened node.

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().

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties