Operator Console
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
setup_settings Struct Reference

A struct that contains the various data controlled by the setup dialog. More...

#include <setup_settings.h>

Public Member Functions

 setup_settings (void)
 default constructor More...
 
 setup_settings (void)
 default constructor More...
 

Public Attributes

int width
 image width in pixels More...
 
int height
 image height in pixels More...
 
int bits_per_pixel
 Used for Omnivision only: number of bits per pixel (8,10,12 only) More...
 
int epiphan_deviceID
 Used for Epiphan only: the device ID (0 or 1 only) More...
 
int sourceID
 sourceID for acquire_image() More...
 
int bayer
 Used for Omnivision only: Bayer pattern index. More...
 
CString omnivision_reg_file
 [OPTIONAL INPUT] Used for Omnivision only: a fully-qualified filename (including full path) for a file containing camera register settings More...
 
CString part_number
 [OPTIONAL INPUT] The user supplied camera part number to be used in the JSON output More...
 
CString serial_number
 [OPTIONAL INPUT] The user supplied camera part serial to be used in the JSON output More...
 
CString ini_file
 The fully-qualified file name (including full path) for the imatest.ini file. More...
 
CString program_path
 The Imatest IT program path. More...
 
std::vector< CString > epiphan_deviceID_list
 The list of allowed Epiphan device IDs used to fill the c_combo_deviceid CComboBox in Setup.h/cpp. More...
 
std::vector< CString > device_list
 The list of allowed device names used to fill the c_device_list CListBox in Setup.h/cpp. More...
 
std::vector< CString > bayer_list
 The list of allowed Bayer patterns used to fill the c_combo_bayer CComboBox in Setup.h/cpp. More...
 
std::vector< int > allowed_bits_per_pixel
 The list of allowed bits-per-pixels used to fill the c_combo_bits_per_pixel CComboBox in Setup.h/cpp. More...
 

Detailed Description

A struct that contains the various data controlled by the setup dialog.

Constructor & Destructor Documentation

setup_settings::setup_settings ( void  )
inline

default constructor

References allowed_bits_per_pixel, bayer_list, device_list, and epiphan_deviceID_list.

51  : width(0), height(0), bits_per_pixel(0), epiphan_deviceID(1), sourceID(6), bayer(0) {
52 
54  //
55  // Do not change these vectors without updating
56  // the functions that rely upon them in Setup.cpp!!!!
57  //
59  epiphan_deviceID_list.resize(2,_T("0"));
60  epiphan_deviceID_list[1] = _T("1");
61 
62  device_list.resize(6,_T(""));
63  device_list[0] = _T("Aptina DevWare");
64  device_list[1] = _T("Omnivision OVTA");
65  device_list[2] = _T("Toshiba ImaTuning");
66  device_list[3] = _T("STM Conduit");
67  device_list[4] = _T("Graphin EasyLab");
68  device_list[5] = _T("Epiphan");
69 
70  bayer_list.resize(4,_T("Red in R1C1 (RG/GB)"));
71  bayer_list[1] = _T("Red in R1C2 (GR/BG)");
72  bayer_list[2] = _T("Red in R2C1 (GB/RG)");
73  bayer_list[3] = _T("Red in R2C2 (BG/GR)");
74 
75  allowed_bits_per_pixel.resize(1,8); // only 1-byte pixels for now
76  //allowed_bits_per_pixel.resize(3,8);
77  //allowed_bits_per_pixel[1] = 10;
78  //allowed_bits_per_pixel[2] = 12;
79  };
int sourceID
sourceID for acquire_image()
Definition: setup_settings.h:33
std::vector< int > allowed_bits_per_pixel
The list of allowed bits-per-pixels used to fill the c_combo_bits_per_pixel CComboBox in Setup...
Definition: setup_settings.h:45
int epiphan_deviceID
Used for Epiphan only: the device ID (0 or 1 only)
Definition: setup_settings.h:32
int bits_per_pixel
Used for Omnivision only: number of bits per pixel (8,10,12 only)
Definition: setup_settings.h:31
std::vector< CString > device_list
The list of allowed device names used to fill the c_device_list CListBox in Setup.h/cpp.
Definition: setup_settings.h:43
int width
image width in pixels
Definition: setup_settings.h:29
std::vector< CString > bayer_list
The list of allowed Bayer patterns used to fill the c_combo_bayer CComboBox in Setup.h/cpp.
Definition: setup_settings.h:44
std::vector< CString > epiphan_deviceID_list
The list of allowed Epiphan device IDs used to fill the c_combo_deviceid CComboBox in Setup...
Definition: setup_settings.h:42
int bayer
Used for Omnivision only: Bayer pattern index.
Definition: setup_settings.h:35
int height
image height in pixels
Definition: setup_settings.h:30
setup_settings::setup_settings ( void  )
inline

default constructor

References allowed_bits_per_pixel, bayer_list, device_list, and epiphan_deviceID_list.

51  : width(0), height(0), bits_per_pixel(0), epiphan_deviceID(1), sourceID(6), bayer(0) {
52 
54  //
55  // Do not change these vectors without updating
56  // the functions that rely upon them in Setup.cpp,CSetup::OnLbnSelchangeDeviceList() and CSetup::OnInitDialog()!!!!
57  //
59  epiphan_deviceID_list.resize(2,_T("0"));
60  epiphan_deviceID_list[1] = _T("1");
61 
62  device_list.resize(7,_T(""));
63  device_list[0] = _T("Aptina DevWare");
64  device_list[1] = _T("Omnivision OVTA");
65  device_list[2] = _T("Toshiba ImaTuning");
66  device_list[3] = _T("STM Conduit");
67  device_list[4] = _T("Graphin EasyLab");
68  device_list[5] = _T("Epiphan");
69  device_list[6] = _T("DirectShow camera");
70 
71  bayer_list.resize(4,_T("Red in R1C1 (RG/GB)"));
72  bayer_list[1] = _T("Red in R1C2 (GR/BG)");
73  bayer_list[2] = _T("Red in R2C1 (GB/RG)");
74  bayer_list[3] = _T("Red in R2C2 (BG/GR)");
75 
76  allowed_bits_per_pixel.resize(1,8); // only 1-byte pixels for now
77  //allowed_bits_per_pixel.resize(3,8);
78  //allowed_bits_per_pixel[1] = 10;
79  //allowed_bits_per_pixel[2] = 12;
80  };
int sourceID
sourceID for acquire_image()
Definition: setup_settings.h:33
std::vector< int > allowed_bits_per_pixel
The list of allowed bits-per-pixels used to fill the c_combo_bits_per_pixel CComboBox in Setup...
Definition: setup_settings.h:45
int epiphan_deviceID
Used for Epiphan only: the device ID (0 or 1 only)
Definition: setup_settings.h:32
int bits_per_pixel
Used for Omnivision only: number of bits per pixel (8,10,12 only)
Definition: setup_settings.h:31
std::vector< CString > device_list
The list of allowed device names used to fill the c_device_list CListBox in Setup.h/cpp.
Definition: setup_settings.h:43
int width
image width in pixels
Definition: setup_settings.h:29
std::vector< CString > bayer_list
The list of allowed Bayer patterns used to fill the c_combo_bayer CComboBox in Setup.h/cpp.
Definition: setup_settings.h:44
std::vector< CString > epiphan_deviceID_list
The list of allowed Epiphan device IDs used to fill the c_combo_deviceid CComboBox in Setup...
Definition: setup_settings.h:42
int bayer
Used for Omnivision only: Bayer pattern index.
Definition: setup_settings.h:35
int height
image height in pixels
Definition: setup_settings.h:30

Member Data Documentation

std::vector< int > setup_settings::allowed_bits_per_pixel

The list of allowed bits-per-pixels used to fill the c_combo_bits_per_pixel CComboBox in Setup.h/cpp.

Referenced by CSetup::OnInitDialog(), CSetup::OnSelchangeBitsperpixel(), and setup_settings().

int setup_settings::bayer

Used for Omnivision only: Bayer pattern index.

Only takes values 1 through 4. 1 => Red in R1C1, 2=> Red in R1C2, 3=> Red in R2C1, 4=> Red in R2C2

Referenced by CSetup::OnInitDialog(), CSetup::OnSelchangeComboBayer(), COperatorConsoleApp::ReadINISettings(), and COperatorConsoleApp::WriteINISettings().

std::vector< CString > setup_settings::bayer_list

The list of allowed Bayer patterns used to fill the c_combo_bayer CComboBox in Setup.h/cpp.

Referenced by CSetup::OnInitDialog(), CSetup::OnSelchangeComboBayer(), and setup_settings().

int setup_settings::bits_per_pixel
std::vector< CString > setup_settings::device_list

The list of allowed device names used to fill the c_device_list CListBox in Setup.h/cpp.

Referenced by CSetup::OnInitDialog(), CSetup::OnLbnSelchangeDeviceList(), and setup_settings().

int setup_settings::epiphan_deviceID
std::vector< CString > setup_settings::epiphan_deviceID_list

The list of allowed Epiphan device IDs used to fill the c_combo_deviceid CComboBox in Setup.h/cpp.

Referenced by CSetup::OnInitDialog(), CSetup::OnSelchangeDeviceid(), and setup_settings().

int setup_settings::height
CString setup_settings::ini_file

The fully-qualified file name (including full path) for the imatest.ini file.

Referenced by COperatorConsoleApp::Init(), COperatorConsoleApp::InitCamera(), CSetup::OnChangeEditbrowseInifile(), CSetup::OnInitDialog(), and COperatorConsoleApp::OnSetup().

CString setup_settings::omnivision_reg_file

[OPTIONAL INPUT] Used for Omnivision only: a fully-qualified filename (including full path) for a file containing camera register settings

Referenced by CSetup::OnChangeEditBrowse(), CSetup::OnInitDialog(), COperatorConsoleApp::ReadINISettings(), and COperatorConsoleApp::WriteINISettings().

CString setup_settings::part_number

[OPTIONAL INPUT] The user supplied camera part number to be used in the JSON output

Referenced by COperatorConsoleApp::Init(), CSetup::OnChangeEditPartnumber(), CSetup::OnInitDialog(), and COperatorConsoleApp::OnSetup().

CString setup_settings::program_path
CString setup_settings::serial_number

[OPTIONAL INPUT] The user supplied camera part serial to be used in the JSON output

Referenced by COperatorConsoleApp::Init(), CSetup::OnChangeEditSerialnumber(), CSetup::OnInitDialog(), and COperatorConsoleApp::OnSetup().

int setup_settings::sourceID

sourceID for acquire_image()

Only takes values 1 through 6. 1 => Aptina DevWare, 2 => Omnivision, 3 => Toshiba, 4 => STM Conduit, 5 => Graphin EasyLab, 6 => Epiphan

Referenced by COperatorConsoleApp::InitCamera(), CSetup::OnInitDialog(), CSetup::OnLbnSelchangeDeviceList(), COperatorConsoleApp::OnSetup(), COperatorConsoleApp::ReadINISettings(), and COperatorConsoleApp::WriteINISettings().

int setup_settings::width

The documentation for this struct was generated from the following file: