-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathFilteringDlg.h
106 lines (86 loc) · 2.76 KB
/
FilteringDlg.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
// *****************************************************************************
//
// Copyright (c) 2008, Pleora Technologies Inc., All rights reserved.
//
// *****************************************************************************
#pragma once
#include "resource.h"
#include <ImageFiltering.h>
#include <DisplayThread.h>
#include "HistogramCtrl.h"
class FilteringDlg : public CDialog
{
public:
FilteringDlg( ImageFiltering *aImageFiltering, DisplayThread *aDisplayThread, CWnd* pParent = NULL );
virtual ~FilteringDlg();
enum { IDD = IDD_FILTERING };
void ToDialog();
void FromDialog();
protected:
CButton mRGBFilterCheckBox;
CEdit mRGEdit;
CEdit mGGEdit;
CEdit mBGEdit;
CEdit mROEdit;
CEdit mGOEdit;
CEdit mBOEdit;
CSpinButtonCtrl mRGSpin;
CSpinButtonCtrl mGGSpin;
CSpinButtonCtrl mBGSpin;
CSpinButtonCtrl mROSpin;
CSpinButtonCtrl mGOSpin;
CSpinButtonCtrl mBOSpin;
CSliderCtrl mRGSlider;
CSliderCtrl mGGSlider;
CSliderCtrl mBGSlider;
CSliderCtrl mROSlider;
CSliderCtrl mGOSlider;
CSliderCtrl mBOSlider;
CButton mWBButton;
CButton mResetButton;
CComboBox mBayerCombo;
CComboBox mTapCombo;
CStatic mGainsLabel;
CStatic mOffsetsLabel;
CStatic mRedLabel;
CStatic mGreenLabel;
CStatic mBlueLabel;
CButton mHistogramCheck;
HistogramCtrl *mHistogramCtrl;
CSliderCtrl mDarkSlider;
CSliderCtrl mLightSlider;
CButton mAutoConfigButton;
CFont mBoldFont;
virtual void DoDataExchange(CDataExchange* pDX);
BOOL PreTranslateMessage(MSG *pMsg);
afx_msg void OnOK();
afx_msg void OnCancel();
BOOL OnInitDialog();
afx_msg void OnBnClickedEnabledcheck();
afx_msg void OnEnChange();
afx_msg void OnBnClickedWbbutton();
afx_msg void OnBnClickedResetbutton();
afx_msg void OnCbnSelchange();
afx_msg void OnDeltapos(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnBnClickedHistogramenabled();
afx_msg void OnBnClickedAutoconfigure();
DECLARE_MESSAGE_MAP()
void EnableInterface();
void LoadHistogram();
bool GetValueD( CEdit *aEdit, double &aValue );
bool GetValueD( const CString &aStr, double &aValue );
bool GetValueI( CEdit *aEdit, int32_t &aValue );
bool GetValueI( const CString &aStr, int32_t &aValue );
double FromGainSlider( CSliderCtrl *aSlider );
void ToGainSlider( CSliderCtrl *aSlider, double &aValue );
CString ToStr( double aValue );
CString ToStr( int32_t aValue );
void SyncSpins();
void SyncSliders();
bool mLoading;
int mSkipSyncSpinsCount;
int mSkipSyncSlidersCount;
ImageFiltering *mImageFiltering;
DisplayThread *mDisplayThread;
};