15 #ifndef MOUSERECORDER_H
16 #define MOUSERECORDER_H
18 #include "recorderBase.h"
20 #include "dataNodeTransmit.h"
21 #include "linmath_events.h"
22 #include "buttonEventList.h"
48 virtual void output(ostream &out)
const;
49 virtual void write(ostream &out,
int indent_level = 0)
const;
60 int _pixel_size_input;
62 int _button_events_input;
66 int _pixel_size_output;
68 int _button_events_output;
97 static void init_type() {
98 DataNode::init_type();
99 RecorderBase::init_type();
100 register_type(_type_handle,
"MouseRecorder",
101 DataNode::get_class_type(),
102 RecorderBase::get_class_type());
105 return get_class_type();
107 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
virtual void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.
The fundamental type of node for the data graph.
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
void write_recorder(BamWriter *manager, Datagram &dg)
This method is provided for the benefit of classes (like MouseRecorder) that inherit from PandaMode a...
virtual void play_frame(DatagramIterator &scan, BamReader *manager)
Reloads the most recent data collected from the indicated datagram.
Base class for objects that can be written to and read from Bam files.
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
static void register_with_read_factory()
Tells the BamReader how to create objects of type PandaNode.
A handy class object for storing simple values (like integers or strings) passed along with an Event ...
This describes the structure of a single array within a Geom data.
virtual void record_frame(BamWriter *manager, Datagram &dg)
Records the most recent data collected into the indicated datagram.
virtual bool unref() const
Explicitly decrements the reference count.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
This is the base class to a number of objects that record particular kinds of user input (like a Mous...
void ref() const
Explicitly increments the reference count.
This object records any data generated by a particular MouseAndKeyboard node on the datagraph for a s...
A class to retrieve the individual data elements previously stored in a Datagram. ...
This is a two-component point in space.
TypeHandle is the identifier used to differentiate C++ class types.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
Encapsulates the data generated from (or sent into) any particular DataNode.
This object supervises the traversal of the data graph and the moving of data from one DataNode to it...