Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
LineScanMethod.h
Go to the documentation of this file.
1#pragma once
4
5namespace sf::ipj
6{
7
9class LineScanMethodViewer;
10
15{
16 public:
20 explicit LineScanMethod(const Parameters&);
21
25 ~LineScanMethod() override;
26
30 void StateChange(EState prev, EState cur) override;
31
35 bool Initialize() override;
36
41
45 bool HandleCommand(ECommand cmd) override;
46
50 bool createViewer() override;
51
55 void Read(IniProfile* inifile) override;
56
60 void Write(IniProfile* inifile) override;
61
65 bool GetIndexVel(gmi::AxesCoord& vel, int index) override;
66
70 bool GetSurface(Matrix44& surface, int index, double frac) override;
71
75 bool SetAcqParams(int index, double frac) override;
76
80 virtual bool Sustain(clock_t);
81
86
90 bool GetTriggerValue(gmi::AxisValue& value) override;
91
96
100 void handleVariableEvent(Variable::EEvent event, const Variable& caller, Variable& link, bool same_inst) override;
101
106 std::ostream& cout() override;
107
109 void HandleCursorEvent(bool btn_down, Qt::KeyboardModifiers shift, int index, double frac) override;
110
115
116 //
117 // Two 3D vectors for spanning the 3D flat surface.
118 //
120 Vector3D _stepVector;
121 Vector3D _scanVector;
122 //
123 // Exportable variable parameters.
124 //
133
142
144};
145
146}// namespace sf::ipj
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:953
Dialog containing multiple property pages.
Definition qt/PropertySheetDialog.h:15
EState
States of operation.
Definition ScanMethod.h:408
ECommand
Available commands.
Definition ScanMethod.h:120
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 LineScanMethodViewer.h:19
Implementation of a scan method moving in a straight line.
Definition LineScanMethod.h:15
bool GetTriggerValue(gmi::AxisValue &value) override
Overridden from base class.
bool GetSurface(Matrix44 &surface, int index, double frac) override
Overridden from base class.
~LineScanMethod() override
Virtual overridden destructor.
LocalVariable _vScanDensity
Definition LineScanMethod.h:128
IntervalTimer _debugDelayTimer
Timer for debugging.
Definition LineScanMethod.h:137
Vector3D _stepVector
Definition LineScanMethod.h:120
void AddPropertyPages(PropertySheetDialog *sheet) override
Overridden from base class.
LocalVariable _vBackSide
Definition LineScanMethod.h:131
std::ostream & cout() override
Get the output stream which is attached the log listing in the viewer.
void HandleCursorEvent(bool btn_down, Qt::KeyboardModifiers shift, int index, double frac) override
Overridden from base class.
ECommand _command
Holds the current command being executed.
Definition LineScanMethod.h:135
bool SetAcqParams(int index, double frac) override
Overridden from base class.
Vector3D _scanVector
Definition LineScanMethod.h:121
bool HandleCommand(ECommand cmd) override
Overridden from base class.
LocalVariable _vIndexDensity
Definition LineScanMethod.h:130
void Write(IniProfile *inifile) override
Overridden from base class.
double _lastScanFrac
Last requested surface fraction.
Definition LineScanMethod.h:141
bool Initialize() override
Overridden from base class.
LocalVariable _vScanVelocity
Definition LineScanMethod.h:126
gmi::EAxisLocation GetScanAxis() override
Overridden from base class.
LocalVariable _vSurfaceRotate
Definition LineScanMethod.h:132
void Read(IniProfile *inifile) override
Overridden from base class.
bool createViewer() override
Overridden from base class.
LineScanMethodViewer * getLineViewer()
Gets the pointer to the viewer of this instance.
virtual bool Sustain(clock_t)
Overridden from base class.
LocalVariable _vScanAxis
Definition LineScanMethod.h:127
void handleVariableEvent(Variable::EEvent event, const Variable &caller, Variable &link, bool same_inst) override
Overridden abstract event handler for local variables.
LocalVariable _vScanLength
Definition LineScanMethod.h:125
bool GetGenericInfoList(StringList &) override
Overridden from base class.
bool GetIndexVel(gmi::AxesCoord &vel, int index) override
Overridden from base class.
int _lastScanIndex
Last requested surface index.
Definition LineScanMethod.h:139
Vector3D _originVector
Definition LineScanMethod.h:119
void StateChange(EState prev, EState cur) override
Overridden from base class.
LineScanMethod(const Parameters &)
Class factory constructor type.
LocalVariable _vIndexCount
Definition LineScanMethod.h:129
Base class for scan methods using a common tool description.
Definition ToolBaseScanMethod.h:35
EAxisLocation
Enumeration of axis locations.
Definition GmiTypes.h:81
Definition CircleScanMethod.h:5
Mandatory structure for initialization of derived class.
Definition ScanMethod.h:28