ModelFlattenRequest

from panda3d.core import ModelFlattenRequest
class ModelFlattenRequest

Bases: AsyncTask

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.

Inheritance diagram

Inheritance diagram of ModelFlattenRequest

__init__(*args, **kwargs)
getClassType()

C++ Interface: get_class_type()

getModel()

C++ Interface: get_model(ModelFlattenRequest self)

/**
  • Returns the flattened copy of the model. It is an error to call this

  • unless done() returns true.

  • @deprecated Use result() instead.

*/

getOrig()

C++ Interface: get_orig(ModelFlattenRequest self)

/**
  • Returns the original, unflattened node.

*/

get_class_type()

C++ Interface: get_class_type()

get_model()

C++ Interface: get_model(ModelFlattenRequest self)

/**
  • Returns the flattened copy of the model. It is an error to call this

  • unless done() returns true.

  • @deprecated Use result() instead.

*/

get_orig()

C++ Interface: get_orig(ModelFlattenRequest self)

/**
  • Returns the original, unflattened node.

*/

isReady()

C++ Interface: is_ready(ModelFlattenRequest self)

/**
  • 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

  • result().

  • Equivalent to req.done() and not req.cancelled().

  • @see done()

*/

is_ready()

C++ Interface: is_ready(ModelFlattenRequest self)

/**
  • 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

  • result().

  • Equivalent to req.done() and not req.cancelled().

  • @see done()

*/

orig