forked from dardok/eqEarth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nodeFactory.h
43 lines (31 loc) · 950 Bytes
/
nodeFactory.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#pragma once
#include <eq/eq.h>
#include "config.h"
#include "node.h"
#include "pipe.h"
#include "window.h"
#include "channel.h"
#include "view.h"
namespace eqEarth
{
class NodeFactory : public eq::NodeFactory
{
public:
virtual eq::Config* createConfig( eq::ServerPtr parent )
{ return new Config( parent ); }
virtual eq::Node* createNode( eq::Config* parent )
{ return new Node( parent ); }
virtual eq::Pipe* createPipe( eq::Node* parent )
{ return new Pipe( parent ); }
virtual eq::Window* createWindow( eq::Pipe* parent )
{ return new Window( parent ); }
virtual eq::Channel* createChannel( eq::Window* parent )
{ return new Channel( parent ); }
//virtual Observer* createObserver( Config* parent )
//virtual Layout* createLayout( Config* parent )
virtual eq::View* createView( eq::Layout* parent )
{ return new View( parent ); }
//virtual Canvas* createCanvas( Config* parent )
//virtual Segment* createSegment( Canvas* parent )
};
}