vrpn 07.35
Virtual Reality Peripheral Network
 
Loading...
Searching...
No Matches
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
6class 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
17public:
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
36protected:
38
39 vrpn_int32 d_myId;
40
42 vrpn_int32 d_reset_type;
44 // long d_jump_to_time_type;
45};
46
47#endif // VRPN_FILE_CONTROLLER_H
Generic connection class not specific to the transport mechanism.
void set_replay_rate(vrpn_float32=1.0)
vrpn_File_Controller(vrpn_Connection *)
vrpn_Connection * d_connection
void play_to_time(struct timeval t)
#define VRPN_API
class VRPN_API vrpn_Connection