34class EXPCL_PANDA_DEVICE DialNode :
public DataNode {
36 explicit DialNode(
ClientBase *client,
const std::string &device_name);
62 static void init_type() {
63 DataNode::init_type();
65 DataNode::get_class_type());
68 return get_class_type();
70 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
An abstract base class for a family of client device interfaces–including trackers,...
A device, attached to the ClientBase by a DialNode, that records the data from a single named dial de...
This object supervises the traversal of the data graph and the moving of data from one DataNode to it...
Encapsulates the data generated from (or sent into) any particular DataNode.
int get_num_dials() const
Returns the number of dial dials known to the DialNode.
bool is_valid() const
Returns true if the DialNode is valid and connected to a server, false otherwise.
bool is_dial_known(int index) const
Returns true if the state of the indicated dial dial is known, or false if we have never heard anythi...
double read_dial(int index)
Returns the number of complete revolutions of the dial since the last time read_dial() was called.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...