Visioscan Set SDK Libraries 1.0.14
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
4using namespace System;
5
6public enum class FilterMode { Median = 0, Average = 1, Max = 2 };
7
8public ref class WFilterType
9{
10public:
12 _filterType = new FilterType();
13 }
15 _filterType = new FilterType();
16 FilterTypeValue = toCopy->FilterTypeValue;
17 NumH = toCopy->NumH;
18 NumS = toCopy->NumS;
19 }
20
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 break;
51 case AVERAGE_FILTER:
52 return FilterMode::Average;
53 break;
54 case MAX_FILTER:
55 return FilterMode::Max;
56 break;
57 }
58 }
59
60 void set(FilterMode x) {
61 _filterType->SetFilterMode((int)x.GetHashCode());
62 }
63 }
64private:
65 FilterType* _filterType;
66};
67
Helper to encapsulate the the raw data error.
Definition FilterType.h:19
Definition WFilterType.h:9
WFilterType(WFilterType^ toCopy)
Definition WFilterType.h:14
~WFilterType()
Definition WFilterType.h:21
WFilterType()
Definition WFilterType.h:11
property unsigned int NumH
Definition WFilterType.h:26