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

Loading...
Searching...
No Matches
WFilterType.h
1#pragma once
2#include <NavigationSensor.h>
3
4 using namespace System;
5
6 public enum class FilterMode { Median = 0, Average = 1, Max = 2, Combo = 3 };
7
8 public ref class WFilterType
9{
10 public:
11 WFilterType() {
12 _filterType = new FilterType();
13 }
14 WFilterType(WFilterType^ toCopy) {
15 _filterType = new FilterType();
16 FilterTypeValue = toCopy->FilterTypeValue;
17 NumH = toCopy->NumH;
18 NumS = toCopy->NumS;
19 }
20
21 ~WFilterType() {
22 delete(_filterType);
23 }
24
25
26 property unsigned int NumH {
27 unsigned int get() {
28 return _filterType->GetNumH();
29 }
30 void set(unsigned int x) {
31 _filterType->SetNumH(x);
32 }
33 }
34
35 property unsigned int NumS {
36 unsigned int get() {
37 return _filterType->GetNumS();
38 }
39 void set(unsigned int x) {
40 _filterType->SetNumS(x);
41 }
42 }
43
44 property FilterMode FilterTypeValue {
45 FilterMode get() {
46 FILTER_MODE t = _filterType->GetFilterMode();
47 switch (t) {
48 case MEDIAN_FILTER:
49 return FilterMode::Median;
50 case AVERAGE_FILTER:
51 return FilterMode::Average;
52 case MAX_FILTER:
53 return FilterMode::Max;
54 case COMBO_FILTER:
55 return FilterMode::Combo;
56 }
57 }
58
59 void set(FilterMode x) {
60 switch (x) {
61 case FilterMode::Median:
62 _filterType->SetFilterMode(MEDIAN_FILTER);
63 break;
64 case FilterMode::Average:
65 _filterType->SetFilterMode(AVERAGE_FILTER);
66 break;
67 case FilterMode::Max:
68 _filterType->SetFilterMode(MAX_FILTER);
69 break;
70 case FilterMode::Combo:
71 _filterType->SetFilterMode(COMBO_FILTER);
72 break;
73 }
74 }
75 }
76 private:
77 FilterType* _filterType;
78};
79
FilterType
Helper to encapsulate the the raw data error.
Definition FilterType.h:20
WFilterType
Definition WFilterType.h:9
WFilterType::WFilterType
WFilterType(WFilterType^ toCopy)
Definition WFilterType.h:14
WFilterType::~WFilterType
~WFilterType()
Definition WFilterType.h:21
WFilterType::WFilterType
WFilterType()
Definition WFilterType.h:11
WFilterType::NumH
property unsigned int NumH
Definition WFilterType.h:26