Public Member Functions |
|
| MouseRecorder (const string &name) |
|
virtual TypeHandle | force_init_type () |
|
virtual TypeHandle | get_type () const |
| virtual void | output (ostream &out) const |
| | Outputs the Namable.
|
| 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, and returns true if there is any interesting data worth recording, or false if the datagram is meaningless.
|
|
virtual void | write (ostream &out, int indent_level=0) const |
| virtual void | write_datagram (BamWriter *manager, Datagram &dg) |
| | Writes the contents of this object to the datagram for shipping out to a Bam file.
|
| virtual void | write_recorder (BamWriter *manager, Datagram &dg) |
| | Writes the contents of this object to the datagram for encoding in the session file.
|
Static Public Member Functions |
|
static TypeHandle | get_class_type () |
|
static void | init_type () |
| static void | register_with_read_factory () |
| | Tells the BamReader how to create objects of type Lens.
|
Protected Member Functions |
| virtual void | do_transmit_data (DataGraphTraverser *trav, const DataNodeTransmit &input, DataNodeTransmit &output) |
| | The virtual implementation of transmit_data().
|
| void | fillin (DatagramIterator &scan, BamReader *manager) |
| | This internal function is called by make_from_bam to read in all of the relevant data from the BamFile for the new MouseRecorder.
|
| void | fillin_recorder (DatagramIterator &scan, BamReader *manager) |
| | This internal function is called by make_from_bam to read in all of the relevant data from the BamFile for the new MouseRecorder.
|
Static Protected Member Functions |
| static TypedWritable * | make_from_bam (const FactoryParams ¶ms) |
| | This function is called by the BamReader's factory when a new object of type Lens is encountered in the Bam file.
|
| static RecorderBase * | make_recorder (const FactoryParams ¶ms) |
| | This is similar to make_from_bam(), but it is designed for loading the RecorderBase object from the session log created by a RecorderController.
|
This object records any data generated by a particular MouseAndKeyboard node on the datagraph for a session for eventual playback via a DataGraphPlayback (and a PlaybackController).
To use it, make it a child of the node you wish to record. It also serves as a pass-through, so that additional child nodes may be parented directly to it.
Definition at line 38 of file mouseRecorder.h.