14#ifndef MOUSERECORDER_H
15#define MOUSERECORDER_H
44 virtual void output(std::ostream &out)
const;
45 virtual void write(std::ostream &out,
int indent_level = 0)
const;
56 int _pixel_size_input;
58 int _button_events_input;
62 int _pixel_size_output;
64 int _button_events_output;
68 LPoint2 _mouse_pixel_xy;
94 static void init_type() {
95 DataNode::init_type();
96 RecorderBase::init_type();
98 DataNode::get_class_type(),
99 RecorderBase::get_class_type());
102 return get_class_type();
104 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
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.
The fundamental type of node for the data graph.
virtual void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.
A class to retrieve the individual data elements previously stored in a Datagram.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
An instance of this class is passed to the Factory when requesting it to do its business and construc...
This object records any data generated by a particular MouseAndKeyboard node on the datagraph for a s...
virtual bool unref() const final
Explicitly decrements the reference count.
void write_recorder(BamWriter *manager, Datagram &dg)
This method is provided for the benefit of classes (like MouseRecorder) that inherit from PandaMode a...
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 is the base class to a number of objects that record particular kinds of user input (like a Mous...
virtual void play_frame(DatagramIterator &scan, BamReader *manager)
Reloads the most recent data collected from the indicated datagram.
virtual void record_frame(BamWriter *manager, Datagram &dg)
Records the most recent data collected into the indicated datagram.
void ref() const
Explicitly increments the reference count.
get_ref_count
Returns the current reference count.
virtual bool unref() const
Explicitly decrements the reference count.
TypeHandle is the identifier used to differentiate C++ class types.
Base class for objects that can be written to and read from Bam files.
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(),...