Bike-X  0.8
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
OVR_Recording.h
Go to the documentation of this file.
1 /************************************************************************************
2 
3 Filename : Recording.h
4 Content : Support for recording sensor + camera data
5 Created : March 14, 2014
6 Notes :
7 
8 Copyright : Copyright 2014 Oculus VR, Inc. All Rights reserved.
9 
10 Licensed under the Oculus VR Rift SDK License Version 3.1 (the "License");
11 you may not use the Oculus VR Rift SDK except in compliance with the License,
12 which is provided at the time of installation or download, or which
13 otherwise accompanies this software in either electronic or hard copy form.
14 
15 You may obtain a copy of the License at
16 
17 http://www.oculusvr.com/licenses/LICENSE-3.1
18 
19 Unless required by applicable law or agreed to in writing, the Oculus VR SDK
20 distributed under the License is distributed on an "AS IS" BASIS,
21 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 See the License for the specific language governing permissions and
23 limitations under the License.
24 
25 ************************************************************************************/
26 
27 #ifndef OVR_Recording_h
28 #define OVR_Recording_h
29 
30 namespace OVR { namespace Recording {
31 
33 {
34  RecordingOff = 0x0,
37 };
38 
39 }} // OVR::Recording
40 
41 #ifdef ENABLE_RECORDING
42 
43 #include "Recording/Recording_Recorder.h"
44 
45 #else
46 // If Recording is not enabled, then stub it out
47 
48 namespace OVR {
49 
50 struct PositionCalibrationReport;
51 namespace Vision {
52  class CameraIntrinsics;
53  class DistortionCoefficients;
54  class Blob;
55 };
56 
57 namespace Recording {
58 
59 class Recorder
60 {
61 public:
62  OVR_FORCE_INLINE void RecordCameraParams(const Vision::CameraIntrinsics&,
63  const Vision::DistortionCoefficients&) { }
65  OVR_FORCE_INLINE void RecordUserParams(const Vector3f&, float) { }
70  template<typename T> OVR_FORCE_INLINE void LogData(const char*, const T&) { }
73 };
74 
75 extern Recorder r;
76 
78 
79 }} // namespace OVR::Recording
80 
81 #endif // ENABLE_RECORDING
82 
83 #endif // OVR_Recording_h
#define OVR_FORCE_INLINE
OVR_FORCE_INLINE void RecordCameraParams(const Vision::CameraIntrinsics &, const Vision::DistortionCoefficients &)
Definition: OVR_Recording.h:62
uint32_t UInt32
Definition: OVR_Types.h:253
OVR_FORCE_INLINE void RecordDeviceIfcVersion(UByte)
Definition: OVR_Recording.h:66
uint8_t UByte
Definition: OVR_Types.h:249
OVR_FORCE_INLINE void LogData(const char *, const T &)
Definition: OVR_Recording.h:70
OVR_FORCE_INLINE void RecordMessage(const Message &)
Definition: OVR_Recording.h:67
OVR_FORCE_INLINE void RecordUserParams(const Vector3f &, float)
Definition: OVR_Recording.h:65
OVR_FORCE_INLINE void RecordVisionSuccess(UInt32)
Definition: OVR_Recording.h:69
OVR_FORCE_INLINE void RecordLedPositions(const Array< PositionCalibrationReport > &)
Definition: OVR_Recording.h:64
OVR_FORCE_INLINE void RecordCameraFrameUsed(UInt32)
Definition: OVR_Recording.h:68
OVR_FORCE_INLINE RecordingMode GetRecordingMode()
Definition: OVR_Recording.h:72
OVR_FORCE_INLINE Recorder & GetRecorder()
Definition: OVR_Recording.h:77
OVR_FORCE_INLINE void SetRecordingMode(RecordingMode)
Definition: OVR_Recording.h:71