![]() |
Scanframe Modular Application 0.1.0
|
Singleton. More...
#include <ProjectModule.h>
Public Types | |
typedef TVector< ProjectData * > | ProjectList |
Type for sf::ProjectData data instances. | |
Public Member Functions | |
bool | Initialize () |
Initializes anything in need for initialization. | |
void | DestroyServers () |
Destroys the all servers. Is normally called by the destructor. | |
std::string | getSystemDesignation () const |
Gets the scan system designation name. | |
const std::string & | setSystemDesignation (const std::string &name) |
Sets the scan system designation. Returns value after filtering. | |
void | setSettingsGlobal (bool global) |
Sets the flag for keeping settings globally for all projects part of a project. | |
bool | getSettingsGlobal () const |
Gets the flag for keeping settings globally for all projects or part of a project. | |
void | setFiltersGlobal (bool global) |
Sets the flag which determines if filters are global for any project or part of a project. | |
bool | getFiltersGlobal () const |
Gets the flag which determines if filters are global for any project or part of a project. | |
bool | getSystemPosition (ESystemPosition sys_pos, gmi::AxesCoord &coord) const |
Gets a certain system position. | |
const gmi::AxesCoord & | getSystemPosition (ESystemPosition sys_pos) const |
Gets a certain system position. | |
bool | setSystemPosition (ESystemPosition sp, const gmi::AxesCoord &ac) |
Sets the system position from a passed coordinate and returns true on success. | |
bool | storeSystemPositions (bool rd) |
Stores the system positions. | |
void | getInspectionParts (QStringList &parts) |
Gets the string list of all inspected part serials. | |
void | getInspectionSerials (const QString &part, QStringList &serials) |
Gets the string list of all inspected part serials. | |
void | getInspectionDates (const QString &part, const QString &serial, QStringList &date_times) |
Gets the directory where the data is located for the passed part inspection. | |
QString | getInspectionFileDir (const PartInspection *part_inspection) |
Gets the directory where the data is located for the passed part inspection. | |
QString | getInspectionFileSubDir (const PartInspection *part_inspection) |
Gets the subdirectory where the data is located for the passed part inspection. | |
bool | inspectionExists (const PartInspection *pi) const |
Gets true if the passed part inspection exists. | |
bool | inspectionExists (const QString &part, const QString &serial, const QString &dts) const |
Gets true if the passed part inspection exists. | |
IniEnvelope | getInspectionIni (const PartInspection *pi) |
Gets the inspection information profile containing inspected area information on found defects and status. | |
std::string | getCalibrationSetSection (ECalibrationType cal_type, const std::string &set_name) |
Gets the calibration set section name. | |
std::string | getConfigCalibrationSetSection () const |
Gets the section name in the configuration file. | |
void | getConfigCalibrationSetNames (QStringList &names) const |
Gets the available configured calibration set names. | |
bool | getInspectionCalibSetValues (const PartInspection *pi, ECalibrationType cal_type, const std::string &set_name, KeyValues &values) |
Gets the calibration values of the inspection in a strings derived type. | |
bool | setInspectionCalibSetValues (const PartInspection *pi, ECalibrationType cal_type, const std::string &set_name, const KeyValues &values) |
Sets the calibration values of the inspection using a strings derived type. | |
bool | getCalibrationSetNames (const PartInspection *part_inspection, ECalibrationType cal_type, QStringList &set_names) |
Gets the calibration set names. | |
std::string | getInspectionAreaIniSection (const std::string &scan_area) const |
Gets the section name in the ini file for storing or retrieving scan-related inspection data. | |
std::string | getInspectionAnalysisIniSection (const std::string &scan_area, const std::string &name) const |
Gets the section name in the ini file for storing or retrieving scan-related inspection data. | |
bool | getInspectionGeneralInfo (const PartInspection *pi, KeyValues &info) |
Gets the string list of the general information. | |
bool | getInspectionCustomInfo (const PartInspection *pi, KeyValues &info) |
Gets the string list of the custom information. | |
bool | setInspectionCustomInfo (const PartInspection *pi, const KeyValues &info) |
Sets the string list of the custom information. | |
bool | getInspectionScanAreaInfo (const PartInspection *pi, const std::string &scan_area, KeyValues &info) |
Gets the string list of the scan area information. | |
EInspectionState | getInspectionState (const PartInspection *pi, const std::string &scan_area) const |
Gets the inspection state of the specified part and scan-area. | |
bool | setInspectionState (const PartInspection *pi, const std::string &scan_area, EInspectionState is) |
Sets the inspection state of the specified part and scan area. | |
QString | getInspectionUser (const PartInspection *pi, const std::string &scan_area) const |
Gets the name of the user that is responsible for this area. | |
bool | setInspectionUser (const PartInspection *pi, const std::string &scan_area, const std::string &username, const QDateTime &datetime) |
Sets the name of the user that is responsible for this area. | |
QString | getInspectionDateTimeStr (const PartInspection *pi, const std::string &scan_area) const |
Gets the data time of the scan area. | |
ECalibrationType | getInspectionCalType (const PartInspection *pi, const std::string &scan_area) const |
Gets the inspection calibration type. | |
bool | setInspectionCalType (const PartInspection *pi, const std::string &scan_area, ECalibrationType ct) |
Sets the inspection calibration type. | |
QString | getInspectionComment (const PartInspection *pi, const std::string &scan_area) const |
Gets the inspection comment for a scan area. | |
bool | setInspectionComment (const PartInspection *pi, const std::string &scan_area, const std::string &comment) |
Sets the inspection comment for a scan area. | |
bool | isInspectionFinalized (const PartInspection *part_inspection) const |
Gets true when the inspection finalized. | |
bool | finalizeInspection (const PartInspection *pi, bool reset=false) |
Finalizes the inspection. | |
QString | getInspectionDataFileName (const PartInspection *pi, const std::string &scan_area, int file_index=-1) const |
Gets the inspection data filename for a scan-area. | |
bool | getInspectionDataFileNames (const PartInspection *pi, const std::string &scan_area, QStringList &names) const |
Gets the history of inspected data files on this scan area. | |
bool | setInspectionDataFileName (const PartInspection *pi, const std::string &scan_area, const QString &filename) |
Sets the inspection data filename for a scan area. | |
bool | getInspectionScanAreas (const PartInspection *pi, QStringList &scan_areas) const |
Gets the scan area names. | |
bool | getInspectionAnalysisEntries (const PartInspection *pi, const std::string &scan_area, string_list &names) const |
Gets the analysis names. | |
bool | getAnalysisInfo (const PartInspection *pi, const std::string &scan_area, const std::string &name, KeyValues &info) const |
Gets the inspection analysis information. | |
bool | setAnalysisInfo (const PartInspection *pi, const std::string &scan_area, const std::string &name, const KeyValues &info) |
Sets the inspection analysis information or removes it. | |
bool | removeAllAnalysisInfo (const PartInspection *pi, const std::string &scan_area) |
Removes all the analysis information entries. | |
bool | createPartInspection (const PartProject *pp, PartInspection *pi) |
Creates a part inspection entry and returns true on success to do so. The part and serial are used to create an entry; the current datetime is used to fill in the datetime field. | |
void | getPartProject (PartProject *pp, const PartInspection *pi) const |
Gets the part project used to create the inspection. | |
bool | selectInspectedPart (PartInspection *pi) |
Selects a part from the database using a part project. | |
bool | selectInspectedPart (QString &part) |
Selects a part from the database. | |
bool | selectInspection (PartInspection *pi, bool create=false) |
Selects a part inspection. | |
IniEnvelope | getProjectCalibIni (const PartProject *part_proj) |
Gets the project profile containing. | |
bool | setProjectCalibSetValues (const PartProject *part_proj, ECalibrationType cal_type, const std::string &set_name, const KeyValues &values) |
Gets the calibration values of the project in a strings derived type. | |
bool | getProjectCalibSetValues (const PartProject *part_proj, ECalibrationType cal_type, const std::string &set_name, KeyValues &values) |
Sets the calibration values of the project using a strings derived type. | |
bool | setProjectDataDir (const QString &dir) |
Sets the database directory and sets the flag FlagDBDirExists. | |
QString | getProjectDataDir () const |
Gets the project data directory. | |
bool | isProjectDirValid () |
Gets true if the project directory is valid. | |
void | getProjectParts (QStringList &parts) |
Gets all part names into the passed string list. | |
QStringList | getProjectParts () |
Gets all part names into the passed string list. | |
void | getProjects (const QString &part, QStringList &projects) |
Gets all project names of the given part. | |
QStringList | getProjects (const QString &part) |
Gets all projects from a given part in a list. | |
void | getScans (const QString &part, QStringList &scans) |
Gets all scan area names of the given part. | |
bool | isPart (const QString &part) const |
Checks if the given part exists. | |
bool | isPart (const PartProject *part_project) const |
Checks if of the given part project the part exists. | |
void | getTools (QStringList &tools) const |
Gets all tool names to the passed string list. | |
void | getElements (QStringList &elements) const |
Gets all element names into the passed string list. | |
void | getMaterials (QStringList &materials, EMaterialType mt) const |
Gets all material names of the given type into the passed string list. | |
QString | getSettingsDir (const QString &part) const |
Gets the settings directory for the passed part. The location is depending on the settings global flag. | |
void | getSettings (QStringList &names, const QString &part) const |
Gets all settings names to the passed string list. The returned names are depending on the settings global flag. | |
QString | getTemplateDir () const |
Gets the template directory. | |
void | getScanTemplates (QStringList &names) const |
Gets the scan area template names. | |
IniEnvelope | getScanTemplateIni (const QString &name) |
Gets the ini-file of a scan area template. | |
bool | createProjectPart (const QString &part) |
Creates a new project part name. | |
bool | isProject (const QString &part, const QString &project) const |
Checks if the given part project combination exists. | |
bool | isProject (const PartProject *part_project) const |
Checks if the given part project exists. | |
bool | isScanArea (const QString &part, const QString &area_scan) |
Checks if the area scan exists on the part. | |
bool | isTool (const QString &tool) |
Checks if the tool exists. | |
bool | isElement (const QString &element) |
Checks if the element exists. | |
bool | isMaterial (const QString &material) |
Checks if the material exists. | |
bool | isSettings (const QString &part, const QString &settings) |
Checks if the config settings exist. | |
IniEnvelope | getScanIni (const QString &part, const QString &scan_area) |
Gets an inifile containing scan configuration information. | |
QString | getScanStateIniPath (const QString &part, const QString &scan_area) |
Gets an ini-file containing interface state information. | |
QString | getPartStateIniPath (const QString &part) |
Gets the inifile containing state information on the user interface. | |
IniEnvelope | getSettingsIni (const QString &part, const QString &settings_name) |
Gets an inifile containing settings information. The settings global flag is true the global settings are used. | |
IniEnvelope | getToolIni (const QString &tool) |
Gets an inifile containing the tool info. | |
IniEnvelope | getElementIni (const QString &element) |
Gets an inifile containing the element info. | |
IniEnvelope | getMaterialIni (const QString &material) |
Gets an inifile containing the material info. | |
IniEnvelope | getConfigIni () |
Gets the inifile containing configuration information. | |
QString | getProjectFilePath (const PartProject *part_project) const |
Gets the project filename of the specified part and project. | |
QString | getFilterPath (const PartProject *part_project) const |
Gets the filter filepath of the specified part project. | |
QString | getPartDirectory (const QString &part) const |
Gets the directory and drive of the passed part. | |
QImage | getPartPicture (const QString &part) |
Gets the picture of the passed part. | |
bool | getToolPicture (const QString &tool, QImage &image) |
Gets true if the picture of the passed tool was returned in picture. | |
bool | getElementPicture (const QString &element, QImage &image) |
Gets true if the picture of the passed tool was returned in picture. | |
bool | selectProjectPart (PartProject *part_project) |
Selects a part from the database. | |
bool | selectProjectPart (QString &part) |
Selects a part from the database. | |
bool | selectPartProject (PartProject *part_project) |
Selects an existing part project. | |
bool | selectProject (PartProject *part_project) |
Selects an existing project using the non-visible part. | |
const ProjectList & | getOpenProjects () const |
Gets the list of open project instances. | |
bool | setInspectionDataDir (const QString &dir) |
Sets the data-storage root directory and sets the flag FlagDataDirExists. | |
QString | getInspectionDataDir () |
Gets the inspection data directory. | |
bool | isInspectionDataDirValid () |
Gets true if data ase directory is valid. | |
GmiServer * | getMotionServer () |
Gets the motion server instance. | |
void | destroyDevices () |
Destroys all device/controller instances. | |
void | addServerPropertyPages (PropertySheetDialog *sheet) |
Adds server property pages to a passed property sheet. | |
void | addProjectPropertyPages (PropertySheetDialog *sheet) |
Adds project property pages to a passed property sheet. | |
int | getAcquisitionServerCount () const |
Gets the maximum number of servers available. | |
RsaServer * | getAcquisitionServer (int index) |
Gets the acquisition server at the passed index. | |
const RsaServer * | getAcquisitionServer (int index) const |
Gets the acquisition server at the passed index. | |
StorageInterface * | getStorage () |
Get the instance pointer storage interface implementation. | |
bool | openManualControlDialog () |
Opens a manual control dialog. | |
gmi::Controller * | getController () |
Get the instance pointer motion controller interface implementation. | |
bool | allocateController (const QString &allocator) |
Allocates the controller by allocator name. | |
bool | freeController (const QString &allocator) |
Frees the controller by allocator name. | |
bool | isControllerAllocated () |
Gets the allocation status of the controller. | |
int | getUsageCount () |
Reports the amount the module is referenced. | |
bool | initializeProjects () |
Initializes or reinitializes projects. | |
bool | canInitializeProjects () |
Checks if the projects can be (re)initialized. | |
void | attachProjectData (ProjectData *) |
Attach for automatic referencing of sf::ProjectData instances. | |
void | detachProjectData (ProjectData *) |
Detach for automatic referencing of sf::ProjectData instances. | |
ProjectData * | getActiveProject () |
Gets the active project. | |
bool | setActiveProject (ProjectData *project) |
Sets the passed project to be the active one. | |
void | registerToolEditor (TAddProjectPropertyPage editor) |
Adds a property page add function to the list for editing tools. | |
void | registerElementEditor (TAddProjectPropertyPage editor) |
Adds a property page add function to the list for editing elements. | |
void | registerMaterialEditor (TAddProjectPropertyPage editor) |
Adds a property page add function to the list for editing materials. | |
bool | editTool (const QString &tool) |
Edits a tool using the registered editor property pages. | |
bool | editElement (const QString &element) |
Edits an element using the registered editor property pages. | |
bool | editMaterial (const QString &material) |
Edits a material using the registered editor property pages. | |
bool | getMaterialVelocity (const QString &material, bool shear, double &value) |
Gets the sound velocity of the passed material. | |
bool | setMaterialVelocity (const QString &material, double longitudinal_vel, double shear_vel) |
Sets the sound velocity of the passed material. | |
void | registerReportGenerator (GenerateReportEvent handler) |
Hooks a report generator to this interface. | |
bool | hasReportGenerator () |
Checks if the report generator has been hooked. | |
bool | generateReport (ProjectData *project_data) |
Generates a report using the project data and report options. | |
bool | getReportTemplates (QStringList &strings) |
Gets the available report templates. | |
bool | backupInspection (const PartInspection *part_inspection) |
Initiates a backup of the inspection data for a given part inspection. | |
bool | backupProjects () |
Initiates a backup of the project data. | |
bool | isBackupAvailable () const |
Checks if a backup service is available. | |
![]() | |
ProjectConfig () | |
virtual | ~ProjectConfig () |
Settings & | settings () |
RsaServer * | getServerAcquisitionUt () |
RsaServer * | getServerAcquisitionEt () |
StorageServer * | getServerStorage () |
GmiServer * | getServerMotion () |
virtual void | addPropertyPages (PropertySheetDialog *sheet) |
Public Attributes | |
Security | SecurityConfig |
Security | SecurityProject |
Security | SecurityInspection |
Protected Member Functions | |
ProjectModule () | |
Default constructor. | |
~ProjectModule () override | |
Virtual Destructor. | |
QString | getConfigProfilePath () const |
Gets the filepath to the module configuration ini-file. | |
void | handlePropertyPage (QObject *sender) |
Handles the applying of property pages. | |
Friends | |
void | destroyProjectModule () |
Deletes the project module if it was created. | |
ProjectModule * | getProjectModule () |
Creates the project module when called for. | |
Additional Inherited Members | |
![]() | |
Settings * | _settings {nullptr} |
RsaServer * | _serverAcquisitionUt |
RsaServer * | _serverAcquisitionEt |
GmiServer * | _serverMotion |
StorageServer * | _serverStorage |
Singleton.
typedef TVector<ProjectData*> sf::ProjectModule::ProjectList |
Type for sf::ProjectData data instances.
|
protected |
Default constructor.
|
overrideprotected |
Virtual Destructor.
void sf::ProjectModule::addProjectPropertyPages | ( | PropertySheetDialog * | sheet | ) |
Adds project property pages to a passed property sheet.
void sf::ProjectModule::addServerPropertyPages | ( | PropertySheetDialog * | sheet | ) |
Adds server property pages to a passed property sheet.
bool sf::ProjectModule::allocateController | ( | const QString & | allocator | ) |
Allocates the controller by allocator name.
allocator | Name of the allocator. |
void sf::ProjectModule::attachProjectData | ( | ProjectData * | ) |
Attach for automatic referencing of sf::ProjectData instances.
bool sf::ProjectModule::backupInspection | ( | const PartInspection * | part_inspection | ) |
Initiates a backup of the inspection data for a given part inspection.
part_inspection | Part inspection to back up. |
bool sf::ProjectModule::backupProjects | ( | ) |
Initiates a backup of the project data.
bool sf::ProjectModule::canInitializeProjects | ( | ) |
Checks if the projects can be (re)initialized.
bool sf::ProjectModule::createPartInspection | ( | const PartProject * | pp, |
PartInspection * | pi | ||
) |
Creates a part inspection entry and returns true on success to do so. The part and serial are used to create an entry; the current datetime is used to fill in the datetime field.
bool sf::ProjectModule::createProjectPart | ( | const QString & | part | ) |
Creates a new project part name.
part | Name of the part. |
void sf::ProjectModule::destroyDevices | ( | ) |
Destroys all device/controller instances.
void sf::ProjectModule::DestroyServers | ( | ) |
Destroys the all servers. Is normally called by the destructor.
void sf::ProjectModule::detachProjectData | ( | ProjectData * | ) |
Detach for automatic referencing of sf::ProjectData instances.
bool sf::ProjectModule::editElement | ( | const QString & | element | ) |
Edits an element using the registered editor property pages.
element | Name of the element. |
bool sf::ProjectModule::editMaterial | ( | const QString & | material | ) |
Edits a material using the registered editor property pages.
material | Name of the material. |
bool sf::ProjectModule::editTool | ( | const QString & | tool | ) |
Edits a tool using the registered editor property pages.
tool | Name of the tool. |
bool sf::ProjectModule::finalizeInspection | ( | const PartInspection * | pi, |
bool | reset = false |
||
) |
Finalizes the inspection.
bool sf::ProjectModule::freeController | ( | const QString & | allocator | ) |
Frees the controller by allocator name.
allocator | Name of the allocator to free control. |
bool sf::ProjectModule::generateReport | ( | ProjectData * | project_data | ) |
Generates a report using the project data and report options.
project_data | Project data to report on. |
RsaServer * sf::ProjectModule::getAcquisitionServer | ( | int | index | ) |
Gets the acquisition server at the passed index.
index | index. |
const RsaServer * sf::ProjectModule::getAcquisitionServer | ( | int | index | ) | const |
Gets the acquisition server at the passed index.
index | index. |
int sf::ProjectModule::getAcquisitionServerCount | ( | ) | const |
Gets the maximum number of servers available.
ProjectData * sf::ProjectModule::getActiveProject | ( | ) |
Gets the active project.
bool sf::ProjectModule::getAnalysisInfo | ( | const PartInspection * | pi, |
const std::string & | scan_area, | ||
const std::string & | name, | ||
KeyValues & | info | ||
) | const |
Gets the inspection analysis information.
pi | Inspection part to point out the analysis information. |
scan_area | Analyzed scan area name. |
name | Name of the analysis. Is the assigned filter name. |
info | Returned information list. |
bool sf::ProjectModule::getCalibrationSetNames | ( | const PartInspection * | part_inspection, |
ECalibrationType | cal_type, | ||
QStringList & | set_names | ||
) |
Gets the calibration set names.
part_inspection | Inspection data entry. |
cal_type | Type of the calibration. |
set_names | Names returned. |
std::string sf::ProjectModule::getCalibrationSetSection | ( | ECalibrationType | cal_type, |
const std::string & | set_name | ||
) |
Gets the calibration set section name.
void sf::ProjectModule::getConfigCalibrationSetNames | ( | QStringList & | names | ) | const |
Gets the available configured calibration set names.
std::string sf::ProjectModule::getConfigCalibrationSetSection | ( | ) | const |
Gets the section name in the configuration file.
IniEnvelope sf::ProjectModule::getConfigIni | ( | ) |
Gets the inifile containing configuration information.
|
protected |
Gets the filepath to the module configuration ini-file.
gmi::Controller * sf::ProjectModule::getController | ( | ) |
Get the instance pointer motion controller interface implementation.
IniEnvelope sf::ProjectModule::getElementIni | ( | const QString & | element | ) |
Gets an inifile containing the element info.
element | Name of the element. |
bool sf::ProjectModule::getElementPicture | ( | const QString & | element, |
QImage & | image | ||
) |
Gets true if the picture of the passed tool was returned in picture.
element | Name of the element |
image | Returned picture of the element. |
void sf::ProjectModule::getElements | ( | QStringList & | elements | ) | const |
Gets all element names into the passed string list.
elements | Returned the list of element names. |
QString sf::ProjectModule::getFilterPath | ( | const PartProject * | part_project | ) | const |
Gets the filter filepath of the specified part project.
part_project | Part project instance. |
bool sf::ProjectModule::getFiltersGlobal | ( | ) | const |
Gets the flag which determines if filters are global for any project or part of a project.
bool sf::ProjectModule::getInspectionAnalysisEntries | ( | const PartInspection * | pi, |
const std::string & | scan_area, | ||
string_list & | names | ||
) | const |
Gets the analysis names.
pi | Inspection part to point out the analysis information. |
scan_area | Analyzed scan area. |
names | Returned analysis values. |
std::string sf::ProjectModule::getInspectionAnalysisIniSection | ( | const std::string & | scan_area, |
const std::string & | name | ||
) | const |
Gets the section name in the ini file for storing or retrieving scan-related inspection data.
std::string sf::ProjectModule::getInspectionAreaIniSection | ( | const std::string & | scan_area | ) | const |
Gets the section name in the ini file for storing or retrieving scan-related inspection data.
bool sf::ProjectModule::getInspectionCalibSetValues | ( | const PartInspection * | pi, |
ECalibrationType | cal_type, | ||
const std::string & | set_name, | ||
KeyValues & | values | ||
) |
Gets the calibration values of the inspection in a strings derived type.
pi | Inspection data entry. |
cal_type | Type of the calibration. |
set_name | Name of the calibration set. |
values |
ECalibrationType sf::ProjectModule::getInspectionCalType | ( | const PartInspection * | pi, |
const std::string & | scan_area | ||
) | const |
Gets the inspection calibration type.
QString sf::ProjectModule::getInspectionComment | ( | const PartInspection * | pi, |
const std::string & | scan_area | ||
) | const |
Gets the inspection comment for a scan area.
bool sf::ProjectModule::getInspectionCustomInfo | ( | const PartInspection * | pi, |
KeyValues & | info | ||
) |
Gets the string list of the custom information.
QString sf::ProjectModule::getInspectionDataDir | ( | ) |
Gets the inspection data directory.
QString sf::ProjectModule::getInspectionDataFileName | ( | const PartInspection * | pi, |
const std::string & | scan_area, | ||
int | file_index = -1 |
||
) | const |
Gets the inspection data filename for a scan-area.
pi | Inspection part to point out the inspection. |
scan_area | Scanned area name. |
file_index | Index of one of the previous data files. When -1 it returns always the current one. |
bool sf::ProjectModule::getInspectionDataFileNames | ( | const PartInspection * | pi, |
const std::string & | scan_area, | ||
QStringList & | names | ||
) | const |
Gets the history of inspected data files on this scan area.
pi | Inspection part to point out the inspection. |
scan_area | Scanned area name. |
names | Returned data file names. |
void sf::ProjectModule::getInspectionDates | ( | const QString & | part, |
const QString & | serial, | ||
QStringList & | date_times | ||
) |
Gets the directory where the data is located for the passed part inspection.
part | Name of the part. |
serial | Serial of the part. |
date_times | List of inspection date times. |
QString sf::ProjectModule::getInspectionDateTimeStr | ( | const PartInspection * | pi, |
const std::string & | scan_area | ||
) | const |
Gets the data time of the scan area.
QString sf::ProjectModule::getInspectionFileDir | ( | const PartInspection * | part_inspection | ) |
Gets the directory where the data is located for the passed part inspection.
QString sf::ProjectModule::getInspectionFileSubDir | ( | const PartInspection * | part_inspection | ) |
Gets the subdirectory where the data is located for the passed part inspection.
part_inspection |
bool sf::ProjectModule::getInspectionGeneralInfo | ( | const PartInspection * | pi, |
KeyValues & | info | ||
) |
Gets the string list of the general information.
IniEnvelope sf::ProjectModule::getInspectionIni | ( | const PartInspection * | pi | ) |
Gets the inspection information profile containing inspected area information on found defects and status.
void sf::ProjectModule::getInspectionParts | ( | QStringList & | parts | ) |
Gets the string list of all inspected part serials.
parts |
bool sf::ProjectModule::getInspectionScanAreaInfo | ( | const PartInspection * | pi, |
const std::string & | scan_area, | ||
KeyValues & | info | ||
) |
Gets the string list of the scan area information.
bool sf::ProjectModule::getInspectionScanAreas | ( | const PartInspection * | pi, |
QStringList & | scan_areas | ||
) | const |
Gets the scan area names.
pi | Inspection part to point out the analysis information. |
scan_areas | Returned scan area names. |
void sf::ProjectModule::getInspectionSerials | ( | const QString & | part, |
QStringList & | serials | ||
) |
Gets the string list of all inspected part serials.
EInspectionState sf::ProjectModule::getInspectionState | ( | const PartInspection * | pi, |
const std::string & | scan_area | ||
) | const |
Gets the inspection state of the specified part and scan-area.
QString sf::ProjectModule::getInspectionUser | ( | const PartInspection * | pi, |
const std::string & | scan_area | ||
) | const |
Gets the name of the user that is responsible for this area.
IniEnvelope sf::ProjectModule::getMaterialIni | ( | const QString & | material | ) |
Gets an inifile containing the material info.
material | Name of the element. |
void sf::ProjectModule::getMaterials | ( | QStringList & | materials, |
EMaterialType | mt | ||
) | const |
Gets all material names of the given type into the passed string list.
materials | Returned list of materials. |
mt | Type of material. |
bool sf::ProjectModule::getMaterialVelocity | ( | const QString & | material, |
bool | shear, | ||
double & | value | ||
) |
Gets the sound velocity of the passed material.
material | Name of the material. |
shear | True when the shear velocity is required. |
value | Returned velocity value in m/s. |
GmiServer * sf::ProjectModule::getMotionServer | ( | ) |
Gets the motion server instance.
const ProjectList & sf::ProjectModule::getOpenProjects | ( | ) | const |
Gets the list of open project instances.
QString sf::ProjectModule::getPartDirectory | ( | const QString & | part | ) | const |
Gets the directory and drive of the passed part.
part | Name of the part. |
QImage sf::ProjectModule::getPartPicture | ( | const QString & | part | ) |
Gets the picture of the passed part.
part | Name of the part. |
void sf::ProjectModule::getPartProject | ( | PartProject * | pp, |
const PartInspection * | pi | ||
) | const |
Gets the part project used to create the inspection.
pp | Project data entry. |
pi | Inspection part to point out the analysis information. |
QString sf::ProjectModule::getPartStateIniPath | ( | const QString & | part | ) |
Gets the inifile containing state information on the user interface.
part |
IniEnvelope sf::ProjectModule::getProjectCalibIni | ( | const PartProject * | part_proj | ) |
Gets the project profile containing.
part_proj |
bool sf::ProjectModule::getProjectCalibSetValues | ( | const PartProject * | part_proj, |
ECalibrationType | cal_type, | ||
const std::string & | set_name, | ||
KeyValues & | values | ||
) |
Sets the calibration values of the project using a strings derived type.
part_proj | Project data entry. |
cal_type | Type of the calibration. |
set_name | Name of the calibration set. |
values | Returned values. |
QString sf::ProjectModule::getProjectDataDir | ( | ) | const |
Gets the project data directory.
QString sf::ProjectModule::getProjectFilePath | ( | const PartProject * | part_project | ) | const |
Gets the project filename of the specified part and project.
part_project | Part project instance. |
QStringList sf::ProjectModule::getProjectParts | ( | ) |
Gets all part names into the passed string list.
void sf::ProjectModule::getProjectParts | ( | QStringList & | parts | ) |
Gets all part names into the passed string list.
parts | Return values. |
QStringList sf::ProjectModule::getProjects | ( | const QString & | part | ) |
Gets all projects from a given part in a list.
part | Name of the part. |
void sf::ProjectModule::getProjects | ( | const QString & | part, |
QStringList & | projects | ||
) |
Gets all project names of the given part.
part | Name of the part. |
projects | Returned project names. |
bool sf::ProjectModule::getReportTemplates | ( | QStringList & | strings | ) |
Gets the available report templates.
strings | Returned the list of template names. |
IniEnvelope sf::ProjectModule::getScanIni | ( | const QString & | part, |
const QString & | scan_area | ||
) |
Gets an inifile containing scan configuration information.
part | Name of the part. |
scan_area | NAme of the scan area, |
void sf::ProjectModule::getScans | ( | const QString & | part, |
QStringList & | scans | ||
) |
Gets all scan area names of the given part.
part | Part name. |
scans | Returned scan area names. |
QString sf::ProjectModule::getScanStateIniPath | ( | const QString & | part, |
const QString & | scan_area | ||
) |
Gets an ini-file containing interface state information.
part | Name of the part. |
scan_area | NAme of the scan area, |
IniEnvelope sf::ProjectModule::getScanTemplateIni | ( | const QString & | name | ) |
Gets the ini-file of a scan area template.
name | Name of the template. |
void sf::ProjectModule::getScanTemplates | ( | QStringList & | names | ) | const |
Gets the scan area template names.
names | Returned template names. |
void sf::ProjectModule::getSettings | ( | QStringList & | names, |
const QString & | part | ||
) | const |
Gets all settings names to the passed string list. The returned names are depending on the settings global flag.
names | Returned setting names. |
part | When the part is empty, the global settings are returned. |
QString sf::ProjectModule::getSettingsDir | ( | const QString & | part | ) | const |
Gets the settings directory for the passed part. The location is depending on the settings global flag.
part | When the part is empty, the global directory is returned. |
bool sf::ProjectModule::getSettingsGlobal | ( | ) | const |
Gets the flag for keeping settings globally for all projects or part of a project.
IniEnvelope sf::ProjectModule::getSettingsIni | ( | const QString & | part, |
const QString & | settings_name | ||
) |
Gets an inifile containing settings information. The settings global flag is true the global settings are used.
part | Name of the part. Ignored when settings are global. |
settings_name | Named settings when empty the global ini-file is returned. |
StorageInterface * sf::ProjectModule::getStorage | ( | ) |
Get the instance pointer storage interface implementation.
std::string sf::ProjectModule::getSystemDesignation | ( | ) | const |
Gets the scan system designation name.
const gmi::AxesCoord & sf::ProjectModule::getSystemPosition | ( | ESystemPosition | sys_pos | ) | const |
Gets a certain system position.
sys_pos | to get. |
bool sf::ProjectModule::getSystemPosition | ( | ESystemPosition | sys_pos, |
gmi::AxesCoord & | coord | ||
) | const |
Gets a certain system position.
sys_pos | System position to get. |
coord | Coordinate retrieved. |
QString sf::ProjectModule::getTemplateDir | ( | ) | const |
Gets the template directory.
IniEnvelope sf::ProjectModule::getToolIni | ( | const QString & | tool | ) |
Gets an inifile containing the tool info.
tool | Name of the tool. |
bool sf::ProjectModule::getToolPicture | ( | const QString & | tool, |
QImage & | image | ||
) |
Gets true if the picture of the passed tool was returned in picture.
tool | Name of the tool. |
image | Returned picture of the tool. |
void sf::ProjectModule::getTools | ( | QStringList & | tools | ) | const |
Gets all tool names to the passed string list.
tools | List of tool names returned. |
int sf::ProjectModule::getUsageCount | ( | ) |
Reports the amount the module is referenced.
|
protected |
Handles the applying of property pages.
sender | Property page calling this method. |
bool sf::ProjectModule::hasReportGenerator | ( | ) |
Checks if the report generator has been hooked.
bool sf::ProjectModule::Initialize | ( | ) |
Initializes anything in need for initialization.
bool sf::ProjectModule::initializeProjects | ( | ) |
Initializes or reinitializes projects.
bool sf::ProjectModule::inspectionExists | ( | const PartInspection * | pi | ) | const |
Gets true if the passed part inspection exists.
bool sf::ProjectModule::inspectionExists | ( | const QString & | part, |
const QString & | serial, | ||
const QString & | dts | ||
) | const |
Gets true if the passed part inspection exists.
bool sf::ProjectModule::isBackupAvailable | ( | ) | const |
Checks if a backup service is available.
bool sf::ProjectModule::isControllerAllocated | ( | ) |
Gets the allocation status of the controller.
bool sf::ProjectModule::isElement | ( | const QString & | element | ) |
Checks if the element exists.
element | Name of the element. |
bool sf::ProjectModule::isInspectionDataDirValid | ( | ) |
Gets true if data ase directory is valid.
bool sf::ProjectModule::isInspectionFinalized | ( | const PartInspection * | part_inspection | ) | const |
Gets true when the inspection finalized.
bool sf::ProjectModule::isMaterial | ( | const QString & | material | ) |
Checks if the material exists.
material | Name of the material. |
bool sf::ProjectModule::isPart | ( | const PartProject * | part_project | ) | const |
Checks if of the given part project the part exists.
part_project | Part project. |
bool sf::ProjectModule::isPart | ( | const QString & | part | ) | const |
Checks if the given part exists.
part | Name of the part. |
bool sf::ProjectModule::isProject | ( | const PartProject * | part_project | ) | const |
Checks if the given part project exists.
part_project | Part project instance pointer. |
bool sf::ProjectModule::isProject | ( | const QString & | part, |
const QString & | project | ||
) | const |
Checks if the given part project combination exists.
part | Name of the part. |
project | Name of the project. |
bool sf::ProjectModule::isProjectDirValid | ( | ) |
Gets true if the project directory is valid.
bool sf::ProjectModule::isScanArea | ( | const QString & | part, |
const QString & | area_scan | ||
) |
Checks if the area scan exists on the part.
part | Name of the part. |
area_scan | Name of the scan area. |
bool sf::ProjectModule::isSettings | ( | const QString & | part, |
const QString & | settings | ||
) |
Checks if the config settings exist.
part | NAme of the part. |
settings | Name of the settings. |
bool sf::ProjectModule::isTool | ( | const QString & | tool | ) |
Checks if the tool exists.
tool | Name of the tool. |
bool sf::ProjectModule::openManualControlDialog | ( | ) |
Opens a manual control dialog.
void sf::ProjectModule::registerElementEditor | ( | TAddProjectPropertyPage | editor | ) |
Adds a property page add function to the list for editing elements.
editor |
void sf::ProjectModule::registerMaterialEditor | ( | TAddProjectPropertyPage | editor | ) |
Adds a property page add function to the list for editing materials.
editor |
void sf::ProjectModule::registerReportGenerator | ( | GenerateReportEvent | handler | ) |
Hooks a report generator to this interface.
handler |
void sf::ProjectModule::registerToolEditor | ( | TAddProjectPropertyPage | editor | ) |
Adds a property page add function to the list for editing tools.
editor |
bool sf::ProjectModule::removeAllAnalysisInfo | ( | const PartInspection * | pi, |
const std::string & | scan_area | ||
) |
Removes all the analysis information entries.
pi | Inspection part to point out the analysis information. |
scan_area | Analyzed scan area. |
bool sf::ProjectModule::selectInspectedPart | ( | PartInspection * | pi | ) |
Selects a part from the database using a part project.
pi |
bool sf::ProjectModule::selectInspectedPart | ( | QString & | part | ) |
Selects a part from the database.
part | Returned part name. |
bool sf::ProjectModule::selectInspection | ( | PartInspection * | pi, |
bool | create = false |
||
) |
Selects a part inspection.
pi | Part inspection. |
create | When 'true' it selects an inspection from the inspection database. When 'false' the part list is filled with parts from the project list and the selected part cannot be changed. |
bool sf::ProjectModule::selectPartProject | ( | PartProject * | part_project | ) |
Selects an existing part project.
part_project | Part project instance to be filled in. |
bool sf::ProjectModule::selectProject | ( | PartProject * | part_project | ) |
Selects an existing project using the non-visible part.
part_project | Part project instance to be filled in. |
bool sf::ProjectModule::selectProjectPart | ( | PartProject * | part_project | ) |
Selects a part from the database.
part_project | Part project instance to be filled in. |
bool sf::ProjectModule::selectProjectPart | ( | QString & | part | ) |
Selects a part from the database.
part | Part string to be filled in. |
bool sf::ProjectModule::setActiveProject | ( | ProjectData * | project | ) |
Sets the passed project to be the active one.
project | Project to be activated. |
bool sf::ProjectModule::setAnalysisInfo | ( | const PartInspection * | pi, |
const std::string & | scan_area, | ||
const std::string & | name, | ||
const KeyValues & | info | ||
) |
Sets the inspection analysis information or removes it.
pi | Inspection part to point out the analysis information. |
scan_area | Analyzed scan area. |
name | Name of the analysis. Is the assigned filter name. |
info | Information strings to set or NULL when the name should be deleted. |
void sf::ProjectModule::setFiltersGlobal | ( | bool | global | ) |
Sets the flag which determines if filters are global for any project or part of a project.
bool sf::ProjectModule::setInspectionCalibSetValues | ( | const PartInspection * | pi, |
ECalibrationType | cal_type, | ||
const std::string & | set_name, | ||
const KeyValues & | values | ||
) |
Sets the calibration values of the inspection using a strings derived type.
pi | Inspection data entry. |
cal_type | Type of the calibration. |
set_name | Name of the calibration set. |
values | Returned values. |
bool sf::ProjectModule::setInspectionCalType | ( | const PartInspection * | pi, |
const std::string & | scan_area, | ||
ECalibrationType | ct | ||
) |
Sets the inspection calibration type.
bool sf::ProjectModule::setInspectionComment | ( | const PartInspection * | pi, |
const std::string & | scan_area, | ||
const std::string & | comment | ||
) |
Sets the inspection comment for a scan area.
bool sf::ProjectModule::setInspectionCustomInfo | ( | const PartInspection * | pi, |
const KeyValues & | info | ||
) |
Sets the string list of the custom information.
bool sf::ProjectModule::setInspectionDataDir | ( | const QString & | dir | ) |
Sets the data-storage root directory and sets the flag FlagDataDirExists.
dir | Inspection data directory. |
bool sf::ProjectModule::setInspectionDataFileName | ( | const PartInspection * | pi, |
const std::string & | scan_area, | ||
const QString & | filename | ||
) |
Sets the inspection data filename for a scan area.
pi | Inspection part to point out the inspection. |
scan_area | Scanned area name. |
filename |
bool sf::ProjectModule::setInspectionState | ( | const PartInspection * | pi, |
const std::string & | scan_area, | ||
EInspectionState | is | ||
) |
Sets the inspection state of the specified part and scan area.
bool sf::ProjectModule::setInspectionUser | ( | const PartInspection * | pi, |
const std::string & | scan_area, | ||
const std::string & | username, | ||
const QDateTime & | datetime | ||
) |
Sets the name of the user that is responsible for this area.
bool sf::ProjectModule::setMaterialVelocity | ( | const QString & | material, |
double | longitudinal_vel, | ||
double | shear_vel | ||
) |
Sets the sound velocity of the passed material.
material | Name of the material. |
longitudinal_vel | Longitudinal sound velocity value in m/s. |
shear_vel | Shear sound velocity value in m/s. |
bool sf::ProjectModule::setProjectCalibSetValues | ( | const PartProject * | part_proj, |
ECalibrationType | cal_type, | ||
const std::string & | set_name, | ||
const KeyValues & | values | ||
) |
Gets the calibration values of the project in a strings derived type.
part_proj | Project data entry. |
cal_type | Type of the calibration. |
set_name | Name of the calibration set. |
values | Returned values. |
bool sf::ProjectModule::setProjectDataDir | ( | const QString & | dir | ) |
Sets the database directory and sets the flag FlagDBDirExists.
dir | Path of the directory. |
void sf::ProjectModule::setSettingsGlobal | ( | bool | global | ) |
Sets the flag for keeping settings globally for all projects part of a project.
global | True when settings are global. |
const std::string & sf::ProjectModule::setSystemDesignation | ( | const std::string & | name | ) |
Sets the scan system designation. Returns value after filtering.
name | Name to assign. |
bool sf::ProjectModule::setSystemPosition | ( | ESystemPosition | sp, |
const gmi::AxesCoord & | ac | ||
) |
Sets the system position from a passed coordinate and returns true on success.
bool sf::ProjectModule::storeSystemPositions | ( | bool | rd | ) |
Stores the system positions.
rd | True for reading and false for writing. |
|
friend |
Deletes the project module if it was created.
|
friend |
Creates the project module when called for.
Security sf::ProjectModule::SecurityConfig |
Security sf::ProjectModule::SecurityInspection |
Security sf::ProjectModule::SecurityProject |