Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::ScanEntry Class Reference

#include <ScanEntry.h>

Inheritance diagram for sf::ScanEntry:
Collaboration diagram for sf::ScanEntry:

Public Member Functions

 ~ScanEntry () override
 Virtual overridden destructor.
 
QString getDataFileName ()
 Gets the filename of the inspection data file.
 
ScanMethodgetScanMethod ()
 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.
 

Constructor & Destructor Documentation

◆ ScanEntry()

sf::ScanEntry::ScanEntry ( ProjectData prj_data)
explicitprotected

Protected constructor to prevent creation by others then ProjectData.

◆ ~ScanEntry()

sf::ScanEntry::~ScanEntry ( )
override

Virtual overridden destructor.

Member Function Documentation

◆ assignEntry()

void sf::ScanEntry::assignEntry ( ScanEntry se)

Makes a copy of the other entry. Does not rename only settings are copied.

◆ assignIni()

void sf::ScanEntry::assignIni ( IniEnvelope ini)

Makes a copy of the settings passed scan ini file.

◆ assignSelected()

bool sf::ScanEntry::assignSelected ( bool  use_tpl)

Assigns the settings from a existing scan-area or from a selected.

Parameters
use_tplWhen true a template is the source for selecting.
Returns
True on success.

◆ calibSettings()

bool sf::ScanEntry::calibSettings ( bool  assign)

Copy only the calibration parameters specified by this entry when it is a pre- or post-calibration scan.

◆ createScanFrame()

bool sf::ScanEntry::createScanFrame ( )
protected

Creates the scan frame in the project frame if possible and available.

Returns
True on success

◆ editInspectionState()

int sf::ScanEntry::editInspectionState ( )

Executes a dialog for modifying the inspection comment and state.

Returns
QMessageBox::Ok when a choice has been made and QMessageBox::Retry for a rescan.

◆ getDataFileName()

QString sf::ScanEntry::getDataFileName ( )
inline

Gets the filename of the inspection data file.

◆ getInspectionComment()

QString sf::ScanEntry::getInspectionComment ( ) const

Gets the current scan inspection comment from the inspection profile.

◆ getInspectionDataFileName()

QString sf::ScanEntry::getInspectionDataFileName ( ) const

Gets the inspection data filename in the inspection profile.

◆ getInspectionDateTimeStr()

QString sf::ScanEntry::getInspectionDateTimeStr ( ) const

Gets the time and date the user made this scan.

◆ getInspectionState()

EInspectionState sf::ScanEntry::getInspectionState ( ) const
inline

Gets the current scan inspection state.

◆ getInspectionStateName()

QString sf::ScanEntry::getInspectionStateName ( ) const
inline

Gets the current scan inspection state name.

◆ getInspectionUserName()

QString sf::ScanEntry::getInspectionUserName ( ) const

Gets the user who made this scan.

◆ getScanArea()

QString sf::ScanEntry::getScanArea ( )
inline

Gets the name of the area.

◆ getScanMethod()

ScanMethod * sf::ScanEntry::getScanMethod ( )
inline

Gets the selected scan method pointer.

◆ getScanMethodCalibrationSet()

QString sf::ScanEntry::getScanMethodCalibrationSet ( ) const

Gets the calibration set name of the scan method.

◆ getScanState()

ScanMethod::EState sf::ScanEntry::getScanState ( ) const

Gets the current scan state.

◆ getScanStateName()

QString sf::ScanEntry::getScanStateName ( ) const

Gets the current scan states name.

◆ loadMethodSettings()

void sf::ScanEntry::loadMethodSettings ( const IniEnvelope ini)
protected

Loads the settings from the scan area file in to the scan method.

Parameters
ini

◆ openDataFile()

bool sf::ScanEntry::openDataFile ( int  file_index = -1) const

Opens the data file for this instance.

Parameters
file_indexWhen the index is -1 it opens the last one.
Returns
True on succes.

◆ readProfile()

bool sf::ScanEntry::readProfile ( IniProfile ini)
protected

Reads all scan entry data from the profile passed.

Parameters
ini
Returns
True on success.

◆ saveMethodSettings()

void sf::ScanEntry::saveMethodSettings ( IniEnvelope  ini)
protected

Saves the settings in the scan area file from the scan method.

Parameters
ini

◆ setInspectionComment()

void sf::ScanEntry::setInspectionComment ( QString  cmt)

Sets the current scan inspection comment and writes it to the inspection profile.

◆ setInspectionDataFileName()

void sf::ScanEntry::setInspectionDataFileName ( QString  filename)

Sets the current inspection data filename from the inspection profile.

◆ setInspectionState()

void sf::ScanEntry::setInspectionState ( EInspectionState  is)

Sets the current scan inspection state and writes it to the inspection profile.

◆ setScanArea()

void sf::ScanEntry::setScanArea ( const QString &  name)

Loads a new area scan file with a scan method.

◆ setScanMethodCommand()

QString sf::ScanEntry::setScanMethodCommand ( ) const

Gets the last scan method command.

◆ setScanMethodName() [1/2]

QString sf::ScanEntry::setScanMethodName ( ) const

Gets the scan method name.

◆ setScanMethodName() [2/2]

void sf::ScanEntry::setScanMethodName ( const QString &  name)

Sets the scan method.

◆ showCalibSettings()

void sf::ScanEntry::showCalibSettings ( )

Shows the calibrated settings of this entry.

◆ showViewer()

bool sf::ScanEntry::showViewer ( )

Shows this single scan method frame and hides all others.

◆ storeInspectionInfo()

void sf::ScanEntry::storeInspectionInfo ( bool  rd,
bool  force = false 
)
protected

Updates the inspection information fields or updates the inspection file.

Parameters
rdTrue for reading and false for writing.
forceForces writing even when there was bo change.

◆ updateInspectionInfo()

bool sf::ScanEntry::updateInspectionInfo ( )
protected

Updates the cached version of the inspection information.

Returns
True on success.

◆ writeAnalysisInfo()

bool sf::ScanEntry::writeAnalysisInfo ( )

Writes the filter analysis information to the inspection database.

Returns
True if anything has been written.

◆ writeProfile()

bool sf::ScanEntry::writeProfile ( IniProfile ini)
protected

Writes all scan entry data to the profile and returns true on succes.

Parameters
ini
Returns
True on success.

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