Go to the documentation of this file.
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();}
virtual void record_frame(BamWriter *manager, Datagram &dg)
Records the most recent data collected into the indicated datagram.
This object supervises the traversal of the data graph and the moving of data from one DataNode to it...
A class to retrieve the individual data elements previously stored in a Datagram.
void write_recorder(BamWriter *manager, Datagram &dg)
This method is provided for the benefit of classes (like MouseRecorder) that inherit from PandaMode a...
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_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 ...
Base class for objects that can be written to and read from Bam files.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A handy class object for storing simple values (like integers or strings) passed along with an Event ...
An instance of this class is passed to the Factory when requesting it to do its business and construc...
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void ref() const
Explicitly increments the reference count.
Encapsulates the data generated from (or sent into) any particular DataNode.
This is the base class to a number of objects that record particular kinds of user input (like a Mous...
This object records any data generated by a particular MouseAndKeyboard node on the datagraph for a s...
virtual bool unref() const
Explicitly decrements the reference count.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
static void register_with_read_factory()
Tells the BamReader how to create objects of type PandaNode.
get_ref_count
Returns the current reference count.
virtual void play_frame(DatagramIterator &scan, BamReader *manager)
Reloads the most recent data collected from the indicated datagram.