Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
LineScanMethodFrame.h
Go to the documentation of this file.
1#pragma once
2#include <QWidget>
3#include <misc/gen/Sustain.h>
4#include <ostream>
5
6namespace sf::ipj
7{
8
9namespace Ui
10{
12}
13
14// Forward definitions.
15class LineScanMethod;
16
17class LineScanMethodFrame : public QWidget
18{
19 Q_OBJECT
20
21 public:
22 // Constructor.
23 LineScanMethodFrame(LineScanMethod* target, QWidget* parent);
24
25 // Destructor.
27
28 // Sustain called by scan method sustain.
29 bool Sustain(const timespec&);
30
35 void setActiveTab(int index);
36
41
42 // Sets up the widgets.
43 void Setup();
44 //
45 void CompileDispLists(bool init);
47 // Called by the method instance to handle cursor events.
48 void Animate(int index, double frac);
49
50 private:
51 Ui::LineScanMethodFrame* ui;
52 LineScanMethod* FScanMethod;
53 unsigned FDisplayLists;
54 unsigned FDispListArea;
55 int FAnimating;
57
58 public:
59 // Stream attached to captured buffer.
60 std::ostream Cout;
61
62 /*
63 __published:
64 TStreamCapture *StreamCapture;
65 TPageControl *PageControl;
66 TTabSheet *TabSheetParameters;
67 TTabSheet *TabSheetAnimate;
68 TTabSheet *TabSheetConsole;
69 TMultiVarEdit *MultiVarEdit;
70 TStreamControl *StreamControl;
71 TSplitter *Splitter;
72 THelpTarget *HelpTarget;
73 TOpenGlWindow *OpenGlWindow;
74 TPopupMenu *PopupMenu3D;
75 TMenuItem *MenuWireModel;
76 TTrackBar *TrackBarIndex;
77 TTrackBar *TrackBarScan;
78 TLabel *LabelIndex;
79 TLabel *LabelScan;
80 TCheckBox *CheckBoxRectangular;
81 TButton *ButtonSetGates;
82 TButton *ButtonShowStart;
83 TButton *ButtonMoveTo;
84 //
85 */
86};
87
88}// namespace sf::ipj
Template to make the sustain system call a class method regularly.
Definition Sustain.h:184
Definition LineScanMethodFrame.h:18
void CompileDispLists(bool init)
LineScanMethodFrame(LineScanMethod *target, QWidget *parent)
void setActiveTab(int index)
Activates the tab designated by the index.
void Animate(int index, double frac)
bool Sustain(const timespec &)
std::ostream Cout
Hooks the sustain function.
Definition LineScanMethodFrame.h:60
Definition LineScanMethod.h:11
Definition ApplicationPropertyPage.h:7
Definition LineScanMethod.h:6