39class EXPCL_PANDA_DEVICE AnalogNode :
public DataNode {
41 explicit AnalogNode(
ClientBase *client,
const std::string &device_name);
43 virtual ~AnalogNode();
52 INLINE
void set_output(
int channel,
int index,
bool flip);
58 virtual void write(std::ostream &out,
int indent_level = 0)
const;
68 enum { max_outputs = 2 };
69 OutputData _outputs[max_outputs];
83 PT(EventStoreVec2) _xy;
89 static void init_type() {
90 DataNode::init_type();
92 DataNode::get_class_type());
95 return get_class_type();
97 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void set_output(int channel, int index, bool flip)
Causes a particular analog control to be placed in the data graph for the indicated channel.
bool is_output_flipped(int channel) const
Returns true if the analog control index that is output to the data graph on the indicated channel is...
bool is_control_known(int index) const
Returns true if the state of the indicated analog control is known, or false if we have never heard a...
int get_output(int channel) const
Returns the analog control index that is output to the data graph on the indicated channel,...
int get_num_controls() const
Returns the number of analog controls known to the AnalogNode.
void clear_output(int channel)
Removes the output to the data graph associated with the indicated channel.
double get_control_state(int index) const
Returns the current position of indicated analog control identified by its index number,...
bool is_valid() const
Returns true if the AnalogNode is valid and connected to a server, false otherwise.
An abstract base class for a family of client device interfaces–including trackers,...
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.
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(),...