Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
CircleScanMethodViewer.h
Go to the documentation of this file.
1#pragma once
4#include <misc/gen/Sustain.h>
5#include <misc/qt/Widget.h>
6#include <ostream>
8
9namespace sf::ipj
10{
11
13class CircleScanMethod;
14
15namespace Ui
16{
18class CircleScanMethodViewer;
19}// namespace Ui
20
21class CircleScanMethodViewer final : public Widget
22{
23 Q_OBJECT
24
25 public:
29 CircleScanMethodViewer(CircleScanMethod* target, QWidget* parent);
30
35
39 bool sustain(const timespec&);
40
45 void setActiveTab(int index);
46
51
56
61
66
70 void setup();
71
75 void drawScene();
76
80 void animate(int index, double frac);
81
86 void setGraphicOverlay(const QString& name);
87
89
90 protected:
94 void changeEvent(QEvent* event) override;
95
96 private:
98 xgl::NipscanRenderer* getRenderer() const;
100 Ui::CircleScanMethodViewer* ui;
102 CircleScanMethod* _scanMethod;
104 GraphicOverlay _graphicOverlay;
106 OpenGLRenderObject::List _overlayRenderObjects;
108 OpenGLRenderObject* _areaRenderObject;
110 int _animating;
113
114 public:
116 std::ostream cout;
117};
118
119}// namespace sf::ipj
Wrapper for drawing 2D overlays into the 3D space using specified offsets. Handles loading of multipl...
Definition GraphicOverlay.h:14
Renders an OpenGL object (vertex-array) in a color and using a transformation/translation matrix.
Definition OpenGLRenderObject.h:17
QList< OpenGLRenderObject * > List
Type to hold a list of not-owned render objects.
Definition OpenGLRenderObject.h:24
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
bool event(QEvent *event) override
Overriding event to intercept all events for the widget.
Definition CircleScanMethodViewer.h:22
void animate(int index, double frac)
Called by the method instance to handle cursor events.
void handleButtonMoveToClick()
Handles button 'Move To'.
void changeEvent(QEvent *event) override
Overridden from base class.
void handleTrackBarChange()
Handles the trackbar for animation.
void handleButtonShowStartClick()
Handles the 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 capture-buffer.
Definition CircleScanMethodViewer.h:116
void handleButtonSetGatesClick()
Handles button 'Set Gates'.
void setActiveTab(int index)
Activates the tab designated by the index.
bool sustain(const timespec &)
Sustain called by scan method sustain.
void setGraphicOverlay(const QString &name)
Sets the graphic overlay for the scene.
void drawScene()
Compiles the 3D scene for this method.
Definition CircleScanMethod.h:11
Definition NipscanRenderer.h:23
Definition ApplicationPropertyPage.h:7
Definition CircleScanMethod.h:5