Panda3D
|
An abstract base class for a family of client device interfaces–including trackers, buttons, dials, and other analog inputs. More...
#include <pandadoc.hpp>
Public Member Functions | |
bool | forkAsynchronousThread (double poll_time) |
Forks a separate thread to do all the polling of connected devices. More... | |
CoordinateSystem | getCoordinateSystem () |
Returns the coordinate system that all devices associated with this client will operate in. More... | |
double | getLastPollTime () |
Returns the time (according to the global ClockObject's get_real_time() method) of the last device poll. More... | |
bool | isForked () |
Returns true if the ClientBase has been forked (and, therefore, poll() does not need to be called), false otherwise. More... | |
bool | poll () |
Initiates a poll of the client devices, if we are not forked and if we have not already polled this frame. More... | |
setCoordinateSystem (CoordinateSystem cs) | |
Specifies the coordinate system that all devices associated with this client will operate in. More... | |
![]() | |
TypeHandle | getType () |
int | getTypeIndex () |
Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. More... | |
bool | isExactType (TypeHandle handle) |
Returns true if the current object is the indicated type exactly. More... | |
bool | isOfType (TypeHandle handle) |
Returns true if the current object is or derives from the indicated type. More... | |
![]() | |
int | getRefCount () |
Returns the current reference count. More... | |
ref () | |
Explicitly increments the reference count. More... | |
bool | testRefCountIntegrity () |
Does some easy checks to make sure that the reference count isn't completely bogus. More... | |
bool | testRefCountNonzero () |
Does some easy checks to make sure that the reference count isn't zero, or completely bogus. More... | |
bool | unref () |
Explicitly decrements the reference count. More... | |
Static Public Member Functions | |
static TypeHandle | getClassType () |
![]() | |
static TypeHandle | getClassType () |
![]() | |
static TypeHandle | getClassType () |
![]() | |
static TypeHandle | getClassType () |
Additional Inherited Members | |
![]() | |
TypeHandle | type |
Returns the TypeHandle representing this object's type. More... | |
![]() | |
int | ref_count |
The current reference count. More... | |
An abstract base class for a family of client device interfaces–including trackers, buttons, dials, and other analog inputs.
This provides a common interface to connect to such devices and extract their data; it is used by TrackerNode etc. to put these devices in the data graph.
bool forkAsynchronousThread | ( | double | poll_time | ) |
Forks a separate thread to do all the polling of connected devices.
The forked thread will poll after every poll_time seconds has elapsed. Returns true if the fork was successful, or false otherwise (for instance, because we were already forked, or because asynchronous threads are disabled).
|
static |
CoordinateSystem getCoordinateSystem | ( | ) |
Returns the coordinate system that all devices associated with this client will operate in.
Normally, this is CS_default.
double getLastPollTime | ( | ) |
Returns the time (according to the global ClockObject's get_real_time() method) of the last device poll.
bool isForked | ( | ) |
Returns true if the ClientBase has been forked (and, therefore, poll() does not need to be called), false otherwise.
bool poll | ( | ) |
Initiates a poll of the client devices, if we are not forked and if we have not already polled this frame.
Returns true if the poll occurred, or false if it did not.
setCoordinateSystem | ( | CoordinateSystem | cs | ) |
Specifies the coordinate system that all devices associated with this client will operate in.
Normally, this is CS_default.