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

Loading...
Searching...
No Matches
WBaseSensor.h
1#pragma once
2
3#include "BaseSensor.h"
4#include "WBaseDataRecorder.h"
5#include <List>
6#include "WAvailableResolution.h"
7#include "WSoftwareVersion.h"
8#include "WConfigurationResult.h"
9#include "WContaminationStatus.h"
10
11#pragma make_public(BaseSensor)
12 using namespace WUtils;
13 using namespace System::Collections;
14 using namespace System::Collections::Generic;
15
16 namespace WBase {
17 public ref class WBaseSensor abstract
18 {
19 public:
20 property WBaseCommunication^ Communication {
21 WBaseCommunication^ get() {
22 return _communication;
23 }
24
25 void set(WBaseCommunication^ x) {
26 _communication = x;
27 _sensor->SetCommunication(x->__nativeCommunication);
28 }
29 }
30
31 property WBaseDataRecorder^ DataRecorder {
32 WBaseDataRecorder^ get() {
33 return _dataRecorder;
34 }
35 void set(WBaseDataRecorder^ x) {
36 _dataRecorder = x;
37 _sensor->SetDataRecorder(_dataRecorder->__nativeRecorder);
38 }
39 }
40
41 List<WAvailableResolution^>^ GetAvailableResolutions() {
42 List<WAvailableResolution^>^ toReturn = gcnew List<WAvailableResolution^>();
43 vector<AvailableResolution> nativeRes = _sensor->GetAvailableResolutions();
44
45 for (int i = 0; i < nativeRes.size(); i++) {
46 WAvailableResolution^ toAdd = gcnew WAvailableResolution();
47 toAdd->Code = static_cast<AngularResolution>(nativeRes[i].GetCode());
48 toAdd->Name = gcnew String(nativeRes[i].GetName().c_str());
49 toReturn->Add(toAdd);
50 }
51
52 return toReturn;
53 }
54 static List<WAvailableResolution^>^ GetAvailableResolutions(ProductIdentification productIdentifier) {
55 List<WAvailableResolution^>^ toReturn = gcnew List<WAvailableResolution^>();
56 vector<AvailableResolution> nativeRes = BaseSensor::GetAvailableResolutions(static_cast<int>(productIdentifier));
57
58 for (int i = 0; i < nativeRes.size(); i++) {
59 WAvailableResolution^ toAdd = gcnew WAvailableResolution();
60 toAdd->Code = static_cast<AngularResolution>(nativeRes[i].GetCode());
61 toAdd->Name = gcnew String(nativeRes[i].GetName().c_str());
62 toReturn->Add(toAdd);
63 }
64
65 return toReturn;
66 }
67 virtual String^ GetDeviceName() = 0;
68 virtual WConfigurationResult^ SetDeviceName(String^ pName) = 0;
69 virtual long GetRuntimeHours() = 0;
70 virtual int GetTemperature() = 0;
71 virtual unsigned int GetPlatformVersion() = 0;
72 virtual WContaminationStatus^ GetContaminationStatus() = 0;
73 virtual WCommunicationStatus^ Initialize() = 0;
74 virtual WSoftwareVersion^ GetVersion() = 0;
75 protected:
76 BaseSensor* _sensor;
77 private:
78 WBaseCommunication^ _communication;
79 WBaseDataRecorder^ _dataRecorder;
80 };
81}
WUtils
Definition WAvailableResolution.h:7
WBase
Definition WBaseCommunication.h:16
WEnumerations::ProductIdentification
ProductIdentification
Definition WEnums.h:5
WEnumerations::AngularResolution
AngularResolution
Definition WEnums.h:8
WUtils::WAvailableResolution
Definition WAvailableResolution.h:9
WUtils::WAvailableResolution::Code
property AngularResolution Code
Definition WAvailableResolution.h:25
WBase::abstract::_sensor
BaseSensor * _sensor
Definition WBaseSensor.h:76
WBase::abstract::GetRuntimeHours
virtual long GetRuntimeHours()=0
WBase::abstract::GetContaminationStatus
virtual WContaminationStatus GetContaminationStatus()=0
WBase::abstract::GetPlatformVersion
virtual unsigned int GetPlatformVersion()=0
WBase::abstract::GetVersion
virtual WSoftwareVersion GetVersion()=0
WBase::abstract::GetTemperature
virtual int GetTemperature()=0
WBase::abstract::Initialize
virtual WCommunicationStatus Initialize()=0
WBase::abstract::SetDeviceName
virtual WConfigurationResult SetDeviceName(String^ pName)=0
WUtils::WCommunicationStatus
Definition WCommunicationStatus.h:16
WConfigurationResult
A wrapper on the ConfigurationResult data encapsulation.
Definition WConfigurationResult.h:16
WContaminationStatus
Definition WContaminationStatus.h:6
WUtils::WSoftwareVersion
A wrapper on the SoftwareVersion data encapsulation.
Definition WSoftwareVersion.h:12