Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

AnalogNode Class Reference

#include <analogNode.h>

Inheritance diagram for AnalogNode:

DataNode PandaNode TypedWritable Namable BoundedObject ReferenceCount TypedObject List of all members.

Public Member Functions

virtual void write (ostream &out, int indent_level=0) const
virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()

Static Public Member Functions

TypeHandle get_class_type ()
void init_type ()

Protected Member Functions

virtual void do_transmit_data (const DataNodeTransmit &input, DataNodeTransmit &output)

Private Types

enum  { max_outputs = 2 }

Private Member Functions

virtual ~AnalogNode ()
INLINE bool is_valid () const
INLINE int get_num_controls () const
INLINE double get_control_state (int index) const
INLINE bool is_control_known (int index) const
INLINE void set_output (int channel, int index, bool flip)
INLINE void clear_output (int channel)
INLINE int get_output (int channel) const
INLINE bool is_output_flipped (int channel) const
 PT (ClientAnalogDevice) _analog
 PT (EventStoreVec2) _xy

Private Attributes

PUBLISHED __pad0__: AnalogNode(ClientBase *client
PUBLISHED const string & device_name
OutputData _outputs [max_outputs]
int _xy_output

Static Private Attributes

TypeHandle _type_handle

Member Enumeration Documentation

anonymous enum [private]
 

Enumeration values:
max_outputs 

Definition at line 77 of file analogNode.h.


Constructor & Destructor Documentation

AnalogNode::~AnalogNode  )  [private, virtual]
 

Definition at line 65 of file analogNode.cxx.


Member Function Documentation

INLINE void AnalogNode::clear_output int  channel  )  [private]
 

void AnalogNode::do_transmit_data const DataNodeTransmit input,
DataNodeTransmit output
[protected, virtual]
 

Reimplemented from DataNode.

Definition at line 101 of file analogNode.cxx.

References AnalogNode::OutputData::_flip, AnalogNode::OutputData::_index, _outputs, _xy_output, is_valid(), max_outputs, and DataNodeTransmit::set_data().

virtual TypeHandle AnalogNode::force_init_type void   )  [inline, virtual]
 

Reimplemented from DataNode.

Definition at line 105 of file analogNode.h.

References DataNode::get_class_type(), and DataNode::init_type().

TypeHandle AnalogNode::get_class_type void   )  [inline, static]
 

Reimplemented from DataNode.

Definition at line 94 of file analogNode.h.

INLINE double AnalogNode::get_control_state int  index  )  const [private]
 

INLINE int AnalogNode::get_num_controls  )  const [private]
 

INLINE int AnalogNode::get_output int  channel  )  const [private]
 

virtual TypeHandle AnalogNode::get_type void   )  const [inline, virtual]
 

Reimplemented from DataNode.

Definition at line 102 of file analogNode.h.

References DataNode::get_class_type().

void AnalogNode::init_type void   )  [inline, static]
 

Reimplemented from DataNode.

Definition at line 97 of file analogNode.h.

References DataNode::get_class_type(), DataNode::init_type(), and register_type().

Referenced by init_libdevice().

INLINE bool AnalogNode::is_control_known int  index  )  const [private]
 

INLINE bool AnalogNode::is_output_flipped int  channel  )  const [private]
 

INLINE bool AnalogNode::is_valid  )  const [private]
 

Referenced by do_transmit_data().

AnalogNode::PT EventStoreVec2   )  [private]
 

AnalogNode::PT ClientAnalogDevice   )  [private]
 

INLINE void AnalogNode::set_output int  channel,
int  index,
bool  flip
[private]
 

void AnalogNode::write ostream &  out,
int  indent_level = 0
const [virtual]
 

Reimplemented from PandaNode.

Definition at line 77 of file analogNode.cxx.

References NULL, and PandaNode::write().


Member Data Documentation

PUBLISHED AnalogNode::__pad0__ [private]
 

Reimplemented from DataNode.

Definition at line 51 of file analogNode.h.

OutputData AnalogNode::_outputs[max_outputs] [private]
 

Definition at line 78 of file analogNode.h.

Referenced by do_transmit_data().

TypeHandle AnalogNode::_type_handle [static, private]
 

Reimplemented from DataNode.

Definition at line 25 of file analogNode.cxx.

int AnalogNode::_xy_output [private]
 

Definition at line 89 of file analogNode.h.

Referenced by do_transmit_data().

PUBLISHED const string& AnalogNode::device_name [private]
 

Definition at line 51 of file analogNode.h.


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 00:11:15 2003 for Panda by doxygen1.3