-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCollageLayoutManagerFactory.h
51 lines (39 loc) · 1.41 KB
/
CollageLayoutManagerFactory.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
44
45
46
47
48
49
50
51
///////////////////////////////////////////////////////////////////////////////////////////////
//
// Name: CollageLayoutManagerFactory.h
//
// Author: Mike Conway
//
// Description: Factory to create appropriate layout manager that
// subclasses CollageLayoutManager
//
///////////////////////////////////////////////////////////////////////////////////////////////
#ifndef COLLAGELAYOUTMANAGERFACTORY_H
#define COLLAGELAYOUTMANAGERFACTORY_H
#include "CollageLayoutManager.h"
#include "SimpleSingleLayoutManager.h"
#include "SmartSingleLayoutManager.h"
#include "SimpleDoubleLayoutManager.h"
#include "RandomLayoutManager.h"
#include "FillRoomLayoutManager.h"
class CollageLayoutManagerFactory {
public:
CollageLayoutManagerFactory(CollageGraphics* collageGraphics);
~CollageLayoutManagerFactory();
enum LayoutType {
LM_SIMPLE_SINGLE,
LM_SIMPLE_DOUBLE,
LM_SMART_SINGLE,
LM_RANDOM,
LM_FILL_ROOM
};
CollageLayoutManager* CreateLayoutManager(LayoutType layoutType);
protected:
CollageGraphics* collageGraphics;
CollageLayoutManager* CreateSimpleSingleLayoutManager();
CollageLayoutManager* CreateSmartSingleLayoutManager();
CollageLayoutManager* CreateSimpleDoubleLayoutManager();
CollageLayoutManager* CreateRandomLayoutManager();
CollageLayoutManager* CreateFillRoomLayoutManager();
};
#endif