timelineview is now a true view of the blocks at all times

This commit is contained in:
itsmattkc
2019-08-11 21:01:37 +10:00
parent 9b63cc7755
commit 149f3fa907
13 changed files with 141 additions and 86 deletions
+11 -9
View File
@@ -21,18 +21,20 @@
#ifndef TIMELINEOUTPUT_H
#define TIMELINEOUTPUT_H
#include "node/node.h"
#include "node/block/block.h"
#include "panel/timeline/timeline.h"
/**
* @brief Node that represents the end of the Timeline as well as a time traversal Node
*/
class TimelineOutput : public Node
class TimelineOutput : public Block
{
Q_OBJECT
public:
TimelineOutput();
virtual Type type() override;
virtual QString Name() override;
virtual QString id() override;
virtual QString Category() override;
@@ -40,23 +42,23 @@ public:
void AttachTimeline(TimelinePanel* timeline);
NodeInput* block_input();
NodeOutput* texture_output();
virtual rational length() override;
virtual void Refresh() override;
public slots:
void Refresh();
virtual void Process(const rational &time) override;
private:
QVector<Block*> block_cache_;
Block* first_block();
Block* attached_block();
Block* first_block_;
Block* current_block_;
NodeInput* block_input_;
NodeOutput* texture_output_;
TimelinePanel* attached_timeline_;
private slots: