21 INLINE AnalogNode::OutputData::
48 int result = _analog->get_num_controls();
64 double result = _analog->get_control_state(index);
79 bool result = _analog->is_control_known(index);
96 nassertv(channel >= 0 && channel < max_outputs);
97 _outputs[channel]._index = index;
98 _outputs[channel]._flip = flip;
109 nassertv(channel >= 0 && channel < max_outputs);
110 _outputs[channel]._index = -1;
122 nassertr(channel >= 0 && channel < max_outputs, -1);
123 return _outputs[channel]._index;
135 nassertr(channel >= 0 && channel < max_outputs,
false);
136 return _outputs[channel]._flip;
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...
void clear_output(int channel)
Removes the output to the data graph associated with the indicated channel.
int get_output(int channel) const
Returns the analog control index that is output to the data graph on the indicated channel...
A device, attached to the ClientBase by a AnalogNode, that records the data from a single named analo...
bool is_valid() const
Returns true if the AnalogNode is valid and connected to a server, false otherwise.
int get_num_controls() const
Returns the number of analog controls known to the AnalogNode.
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_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...
double get_control_state(int index) const
Returns the current position of indicated analog control identified by its index number, or 0.0 if the control is unknown.