Operator Console
|
The main class for the Operator Console Application. More...
#include <OperatorConsole.h>
Public Member Functions | |
COperatorConsoleApp () | |
COperatorConsoleApp construction. More... | |
~COperatorConsoleApp () | |
void | Quit () |
BOOL | InitInstance () |
COperatorConsoleApp initialization. More... | |
int | GetImageWidth () |
int | GetImageHeight () |
bool | ReadINISettings (void) |
This function reads in items for the setup dialog from imatest.ini. More... | |
void | WriteINISettings (void) |
This function writes items for the setup dialog to imatest.ini. More... | |
bool | ReInit (void) |
This function allows for reallocation of the various image buffers when we change the image size. More... | |
bool | ReadPassFail (void) |
This function reads in the pass/fail variable values as in the pass/fail file listed in the imatest INI file. More... | |
bool | WritePassFail (void) |
This function writes the pass/fail variables to the pass/fail file listed in the imatest INI file. More... | |
COperatorConsoleApp () | |
~COperatorConsoleApp () | |
void | Quit () |
BOOL | InitInstance () |
int | GetImageWidth () |
int | GetImageHeight () |
bool | ReadINISettings (void) |
This function reads in items for the setup dialog from imatest.ini. More... | |
void | WriteINISettings (void) |
This function writes items for the setup dialog to imatest.ini. More... | |
bool | ReInit (void) |
This function allows for reallocation of the various image buffers when we change the image size. More... | |
bool | ReadPassFail (void) |
This function reads in the pass/fail variable values as in the pass/fail file listed in the imatest INI file. More... | |
bool | WritePassFail (void) |
This function writes the pass/fail variables to the pass/fail file listed in the imatest INI file. More... | |
void | SaveLog (void) |
A public function to save the contents of the log CEdit to m_logFileName. More... | |
Static Public Member Functions | |
static bool | FileExists (LPCTSTR filePathName, char *errorMsg, int len) |
static bool | FileExists (LPCTSTR filePathName, char *errorMsg, int len) |
Public Attributes | |
CPassFailSettings | m_PFSettings |
Contains the pass/fail criteria given by the pass/fail file listed in imatest.ini. More... | |
Protected Member Functions | |
bool | AllocateImageBuf () |
bool | CheckFiles (CString &msg) |
void | CloseLibs () |
Function that closes the Imatest library. Note that once closed, the library cannot be reinitialized. More... | |
void | GetResults (ImageTest *test) |
void | GetStdoutMsg (StdoutThread &data, CString &str) |
const char * | GetTestName () |
bool | Init () |
Init perform application-specific initialization. More... | |
bool | InitBlemishAcq () |
bool | InitBlemishThread () |
bool | InitCamera () |
bool | InitCameraThread () |
bool | InitLibs () |
Function that initializes the Imatest library. Must be called before any Imatest library functions are used. More... | |
bool | InitModelessThread () |
bool | InitOutput () |
bool | InitSFRplusAcq () |
bool | InitSFRplusThread () |
bool | LoadConfig () |
void | MakeHandles () |
void | OnBlemishDone (WPARAM wParam, LPARAM lParam) |
Called after MSG_BLEMISH_DONE is received. More... | |
void | OnFrameReady (WPARAM wParam, LPARAM lParam) |
Called after MSG_FRAME_READY is received. More... | |
void | OnPassFail (WPARAM wParam, LPARAM lParam) |
Called after MSG_PASS_FAIL is received. More... | |
void | OnRunTest (WPARAM wParam, LPARAM lParam) |
Called after MSG_RUN_TEST is received. More... | |
void | OnSFRplusDone (WPARAM wParam, LPARAM lParam) |
Called after MSG_SFRPLUS_DONE is received. More... | |
void | OnSetBlemish (WPARAM wParam, LPARAM lParam) |
Called after MSG_SET_BLEMISH is received. More... | |
void | OnSetSFRplus (WPARAM wParam, LPARAM lParam) |
Called after MSG_SET_SFRPLUS is received. More... | |
void | OnShowJSON (UINT wParam, LONG lParam) |
Called after MSG_JSON is received. More... | |
void | OnStop (WPARAM wParam, LPARAM lParam) |
Called after MSG_STOP is received. More... | |
void | OnStart (WPARAM wParam, LPARAM lParam) |
Called after MSG_START is received. More... | |
void | OnSetup (WPARAM wParam, LPARAM lParam) |
Called after MSG_SETUP is received. More... | |
void | OnUpdateStderr () |
Called after MSG_STDERR is received. More... | |
void | OnUpdateStdout () |
Called after MSG_STDOUT is received. More... | |
bool | SaveConfig () |
void | SaveLog (const char *filePathName) |
BOOL | PreTranslateMessage (MSG *pMsg) |
Intercepts messages of interest before Windows or MFC. More... | |
BOOL | SendAppMessage (int msg) |
void | LogTime () |
void | UpdateResults (ImageTest *test) |
void | UpdateResultsSFRplus (ImageTest *test) |
void | UpdateStderr () |
void | UpdateStdout () |
bool | AllocateImageBuf () |
bool | CheckFiles (CString &msg) |
void | CloseLibs () |
Function that closes the Imatest library. Note that once closed, the library cannot be reinitialized. More... | |
void | GetResults (ImageTest *test) |
void | GetStdoutMsg (StdoutThread &data, CString &str) |
const char * | GetTestName () |
bool | Init () |
bool | InitBlemishAcq () |
bool | InitBlemishThread () |
bool | InitCamera () |
bool | InitCameraThread () |
bool | InitLibs () |
Function that initializes the Imatest library. Must be called before any Imatest library functions are used. More... | |
bool | InitModelessThread () |
bool | InitOutput () |
bool | InitSFRplusAcq () |
bool | InitSFRplusThread () |
bool | LoadConfig () |
void | MakeHandles () |
void | OnBlemishDone (WPARAM wParam, LPARAM lParam) |
Called after MSG_BLEMISH_DONE is received. More... | |
void | OnFrameReady (WPARAM wParam, LPARAM lParam) |
Called after MSG_FRAME_READY is received. More... | |
void | OnPassFail (WPARAM wParam, LPARAM lParam) |
Called after MSG_PASS_FAIL is received. More... | |
void | OnRunTest (WPARAM wParam, LPARAM lParam) |
Called after MSG_RUN_TEST is received. More... | |
void | OnSFRplusDone (WPARAM wParam, LPARAM lParam) |
Called after MSG_SFRPLUS_DONE is received. More... | |
void | OnSetBlemish (WPARAM wParam, LPARAM lParam) |
Called after MSG_SET_BLEMISH is received. More... | |
void | OnSetSFRplus (WPARAM wParam, LPARAM lParam) |
Called after MSG_SET_SFRPLUS is received. More... | |
void | OnSetImatestCamera (WPARAM wParam, LPARAM lParam) |
void | OnSetDirectshowCamera (WPARAM wParam, LPARAM lParam) |
void | OnShowJSON (UINT wParam, LONG lParam) |
Called after MSG_JSON is received. More... | |
void | OnStop (WPARAM wParam, LPARAM lParam) |
Called after MSG_STOP is received. More... | |
void | OnStart (WPARAM wParam, LPARAM lParam) |
Called after MSG_START is received. More... | |
void | OnSetup (WPARAM wParam, LPARAM lParam) |
Called after MSG_SETUP is received. More... | |
void | OnUpdateStderr () |
Called after MSG_STDERR is received. More... | |
void | OnUpdateStdout () |
Called after MSG_STDOUT is received. More... | |
bool | SaveConfig () |
void | SaveLog (const CString &filePathName) |
BOOL | PreTranslateMessage (MSG *pMsg) |
Intercepts messages of interest before Windows or MFC. More... | |
BOOL | SendAppMessage (int msg) |
void | LogTime () |
void | UpdateResults (ImageTest *test) |
void | UpdateResultsSFRplus (ImageTest *test) |
void | UpdateStderr () |
void | UpdateStdout () |
Protected Attributes | |
AppStatus | m_status |
Config | m_configRAW |
for using raw files: will eventually come from a dialog (uses hard coded values for now) More... | |
Config | m_configRGB |
for using rgb data: will eventually come from a dialog (uses hard coded values for now) More... | |
Config * | m_config |
pointer to current config struct to use More... | |
char * | m_fileImage |
buffer to hold a single image frame from the file (will eventually be combined with m_cameraImage) More... | |
char * | m_cameraImage |
buffer to hold a single image frame from the camera (will eventually be combined with m_fileImage) More... | |
FileAcquisition | m_blemishAcq |
raw data for blemish tests (no longer needed, now that live capture is working) More... | |
FileAcquisition | m_sfrPlusAcq |
raw data for SFRplus tests (no longer needed, now that live capture is working) More... | |
ImageAcquisition * | m_acq |
pointer to current acquisition object being used More... | |
ImatestLibAcq | m_camera |
live acquisition using Imatest acquire_image() More... | |
int | m_width |
int | m_height |
setup_settings | m_setup |
this contains settings from/for the setup dialog More... | |
BlemishTest | m_blemish |
this will run the blemish tests More... | |
SFRplusTest | m_sfrPlus |
this will run the SFRplus tests More... | |
ThreadControl | m_blemishControl |
this is the thread control for running Blemish tests More... | |
ThreadControl | m_sfrPlusControl |
this is the thread control for running SFRplus tests More... | |
ThreadControl | m_cameraControl |
this captures images from the acquisition source More... | |
ThreadControl * | m_test |
the current test being run (either &m_blemishControl or &sfrPlusControl) More... | |
ModelessDialogThread * | m_jsonDlgThread |
TestResults | m_results |
StdoutThread | m_stdoutThread |
StderrThread | m_stderrThread |
CString | m_stdoutStr |
our copy of the contents of m_stdout More... | |
CString | m_stderrStr |
our copy of the contents of m_stderr More... | |
AppFlags | m_flags |
ImatestLibAcq | m_imatest_cam |
live acquisition using Imatest acquire_image() More... | |
SimpleDirectShowAcq | m_directshow_cam |
live acquisition using a camera More... | |
ImageAcquisition * | m_camera |
ThreadControl | m_ImatestCameraControl |
ThreadControl | m_DirectShowCameraControl |
ThreadControl * | m_cameraControl |
points to the current image source's control thread More... | |
Private Attributes | |
CString | m_password |
This contains the administrator password. More... | |
bool | m_passFailIsUnlocked |
Indicates whether the administrator has chosen to unlock access to pass/fail settings for the duration that the executable runs. More... | |
image_source_t | m_image_source |
CString | m_logFileName |
Contains the file name for the log file (log file is filled with the contents of the log edit box upon app closure). More... | |
The main class for the Operator Console Application.
This class interfaces with the display (controlled by the COperatorConsoleDlg class) through a messaging-passing interface. Therefore, all data relevant to the operation of the program are owned by COperatorConsoleApp and not COperatorConsoleDlg.
COperatorConsoleApp::COperatorConsoleApp | ( | ) |
COperatorConsoleApp construction.
References ADMIN_PASSWORD, INI_FILENAME, m_acq, m_cameraImage, m_config, m_fileImage, m_flags, CPassFailSettings::m_ini_file, m_jsonDlgThread, m_passFailIsUnlocked, m_password, m_PFSettings, and m_test.
COperatorConsoleApp::~COperatorConsoleApp | ( | ) |
References m_cameraImage, and m_fileImage.
COperatorConsoleApp::COperatorConsoleApp | ( | ) |
COperatorConsoleApp::~COperatorConsoleApp | ( | ) |
|
protected |
References ImageAcquisition::BytesPerFrame(), m_blemishAcq, m_camera, m_cameraImage, and m_fileImage.
Referenced by Init(), and ReInit().
|
protected |
|
protected |
References FileExists(), IMAGE_NAME, INI_FILENAME, LOGO_NAME, RAW_BLEMISH_IMAGE, and RAW_SFRPLUS_IMAGE.
Referenced by Init(), and ReInit().
|
protected |
|
protected |
Function that closes the Imatest library. Note that once closed, the library cannot be reinitialized.
References imatest_libraryTerminate(), AppFlags::imatestIT, m_flags, and AppFlags::matlab.
Referenced by InitInstance().
|
protected |
Function that closes the Imatest library. Note that once closed, the library cannot be reinitialized.
|
static |
|
static |
|
inline |
References setup_settings::height, and m_setup.
|
inline |
References setup_settings::height, and m_setup.
|
inline |
References m_setup, and setup_settings::width.
|
inline |
References m_setup, and setup_settings::width.
|
protected |
References TestResults::failInfo, ImageTest::GetFailInfo(), ImageTest::GetJSON(), ImageTest::GetLog(), ImageTest::GetName(), ImageTest::GetSummary(), TestResults::json, TestResults::log, m_results, TestResults::name, and TestResults::summary.
Referenced by UpdateResults().
|
protected |
|
protected |
References StdoutThread::Get(), and COperatorConsoleDlg::LogMessage().
Referenced by OnUpdateStderr(), and OnUpdateStdout().
|
protected |
|
inlineprotected |
References ThreadControl::m_data, and m_test.
Referenced by OnRunTest().
|
inlineprotected |
References ThreadControl::m_data, and m_test.
|
protected |
Init perform application-specific initialization.
none
Description Init does the following things: It checks all of the hard coded filenames to be sure that the files exist It initializes the blemish and sfrplus file acquisition objects (loads the raw files into buffers) It initializes the camera object Allocates a buffer to hold a single image frame Creates and starts the blemish and sfrplus threads Creates and starts the modeless dialog thread Initializes the MATLAB and ImatestIT libraries Initializes the blemish and sfrplus modules
If any of the initialization steps fails, an appropriate message is displayed in an Alert Box.
References AllocateImageBuf(), CAMERA_HEIGHT, CAMERA_WIDTH, CheckFiles(), FILE_ROOT, ImageAcquisition::GetInfo(), idle, setup_settings::ini_file, INI_FILENAME, Config::Init(), InitBlemishAcq(), InitBlemishThread(), InitCamera(), InitCameraThread(), InitModelessThread(), InitSFRplusAcq(), InitSFRplusThread(), m_blemishAcq, m_camera, m_config, m_configRAW, m_configRGB, m_height, Config::m_iniFilePathName, Config::m_partNumber, Config::m_programPath, Config::m_serialNumber, m_setup, m_sfrPlusAcq, m_status, m_width, OnSetSFRplus(), setup_settings::part_number, PART_NUMBER, setup_settings::program_path, PROGRAMPATH, RAW_EXTENSION, RAW_HEIGHT_BLEMISH, RAW_WIDTH_BLEMISH, RGB_EXTENSION, setup_settings::serial_number, and SERIAL_NUMBER.
Referenced by InitInstance().
|
protected |
|
protected |
References FileAcquisition::Init(), m_blemishAcq, FileAcquisition::Open(), RAW_BLEMISH_IMAGE, RAW_HEIGHT_BLEMISH, and RAW_WIDTH_BLEMISH.
Referenced by Init(), and ReInit().
|
protected |
|
protected |
References AppFlags::blemishThread, ImageAcquisition::GetHeight(), ImageAcquisition::GetWidth(), setup_settings::height, ThreadControl::Init(), ImageTest::Init(), m_blemish, m_blemishAcq, m_blemishControl, m_cameraImage, m_config, m_fileImage, m_flags, m_setup, MSG_BLEMISH_DONE, ImageTest::ThreadProc(), and setup_settings::width.
Referenced by Init(), and ReInit().
|
protected |
|
protected |
References CAMERA_HEIGHT, CAMERA_WIDTH, setup_settings::epiphan_deviceID, setup_settings::height, IMAGE_NAME, setup_settings::ini_file, ImageAcquisition::Init(), m_camera, ImatestLibAcq::m_device_ID, ImatestLibAcq::m_ini_file, m_setup, ImatestLibAcq::m_source_ID, ImatestLibAcq::Open(), setup_settings::sourceID, and setup_settings::width.
Referenced by Init(), and ReInit().
|
protected |
|
protected |
References AppFlags::cameraThread, ThreadControl::Init(), m_camera, m_cameraControl, m_flags, MSG_FRAME_READY, and ImageAcquisition::ThreadProc().
Referenced by Init().
|
protected |
BOOL COperatorConsoleApp::InitInstance | ( | ) |
COperatorConsoleApp initialization.
References CloseLibs(), Init(), InitLibs(), InitOutput(), m_setup, CSetup::m_setup_settings, Quit(), ReadINISettings(), and ReadPassFail().
BOOL COperatorConsoleApp::InitInstance | ( | ) |
|
protected |
Function that initializes the Imatest library. Must be called before any Imatest library functions are used.
References imatest_libraryInitialize(), AppFlags::imatestIT, m_flags, and AppFlags::matlab.
Referenced by InitInstance().
|
protected |
Function that initializes the Imatest library. Must be called before any Imatest library functions are used.
|
protected |
References m_flags, m_jsonDlgThread, and AppFlags::modelessThread.
Referenced by Init().
|
protected |
|
protected |
References StdoutThread::InitThread(), m_flags, m_stderrThread, m_stdoutThread, MSG_STDERR, MSG_STDOUT, AppFlags::stdErr, AppFlags::stdOut, and STDOUT_BUFSIZE.
Referenced by InitInstance().
|
protected |
|
protected |
References FileAcquisition::Init(), m_sfrPlusAcq, FileAcquisition::Open(), RAW_HEIGHT_SFRPLUS, RAW_SFRPLUS_IMAGE, and RAW_WIDTH_SFRPLUS.
Referenced by Init(), and ReInit().
|
protected |
|
protected |
References ImageAcquisition::GetHeight(), ImageAcquisition::GetWidth(), setup_settings::height, ThreadControl::Init(), ImageTest::Init(), m_cameraImage, m_config, m_fileImage, m_flags, m_setup, m_sfrPlus, m_sfrPlusAcq, m_sfrPlusControl, MSG_SFRPLUS_DONE, AppFlags::sfrplusThread, ImageTest::ThreadProc(), and setup_settings::width.
Referenced by Init(), and ReInit().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Called after MSG_BLEMISH_DONE is received.
References m_blemish, m_status, MSG_RUN_TEST, quitting, runningTest, SendAppMessage(), and UpdateResults().
Referenced by PreTranslateMessage().
|
protected |
Called after MSG_BLEMISH_DONE is received.
|
protected |
Called after MSG_FRAME_READY is received.
References ImageAcquisition::GetFrame(), m_camera, m_cameraControl, m_cameraImage, m_test, and ThreadControl::Run().
Referenced by PreTranslateMessage().
|
protected |
Called after MSG_FRAME_READY is received.
|
protected |
Called after MSG_PASS_FAIL is received.
References CPassFailSettings::b_isReadOnly, CPasswordDialog::getResponse(), CPasswordDialog::getUnlockStatus(), m_passFailIsUnlocked, m_password, m_PFSettings, CPassFail::PFSettings, and WritePassFail().
Referenced by PreTranslateMessage().
|
protected |
Called after MSG_PASS_FAIL is received.
|
protected |
Called after MSG_RUN_TEST is received.
References ImageAcquisition::GetFrame(), GetTestName(), m_acq, m_camera, m_cameraControl, m_cameraImage, m_fileImage, m_test, and ThreadControl::Run().
Referenced by PreTranslateMessage().
|
protected |
Called after MSG_RUN_TEST is received.
|
protected |
Called after MSG_SET_BLEMISH is received.
References m_acq, m_blemishAcq, m_blemishControl, and m_test.
Referenced by PreTranslateMessage().
|
protected |
Called after MSG_SET_BLEMISH is received.
|
protected |
References m_camera, m_cameraControl, m_directshow_cam, and m_DirectShowCameraControl.
|
protected |
References m_camera, m_cameraControl, m_imatest_cam, and m_ImatestCameraControl.
|
protected |
Called after MSG_SET_SFRPLUS is received.
References m_acq, m_sfrPlusAcq, m_sfrPlusControl, and m_test.
Referenced by Init(), PreTranslateMessage(), and ReInit().
|
protected |
Called after MSG_SET_SFRPLUS is received.
|
protected |
Called after MSG_SETUP is received.
References setup_settings::epiphan_deviceID, setup_settings::height, setup_settings::ini_file, m_blemish, m_camera, m_config, ImatestLibAcq::m_device_ID, ImatestLibAcq::m_ini_file, Config::m_iniFilePathName, ImageTest::m_iniFilePathName, Config::m_partNumber, ImageTest::m_partNumber, Config::m_programPath, ImageTest::m_programPath, Config::m_serialNumber, ImageTest::m_serialNumber, m_setup, CSetup::m_setup_settings, m_sfrPlus, ImatestLibAcq::m_source_ID, setup_settings::part_number, setup_settings::program_path, ReInit(), setup_settings::serial_number, setup_settings::sourceID, setup_settings::width, and WriteINISettings().
Referenced by PreTranslateMessage().
|
protected |
Called after MSG_SETUP is received.
|
protected |
Called after MSG_SFRPLUS_DONE is received.
References m_sfrPlus, m_status, MSG_RUN_TEST, quitting, runningTest, SendAppMessage(), and UpdateResultsSFRplus().
Referenced by PreTranslateMessage().
|
protected |
Called after MSG_SFRPLUS_DONE is received.
|
protected |
Called after MSG_JSON is received.
References TestResults::json, m_jsonDlgThread, m_results, TestResults::name, ModelessDialogThread::SetText(), ModelessDialogThread::SetTitle(), and ModelessDialogThread::Show().
Referenced by PreTranslateMessage().
|
protected |
Called after MSG_JSON is received.
|
protected |
Called after MSG_START is received.
Referenced by PreTranslateMessage().
|
protected |
Called after MSG_START is received.
|
protected |
Called after MSG_STOP is received.
Referenced by PreTranslateMessage().
|
protected |
Called after MSG_STOP is received.
|
protected |
Called after MSG_STDERR is received.
References GetStdoutMsg(), m_stderrStr, and m_stderrThread.
Referenced by PreTranslateMessage().
|
protected |
Called after MSG_STDERR is received.
|
protected |
Called after MSG_STDOUT is received.
References GetStdoutMsg(), m_stdoutStr, and m_stdoutThread.
Referenced by PreTranslateMessage().
|
protected |
Called after MSG_STDOUT is received.
|
protected |
Intercepts messages of interest before Windows or MFC.
The threads and dialog communicate with the application object by sending messages.
This function pulls out the messages of interest to us before they get intercepted by Windows or MFC.
References MSG_BLEMISH_DONE, MSG_FRAME_READY, MSG_JSON, MSG_PASS_FAIL, MSG_RUN_TEST, MSG_SET_BLEMISH, MSG_SET_SFRPLUS, MSG_SETUP, MSG_SFRPLUS_DONE, MSG_START, MSG_STDERR, MSG_STDOUT, MSG_STOP, OnBlemishDone(), OnFrameReady(), OnPassFail(), OnRunTest(), OnSetBlemish(), OnSetSFRplus(), OnSetup(), OnSFRplusDone(), OnShowJSON(), OnStart(), OnStop(), OnUpdateStderr(), and OnUpdateStdout().
|
protected |
Intercepts messages of interest before Windows or MFC.
void COperatorConsoleApp::Quit | ( | ) |
This function gets called when the user wants to Quit the application (either by closing the window or pressing the Quit button). Before we quit, we need to wait for the blemish and sfrplus threads to finish.
We tell the threads to finish by sending a Quit message to them. However, if a test is in progress, that thread won't process the Quit message until the test finished. This can take a few seconds, so we post a Log message and turn on the Wait cursor until the threads finish.
References AppFlags::blemishThread, AppFlags::cameraThread, LOG_FILENAME, m_blemishControl, m_cameraControl, m_flags, m_jsonDlgThread, m_sfrPlusControl, m_status, m_stderrThread, m_stdoutThread, AppFlags::modelessThread, MSG_MODELESS_QUIT, StdoutThread::Quit(), ThreadControl::Quit(), quitting, SaveLog(), AppFlags::sfrplusThread, AppFlags::stdErr, and AppFlags::stdOut.
Referenced by InitInstance().
void COperatorConsoleApp::Quit | ( | ) |
bool COperatorConsoleApp::ReadINISettings | ( | void | ) |
This function reads in items for the setup dialog from imatest.ini.
bool COperatorConsoleApp::ReadINISettings | ( | void | ) |
This function reads in items for the setup dialog from imatest.ini.
References setup_settings::bayer, setup_settings::bits_per_pixel, setup_settings::epiphan_deviceID, setup_settings::height, INI_FILENAME, m_setup, setup_settings::omnivision_reg_file, setup_settings::sourceID, and setup_settings::width.
Referenced by InitInstance().
bool COperatorConsoleApp::ReadPassFail | ( | void | ) |
This function reads in the pass/fail variable values as in the pass/fail file listed in the imatest INI file.
bool COperatorConsoleApp::ReadPassFail | ( | void | ) |
This function reads in the pass/fail variable values as in the pass/fail file listed in the imatest INI file.
References addDataTypeAndKey(), SFRplusPassFail::All_Edge_IDs_detected, entry< T >::assign_value(), minMaxEntry< T >::assign_value(), SFRplusPassFail::b_enable, BlemishPassFail::b_enable, OISPassFail::b_enable, OtherPassFail::b_enable, CPassFailSettings::b_isReadOnly, entry< T >::b_isUsed, vecEntry< T >::b_isUsed, SFRplusPassFail::Bayer_decode, CPassFailSettings::blemish, BlemishPassFail::Blemish_maximum_count, BlemishPassFail::Blemish_size_pixels, SFRplusPassFail::Chart_mean_pixel_level_bounds, SFRplusPassFail::Chart_radial_pixel_shift_max, SFRplusPassFail::Color_expected_detected, SFRplusPassFail::Convergence_angle_max, entry< T >::data_type, minMaxEntry< T >::data_type, vecEntry< T >::data_type, BlemishPassFail::Dead_pixel_clusters_max, BlemishPassFail::Dead_pixels_max, BlemishPassFail::Defective_pixels_max_count, entry< T >::description, OtherPassFail::ent_vec, SFRplusPassFail::FOV_degrees_diagonal_min, minMaxEntry< T >::group_name, vecEntry< T >::group_name, SFRplusPassFail::High_pixel_saturation_fraction_max, SFRplusPassFail::Horizontal_bars_OK_min, BlemishPassFail::Hot_pixel_clusters_max, BlemishPassFail::Hot_pixels_max, OISPassFail::L_MTF50_delta2_gain_summary_all_dB_min, SFRplusPassFail::Low_pixel_saturation_fraction_max, CPassFailSettings::m_ini_file, CPassFailSettings::m_pass_fail_file, m_PFSettings, SFRplusPassFail::Mirrored_chart, SFRplusPassFail::MTF50P_CP_weighted_mean_min, SFRplusPassFail::MTF50P_ratio_min, entry< T >::name, SFRplusPassFail::name, OISPassFail::name, OtherPassFail::name, SFRplusPassFail::numEntries, BlemishPassFail::numEntries, OISPassFail::numEntries, CPassFailSettings::ois, BlemishPassFail::Optical_center_offset_max, BlemishPassFail::Optical_center_offset_X_max, BlemishPassFail::Optical_center_offset_Y_max, CPassFailSettings::other, SFRplusPassFail::passfail_ini_file_date, OISPassFail::R_improve_ALL_dB_min, OISPassFail::R_improve_H_dB_min, OISPassFail::R_improve_V_dB_min, BlemishPassFail::Relative_illumination_corner_diff_pct_max, BlemishPassFail::Relative_illumination_worst_corner_pct_min, SFRplusPassFail::Rotation_degrees_max, SFRplusPassFail::Secondary_readout_1_center_mean_min, SFRplusPassFail::Secondary_readout_1_outer_mean_min, SFRplusPassFail::Secondary_readout_1_outer_min_min, SFRplusPassFail::Secondary_readout_1_outer_quadrant_delta_max, SFRplusPassFail::Secondary_readout_1_outer_quadrant_mean_min_min, SFRplusPassFail::Secondary_readout_2_center_mean_min, SFRplusPassFail::Secondary_readout_2_outer_mean_min, SFRplusPassFail::Secondary_readout_2_outer_min_min, SFRplusPassFail::Secondary_readout_2_outer_quadrant_delta_max, SFRplusPassFail::Secondary_readout_2_outer_quadrant_mean_min_min, CPassFailSettings::sfrplus, SFRplusPassFail::Stepchart_expected_detected, BlemishPassFail::Uniformity_BoverG_corners_pct_max, BlemishPassFail::Uniformity_RoverG_corners_pct_max, SFRplusPassFail::upside_down, entry< T >::value, and vecEntry< T >::value.
Referenced by InitInstance().
bool COperatorConsoleApp::ReInit | ( | void | ) |
This function allows for reallocation of the various image buffers when we change the image size.
bool COperatorConsoleApp::ReInit | ( | void | ) |
This function allows for reallocation of the various image buffers when we change the image size.
References AllocateImageBuf(), CheckFiles(), ImageAcquisition::GetInfo(), idle, InitBlemishAcq(), InitBlemishThread(), InitCamera(), InitSFRplusAcq(), InitSFRplusThread(), m_blemishAcq, m_blemishControl, m_camera, m_sfrPlusAcq, m_sfrPlusControl, m_status, OnSetSFRplus(), and ThreadControl::Quit().
Referenced by OnSetup().
|
protected |
|
protected |
|
protected |
|
protected |
void COperatorConsoleApp::SaveLog | ( | void | ) |
A public function to save the contents of the log CEdit to m_logFileName.
References m_logFileName.
Referenced by Quit().
|
protected |
|
protected |
|
protected |
References TestResults::failInfo, GetResults(), TestResults::json, TestResults::log, COperatorConsoleDlg::LogMessage(), m_cameraImage, ImageTest::m_elapsed, ImageTest::m_elapsedStr, ImageTest::m_name, m_results, ImageTest::Passed(), TestResults::summary, COperatorConsoleDlg::UpdateFPS(), COperatorConsoleDlg::UpdateImage(), COperatorConsoleDlg::UpdateStatus(), and COperatorConsoleDlg::UpdateSummary().
Referenced by OnBlemishDone(), and UpdateResultsSFRplus().
|
protected |
|
protected |
References SFRplusTest::GetQSO(), m_sfrPlus, COperatorConsoleDlg::UpdateQuadrants(), and UpdateResults().
Referenced by OnSFRplusDone().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
void COperatorConsoleApp::WriteINISettings | ( | void | ) |
This function writes items for the setup dialog to imatest.ini.
void COperatorConsoleApp::WriteINISettings | ( | void | ) |
This function writes items for the setup dialog to imatest.ini.
References setup_settings::bayer, setup_settings::bits_per_pixel, setup_settings::epiphan_deviceID, setup_settings::height, m_config, Config::m_iniFilePathName, m_setup, setup_settings::omnivision_reg_file, setup_settings::sourceID, and setup_settings::width.
Referenced by OnSetup().
bool COperatorConsoleApp::WritePassFail | ( | void | ) |
This function writes the pass/fail variables to the pass/fail file listed in the imatest INI file.
bool COperatorConsoleApp::WritePassFail | ( | void | ) |
This function writes the pass/fail variables to the pass/fail file listed in the imatest INI file.
References addKeysAndValues(), SFRplusPassFail::All_Edge_IDs_detected, SFRplusPassFail::b_enable, BlemishPassFail::b_enable, OISPassFail::b_enable, OtherPassFail::b_enable, entry< T >::b_isUsed, minMaxEntry< T >::b_isUsed, vecEntry< T >::b_isUsed, SFRplusPassFail::Bayer_decode, CPassFailSettings::blemish, BlemishPassFail::Blemish_maximum_count, BlemishPassFail::Blemish_size_pixels, SFRplusPassFail::Chart_mean_pixel_level_bounds, SFRplusPassFail::Chart_radial_pixel_shift_max, SFRplusPassFail::Color_expected_detected, SFRplusPassFail::Convergence_angle_max, BlemishPassFail::Dead_pixel_clusters_max, BlemishPassFail::Dead_pixels_max, BlemishPassFail::Defective_pixels_max_count, OtherPassFail::ent_vec, SFRplusPassFail::FOV_degrees_diagonal_min, minMaxEntry< T >::group_name, vecEntry< T >::group_name, SFRplusPassFail::High_pixel_saturation_fraction_max, SFRplusPassFail::Horizontal_bars_OK_min, BlemishPassFail::Hot_pixel_clusters_max, BlemishPassFail::Hot_pixels_max, OISPassFail::L_MTF50_delta2_gain_summary_all_dB_min, SFRplusPassFail::Low_pixel_saturation_fraction_max, CPassFailSettings::m_ini_file, CPassFailSettings::m_pass_fail_file, m_PFSettings, SFRplusPassFail::Mirrored_chart, SFRplusPassFail::MTF50P_CP_weighted_mean_min, SFRplusPassFail::MTF50P_ratio_min, entry< T >::name, SFRplusPassFail::name, BlemishPassFail::name, OISPassFail::name, OtherPassFail::name, CPassFailSettings::ois, BlemishPassFail::Optical_center_offset_max, BlemishPassFail::Optical_center_offset_X_max, BlemishPassFail::Optical_center_offset_Y_max, CPassFailSettings::other, SFRplusPassFail::passfail_ini_file_date, OISPassFail::R_improve_ALL_dB_min, OISPassFail::R_improve_H_dB_min, OISPassFail::R_improve_V_dB_min, BlemishPassFail::Relative_illumination_corner_diff_pct_max, BlemishPassFail::Relative_illumination_worst_corner_pct_min, SFRplusPassFail::Rotation_degrees_max, SFRplusPassFail::Secondary_readout_1_center_mean_min, SFRplusPassFail::Secondary_readout_1_outer_mean_min, SFRplusPassFail::Secondary_readout_1_outer_min_min, SFRplusPassFail::Secondary_readout_1_outer_quadrant_delta_max, SFRplusPassFail::Secondary_readout_1_outer_quadrant_mean_min_min, SFRplusPassFail::Secondary_readout_2_center_mean_min, SFRplusPassFail::Secondary_readout_2_outer_mean_min, SFRplusPassFail::Secondary_readout_2_outer_min_min, SFRplusPassFail::Secondary_readout_2_outer_quadrant_delta_max, SFRplusPassFail::Secondary_readout_2_outer_quadrant_mean_min_min, CPassFailSettings::sfrplus, SFRplusPassFail::Stepchart_expected_detected, BlemishPassFail::Uniformity_BoverG_corners_pct_max, BlemishPassFail::Uniformity_RoverG_corners_pct_max, SFRplusPassFail::upside_down, writeEntValueString(), writeMinMaxEntValueString(), and writeVecEntValueString().
Referenced by OnPassFail().
|
protected |
pointer to current acquisition object being used
Referenced by COperatorConsoleApp(), OnRunTest(), OnSetBlemish(), and OnSetSFRplus().
|
protected |
this will run the blemish tests
Referenced by InitBlemishThread(), OnBlemishDone(), and OnSetup().
|
protected |
raw data for blemish tests (no longer needed, now that live capture is working)
Referenced by AllocateImageBuf(), Init(), InitBlemishAcq(), InitBlemishThread(), OnSetBlemish(), and ReInit().
|
protected |
this is the thread control for running Blemish tests
Referenced by InitBlemishThread(), OnSetBlemish(), Quit(), and ReInit().
|
protected |
live acquisition using Imatest acquire_image()
Referenced by AllocateImageBuf(), Init(), InitCamera(), InitCameraThread(), OnFrameReady(), OnRunTest(), OnSetDirectshowCamera(), OnSetImatestCamera(), OnSetup(), and ReInit().
|
protected |
|
protected |
this captures images from the acquisition source
Referenced by InitCameraThread(), OnFrameReady(), OnRunTest(), OnSetDirectshowCamera(), OnSetImatestCamera(), and Quit().
|
protected |
points to the current image source's control thread
|
protected |
buffer to hold a single image frame from the camera (will eventually be combined with m_fileImage)
Referenced by AllocateImageBuf(), COperatorConsoleApp(), InitBlemishThread(), InitSFRplusThread(), OnFrameReady(), OnRunTest(), UpdateResults(), and ~COperatorConsoleApp().
|
protected |
pointer to current config struct to use
Referenced by COperatorConsoleApp(), Init(), InitBlemishThread(), InitSFRplusThread(), OnSetup(), and WriteINISettings().
|
protected |
for using raw files: will eventually come from a dialog (uses hard coded values for now)
Referenced by Init().
|
protected |
for using rgb data: will eventually come from a dialog (uses hard coded values for now)
Referenced by Init().
|
protected |
live acquisition using a camera
Referenced by OnSetDirectshowCamera().
|
protected |
Referenced by OnSetDirectshowCamera().
|
protected |
buffer to hold a single image frame from the file (will eventually be combined with m_cameraImage)
Referenced by AllocateImageBuf(), COperatorConsoleApp(), InitBlemishThread(), InitSFRplusThread(), OnRunTest(), and ~COperatorConsoleApp().
|
protected |
Referenced by CloseLibs(), COperatorConsoleApp(), InitBlemishThread(), InitCameraThread(), InitLibs(), InitModelessThread(), InitOutput(), InitSFRplusThread(), and Quit().
|
protected |
Referenced by Init().
|
private |
|
protected |
live acquisition using Imatest acquire_image()
Referenced by OnSetImatestCamera().
|
protected |
Referenced by OnSetImatestCamera().
|
protected |
Referenced by COperatorConsoleApp(), InitModelessThread(), OnShowJSON(), and Quit().
|
private |
Contains the file name for the log file (log file is filled with the contents of the log edit box upon app closure).
Referenced by SaveLog().
|
private |
Indicates whether the administrator has chosen to unlock access to pass/fail settings for the duration that the executable runs.
Referenced by COperatorConsoleApp(), and OnPassFail().
|
private |
This contains the administrator password.
Referenced by COperatorConsoleApp(), and OnPassFail().
CPassFailSettings COperatorConsoleApp::m_PFSettings |
Contains the pass/fail criteria given by the pass/fail file listed in imatest.ini.
Referenced by COperatorConsoleApp(), OnPassFail(), ReadPassFail(), and WritePassFail().
|
protected |
Referenced by GetResults(), OnShowJSON(), and UpdateResults().
|
protected |
this contains settings from/for the setup dialog
Referenced by GetImageHeight(), GetImageWidth(), Init(), InitBlemishThread(), InitCamera(), InitInstance(), InitSFRplusThread(), OnSetup(), ReadINISettings(), and WriteINISettings().
|
protected |
this will run the SFRplus tests
Referenced by InitSFRplusThread(), OnSetup(), OnSFRplusDone(), and UpdateResultsSFRplus().
|
protected |
raw data for SFRplus tests (no longer needed, now that live capture is working)
Referenced by Init(), InitSFRplusAcq(), InitSFRplusThread(), OnSetSFRplus(), and ReInit().
|
protected |
this is the thread control for running SFRplus tests
Referenced by InitSFRplusThread(), OnSetSFRplus(), Quit(), and ReInit().
|
protected |
Referenced by Init(), OnBlemishDone(), OnSFRplusDone(), Quit(), and ReInit().
|
protected |
our copy of the contents of m_stderr
Referenced by OnUpdateStderr().
|
protected |
Referenced by InitOutput(), OnUpdateStderr(), and Quit().
|
protected |
our copy of the contents of m_stdout
Referenced by OnUpdateStdout().
|
protected |
Referenced by InitOutput(), OnUpdateStdout(), and Quit().
|
protected |
the current test being run (either &m_blemishControl or &sfrPlusControl)
Referenced by COperatorConsoleApp(), GetTestName(), OnFrameReady(), OnRunTest(), OnSetBlemish(), and OnSetSFRplus().
|
protected |
Referenced by Init().