ClientBase

from panda3d.core import ClientBase
class ClientBase

Bases: TypedReferenceCount

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.

Inheritance diagram

Inheritance diagram of ClientBase

__init__(*args, **kwargs)
forkAsynchronousThread()

C++ Interface: fork_asynchronous_thread(const ClientBase self, 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).

*/

fork_asynchronous_thread()

C++ Interface: fork_asynchronous_thread(const ClientBase self, 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).

*/

getClassType()

C++ Interface: get_class_type()

getCoordinateSystem()

C++ Interface: get_coordinate_system(ClientBase self)

/**
  • Returns the coordinate system that all devices associated with this client

  • will operate in. Normally, this is CS_default.

*/

getLastPollTime()

C++ Interface: get_last_poll_time(ClientBase self)

/**
  • Returns the time (according to the global ClockObject’s get_real_time()

  • method) of the last device poll.

*/

get_class_type()

C++ Interface: get_class_type()

get_coordinate_system()

C++ Interface: get_coordinate_system(ClientBase self)

/**
  • Returns the coordinate system that all devices associated with this client

  • will operate in. Normally, this is CS_default.

*/

get_last_poll_time()

C++ Interface: get_last_poll_time(ClientBase self)

/**
  • Returns the time (according to the global ClockObject’s get_real_time()

  • method) of the last device poll.

*/

isForked()

C++ Interface: is_forked(ClientBase self)

/**
  • Returns true if the ClientBase has been forked (and, therefore, poll() does

  • not need to be called), false otherwise.

*/

is_forked()

C++ Interface: is_forked(ClientBase self)

/**
  • Returns true if the ClientBase has been forked (and, therefore, poll() does

  • not need to be called), false otherwise.

*/

poll()

C++ Interface: poll(const ClientBase self)

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

C++ Interface: set_coordinate_system(const ClientBase self, int cs)

/**
  • Specifies the coordinate system that all devices associated with this

  • client will operate in. Normally, this is CS_default.

*/

set_coordinate_system()

C++ Interface: set_coordinate_system(const ClientBase self, int cs)

/**
  • Specifies the coordinate system that all devices associated with this

  • client will operate in. Normally, this is CS_default.

*/