mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-05 15:30:00 +01:00
Following CppCheck recomendation, all classes that should not be manipulated by value are made non-assignable to ensure no mistake is made.
38 lines
953 B
C++
38 lines
953 B
C++
#ifndef TRANSITIONVIEW_H
|
|
#define TRANSITIONVIEW_H
|
|
|
|
#include "View.h"
|
|
|
|
class TransitionView : public View
|
|
{
|
|
public:
|
|
TransitionView();
|
|
// non assignable class
|
|
TransitionView(TransitionView const&) = delete;
|
|
TransitionView& operator=(TransitionView const&) = delete;
|
|
|
|
void draw () override;
|
|
void update (float dt) override;
|
|
void zoom (float factor) override;
|
|
bool canSelect(Source *) override;
|
|
|
|
std::pair<Node *, glm::vec2> pick(glm::vec2 P) override;
|
|
Cursor grab (Source *s, glm::vec2 from, glm::vec2 to, std::pair<Node *, glm::vec2> pick) override;
|
|
void arrow (glm::vec2) override;
|
|
Cursor drag (glm::vec2, glm::vec2) override;
|
|
|
|
void attach(SessionFileSource *ts);
|
|
Session *detach();
|
|
void play(bool open);
|
|
void open();
|
|
|
|
private:
|
|
Surface *output_surface_;
|
|
Mesh *mark_100ms_, *mark_1s_;
|
|
Switch *gradient_;
|
|
SessionFileSource *transition_source_;
|
|
};
|
|
|
|
|
|
#endif // TRANSITIONVIEW_H
|