| Visioscan Set SDK Libraries 1.0.28 Visioscan Set SDK Help documentation file for C++ and C++/CLI |

Loading...
Searching...
No Matches
WBaseDataRecorder.h
1#pragma once
2#pragma make_public(BaseDataRecorder)
3#include <string>
4#include "BaseDataRecorder.h"
5
6 using namespace System;
7 using namespace std;
8
9 public enum class RecorderStatus {
10 Stopped = 0,
11 Playing = 1,
12 Recording = 2,
13 FailedStartRecording = 3,
14 FailedInitialize = 4,
15 Paused = 5
16};
17
18 namespace WBase {
19 public ref class WBaseDataRecorder abstract
20 {
21 public :
22 virtual void Play() = 0;
23 virtual void Pause() = 0;
24 virtual void Stop() = 0;
25 virtual void Record() = 0;
26 virtual void ExportToCsv(String^ pPathToExport) = 0;
27
28 property RecorderStatus Status {
29 RecorderStatus get() {
30 switch (_dataRecorder->GetStatus()) {
31 case BaseDataRecorder::STOPPED:
32 return RecorderStatus::Stopped;
33 break;
34 case BaseDataRecorder::PLAYING:
35 return RecorderStatus::Playing;
36 break;
37 case BaseDataRecorder::RECORDING:
38 return RecorderStatus::Recording;
39 break;
40 case BaseDataRecorder::FAILED_START_RECORDING:
41 return RecorderStatus::FailedStartRecording;
42 break;
43 case BaseDataRecorder::FAILED_INITIALIZE:
44 return RecorderStatus::FailedInitialize;
45 break;
46 case BaseDataRecorder::PAUSED:
47 return RecorderStatus::Paused;
48 break;
49 }
50 }
51 }
52
53 property int FrameRate {
54 int get() {
55 return _dataRecorder->GetFrameRate();
56 }
57
58 void set(int x) {
59 _dataRecorder->SetFrameRate(x);
60 }
61 }
62
63 property long TotalFrame {
64 long get() {
65 return _dataRecorder->GetTotalFrame();
66 }
67 }
68
69 property long CurrentFramePosition {
70 long get() {
71 return _dataRecorder->GetCurrentFramePosition();
72 }
73 }
74
75 property BaseDataRecorder* __nativeRecorder {
76 BaseDataRecorder* get() {
77 return _dataRecorder;
78 }
79 }
80 protected:
81 BaseDataRecorder* _dataRecorder;
82 };
83}
84
WBase
Definition WBaseCommunication.h:16
WBase::abstract::Record
virtual void Record()=0
WBase::abstract::Pause
virtual void Pause()=0
WBase::abstract::Play
virtual void Play()=0
WBase::abstract::Stop
virtual void Stop()=0
WBase::abstract::ExportToCsv
virtual void ExportToCsv(String^ pPathToExport)=0