RecorderBase¶
from acron.core import RecorderBase
- class RecorderBase¶
Bases:
This is the base class to a number of objects that record particular kinds of user input (like a
MouseRecorder) to use in conjunction with aRecorderControllerto record the user’s inputs for a session.Note that RecorderBase does not actually inherit from
TypedObject, even though it defines get_type(). The assumption is that the classes that derive from RecorderBase might also inherit independently fromTypedObject.It also does not inherit from
TypedWritable, but it defines a method called write_recorder() which is very similar to a TypedWritable’s write_datagram(). Classes that derive from RecorderBase and also inherit fromTypedWritablemay choose to remap write_recorder() to do exactly the same thing as write_datagram(), or they may choose to write something slightly different.Most types of recorders should derive from Recorder, as it derives from
ReferenceCount, except forMouseRecorder, which would otherwise doubly inherit fromReferenceCount.Inheritance diagram
digraph inheritancef431060bfc { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "RecorderBase" [URL="acron.core.RecorderBase.html#acron.core.RecorderBase",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "RecorderBase" [arrowsize=0.75,style=""]; }- static get_class_type()¶
- is_playing()¶
Returns true if this recorder is presently playing back data from session file, false otherwise. If this is true, play_data() will be called from time to time.
- is_recording()¶
Returns true if this recorder is presently recording data for saving to a session file, false otherwise. If this is true, record_data() will be called from time to time.