VAPOR3 3.9.4
AnimationController.h
Go to the documentation of this file.
1#pragma once
2
3#include <QTimer>
4#include <glm/fwd.hpp>
5
7namespace VAPoR {
8class ControlExec;
9}
10
14
15class AnimationController : public QObject {
16 Q_OBJECT
17 VAPoR::ControlExec *_controlExec;
18 QTimer * _myTimer;
19 int _direction;
20 bool _animationOn = false;
21
22public:
24 void Update();
25
26public slots:
32 void SetTimeStep(int ts);
33
34signals:
35
36 // Emitted when animation is turned on (true) or off (false)
37 //
38 void AnimationOnOffSignal(bool onOff);
39
40 // Emitted when the client should draw a frame during animation. Only
41 // Emitted if AnimationOnOffChanged() was most recently called with
42 // onOff == true;
43 //
45
46private:
47 void setCurrentTimestep(size_t ts) const;
48 void setPlay(int direction);
49 AnimationParams *GetActiveParams() const;
50 void _updateTab();
51
52private slots:
53 void playNextFrame();
54};
This class is just migrated legacy code to de-spaghetti other legacy code. (It is not written by me)
void SetTimeStep(int ts)
AnimationController(VAPoR::ControlExec *ce)
void AnimationOnOffSignal(bool onOff)
A class that specifies parameters used in animation.
Provides API for VAPOR visualizer User Interfaces (UIs)