Panda3D
Public Member Functions | Static Public Member Functions | Protected Member Functions
AnimateVerticesRequest Class Reference

This class object manages a single asynchronous request to animate vertices on a GeomVertexData object. More...

#include "animateVerticesRequest.h"

Inheritance diagram for AnimateVerticesRequest:
AsyncTask AsyncTaskBase TypedReferenceCount Namable TypedObject ReferenceCount MemoryBase MemoryBase MemoryBase

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

Create a new AnimateVerticesRequest.

Definition at line 22 of file animateVerticesRequest.I.


Member Function Documentation

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.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations