14 #ifndef RECORDERCONTROLLER_H 15 #define RECORDERCONTROLLER_H 37 bool begin_record(
const Filename &filename);
38 bool begin_playback(
const Filename &filename);
41 INLINE time_t get_start_time()
const;
43 INLINE
void set_random_seed(
int random_seed);
44 INLINE
int get_random_seed()
const;
46 INLINE
bool is_recording()
const;
47 INLINE
bool is_playing()
const;
48 INLINE
bool is_open()
const;
49 INLINE
const Filename &get_filename()
const;
51 INLINE
bool is_error();
52 INLINE
double get_clock_offset()
const;
53 INLINE
int get_frame_offset()
const;
55 INLINE
void add_recorder(
const std::string &name,
RecorderBase *recorder);
56 INLINE
bool has_recorder(
const std::string &name)
const;
57 INLINE
RecorderBase *get_recorder(
const std::string &name)
const;
58 INLINE
bool remove_recorder(
const std::string &name);
60 INLINE
void set_frame_tie(
bool frame_tie);
61 INLINE
bool get_frame_tie()
const;
72 INLINE
static void create_factory();
89 bool _user_table_modified;
109 static void init_type() {
110 TypedReferenceCount::init_type();
112 TypedReferenceCount::get_class_type());
115 return get_class_type();
117 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
A Factory can be used to create an instance of a particular subclass of some general base class.
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
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(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A base class for things which need to inherit from both TypedObject and from ReferenceCount.
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
This object is used by the RecorderController to write (and read) a record of the set of recorders in...
The name of a file, such as a texture file or an Egg file.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the base class to a number of objects that record particular kinds of user input (like a Mous...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This class can be used to write a binary file that consists of an arbitrary header followed by a numb...
This object represents one frame of data in the recorded session file.
This object manages the process of recording the user's runtime inputs to a bam file so that the sess...
TypeHandle is the identifier used to differentiate C++ class types.