Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
LineScanMethodViewer.h
Go to the documentation of this file.
1#pragma once
3
4#include <misc/gen/Sustain.h>
5#include <misc/qt/Widget.h>
6#include <ostream>
8
9namespace sf::ipj
10{
11
12namespace Ui
13{
14class LineScanMethodViewer;
15}
16
17// Forward definitions.
18class LineScanMethod;
19
20class LineScanMethodViewer final : public Widget
21{
22 Q_OBJECT
23
24 public:
28 LineScanMethodViewer(LineScanMethod* target, QWidget* parent);
29
34
38 bool sustain(const timespec&);
39
44 void setActiveTab(int index);
45
50
55
60
65
69 void setup();
70
74 void drawScene();
75
79 void animate(int index, double frac);
80
81 private:
82 // UI objects generated by the designed through MOC.
83 Ui::LineScanMethodViewer* ui;
85 LineScanMethod* _scanMethod;
87 unsigned _displayLists;
89 unsigned _dispListArea;
91 int _animating;
94
96 xgl::NipscanRenderer* getRenderer() const;
97
98 public:
100 std::ostream cout;
101};
102
103}// namespace sf::ipj
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:21
void handleTrackBarChange()
Handles the trackbar for animation.
void handleButtonShowStartClick()
Handles the 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 the captured buffer.
Definition LineScanMethodViewer.h:100
void setActiveTab(int index)
Activates the tab designated by the index.
~LineScanMethodViewer() override
Virtual overridden destructor.
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 NipscanRenderer.h:23
Definition ApplicationPropertyPage.h:7
Definition CircleScanMethod.h:5