![]() |
Scanframe Modular Application 0.1.0
|
#include <ScanEntry.h>
Public Member Functions | |
~ScanEntry () override | |
Virtual overridden destructor. | |
QString | getDataFileName () |
Gets the filename of the inspection data file. | |
ScanMethod * | getScanMethod () |
Gets the selected scan method pointer. | |
QString | getScanArea () |
Gets the name of the area. | |
void | setScanMethodName (const QString &name) |
Sets the scan method. | |
QString | setScanMethodName () const |
Gets the scan method name. | |
QString | setScanMethodCommand () const |
Gets the last scan method command. | |
QString | getScanMethodCalibrationSet () const |
Gets the calibration set name of the scan method. | |
ScanMethod::EState | getScanState () const |
Gets the current scan state. | |
QString | getScanStateName () const |
Gets the current scan states name. | |
void | setInspectionState (EInspectionState is) |
Sets the current scan inspection state and writes it to the inspection profile. | |
QString | getInspectionStateName () const |
Gets the current scan inspection state name. | |
void | setInspectionComment (QString cmt) |
Sets the current scan inspection comment and writes it to the inspection profile. | |
QString | getInspectionComment () const |
Gets the current scan inspection comment from the inspection profile. | |
QString | getInspectionUserName () const |
Gets the user who made this scan. | |
QString | getInspectionDateTimeStr () const |
Gets the time and date the user made this scan. | |
void | setInspectionDataFileName (QString filename) |
Sets the current inspection data filename from the inspection profile. | |
QString | getInspectionDataFileName () const |
Gets the inspection data filename in the inspection profile. | |
EInspectionState | getInspectionState () const |
Gets the current scan inspection state. | |
void | setScanArea (const QString &name) |
Loads a new area scan file with a scan method. | |
bool | showViewer () |
Shows this single scan method frame and hides all others. | |
int | editInspectionState () |
Executes a dialog for modifying the inspection comment and state. | |
bool | calibSettings (bool assign) |
Copy only the calibration parameters specified by this entry when it is a pre- or post-calibration scan. | |
void | showCalibSettings () |
Shows the calibrated settings of this entry. | |
bool | writeAnalysisInfo () |
Writes the filter analysis information to the inspection database. | |
bool | openDataFile (int file_index=-1) const |
Opens the data file for this instance. | |
void | assignEntry (ScanEntry *se) |
Makes a copy of the other entry. Does not rename only settings are copied. | |
void | assignIni (IniEnvelope &ini) |
Makes a copy of the settings passed scan ini file. | |
bool | assignSelected (bool use_tpl) |
Assigns the settings from a existing scan-area or from a selected. | |
Protected Member Functions | |
ScanEntry (ProjectData *prj_data) | |
Protected constructor to prevent creation by others then ProjectData. | |
void | saveMethodSettings (IniEnvelope ini) |
Saves the settings in the scan area file from the scan method. | |
void | loadMethodSettings (const IniEnvelope &ini) |
Loads the settings from the scan area file in to the scan method. | |
bool | createScanFrame () |
Creates the scan frame in the project frame if possible and available. | |
bool | writeProfile (IniProfile &ini) |
Writes all scan entry data to the profile and returns true on succes. | |
bool | readProfile (IniProfile &ini) |
Reads all scan entry data from the profile passed. | |
void | storeInspectionInfo (bool rd, bool force=false) |
Updates the inspection information fields or updates the inspection file. | |
bool | updateInspectionInfo () |
Updates the cached version of the inspection information. | |
|
explicitprotected |
Protected constructor to prevent creation by others then ProjectData.
|
override |
Virtual overridden destructor.
void sf::ScanEntry::assignEntry | ( | ScanEntry * | se | ) |
Makes a copy of the other entry. Does not rename only settings are copied.
void sf::ScanEntry::assignIni | ( | IniEnvelope & | ini | ) |
Makes a copy of the settings passed scan ini file.
bool sf::ScanEntry::assignSelected | ( | bool | use_tpl | ) |
Assigns the settings from a existing scan-area or from a selected.
use_tpl | When true a template is the source for selecting. |
bool sf::ScanEntry::calibSettings | ( | bool | assign | ) |
Copy only the calibration parameters specified by this entry when it is a pre- or post-calibration scan.
|
protected |
Creates the scan frame in the project frame if possible and available.
int sf::ScanEntry::editInspectionState | ( | ) |
Executes a dialog for modifying the inspection comment and state.
|
inline |
Gets the filename of the inspection data file.
QString sf::ScanEntry::getInspectionComment | ( | ) | const |
Gets the current scan inspection comment from the inspection profile.
QString sf::ScanEntry::getInspectionDataFileName | ( | ) | const |
Gets the inspection data filename in the inspection profile.
QString sf::ScanEntry::getInspectionDateTimeStr | ( | ) | const |
Gets the time and date the user made this scan.
|
inline |
Gets the current scan inspection state.
|
inline |
Gets the current scan inspection state name.
QString sf::ScanEntry::getInspectionUserName | ( | ) | const |
Gets the user who made this scan.
|
inline |
Gets the name of the area.
|
inline |
Gets the selected scan method pointer.
QString sf::ScanEntry::getScanMethodCalibrationSet | ( | ) | const |
Gets the calibration set name of the scan method.
ScanMethod::EState sf::ScanEntry::getScanState | ( | ) | const |
Gets the current scan state.
QString sf::ScanEntry::getScanStateName | ( | ) | const |
Gets the current scan states name.
|
protected |
Loads the settings from the scan area file in to the scan method.
ini |
bool sf::ScanEntry::openDataFile | ( | int | file_index = -1 | ) | const |
Opens the data file for this instance.
file_index | When the index is -1 it opens the last one. |
|
protected |
Reads all scan entry data from the profile passed.
ini |
|
protected |
Saves the settings in the scan area file from the scan method.
ini |
void sf::ScanEntry::setInspectionComment | ( | QString | cmt | ) |
Sets the current scan inspection comment and writes it to the inspection profile.
void sf::ScanEntry::setInspectionDataFileName | ( | QString | filename | ) |
Sets the current inspection data filename from the inspection profile.
void sf::ScanEntry::setInspectionState | ( | EInspectionState | is | ) |
Sets the current scan inspection state and writes it to the inspection profile.
void sf::ScanEntry::setScanArea | ( | const QString & | name | ) |
Loads a new area scan file with a scan method.
QString sf::ScanEntry::setScanMethodCommand | ( | ) | const |
Gets the last scan method command.
QString sf::ScanEntry::setScanMethodName | ( | ) | const |
Gets the scan method name.
void sf::ScanEntry::setScanMethodName | ( | const QString & | name | ) |
Sets the scan method.
void sf::ScanEntry::showCalibSettings | ( | ) |
Shows the calibrated settings of this entry.
bool sf::ScanEntry::showViewer | ( | ) |
Shows this single scan method frame and hides all others.
|
protected |
Updates the inspection information fields or updates the inspection file.
rd | True for reading and false for writing. |
force | Forces writing even when there was bo change. |
|
protected |
Updates the cached version of the inspection information.
bool sf::ScanEntry::writeAnalysisInfo | ( | ) |
Writes the filter analysis information to the inspection database.
|
protected |
Writes all scan entry data to the profile and returns true on succes.
ini |