Operator Console
|
The class underlying the setup dialog. More...
#include <Setup.h>
Public Types | |
enum | { IDD = IDD_SETUP } |
enum | { IDD = IDD_SETUP } |
Public Member Functions | |
CSetup (CWnd *pParent=NULL) | |
CSetup (CWnd *pParent, const setup_settings &input_settings) | |
virtual | ~CSetup () |
virtual BOOL | OnInitDialog () |
afx_msg void | OnChangeWidth () |
afx_msg void | OnChangeHeight () |
afx_msg void | OnLbnSelchangeDeviceList () |
afx_msg void | OnSelchangeDeviceid () |
afx_msg void | OnSelchangeBitsperpixel () |
afx_msg void | OnSelchangeComboBayer () |
afx_msg void | OnChangeEditBrowse () |
afx_msg void | OnChangeEditbrowseProgpath () |
afx_msg void | OnChangeEditbrowseInifile () |
afx_msg void | OnChangeEditPartnumber () |
afx_msg void | OnChangeEditSerialnumber () |
int | GetDeviceID (void) const |
int | GetBitsPerPixel (void) const |
CSetup (CWnd *pParent=NULL) | |
CSetup (CWnd *pParent, const setup_settings &input_settings) | |
virtual | ~CSetup () |
virtual BOOL | OnInitDialog () |
afx_msg void | OnChangeWidth () |
afx_msg void | OnChangeHeight () |
afx_msg void | OnLbnSelchangeDeviceList () |
afx_msg void | OnSelchangeDeviceid () |
afx_msg void | OnSelchangeBitsperpixel () |
afx_msg void | OnSelchangeComboBayer () |
afx_msg void | OnChangeEditBrowse () |
afx_msg void | OnChangeEditbrowseProgpath () |
afx_msg void | OnChangeEditbrowseInifile () |
afx_msg void | OnChangeEditPartnumber () |
afx_msg void | OnChangeEditSerialnumber () |
int | GetDeviceID (void) const |
int | GetBitsPerPixel (void) const |
Public Attributes | |
CEdit | c_setup_width |
The CEdit box for image width (in pixels) More... | |
CEdit | c_setup_height |
The CEdit box for image height (in pixels) More... | |
CListBox | c_device_list |
The CListBox containing the names of supported devices (Aptina DevWare, Omnivision, etc.) More... | |
CComboBox | c_combo_deviceid |
The CCombobox drop-down list containing the two valid device IDs (only visible for Epiphan) More... | |
CComboBox | c_combo_bits_per_pixel |
The CCombobox drop-down list containing the valid bits-per-pixel values (only visible for Omnivision) More... | |
CComboBox | c_combo_bayer |
The CCombobox drop-down list containing the valid Bayer pattern indexes (only visible for Omnivision) More... | |
CMFCEditBrowseCtrl | c_edit_browse |
[OPTIONAL INPUT] The MFCEditBrowse that allows the user to navigate the file system to locate an Omnivision register file (only visible for Omnivision) More... | |
CEdit | c_edit_part_number |
[OPTIONAL INPUT] The CEdit box for the camera part number to be reported in the JSON output More... | |
CEdit | c_edit_serial_number |
[OPTIONAL INPUT] The CEdit box for the camera serial number to be reported in the JSON output More... | |
CMFCEditBrowseCtrl | c_editbrowse_inifile |
The MFCEditBrowse that allows the user to navigate the file system to locate an Imatest INI file. More... | |
CMFCEditBrowseCtrl | c_editbrowse_prog_path |
[Currently set to read-only] The MFCEditBrowse that allows the user to navigate the file system to locate the Imatest program path More... | |
setup_settings | m_setup_settings |
this contains settings for the setup dialog including the strings to fill the various CcomboBoxes and CListBoxes More... | |
Protected Member Functions | |
virtual void | DoDataExchange (CDataExchange *pDX) |
virtual void | DoDataExchange (CDataExchange *pDX) |
Private Member Functions | |
void | ShowOmnivisionElements (void) |
This function shows dialog elements that are meant only for Omnivision and hides those meant for Epiphan. More... | |
void | ShowNormalElements (void) |
This function hides dialog elements that are meant only for Omnivision or Epiphan. More... | |
void | ShowEpiphanElements (void) |
This function shows dialog elements that are meant only for Epiphan and hides those meant for Omnivision. More... | |
void | ShowAllElements (void) |
This function shows dialog elements that are meant only for Omnivision or Epiphan. More... | |
void | ShowOmnivisionElements (void) |
This function shows dialog elements that are meant only for Omnivision and hides those meant for Epiphan. More... | |
void | ShowNormalElements (void) |
This function hides dialog elements that are meant only for Omnivision or Epiphan. More... | |
void | ShowEpiphanElements (void) |
This function shows dialog elements that are meant only for Epiphan and hides those meant for Omnivision. More... | |
void | ShowAllElements (void) |
This function shows dialog elements that are meant only for Omnivision or Epiphan. More... | |
The class underlying the setup dialog.
This dialog allows the user to select between different camera sources (which must already be functioning) and input the necessary data, e.g. image width in pixels. Additionally, the user can supply the location of the ini file to be used with Imatest as well as the camera part number and serial number.
CSetup::CSetup | ( | CWnd * | pParent = NULL | ) |
CSetup::CSetup | ( | CWnd * | pParent, |
const setup_settings & | input_settings | ||
) |
References m_setup_settings.
CSetup::CSetup | ( | CWnd * | pParent = NULL | ) |
CSetup::CSetup | ( | CWnd * | pParent, |
const setup_settings & | input_settings | ||
) |
|
virtual |
|
protectedvirtual |
References c_combo_bayer, c_combo_bits_per_pixel, c_combo_deviceid, c_device_list, c_edit_browse, c_edit_part_number, c_edit_serial_number, c_editbrowse_inifile, c_editbrowse_prog_path, c_setup_height, c_setup_width, IDC_BITSPERPIXEL, IDC_COMBO_BAYER, IDC_DEVICE_LIST, IDC_DEVICEID, IDC_EDIT_BROWSE, IDC_EDIT_PARTNUMBER, IDC_EDIT_SERIALNUMBER, IDC_EDITBROWSE_INIFILE, IDC_EDITBROWSE_PROGPATH, IDC_HEIGHT, and IDC_WIDTH.
|
protectedvirtual |
int CSetup::GetBitsPerPixel | ( | void | ) | const |
int CSetup::GetBitsPerPixel | ( | void | ) | const |
References setup_settings::bits_per_pixel, and m_setup_settings.
int CSetup::GetDeviceID | ( | void | ) | const |
int CSetup::GetDeviceID | ( | void | ) | const |
References setup_settings::epiphan_deviceID, and m_setup_settings.
void CSetup::OnChangeEditBrowse | ( | ) |
References c_edit_browse, m_setup_settings, and setup_settings::omnivision_reg_file.
afx_msg void CSetup::OnChangeEditBrowse | ( | ) |
void CSetup::OnChangeEditbrowseInifile | ( | ) |
References c_editbrowse_inifile, setup_settings::ini_file, and m_setup_settings.
afx_msg void CSetup::OnChangeEditbrowseInifile | ( | ) |
void CSetup::OnChangeEditbrowseProgpath | ( | ) |
References c_editbrowse_prog_path, m_setup_settings, and setup_settings::program_path.
afx_msg void CSetup::OnChangeEditbrowseProgpath | ( | ) |
afx_msg void CSetup::OnChangeEditPartnumber | ( | ) |
void CSetup::OnChangeEditPartnumber | ( | ) |
References c_edit_part_number, m_setup_settings, and setup_settings::part_number.
afx_msg void CSetup::OnChangeEditSerialnumber | ( | ) |
void CSetup::OnChangeEditSerialnumber | ( | ) |
References c_edit_serial_number, m_setup_settings, and setup_settings::serial_number.
void CSetup::OnChangeHeight | ( | ) |
References c_setup_height, setup_settings::height, and m_setup_settings.
afx_msg void CSetup::OnChangeHeight | ( | ) |
afx_msg void CSetup::OnChangeWidth | ( | ) |
void CSetup::OnChangeWidth | ( | ) |
|
virtual |
References setup_settings::allowed_bits_per_pixel, setup_settings::bayer, setup_settings::bayer_list, setup_settings::bits_per_pixel, c_combo_bayer, c_combo_bits_per_pixel, c_combo_deviceid, c_device_list, c_edit_browse, c_edit_part_number, c_edit_serial_number, c_editbrowse_inifile, c_editbrowse_prog_path, c_setup_height, c_setup_width, setup_settings::device_list, setup_settings::epiphan_deviceID, setup_settings::epiphan_deviceID_list, setup_settings::height, setup_settings::ini_file, m_setup_settings, setup_settings::omnivision_reg_file, setup_settings::part_number, setup_settings::program_path, setup_settings::serial_number, ShowEpiphanElements(), ShowNormalElements(), ShowOmnivisionElements(), setup_settings::sourceID, and setup_settings::width.
|
virtual |
void CSetup::OnLbnSelchangeDeviceList | ( | ) |
References c_device_list, setup_settings::device_list, m_setup_settings, ShowEpiphanElements(), ShowNormalElements(), ShowOmnivisionElements(), and setup_settings::sourceID.
afx_msg void CSetup::OnLbnSelchangeDeviceList | ( | ) |
afx_msg void CSetup::OnSelchangeBitsperpixel | ( | ) |
void CSetup::OnSelchangeBitsperpixel | ( | ) |
References setup_settings::allowed_bits_per_pixel, setup_settings::bits_per_pixel, c_combo_bits_per_pixel, and m_setup_settings.
afx_msg void CSetup::OnSelchangeComboBayer | ( | ) |
void CSetup::OnSelchangeComboBayer | ( | ) |
References setup_settings::bayer, setup_settings::bayer_list, c_combo_bayer, and m_setup_settings.
afx_msg void CSetup::OnSelchangeDeviceid | ( | ) |
void CSetup::OnSelchangeDeviceid | ( | ) |
References c_combo_deviceid, setup_settings::epiphan_deviceID, setup_settings::epiphan_deviceID_list, and m_setup_settings.
|
private |
This function shows dialog elements that are meant only for Omnivision or Epiphan.
|
private |
This function shows dialog elements that are meant only for Omnivision or Epiphan.
References c_combo_bayer, c_combo_bits_per_pixel, c_combo_deviceid, c_edit_browse, IDC_STATIC_BAYER, IDC_STATIC_BITSPERPIXEL, IDC_STATIC_BROWSE, and IDC_STATIC_DEVICEID.
|
private |
This function shows dialog elements that are meant only for Epiphan and hides those meant for Omnivision.
|
private |
This function shows dialog elements that are meant only for Epiphan and hides those meant for Omnivision.
References c_combo_bayer, c_combo_bits_per_pixel, c_combo_deviceid, c_edit_browse, IDC_STATIC_BAYER, IDC_STATIC_BITSPERPIXEL, IDC_STATIC_BROWSE, and IDC_STATIC_DEVICEID.
Referenced by OnInitDialog(), and OnLbnSelchangeDeviceList().
|
private |
This function hides dialog elements that are meant only for Omnivision or Epiphan.
References c_combo_bayer, c_combo_bits_per_pixel, c_combo_deviceid, c_edit_browse, IDC_STATIC_BAYER, IDC_STATIC_BITSPERPIXEL, IDC_STATIC_BROWSE, and IDC_STATIC_DEVICEID.
Referenced by OnInitDialog(), and OnLbnSelchangeDeviceList().
|
private |
This function hides dialog elements that are meant only for Omnivision or Epiphan.
|
private |
This function shows dialog elements that are meant only for Omnivision and hides those meant for Epiphan.
|
private |
This function shows dialog elements that are meant only for Omnivision and hides those meant for Epiphan.
References c_combo_bayer, c_combo_bits_per_pixel, c_combo_deviceid, c_edit_browse, IDC_STATIC_BAYER, IDC_STATIC_BITSPERPIXEL, IDC_STATIC_BROWSE, and IDC_STATIC_DEVICEID.
Referenced by OnInitDialog(), and OnLbnSelchangeDeviceList().
CComboBox CSetup::c_combo_bayer |
The CCombobox drop-down list containing the valid Bayer pattern indexes (only visible for Omnivision)
Referenced by DoDataExchange(), OnInitDialog(), OnSelchangeComboBayer(), ShowAllElements(), ShowEpiphanElements(), ShowNormalElements(), and ShowOmnivisionElements().
CComboBox CSetup::c_combo_bits_per_pixel |
The CCombobox drop-down list containing the valid bits-per-pixel values (only visible for Omnivision)
Referenced by DoDataExchange(), OnInitDialog(), OnSelchangeBitsperpixel(), ShowAllElements(), ShowEpiphanElements(), ShowNormalElements(), and ShowOmnivisionElements().
CComboBox CSetup::c_combo_deviceid |
The CCombobox drop-down list containing the two valid device IDs (only visible for Epiphan)
Referenced by DoDataExchange(), OnInitDialog(), OnSelchangeDeviceid(), ShowAllElements(), ShowEpiphanElements(), ShowNormalElements(), and ShowOmnivisionElements().
CListBox CSetup::c_device_list |
The CListBox containing the names of supported devices (Aptina DevWare, Omnivision, etc.)
Referenced by DoDataExchange(), OnInitDialog(), and OnLbnSelchangeDeviceList().
CMFCEditBrowseCtrl CSetup::c_edit_browse |
[OPTIONAL INPUT] The MFCEditBrowse that allows the user to navigate the file system to locate an Omnivision register file (only visible for Omnivision)
Referenced by DoDataExchange(), OnChangeEditBrowse(), OnInitDialog(), ShowAllElements(), ShowEpiphanElements(), ShowNormalElements(), and ShowOmnivisionElements().
CEdit CSetup::c_edit_part_number |
[OPTIONAL INPUT] The CEdit box for the camera part number to be reported in the JSON output
Referenced by DoDataExchange(), OnChangeEditPartnumber(), and OnInitDialog().
CEdit CSetup::c_edit_serial_number |
[OPTIONAL INPUT] The CEdit box for the camera serial number to be reported in the JSON output
Referenced by DoDataExchange(), OnChangeEditSerialnumber(), and OnInitDialog().
CMFCEditBrowseCtrl CSetup::c_editbrowse_inifile |
The MFCEditBrowse that allows the user to navigate the file system to locate an Imatest INI file.
Referenced by DoDataExchange(), OnChangeEditbrowseInifile(), and OnInitDialog().
CMFCEditBrowseCtrl CSetup::c_editbrowse_prog_path |
[Currently set to read-only] The MFCEditBrowse that allows the user to navigate the file system to locate the Imatest program path
Referenced by DoDataExchange(), OnChangeEditbrowseProgpath(), and OnInitDialog().
CEdit CSetup::c_setup_height |
The CEdit box for image height (in pixels)
Referenced by DoDataExchange(), OnChangeHeight(), and OnInitDialog().
CEdit CSetup::c_setup_width |
The CEdit box for image width (in pixels)
Referenced by DoDataExchange(), and OnInitDialog().
setup_settings CSetup::m_setup_settings |
this contains settings for the setup dialog including the strings to fill the various CcomboBoxes and CListBoxes
and is fed back to the OperatorConsoleApp through a copy operation
Referenced by CSetup(), GetBitsPerPixel(), GetDeviceID(), COperatorConsoleApp::InitInstance(), OnChangeEditBrowse(), OnChangeEditbrowseInifile(), OnChangeEditbrowseProgpath(), OnChangeEditPartnumber(), OnChangeEditSerialnumber(), OnChangeHeight(), OnInitDialog(), OnLbnSelchangeDeviceList(), OnSelchangeBitsperpixel(), OnSelchangeComboBayer(), OnSelchangeDeviceid(), and COperatorConsoleApp::OnSetup().