Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
LineScanMethodViewer.h
Go to the documentation of this file.
1#pragma once
2#include <misc/gen/Sustain.h>
3#include <misc/qt/Widget.h>
4#include <ostream>
6
7namespace sf::ipj
8{
9
10namespace Ui
11{
12class LineScanMethodViewer;
13}
14
15// Forward definitions.
16class LineScanMethod;
17
18class LineScanMethodViewer final : public Widget
19{
20 Q_OBJECT
21
22 public:
26 LineScanMethodViewer(LineScanMethod* target, QWidget* parent);
27
32
36 bool sustain(const timespec&);
37
42 void setActiveTab(int index);
43
48
53
58
63
67 void setup();
68
72 void compileScene(bool init);
73
77 void drawScene();
78
82 void animate(int index, double frac);
83
88
89 private:
91 void enableOglScene(bool flag);
92 // UI objects generated by the designed through MOC.
93 Ui::LineScanMethodViewer* ui;
95 LineScanMethod* _scanMethod;
97 OpenGLWidget* _oglWidget;
99 unsigned _displayLists;
101 unsigned _dispListArea;
103 int _animating;
105 TSustain<LineScanMethodViewer> _sustainEntry;
106
107 public:
109 std::ostream cout;
110};
111
112}// namespace sf::ipj
Widget for rendering a OpenGHL scene.
Definition OpenGLWidget.h:30
Dialog containing multiple property pages.
Definition qt/PropertySheetDialog.h:15
Template to make the sustain system call a class method regularly.
Definition Sustain.h:184
Widget adding an activity change signal for e.g. updating QActions.
Definition Widget.h:14
Definition LineScanMethodViewer.h:19
void handleTrackBarChange()
Handles the trackbar for animation.
void handleButtonShowStartClick()
Handles button 'Show Start'.
LineScanMethodViewer(LineScanMethod *target, QWidget *parent)
Constructor.
void drawScene()
Compiles the 3D scene for this method.
bool sustain(const timespec &)
Sustain called by scan method sustain.
std::ostream cout
Stream attached to captured buffer.
Definition LineScanMethodViewer.h:109
void setActiveTab(int index)
Activates the tab designated by the index.
~LineScanMethodViewer() override
Virtual overridden destructor.
void compileScene(bool init)
Compiles the 3D scene for this method.
void addPropertyPages(PropertySheetDialog *sheet)
Adds property pages for viewer.
void handleButtonMoveToClick()
Handles button 'Move To'.
void setup()
Sets up the viewer with the current configuration.
void handleButtonSetGatesClick()
Handles button 'Set Gates'.
void animate(int index, double frac)
Called by the method instance to handle cursor events.
Implementation of a scan method moving in a straight line.
Definition LineScanMethod.h:15
Definition ApplicationPropertyPage.h:7
Definition CircleScanMethod.h:5