10class MeanderScanMethodFrame;
43 bool Sustain(
const timespec& ts)
override;
Class for reading and writing ini-profiles.
Definition IniProfile.h:17
Timer class that has fixed time intervals at which it becomes true.
Definition IntervalTimer.h:14
Create a local variable by calling the protected constructor.
Definition Variable.h:947
Dialog containing multiple property pages.
Definition qt/PropertySheetDialog.h:14
Definition ScanMethod.h:28
ECommand
Available commands.
Definition ScanMethod.h:118
EState
States of operation.
Definition ScanMethod.h:403
QWidget * GetFrame()
Called by a derived class to get its UI frame pointer.
Links a script to a script interpreter derived instance.
Definition ScriptLink.h:12
String list with optional object association and sorting.
Definition TStringList.h:12
Template for linking pointers of member function to Variable instances.
Definition VariableHandler.h:38
EEvent
Events send to the handler set with sf::Variable::setHandler.
Definition VariableTypes.h:130
Class for creating and referencing global or local created parameters or settings called variables....
Definition Variable.h:16
All axis values in one structure accompanied by some handy manipulation methods.
Definition AxesCoord.h:13
Single position, speed or acceleration value of a specific axis.
Definition GmiTypes.h:174
Definition MeanderScanMethodScript.h:9
Definition MeanderScanMethodFrame.h:19
Definition MeanderScanMethod.h:13
LocalVariable _vStepCount
Definition MeanderScanMethod.h:73
const EScanCycleStage _prevStage
Definition MeanderScanMethod.h:123
LocalVariable _vStepStart
Definition MeanderScanMethod.h:75
bool GetStagePos(EScanCycleStage stage, int index, int step, gmi::AxesCoord &stage_pos)
void AddPropertyPages(PropertySheetDialog *sheet) override
Adds scan method specific property pages to the passed sheet. Can be overloaded by a derived class.
bool HandleCommand(ECommand cmd) override
Handles the command given by Execute(). Must be overridden in a derived class.
bool SetAcqParams(int index, double scan_factor) override
Sets the project acquisition parameters/variables based on the passed index. Must be overloaded by a ...
Definition MeanderScanMethod.h:60
bool GetTriggerValue(gmi::AxisValue &trigger_value) override
Gets the axis used for triggering measurements or when the axis location is #sf::EAxisLocation::alNA ...
AcquireScript _acquireScript
Definition MeanderScanMethod.h:155
bool CreateFrame() override
Creates a scan method UI frame if possible. Can be overloaded by a derived class.
Variable::PtrVector _vars
Definition MeanderScanMethod.h:79
TVariableHandler< MeanderScanMethod > _variableEventHandler
Definition MeanderScanMethod.h:85
ECommand _command
Definition MeanderScanMethod.h:145
int _curIndex
Definition MeanderScanMethod.h:147
void Read(IniProfile *ini) override
Reads the settings from the passed inifile.
MeanderScanMethodFrame * GetMeanderFrame()
Definition MeanderScanMethod.h:169
LocalVariable _vTravAxis
Definition MeanderScanMethod.h:69
IntervalTimer _debugDelayTimer
Definition MeanderScanMethod.h:151
bool GetGenericInfoList(StringList &) override
Gets the list of linked variables or results. Must be overridden in a derived class.
MeanderScanMethod(const Parameters &)
bool MoveToStage(EScanCycleStage stage, int index=-1, int step=-1)
void Write(IniProfile *ini) override
Writes the settings to the passed inifile.
void SetStage(EScanCycleStage stage)
LocalVariable _vStepAxis
Definition MeanderScanMethod.h:77
const EScanCycleStage _stage
Definition MeanderScanMethod.h:121
ScriptLink * GetScriptLink() override
Gets the script link when one is associated. Can be overridden by a derived class.
bool CheckStagePos(EScanCycleStage stage, int index, int step)
LocalVariable _vStepSize
Definition MeanderScanMethod.h:76
LocalVariable _vDensity
Definition MeanderScanMethod.h:71
LocalVariable _vStepMode
Definition MeanderScanMethod.h:72
bool GetIndexPos(gmi::AxesCoord &pos, int index, double frac, bool rect) override
Gets the axes position of specified index and scan fraction. Must be overridden in a derived class.
LocalVariable _vStepStop
Definition MeanderScanMethod.h:74
void StateChange(EState prev, EState cur) override
Is called when the current state changes for a derived class to act up on. Must be overridden by a de...
bool _waitForScript
Definition MeanderScanMethod.h:153
~MeanderScanMethod() override
void variableEvent(Variable::EEvent event, const Variable &caller, Variable &link, bool same_inst)
LocalVariable _vTravVel
Definition MeanderScanMethod.h:68
LocalVariable _vMeasCount
Definition MeanderScanMethod.h:70
bool ConvertPosition(gmi::AxesCoord &dest, const gmi::AxesCoord &src, bool to_focus) const override
Converts a physical position to or from a focus position using the scan's configuration.
Definition MeanderScanMethod.h:46
bool Sustain(const timespec &ts) override
Can be overloaded to do background processing.
bool Initialize() override
Initializes the scan method. Must be overridden by a derived class.
bool GetIndexVel(gmi::AxesCoord &vel, int index) override
Gets the velocity calculated by the derived scan mode. Must be overridden in a derived class.
Definition MeanderScanMethod.h:55
EScanCycleStage
Stages of operation of this scan method.
Definition MeanderScanMethod.h:101
@ scsSCANSTEP
No movement and position is at scan step.
Definition MeanderScanMethod.h:113
@ scsACQUIRE
No movement and time for handling acquisition.
Definition MeanderScanMethod.h:107
@ scsMOVING
Movement is between stages.
Definition MeanderScanMethod.h:105
@ scsPRESTART
No movement and position is at project start.
Definition MeanderScanMethod.h:109
@ scsIDLE
Do nothing.
Definition MeanderScanMethod.h:103
@ scsPOSTSTOP
No movement and position is at post stop.
Definition MeanderScanMethod.h:117
@ scsSCANSTART
No movement and position is at scan measure start.
Definition MeanderScanMethod.h:111
@ scsSCANSTOP
No movement and position is at scan measure stop.
Definition MeanderScanMethod.h:115
void variableAxisEvent(Variable::EEvent event, const Variable &caller, Variable &link, bool same_inst)
bool GetFocusPos(gmi::AxesCoord &dest, int index, double frac) override
Gets the focus position of specified index and scan fraction. Must be overridden in a derived class.
LocalVariable _vTravStart
Definition MeanderScanMethod.h:66
gmi::EAxisLocation GetScanAxis() override
Gets the scan and index axis for position calculations. Must be overloaded by a derived class.
const EScanCycleStage _moveStage
Definition MeanderScanMethod.h:125
int _curStep
Definition MeanderScanMethod.h:149
LocalVariable _vTravStop
Definition MeanderScanMethod.h:67
TVariableHandler< MeanderScanMethod > _variableAxisEventHandler
Definition MeanderScanMethod.h:86
const char * GetStageName(int stage)
EAxisLocation
Enumeration of axis locations.
Definition GmiTypes.h:81
Definition LineScanMethod.h:6
Mandatory structure for initialization of derived class.
Definition ScanMethod.h:34