AsyncTaskCollection
from panda3d.core import AsyncTaskCollection
- class AsyncTaskCollection
Bases:
DTOOL_SUPER_BASE
A list of tasks, for instance as returned by some of the AsyncTaskManager query functions. This also serves to define an AsyncTaskSequence.
TODO: None of this is thread-safe yet.
Inheritance diagram
- __init__(*args, **kwargs)
- addTask()
C++ Interface: add_task(const AsyncTaskCollection self, AsyncTask task)
- /**
Adds a new AsyncTask to the collection.
*/
- addTasksFrom()
C++ Interface: add_tasks_from(const AsyncTaskCollection self, const AsyncTaskCollection other)
- /**
Adds all the AsyncTasks indicated in the other collection to this task.
The other tasks are simply appended to the end of the tasks in this list;
duplicates are not automatically removed.
*/
- add_task()
C++ Interface: add_task(const AsyncTaskCollection self, AsyncTask task)
- /**
Adds a new AsyncTask to the collection.
*/
- add_tasks_from()
C++ Interface: add_tasks_from(const AsyncTaskCollection self, const AsyncTaskCollection other)
- /**
Adds all the AsyncTasks indicated in the other collection to this task.
The other tasks are simply appended to the end of the tasks in this list;
duplicates are not automatically removed.
*/
- assign()
C++ Interface: assign(const AsyncTaskCollection self, const AsyncTaskCollection copy)
- clear()
C++ Interface: clear(const AsyncTaskCollection self)
- /**
Removes all AsyncTasks from the collection.
*/
- findTask()
C++ Interface: find_task(AsyncTaskCollection self, str name)
- /**
Returns the task in the collection with the indicated name, if any, or NULL
if no task has that name.
*/
- find_task()
C++ Interface: find_task(AsyncTaskCollection self, str name)
- /**
Returns the task in the collection with the indicated name, if any, or NULL
if no task has that name.
*/
- getNumTasks()
C++ Interface: get_num_tasks(AsyncTaskCollection self)
- /**
Returns the number of AsyncTasks in the collection.
*/
- getTask()
C++ Interface: get_task(AsyncTaskCollection self, int index)
- /**
Returns the nth AsyncTask in the collection.
*/
- getTasks()
- get_num_tasks()
C++ Interface: get_num_tasks(AsyncTaskCollection self)
- /**
Returns the number of AsyncTasks in the collection.
*/
- get_task()
C++ Interface: get_task(AsyncTaskCollection self, int index)
- /**
Returns the nth AsyncTask in the collection.
*/
- get_tasks()
- hasTask()
C++ Interface: has_task(AsyncTaskCollection self, AsyncTask task)
- /**
Returns true if the indicated AsyncTask appears in this collection, false
otherwise.
*/
- has_task()
C++ Interface: has_task(AsyncTaskCollection self, AsyncTask task)
- /**
Returns true if the indicated AsyncTask appears in this collection, false
otherwise.
*/
- output()
C++ Interface: output(AsyncTaskCollection self, ostream out)
- /**
Writes a brief one-line description of the AsyncTaskCollection to the
indicated output stream.
*/
- removeDuplicateTasks()
C++ Interface: remove_duplicate_tasks(const AsyncTaskCollection self)
- /**
Removes any duplicate entries of the same AsyncTasks on this collection.
If a AsyncTask appears multiple times, the first appearance is retained;
subsequent appearances are removed.
*/
- removeTask()
C++ Interface: remove_task(const AsyncTaskCollection self, AsyncTask task) remove_task(const AsyncTaskCollection self, int index)
- removeTasksFrom()
C++ Interface: remove_tasks_from(const AsyncTaskCollection self, const AsyncTaskCollection other)
- /**
Removes from this collection all of the AsyncTasks listed in the other
collection.
*/
- remove_duplicate_tasks()
C++ Interface: remove_duplicate_tasks(const AsyncTaskCollection self)
- /**
Removes any duplicate entries of the same AsyncTasks on this collection.
If a AsyncTask appears multiple times, the first appearance is retained;
subsequent appearances are removed.
*/
- remove_task()
C++ Interface: remove_task(const AsyncTaskCollection self, AsyncTask task) remove_task(const AsyncTaskCollection self, int index)