Panda3D
|
This class object manages a single asynchronous request to animate vertices on a GeomVertexData object. More...
#include "animateVerticesRequest.h"
Public Member Functions | |
AnimateVerticesRequest (GeomVertexData *geom_vertex_data) | |
Create a new AnimateVerticesRequest. | |
virtual TypeHandle | force_init_type () |
virtual TypeHandle | get_type () const |
bool | is_ready () const |
Returns true if this request has completed, false if it is still pending. | |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
Protected Member Functions | |
virtual AsyncTask::DoneStatus | do_task () |
Performs the task: that is, calls animate vertices on _geom_vertex_data. |
This class object manages a single asynchronous request to animate vertices on a GeomVertexData object.
animate_vertices will be called with force=true (i.e. blocking) in a sub-thread (if threading is available). No result is stored or returned from this object. It is expected that the result will be cached and available for immediate use later during rendering. Thus it is important that the main thread block while these requests are being run (presumably on multiple CPUs/cores), to ensure that the data has been computed by the time it's needed.
Definition at line 39 of file animateVerticesRequest.h.
AnimateVerticesRequest::AnimateVerticesRequest | ( | GeomVertexData * | geom_vertex_data | ) | [inline] |
Create a new AnimateVerticesRequest.
Definition at line 22 of file animateVerticesRequest.I.
AsyncTask::DoneStatus AnimateVerticesRequest::do_task | ( | ) | [protected, virtual] |
Performs the task: that is, calls animate vertices on _geom_vertex_data.
Reimplemented from AsyncTask.
Definition at line 27 of file animateVerticesRequest.cxx.
References Thread::get_current_thread().
bool AnimateVerticesRequest::is_ready | ( | ) | const [inline] |
Returns true if this request has completed, false if it is still pending.
Definition at line 35 of file animateVerticesRequest.I.