RflySimSDK v3.05
RflySimSDK说明文档
载入中...
搜索中...
未找到
vrpn_FileController.h
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
15class VRPN_API vrpn_File_Controller {
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:
37 vrpn_Connection *d_connection;
38
39 vrpn_int32 d_myId;
40
41 vrpn_int32 d_set_replay_rate_type;
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
Generic connection class not specific to the transport mechanism.
定义 vrpn_Connection.h:562
定义 vrpn_FileController.h:15