began node work
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
#include "medianode.h"
|
||||
|
||||
MediaNode::MediaNode()
|
||||
{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
#ifndef MEDIANODE_H
|
||||
#define MEDIANODE_H
|
||||
|
||||
#include "node.h"
|
||||
|
||||
class MediaNode : public Node
|
||||
{
|
||||
public:
|
||||
MediaNode();
|
||||
};
|
||||
|
||||
#endif // MEDIANODE_H
|
||||
@@ -0,0 +1,7 @@
|
||||
#include "node.h"
|
||||
|
||||
Node::Node() :
|
||||
max_inputs_(INT_MAX),
|
||||
max_outputs_(INT_MAX)
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
#ifndef NODE_H
|
||||
#define NODE_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QVector>
|
||||
|
||||
class NodeInput {
|
||||
public:
|
||||
NodeInput();
|
||||
|
||||
private:
|
||||
QString name_;
|
||||
|
||||
};
|
||||
|
||||
class Node : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
Node();
|
||||
|
||||
private:
|
||||
int max_inputs_;
|
||||
QVector<Node*> inputs_;
|
||||
|
||||
int max_outputs_;
|
||||
QVector<Node*> outputs_;
|
||||
|
||||
};
|
||||
|
||||
#endif // NODE_H
|
||||
Reference in New Issue
Block a user