Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
CircleScanMethodViewer.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
11class CircleScanMethod;
12
13namespace Ui
14{
16class CircleScanMethodViewer;
17}// namespace Ui
18
19class CircleScanMethodViewer final : public Widget
20{
21 Q_OBJECT
22
23 public:
27 CircleScanMethodViewer(CircleScanMethod* target, QWidget* parent);
28
33
37 bool sustain(const timespec&);
38
43 void setActiveTab(int index);
44
49
54
59
64
68 void setup();
69
73 void compileScene(bool init);
74
78 void drawScene();
79
83 void animate(int index, double frac);
84
89
90 private:
92 void enableOglScene(bool flag);
93 // UI objects generated by the designed through MOC.
94 Ui::CircleScanMethodViewer* ui;
96 CircleScanMethod* _scanMethod;
98 OpenGLWidget* _oglWidget;
100 unsigned _displayLists;
102 unsigned _dispListArea;
104 int _animating;
105 // Holds the Animation object which also contains a TDxfObject.
106 // TDxfAnimation FDxfAnimation;
109
110 public:
112 std::ostream cout;
113};
114
115}// 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 CircleScanMethodViewer.h:20
void animate(int index, double frac)
Called by the method instance to handle cursor events.
void handleButtonMoveToClick()
Handles button 'Move To'.
void handleTrackBarChange()
Handles the trackbar for animation.
void handleButtonShowStartClick()
Handles button 'Show Start'.
~CircleScanMethodViewer() override
Virtual overridden destructor.
void setup()
Sets up the viewer with the current configuration.
CircleScanMethodViewer(CircleScanMethod *target, QWidget *parent)
Constructor.
std::ostream cout
Stream attached to captured buffer.
Definition CircleScanMethodViewer.h:112
void handleButtonSetGatesClick()
Handles button 'Set Gates'.
void setActiveTab(int index)
Activates the tab designated by the index.
void compileScene(bool init)
Compiles the 3D scene for this method.
bool sustain(const timespec &)
Sustain called by scan method sustain.
void drawScene()
Compiles the 3D scene for this method.
void addPropertyPages(PropertySheetDialog *sheet)
Adds property pages for viewer.
Definition CircleScanMethod.h:11
Definition ApplicationPropertyPage.h:7
Definition CircleScanMethod.h:5