DialNode

from panda3d.core import DialNode
class DialNode

Bases:

Bases: DataNode

This is the primary interface to infinite dial type devices associated with a ClientBase. This creates a node that connects to the named dial device, if it exists, and provides hooks to the user to read the state of any of the sequentially numbered dial controls associated with that device.

A dial is a rotating device that does not have stops–it can keep rotating any number of times. Therefore it does not have a specific position at any given time, unlike an AnalogDevice.

Inheritance diagram

Inheritance diagram of DialNode

__init__(client: ClientBase, device_name: str)
__init__(param0: DialNode)
static get_class_type() TypeHandle
get_num_dials() int

Returns the number of dial dials known to the DialNode. This number may change as more dials are discovered.

is_dial_known(index: int) bool

Returns true if the state of the indicated dial dial is known, or false if we have never heard anything about this particular dial.

is_valid() bool

Returns true if the DialNode is valid and connected to a server, false otherwise.

read_dial(index: int) float

Returns the number of complete revolutions of the dial since the last time read_dial() was called. This is a destructive operation; it is not possible to read the dial without resetting the counter.