Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
CircleScanMethod.h
Go to the documentation of this file.
1#pragma once
3
4namespace sf::ipj
5{
6
9
11{
12 public:
14 explicit CircleScanMethod(const Parameters&);
15
18
20 void StateChange(EState prev, EState cur) override;
21
23 bool Initialize() override;
24
27
29 bool HandleCommand(ECommand cmd) override;
30
32 bool createViewer() override;
33
35 void Read(IniProfile* inifile) override;
36
38 void Write(IniProfile* inifile) override;
39
41 bool GetIndexVel(gmi::AxesCoord& vel, int index) override;
42
44 bool GetSurface(Matrix44& surface, int index, double frac) override;
45
47 bool SetAcqParams(int index, double frac) override;
48
50 bool Sustain(const timespec& ts) override;
51
54
56 bool GetTriggerValue(gmi::AxisValue& value) override;
57
60
62 QStringList getGraphicOverlays() const;
63
65 QString getGraphicOverlayFilepath(const QString& name) const;
66
68 Vector3D _originVector;
69 Vector3D _stepVector;
70 // Exportable variable parameters.
80 // Speed when a rotation axis is selected.
82
85 {
89 dmDYNAMIC = 1
90 };
91
95 void handleVariableEvent(Variable::EEvent event, const Variable& caller, Variable& link, bool same_inst) override;
96
101 std::ostream& cout() override;
102
105
107 void HandleCursorEvent(bool btn_down, Qt::KeyboardModifiers shift, int index, double frac) override;
108
110 void setGraphicOverlay(const QString& name);
111
113
123 int _testFlag{0};
124
126};
127
128}// namespace sf::ipj
Class for reading and writing ini-profiles.
Definition IniProfile.h:17
Create a local variable by calling the protected constructor.
Definition Variable.h:948
Dialog containing multiple property pages.
Definition qt/PropertySheetDialog.h:15
EState
States of operation.
Definition ScanMethod.h:409
ECommand
Available commands.
Definition ScanMethod.h:122
EEvent
Events sent to the handler set with Variable::setHandler. For broadcast events the variable paramet...
Definition VariableTypes.h:129
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:175
Definition CircleScanMethodViewer.h:22
Definition CircleScanMethod.h:11
bool createViewer() override
Overloaded from base class.
bool SetAcqParams(int index, double frac) override
Overloaded from base class.
LocalVariable _vIndexCount
Definition CircleScanMethod.h:74
QStringList getGraphicOverlays() const
Gets the list of available graphic overlay files.
QString getGraphicOverlayFilepath(const QString &name) const
Gets the full path of an overlay graphic file.
void Write(IniProfile *inifile) override
Overloaded from base class.
ECommand _command
Holds the current command being executed.
Definition CircleScanMethod.h:115
LocalVariable _vSurfaceSpeed
Definition CircleScanMethod.h:81
void AddPropertyPages(PropertySheetDialog *sheet) override
Overridden from base class.
void StateChange(EState prev, EState cur) override
Overridden from base class.
int _testFlag
Holds a temporary test flag.
Definition CircleScanMethod.h:123
bool GetGenericInfoList(StringList &) override
Overloaded from base class.
LocalVariable _vIndexDensity
Definition CircleScanMethod.h:75
LocalVariable _vScanDensity
Definition CircleScanMethod.h:73
bool GetIndexVel(gmi::AxesCoord &vel, int index) override
Overloaded from base class.
Vector3D _stepVector
Definition CircleScanMethod.h:69
bool GetTriggerValue(gmi::AxisValue &value) override
Overloaded from base class.
void Read(IniProfile *inifile) override
Overloaded from base class.
void setGraphicOverlay(const QString &name)
Property handler when assigned the frame animation class is loaded.
CircleScanMethod(const Parameters &)
Constructor.
~CircleScanMethod() override
Destructor.
bool GetSurface(Matrix44 &surface, int index, double frac) override
Overloaded from base class.
LocalVariable _vScanLength
Definition CircleScanMethod.h:71
LocalVariable _vBackSide
Definition CircleScanMethod.h:77
LocalVariable _vScanVelocity
Definition CircleScanMethod.h:72
bool HandleCommand(ECommand cmd) override
Overloaded from base class.
void HandleCursorEvent(bool btn_down, Qt::KeyboardModifiers shift, int index, double frac) override
Overloaded from base class.
Vector3D _originVector
Two 3D vectors for spanning the 3D flat surface of the circle.
Definition CircleScanMethod.h:68
CircleScanMethodViewer * getCircleViewer()
Gets the viewer pointer.
int _lastScanIndex
Last requested surface index.
Definition CircleScanMethod.h:117
void handleVariableEvent(Variable::EEvent event, const Variable &caller, Variable &link, bool same_inst) override
Overridden abstract event handler for local variables.
bool Initialize() override
Overridden from base class.
LocalVariable _vDensityMode
Definition CircleScanMethod.h:76
gmi::EAxisLocation GetScanAxis() override
Overloaded from a base class.
LocalVariable _vSurfaceRotate
Definition CircleScanMethod.h:78
EDensityMode
Mode for calculating and driving the radial density.
Definition CircleScanMethod.h:85
@ dmDYNAMIC
Radial density is calculated in measurements per meter.
Definition CircleScanMethod.h:89
@ dmSTATIC
Radial density is calculated in measurements per radian.
Definition CircleScanMethod.h:87
friend CircleScanMethodViewer
Definition CircleScanMethod.h:125
LocalVariable _vIndexInvert
Definition CircleScanMethod.h:79
QString _graphicOverlay
Holds the graphic configuration file name which creates 3D overlays.
Definition CircleScanMethod.h:121
bool Sustain(const timespec &ts) override
Overloaded from base class.
std::ostream & cout() override
Get the output stream which is attached to the log-listing in the viewer.
double _lastScanFrac
Last requested surface fraction.
Definition CircleScanMethod.h:119
Base class for scan methods using a common tool description.
Definition ToolBaseScanMethod.h:35
EAxisLocation
Enumeration of axis locations.
Definition GmiTypes.h:82
Definition CircleScanMethod.h:5
Mandatory structure for initialization of derived class.
Definition ScanMethod.h:30