-
Notifications
You must be signed in to change notification settings - Fork 0
/
CollageImage.h
82 lines (54 loc) · 1.88 KB
/
CollageImage.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
///////////////////////////////////////////////////////////////////////////////////////////////
//
// Name: CollageImage.h
//
// Author: David Borland
//
// Description: Includes Image behavior for Collage
//
///////////////////////////////////////////////////////////////////////////////////////////////
#ifndef COLLAGEIMAGE_H
#define COLLAGEIMAGE_H
#include <Image.h>
#include "CollageItemMetadata.h"
//#include <FTGL/ftgl.h>
// Forward declarations
class CollageGraphics;
class CollageImage : public Image {
public:
CollageImage(Behavior imageBehavior = Normal);
virtual ~CollageImage();
void SetWindowHeight(int height);
virtual void SetPosition(const Vec2& pos);
virtual void SetScale(float scaleValue);
bool Intersect(const Vec2& point);
void Translate(const Vec2& translation);
void FitToScreen();
void NativeResolution();
void GetExtent(float& left, float& right, float& bottom, float& top);
CollageItemMetadata* GetCollageItemMetadata(void);
void BorderOn();
void BorderOff();
void SetCollageGraphics(CollageGraphics* collageGraphics);
CollageGraphics* GetCollageGraphics(void);
void ShowLegendText(float viewXStart, float translateX, float translateY);
void SetStereoImage(CollageImage* image);
bool HasStereoImage();
CollageImage* RemoveStereoImage();
void IncreaseStereoDepth();
void DecreaseStereoDepth();
void RenderStereo();
protected:
bool border;
int windowHeight;
CollageGraphics* collageGraphics;
// TODO: add bool showMetadata and support
CollageItemMetadata collageItemMetadata;
CollageImage* stereoImage;
float stereoOffset;
virtual void DoRender();
// void ShowLegend(float translateX, float translateY);
void RenderBorder();
void SetStereoOffset(float offset);
};
#endif