nuclear@0: /************************************************************************************ nuclear@0: nuclear@0: Filename : Util_LatencyTest2Reader.h nuclear@0: Content : Shared functionality for the DK2 latency tester nuclear@0: Created : July 8, 2014 nuclear@0: Authors : Volga Aksoy, Chris Taylor nuclear@0: nuclear@0: Copyright : Copyright 2014 Oculus VR, LLC All Rights reserved. nuclear@0: nuclear@0: Licensed under the Oculus VR Rift SDK License Version 3.2 (the "License"); nuclear@0: you may not use the Oculus VR Rift SDK except in compliance with the License, nuclear@0: which is provided at the time of installation or download, or which nuclear@0: otherwise accompanies this software in either electronic or hard copy form. nuclear@0: nuclear@0: You may obtain a copy of the License at nuclear@0: nuclear@0: http://www.oculusvr.com/licenses/LICENSE-3.2 nuclear@0: nuclear@0: Unless required by applicable law or agreed to in writing, the Oculus VR SDK nuclear@0: distributed under the License is distributed on an "AS IS" BASIS, nuclear@0: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. nuclear@0: See the License for the specific language governing permissions and nuclear@0: limitations under the License. nuclear@0: nuclear@0: *************************************************************************************/ nuclear@0: nuclear@0: #ifndef OVR_Util_LatencyTest2Reader_h nuclear@0: #define OVR_Util_LatencyTest2Reader_h nuclear@0: nuclear@0: #include "../Tracking/Tracking_SensorState.h" nuclear@0: #include "Util_LatencyTest2State.h" nuclear@0: nuclear@0: namespace OVR { namespace Util { nuclear@0: nuclear@0: nuclear@0: //----------------------------------------------------------------------------- nuclear@0: // RecordStateReader nuclear@0: nuclear@0: // User interface to retrieve pose from the sensor fusion subsystem nuclear@0: class RecordStateReader : public NewOverrideBase nuclear@0: { nuclear@0: protected: nuclear@0: const Tracking::CombinedSharedStateUpdater* Updater; nuclear@0: nuclear@0: public: nuclear@0: RecordStateReader() nuclear@0: : Updater(NULL) nuclear@0: { nuclear@0: } nuclear@0: nuclear@0: // Initialize the updater nuclear@0: void SetUpdater(const Tracking::CombinedSharedStateUpdater *updater) nuclear@0: { nuclear@0: Updater = updater; nuclear@0: } nuclear@0: nuclear@0: void GetRecordSet(FrameTimeRecordSet& recordset); nuclear@0: }; nuclear@0: nuclear@0: nuclear@0: }} // namespace OVR::Util nuclear@0: nuclear@0: #endif // OVR_Util_LatencyTest2Reader_h