![]() |
Scanframe Modular Application 0.1.0
|
#include <ScanMethod.h>


Classes | |
| struct | Parameters |
| Mandatory structure for initialization of derived class. More... | |
Public Types | |
| enum | EDefaultParamIndex { dpiINDEXCOUNT = 0 , dpiINDEXDENS = 1 , dpiSCANDENS = 2 , dpiSCANLEN = 3 , dpiDENSMODE = 4 , dpiANGLE_A = 5 , dpiANGLE_B = 6 , dpiSURFACEANGLE_A = 7 , dpiSURFACEANGLE_B = 8 , dpiGATEMODE = 10 , dpiDEPTH = 23 , dpiDEPTHFACTOR = 24 , dpiLAST = 0x100 } |
| Default parameter ID indices for derived scan methods. More... | |
| enum | ECommand : int { smcINIT , smcACTIVATE , smcDEACTIVATE , smcCHECK , smcSCAN , smcEVALUATE , smcSTOP , smcOFFSETCHANGE } |
| Available commands. More... | |
| enum | EState { smsCFGERR = -2 , smsERROR = -1 , smsNOINIT = 0 , smsREADY , smsACTIVE , smsCHECKING , smsSCANNING , smsEVALUATING , smsLASTENTRY } |
| States of operation. More... | |
Public Types inherited from sf::ScriptObject | |
| enum | EIdentifier { idUnknown = 0 , idConstant , idVariable , idFunction , idTypedef , idKeyword } |
| Keyword identifiers. More... | |
| typedef std::string::size_type | pos_type |
| Source position type. | |
| typedef ssize_t | ip_type |
| Instruction pointer type. | |
Public Member Functions | |
| ScanMethod (const Parameters &) | |
| Constructor for passing general structure for derived classes create by the class factory. | |
| ~ScanMethod () override | |
| Virtual destructor for derived classes. | |
| void | SetAreaName (const QString &name) |
| Changes the area name so it is saved by the project under this new name. | |
| QString | GetAreaName () const |
| Gets the area name of the scan entry. | |
| bool | DoInitialize () |
| Initializes the class after the constructor is called. Final virtual functions are only valid after full construction of a scan method. This function actually calls virtual function Initialize. | |
| virtual void | DestroyViewer () |
| Called before a scan method is deleted. | |
| virtual std::ostream & | cout () |
| Gets an output stream to print error or no error information to std::cout. Which can be overridden to a local one. | |
| bool | Execute (ECommand cmd) |
| Calls HandleCommand() after several checks. | |
| ECommand | GetCommand () |
| Gets the last Issued command. | |
| void | DoAddPropertyPages (PropertySheetDialog *sheet) |
| Calls AddPropertyPages if the state allows it. | |
| void | SetIndexFracRange (double start, double stop) |
| Sets the new scan range for a defined surface. | |
| int | GetIndexCount () const |
| Gets the number of indices in the scan method. | |
| int | GetIndexStart () const |
| Gets the clipped start value of the set range. | |
| int | GetIndexStop () const |
| Gets the clipped stop value of the set range. | |
| int | GetScanListIndex () const |
| Returns the scan list index of this instance in the project. | |
| bool | Reinitialize () |
| When the state is ready, the scan method can be reinitialize. For example, after changes are made to settings. | |
| void | DoRead (IniEnvelope ini) |
| Reads the settings of the scan method. Calls eventually the overridden Read() method. | |
| void | DoWrite (IniEnvelope ini) |
| Writes the settings of the scan method. Calls eventually the overridden Write() method. | |
| void | LoadSystemSettings (const QString &settings={}) |
| Loads the system setting associated with the scan method overriding the settings from the selected calibration set. | |
| bool | SaveSystemSettings (const QString &settings) |
| Saves the system setting associated with the scan method. | |
| bool | IsActivated () const |
| Check if the scan method was activated. | |
| bool | DoSustain (const timespec &) |
| Called by the inspection project to enable the derived class to do some background processing. | |
| bool | DoCreateFrame () |
| Creates a scan method UI frame if possible. Calls the overridden createViewer() method. | |
| bool | DoConvertPosition (gmi::AxesCoord &dest, const gmi::AxesCoord &src, bool to_focus) const |
| Converts a physical position to or from a focus position using the scan's configuration. Actually calls the overridden ConvertPosition() method. | |
| bool | DoGetIndexPos (gmi::AxesCoord &pos, int index, double frac, bool perp) const |
| Gets the axes' position calculated by the derived scan mode. Actually calls the overridden GetIndexPos() method. | |
| bool | DoGetFocusPos (gmi::AxesCoord &dest, int index, double frac) const |
| Gets the focus position calculated by the derived scan mode. Actually calls the overridden GetFocusPos() method. | |
| bool | DoGetIndexVel (gmi::AxesCoord &dest, int index) const |
| Gets the velocity calculated by the derived scan mode. | |
| bool | DoGetMeasureOffset (Vector3D &vector, int index, double frac, bool perp) const |
| Gets the vector caused by changing measurement offsets. This means the offset caused by the A-scan delay change. | |
| bool | DoSetAcqParams (int index, double frac) |
| Calls the overridden SetAcqParams() method on the derived class. | |
| bool | DoGetTriggerValue (gmi::AxisValue &value) const |
| Gets the axis used for triggering measurements or when the axis location is gmi::EAxisLocation::alNA the internal generation is to be used. Calls the overridden GetTriggerValue() method. | |
| gmi::EAxisLocation | DoGetScanAxis () const |
| Gets the scan and index axis for position calculations. Calls the overridden GetScanAxis() method. | |
| bool | GetScanStart (gmi::AxesCoord &ac) const |
| Gets the position coordinate where the project passes control to the scan method. | |
| bool | GetScanStop (gmi::AxesCoord &ac) const |
| Gets the position where the scan method passes control to the project. | |
| const gmi::AxesCoord & | GetScanVelocity () const |
| Gets the velocity for the scan method to move. Actually calls the scan binder method sf::ScanBinder::GetVelocity(). | |
| const gmi::AxesCoord & | GetScanAcceleration () const |
| Gets the acceleration for the scan method to move. Actually calls the scan binder method sf::ScanBinder::GetVelocity(). | |
| const ScanBinder::InfoBase * | GetScanInfo () const |
| Gets the binder information of this scan method instance. | |
| const Vector3D & | GetScanOffset () const |
| Gets the offset of the part to its programmed position. | |
| Vector3D | GetOffset () const |
| Gets the total offsets added. | |
| const Variable & | GetMediumVelocity () const |
| Gets the medium sound velocity system variable. | |
| const Variable & | GetMaterialVelocity () const |
| Gets the material sound velocity system variable. | |
| bool | GetRefractionAngle (double &dest, double src, bool to_medium=true) |
| Gets the refracted angle. | |
| TDataFilterLinks & | GetFilterLinks () |
| Gets the analysis filter links. | |
| bool | ExecuteFilters (TDataFilterEntry::EAction action=TDataFilterEntry::feaSTART) |
| Execute the referenced filters. | |
| const std::vector< int > & | GetUsedDevices () const |
| Gets the acquisition devices used. | |
| bool | IsCalibReady () |
| Checks if the calibration is complete. | |
| void | SetAcqState (InformationServer::EState sel_state, InformationServer::EState unsel_state=InformationServer::issOff) |
| Sets the state on all acquisition devices. | |
| EState | GetState () const |
| Gets the state of the instance. | |
| virtual void | HandleCursorEvent (bool btn_down, Qt::KeyboardModifiers shift, int index, double frac) |
| Can be overridden to handle cursor events when the scan is selected in the project. | |
| ProjectData * | GetProjectData () |
| Gets the project this instance is part of. | |
| const std::string & | GetMethodName () const |
| Gets this method's name. | |
| QString | GetDirectiveText () const |
| Gets the directive text. | |
| bool | GetDirectiveEnabled () const |
| Gets the flag weather the directive is enabled. | |
| ESystemPosition | GetDirectivePosition () |
| ?? | |
| QString | GetElementName () |
| Gets the element name. | |
| QString | GetToolName () |
| Gets the tool name. | |
| QString | GetMaterialName () |
| Gets the material name. | |
| QString | GetSettingsName () const |
| Gets the settings name. | |
| std::string | GetNamePrefix () const |
| Gets the name prefix. | |
| ECalibrationType | GetCalibrationType () |
| Gets the calibration type name. | |
| QString | GetCalibrationSetName () const |
| Gets the calibration set name. | |
| InformationTypes::IdVector & | GetCalibrationIds () |
| Gets the calibration ids. | |
| std::string | GetFilterConfigs () |
| Gets the comma-separated string of filter configuration names. | |
| Variable::PtrVector & | GetLocalVars () |
| Gets the local variables in a pointer vector. | |
| QWidget * | getViewer () |
| Called by a derived class to get its UI widget pointer. | |
Public Member Functions inherited from sf::ProjectScriptObject | |
| ProjectScriptObject (const char *type_name) | |
| Constructor. | |
| ~ProjectScriptObject () override | |
| Virtual overridden destructor. | |
| void | AddScriptParam (const std::string &name, Variable *variable) |
| Adds the passed variable as a parameter in the script. | |
Public Member Functions inherited from sf::ScriptObject | |
| ScriptObject (const char *type_name, ScriptObject *parent=nullptr) | |
| virtual | ~ScriptObject ()=default |
| Virtual destructor which can be overridden to clean up objects. | |
| virtual std::string | getStatusText () |
| Gets the status text of this object for debugging purposes. | |
| int | getRefCount () const |
| Gets the reference count. | |
| operator Value () const | |
| Cast operator to be able to return this instance as a Value. | |
| std::string | getTypeName () const |
| Returns the type name Set at the constructor. | |
| ScriptObject * | getParent () |
| Gets the script object owner. | |
| const ScriptObject * | getParent () const |
| Gets the script object owner. | |
| ScriptObject * | castToObject (const Value &value) |
| Casts a sf::Value::vitCustom typed sf::Value to a ScriptObject typed pointer. | |
Static Public Member Functions | |
| static const char * | GetStateName (EState) |
| Gets the state name of the given state value. | |
| static const char * | GetCommandName (ECommand) |
| Gets the command name of the given command value. | |
Static Public Member Functions inherited from sf::ScriptObject | |
| static const IdInfo * | getInfoUnknown () |
| Returns the static Info structure for unknowns. | |
Protected Member Functions | |
| ConfigStore & | GetSaveState () |
| Gets the config store for saving and restoring the state of a frame. It is probably in the projects ini-profile. | |
| const IdInfo * | getInfo (const std::string &name) const override |
| Overridden from base class sf::ProjectScriptObject. | |
| bool | getSetValue (const IdInfo *info, Value *value, Value::vector_type *params, bool flag_set) override |
| Overridden from base class sf::ProjectScriptObject. | |
| virtual bool | createViewer () |
| Creates a scan method UI frame if possible. Can be overridden by a derived class. | |
| virtual bool | ConvertPosition (gmi::AxesCoord &dest, const gmi::AxesCoord &src, bool to_focus) const =0 |
| Converts a physical position to or from a focus position using the scan's configuration. | |
| virtual ScriptLink * | GetScriptLink () |
| Gets the script link when one is associated. Can be overridden by a derived class. | |
| virtual void | StateChange (EState prev, EState cur)=0 |
| Is called when the current state changes for a derived class to act up on. Must be overridden by a derived class. | |
| virtual bool | Initialize ()=0 |
| Initializes the scan method. Must be overridden by a derived class. | |
| virtual void | Read (IniProfile *inifile)=0 |
| Reads the settings from the passed inifile. | |
| virtual void | Write (IniProfile *inifile)=0 |
| Writes the settings to the passed inifile. | |
| virtual bool | GetGenericInfoList (StringList &)=0 |
| Gets the list of linked variables or results. Must be overridden in a derived class. | |
| virtual bool | Sustain (const timespec &ts) |
| Can be overridden to do background processing. | |
| virtual bool | HandleCommand (ECommand cmd)=0 |
| Handles the command given by Execute(). Must be overridden in a derived class. | |
| virtual bool | GetIndexPos (gmi::AxesCoord &pos, int index, double frac, bool perp)=0 |
| Gets the axes' position of specified index and scan fraction. Must be overridden in a derived class. | |
| virtual bool | GetFocusPos (gmi::AxesCoord &dest, int index, double frac)=0 |
| Gets the focus position of the specified index and scan fraction. Must be overridden in a derived class. | |
| virtual bool | GetIndexVel (gmi::AxesCoord &dest, int index)=0 |
| Gets the velocity calculated by the derived scan mode. Must be overridden in a derived class. | |
| virtual bool | GetTriggerValue (gmi::AxisValue &value)=0 |
| Gets the axis used for triggering measurements or when the axis location is gmi::EAxisLocation::alNA the internal generation is to be used. Must be overridden in a derived class. | |
| virtual gmi::EAxisLocation | GetScanAxis ()=0 |
| Gets the scan and index axis for position calculations. Must be overridden by a derived class. | |
| virtual bool | SetAcqParams (int index, double frac)=0 |
| Sets the project acquisition parameters/variables based on the passed index. Must be overridden by a derived class. | |
| virtual void | AddPropertyPages (PropertySheetDialog *sheet) |
| Adds scan method-specific property pages to the passed sheet. Can be overridden by a derived class. | |
| virtual bool | GetMeasureOffset (Vector3D &vector, int index, double frac, bool perp) |
| Gets the vector caused by changing measurement offsets. This means the offset caused by the A-scan delay change. Can be overridden by a derived class. | |
| bool | FilterHandler (TDataFilterLink *, EFilterNotifyCode fnc) |
| Event handler for filter events which are passed to the scan method script. | |
| bool | UpdatePositionsData () |
| Refills the positions result. | |
| bool | SetState (EState state) |
| Sets the state. | |
| void | setViewer (QWidget *viewer) |
| Called by a derived class to set its frame pointer. | |
| gmi::Controller * | GetController () |
| Gets the allocated controller. | |
| bool | ClipTriggerValue (gmi::AxisValue &trigger_value) |
| Clips a trigger value to a value which is allowed by the controller. Is to be used by property pages to fill in the correct values. | |
| void | SetIndexCount (int idx_count) |
| A derived classes uses this function to set the index count for the scan method initialization. | |
| InformationTypes::id_type | GetIdOffset () |
| Gets the offset used to create the local ID's with for exporting. | |
| OpenGLRenderer * | getModelRenderer () const |
| Gets the OpenGL renderer which renders the model. | |
Protected Member Functions inherited from sf::ProjectScriptObject | |
| void | destroyObject (bool &should_delete) override |
| Overridden from base class. | |
Protected Member Functions inherited from sf::ScriptObject | |
| void | makeParent (ScriptObject *so) |
| Makes this object the owner of the other object. | |
| void | setParent (ScriptObject *parent) |
| Sets the owner to the pass script object. | |
Friends | |
| class | ScanMethodPositionPropertyPage |
| class | ScanMethodConfigurationPropertyPage |
| class | ParamMappingPropertyPage |
| class | ProjectAnalysisPropertyPage |
| class | ScanMethodCalibrationPropertyPage |
| class | ScanMethodAcquisitionPropertyPage |
| class | ScanDirectivePropertyPage |
| enum sf::ScanMethod::ECommand : int |
Available commands.
Default parameter ID indices for derived scan methods.
States of operation.
|
explicit |
Constructor for passing general structure for derived classes create by the class factory.
|
override |
Virtual destructor for derived classes.
|
protectedvirtual |
Adds scan method-specific property pages to the passed sheet. Can be overridden by a derived class.
| sheet |
Reimplemented in sf::ipj::CircleScanMethod, sf::ipj::LineScanMethod, sf::ipj::MeanderScanMethod, and sf::ipj::ToolBaseScanMethod.
|
protected |
Clips a trigger value to a value which is allowed by the controller. Is to be used by property pages to fill in the correct values.
| trigger_value |
|
protectedpure virtual |
Converts a physical position to or from a focus position using the scan's configuration.
| dest | Returns the focus coordinate. |
| src | Source physical coordinate. |
| to_focus | Direction focus or physical. |
Implemented in sf::ipj::MeanderScanMethod, and sf::ipj::ToolBaseScanMethod.
|
virtual |
Gets an output stream to print error or no error information to std::cout. Which can be overridden to a local one.
Reimplemented in sf::ipj::MeanderScanMethod, sf::ipj::CircleScanMethod, and sf::ipj::LineScanMethod.
|
protectedvirtual |
Creates a scan method UI frame if possible. Can be overridden by a derived class.
Reimplemented in sf::ipj::CircleScanMethod, sf::ipj::LineScanMethod, and sf::ipj::MeanderScanMethod.
|
virtual |
Called before a scan method is deleted.
| void sf::ScanMethod::DoAddPropertyPages | ( | PropertySheetDialog * | sheet | ) |
Calls AddPropertyPages if the state allows it.
| sheet | Sheet to attach the pages to. |
| bool sf::ScanMethod::DoConvertPosition | ( | gmi::AxesCoord & | dest, |
| const gmi::AxesCoord & | src, | ||
| bool | to_focus | ||
| ) | const |
Converts a physical position to or from a focus position using the scan's configuration. Actually calls the overridden ConvertPosition() method.
| dest | Returns the focus/physical coordinate. |
| src | Source physical/focus coordinate. |
| to_focus | Direction focus or physical. |
| bool sf::ScanMethod::DoCreateFrame | ( | ) |
Creates a scan method UI frame if possible. Calls the overridden createViewer() method.
| bool sf::ScanMethod::DoGetFocusPos | ( | gmi::AxesCoord & | dest, |
| int | index, | ||
| double | frac | ||
| ) | const |
Gets the focus position calculated by the derived scan mode. Actually calls the overridden GetFocusPos() method.
| dest | Returns the position coordinate. |
| index | Measurement indexed position. |
| frac | Scan line fraction. |
| bool sf::ScanMethod::DoGetIndexPos | ( | gmi::AxesCoord & | pos, |
| int | index, | ||
| double | frac, | ||
| bool | perp | ||
| ) | const |
Gets the axes' position calculated by the derived scan mode. Actually calls the overridden GetIndexPos() method.
| pos | Returns the axes coordinated. |
| index | Measurement indexed position. |
| frac | Scan line fraction. |
| perp | When true, the perpendicular position, if possible, is returned. |
| bool sf::ScanMethod::DoGetIndexVel | ( | gmi::AxesCoord & | dest, |
| int | index | ||
| ) | const |
Gets the velocity calculated by the derived scan mode.
| dest | Returns the velocity coordinate. |
| index | Measurement indexed position. |
| bool sf::ScanMethod::DoGetMeasureOffset | ( | Vector3D & | vector, |
| int | index, | ||
| double | frac, | ||
| bool | perp | ||
| ) | const |
Gets the vector caused by changing measurement offsets. This means the offset caused by the A-scan delay change.
| vector | |
| index | Measurement indexed position. |
| frac | Scan line fraction. |
| perp | When true, the perpendicular position, if possible, is returned. |
| gmi::EAxisLocation sf::ScanMethod::DoGetScanAxis | ( | ) | const |
Gets the scan and index axis for position calculations. Calls the overridden GetScanAxis() method.
| bool sf::ScanMethod::DoGetTriggerValue | ( | gmi::AxisValue & | value | ) | const |
Gets the axis used for triggering measurements or when the axis location is gmi::EAxisLocation::alNA the internal generation is to be used. Calls the overridden GetTriggerValue() method.
| value | Axis value. |
| bool sf::ScanMethod::DoInitialize | ( | ) |
Initializes the class after the constructor is called. Final virtual functions are only valid after full construction of a scan method. This function actually calls virtual function Initialize.
| void sf::ScanMethod::DoRead | ( | IniEnvelope | ini | ) |
Reads the settings of the scan method. Calls eventually the overridden Read() method.
| bool sf::ScanMethod::DoSetAcqParams | ( | int | index, |
| double | frac | ||
| ) |
Calls the overridden SetAcqParams() method on the derived class.
| index | Measurement indexed position. |
| frac | Scan line fraction. |
| bool sf::ScanMethod::DoSustain | ( | const timespec & | ) |
Called by the inspection project to enable the derived class to do some background processing.
| void sf::ScanMethod::DoWrite | ( | IniEnvelope | ini | ) |
Writes the settings of the scan method. Calls eventually the overridden Write() method.
| bool sf::ScanMethod::Execute | ( | ECommand | cmd | ) |
Calls HandleCommand() after several checks.
| cmd | Command to handle. |
| bool sf::ScanMethod::ExecuteFilters | ( | TDataFilterEntry::EAction | action = TDataFilterEntry::feaSTART | ) |
Execute the referenced filters.
| action | Action to perform by the filter list. |
|
protected |
Event handler for filter events which are passed to the scan method script.
| fnc | Notification code. |
| QString sf::ScanMethod::GetAreaName | ( | ) | const |
Gets the area name of the scan entry.
|
inline |
Gets the calibration ids.
| QString sf::ScanMethod::GetCalibrationSetName | ( | ) | const |
Gets the calibration set name.
| ECalibrationType sf::ScanMethod::GetCalibrationType | ( | ) |
Gets the calibration type name.
| ECommand sf::ScanMethod::GetCommand | ( | ) |
Gets the last Issued command.
|
static |
Gets the command name of the given command value.
|
protected |
Gets the allocated controller.
| bool sf::ScanMethod::GetDirectiveEnabled | ( | ) | const |
Gets the flag weather the directive is enabled.
| ESystemPosition sf::ScanMethod::GetDirectivePosition | ( | ) |
??
| QString sf::ScanMethod::GetDirectiveText | ( | ) | const |
Gets the directive text.
| QString sf::ScanMethod::GetElementName | ( | ) |
Gets the element name.
|
inline |
Gets the comma-separated string of filter configuration names.
|
inline |
Gets the analysis filter links.
|
protectedpure virtual |
Gets the focus position of the specified index and scan fraction. Must be overridden in a derived class.
| dest | Returns the position coordinate. |
| index | Measurement indexed position. |
| frac | Scan line fraction. |
Implemented in sf::ipj::MeanderScanMethod, and sf::ipj::ToolBaseScanMethod.
|
protectedpure virtual |
Gets the list of linked variables or results. Must be overridden in a derived class.
Implemented in sf::ipj::CircleScanMethod, sf::ipj::LineScanMethod, sf::ipj::MeanderScanMethod, and sf::ipj::ToolBaseScanMethod.
|
protected |
Gets the offset used to create the local ID's with for exporting.
| int sf::ScanMethod::GetIndexCount | ( | ) | const |
Gets the number of indices in the scan method.
|
protectedpure virtual |
Gets the axes' position of specified index and scan fraction. Must be overridden in a derived class.
| pos | Returns the axes coordinated. |
| index | Measurement indexed position. |
| frac | Scan line fraction. |
| perp | When true, the perpendicular position, if possible, is returned. |
Implemented in sf::ipj::MeanderScanMethod, and sf::ipj::ToolBaseScanMethod.
| int sf::ScanMethod::GetIndexStart | ( | ) | const |
Gets the clipped start value of the set range.
| int sf::ScanMethod::GetIndexStop | ( | ) | const |
Gets the clipped stop value of the set range.
|
protectedpure virtual |
Gets the velocity calculated by the derived scan mode. Must be overridden in a derived class.
| dest | Returns the velocity coordinate. |
| index | Measurement indexed position. |
Implemented in sf::ipj::CircleScanMethod, sf::ipj::LineScanMethod, and sf::ipj::MeanderScanMethod.
|
overrideprotectedvirtual |
Overridden from base class sf::ProjectScriptObject.
Reimplemented from sf::ProjectScriptObject.
|
inline |
Gets the local variables in a pointer vector.
| QString sf::ScanMethod::GetMaterialName | ( | ) |
Gets the material name.
| const Variable & sf::ScanMethod::GetMaterialVelocity | ( | ) | const |
Gets the material sound velocity system variable.
|
inlineprotectedvirtual |
Gets the vector caused by changing measurement offsets. This means the offset caused by the A-scan delay change. Can be overridden by a derived class.
| vector | |
| index | Measurement indexed position. |
| frac | Scan line fraction. |
| perp | When true, the perpendicular position, if possible, is returned. |
Reimplemented in sf::ipj::ToolBaseScanMethod.
| const Variable & sf::ScanMethod::GetMediumVelocity | ( | ) | const |
Gets the medium sound velocity system variable.
| const std::string & sf::ScanMethod::GetMethodName | ( | ) | const |
Gets this method's name.
|
protected |
Gets the OpenGL renderer which renders the model.
| std::string sf::ScanMethod::GetNamePrefix | ( | ) | const |
Gets the name prefix.
| Vector3D sf::ScanMethod::GetOffset | ( | ) | const |
Gets the total offsets added.
| ProjectData * sf::ScanMethod::GetProjectData | ( | ) |
Gets the project this instance is part of.
| bool sf::ScanMethod::GetRefractionAngle | ( | double & | dest, |
| double | src, | ||
| bool | to_medium = true |
||
| ) |
Gets the refracted angle.
| dest | Receives the resulting angle. |
| src | |
| to_medium |
|
protected |
Gets the config store for saving and restoring the state of a frame. It is probably in the projects ini-profile.
| const gmi::AxesCoord & sf::ScanMethod::GetScanAcceleration | ( | ) | const |
Gets the acceleration for the scan method to move. Actually calls the scan binder method sf::ScanBinder::GetVelocity().
|
protectedpure virtual |
Gets the scan and index axis for position calculations. Must be overridden by a derived class.
Implemented in sf::ipj::CircleScanMethod, sf::ipj::LineScanMethod, and sf::ipj::MeanderScanMethod.
| const ScanBinder::InfoBase * sf::ScanMethod::GetScanInfo | ( | ) | const |
Gets the binder information of this scan method instance.
| int sf::ScanMethod::GetScanListIndex | ( | ) | const |
Returns the scan list index of this instance in the project.
|
inline |
Gets the offset of the part to its programmed position.
| bool sf::ScanMethod::GetScanStart | ( | gmi::AxesCoord & | ac | ) | const |
Gets the position coordinate where the project passes control to the scan method.
| ac | Returns the axes' coordinate. |
| bool sf::ScanMethod::GetScanStop | ( | gmi::AxesCoord & | ac | ) | const |
Gets the position where the scan method passes control to the project.
| ac | Returns the axes' coordinate. |
| const gmi::AxesCoord & sf::ScanMethod::GetScanVelocity | ( | ) | const |
Gets the velocity for the scan method to move. Actually calls the scan binder method sf::ScanBinder::GetVelocity().
|
protectedvirtual |
Gets the script link when one is associated. Can be overridden by a derived class.
Reimplemented in sf::ipj::MeanderScanMethod.
| QString sf::ScanMethod::GetSettingsName | ( | ) | const |
Gets the settings name.
|
overrideprotectedvirtual |
Overridden from base class sf::ProjectScriptObject.
Reimplemented from sf::ProjectScriptObject.
| EState sf::ScanMethod::GetState | ( | ) | const |
Gets the state of the instance.
|
static |
Gets the state name of the given state value.
| QString sf::ScanMethod::GetToolName | ( | ) |
Gets the tool name.
|
protectedpure virtual |
Gets the axis used for triggering measurements or when the axis location is gmi::EAxisLocation::alNA the internal generation is to be used. Must be overridden in a derived class.
| value | Axis value. |
Implemented in sf::ipj::MeanderScanMethod, sf::ipj::CircleScanMethod, and sf::ipj::LineScanMethod.
|
inline |
Gets the acquisition devices used.
| QWidget * sf::ScanMethod::getViewer | ( | ) |
Called by a derived class to get its UI widget pointer.
|
protectedpure virtual |
Handles the command given by Execute(). Must be overridden in a derived class.
| cmd | Command to handle. |
Implemented in sf::ipj::CircleScanMethod, sf::ipj::LineScanMethod, and sf::ipj::MeanderScanMethod.
|
inlinevirtual |
Can be overridden to handle cursor events when the scan is selected in the project.
| btn_down | True when the button is down. |
| shift | Keyboard modifiers. |
| index | Measurement index position. |
| frac | Scan line fraction. |
Reimplemented in sf::ipj::CircleScanMethod, and sf::ipj::LineScanMethod.
|
protectedpure virtual |
Initializes the scan method. Must be overridden by a derived class.
Implemented in sf::ipj::CircleScanMethod, sf::ipj::LineScanMethod, and sf::ipj::MeanderScanMethod.
| bool sf::ScanMethod::IsActivated | ( | ) | const |
Check if the scan method was activated.
| bool sf::ScanMethod::IsCalibReady | ( | ) |
Checks if the calibration is complete.
| void sf::ScanMethod::LoadSystemSettings | ( | const QString & | settings = {} | ) |
Loads the system setting associated with the scan method overriding the settings from the selected calibration set.
| settings | When left empty, this scan-method's assigned settings are used. |
|
protectedpure virtual |
Reads the settings from the passed inifile.
| inifile |
Implemented in sf::ipj::MeanderScanMethod, sf::ipj::CircleScanMethod, sf::ipj::LineScanMethod, and sf::ipj::ToolBaseScanMethod.
| bool sf::ScanMethod::Reinitialize | ( | ) |
When the state is ready, the scan method can be reinitialize. For example, after changes are made to settings.
| bool sf::ScanMethod::SaveSystemSettings | ( | const QString & | settings | ) |
Saves the system setting associated with the scan method.
| settings | When left empty, this scan-method's assigned settings are used. |
|
protectedpure virtual |
Sets the project acquisition parameters/variables based on the passed index. Must be overridden by a derived class.
| index | Measurement indexed position. |
| frac | Scan line fraction. |
Implemented in sf::ipj::CircleScanMethod, sf::ipj::LineScanMethod, and sf::ipj::MeanderScanMethod.
| void sf::ScanMethod::SetAcqState | ( | InformationServer::EState | sel_state, |
| InformationServer::EState | unsel_state = InformationServer::issOff |
||
| ) |
Sets the state on all acquisition devices.
| sel_state | State for the selected devices. |
| unsel_state | State for the unselected devices. |
| void sf::ScanMethod::SetAreaName | ( | const QString & | name | ) |
Changes the area name so it is saved by the project under this new name.
| name | New name. |
|
protected |
A derived classes uses this function to set the index count for the scan method initialization.
| idx_count |
| void sf::ScanMethod::SetIndexFracRange | ( | double | start, |
| double | stop | ||
| ) |
Sets the new scan range for a defined surface.
| start | Start fraction of the range. |
| stop | Stop fraction of the range. |
|
protected |
Sets the state.
| state |
|
protected |
Called by a derived class to set its frame pointer.
Is called when the current state changes for a derived class to act up on. Must be overridden by a derived class.
| prev | The previous state. |
| cur | The current state. |
Implemented in sf::ipj::CircleScanMethod, sf::ipj::LineScanMethod, and sf::ipj::MeanderScanMethod.
|
protectedvirtual |
Can be overridden to do background processing.
| ts | Current time or time to act on. |
Reimplemented in sf::ipj::CircleScanMethod, and sf::ipj::MeanderScanMethod.
|
protected |
Refills the positions result.
|
protectedpure virtual |
Writes the settings to the passed inifile.
| inifile |
Implemented in sf::ipj::MeanderScanMethod, sf::ipj::CircleScanMethod, sf::ipj::LineScanMethod, and sf::ipj::ToolBaseScanMethod.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |