vrpn  07.33
Virtual Reality Peripheral Network
vrpn_FileController.h
Go to the documentation of this file.
1 #ifndef VRPN_FILE_CONTROLLER_H
2 #define VRPN_FILE_CONTROLLER_H
3 #include "vrpn_Configure.h" // for VRPN_API
4 #include "vrpn_Types.h" // for vrpn_int32, vrpn_float32
5 
6 class VRPN_API vrpn_Connection; // from vrpn_Connection.h
7 
8 // class vrpn_File_Controller
9 // Tom Hudson, July 1998
10 
11 // Controls a file connection (logfile playback).
12 // Can be attached to any vrpn_Connection.
13 // vrpn_File_Connections will respond to the messages.
14 
16 
17 public:
19  ~vrpn_File_Controller(void);
20 
21  void set_replay_rate(vrpn_float32 = 1.0);
22  // Sets the rate at which the file is replayed.
23 
24  void reset(void);
25  // Returns to the beginning of the file.
26  // Does NOT reset rate to 1.0.
27  // Equivalent to set_to_time(< 0L, 0L >)
28 
29  void play_to_time(struct timeval t);
30  // Goes to an arbitrary elapsed time t in the file,
31  // triggering all events between the current time and t.
32  // Does not work in the past (use reset() first).
33 
34  // void jump_to_time (struct timeval t);
35 
36 protected:
38 
39  vrpn_int32 d_myId;
40 
42  vrpn_int32 d_reset_type;
43  vrpn_int32 d_play_to_time_type;
44  // long d_jump_to_time_type;
45 };
46 
47 #endif // VRPN_FILE_CONTROLLER_H
vrpn_Types.h
vrpn_File_Controller::d_play_to_time_type
vrpn_int32 d_play_to_time_type
Definition: vrpn_FileController.h:43
vrpn_File_Controller::d_connection
vrpn_Connection * d_connection
Definition: vrpn_FileController.h:37
vrpn_File_Controller::d_reset_type
vrpn_int32 d_reset_type
Definition: vrpn_FileController.h:42
vrpn_Connection
Generic connection class not specific to the transport mechanism.
Definition: vrpn_Connection.h:510
vrpn_File_Controller::d_set_replay_rate_type
vrpn_int32 d_set_replay_rate_type
Definition: vrpn_FileController.h:41
vrpn_File_Controller
Definition: vrpn_FileController.h:15
vrpn_File_Controller::d_myId
vrpn_int32 d_myId
Definition: vrpn_FileController.h:39
vrpn_Configure.h
VRPN_API
#define VRPN_API
Definition: vrpn_Configure.h:646