-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathOriginalView.h
52 lines (38 loc) · 865 Bytes
/
OriginalView.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
//
// originalview.h
//
// The header file for original view of the input images
//
#ifndef ORIGINALVIEW_H
#define ORIGINALVIEW_H
#include <FL/Fl.H>
#include <FL/Fl_Gl_Window.H>
#include <FL/gl.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <stdlib.h>
#include "ImpBrush.h"
enum { ORIGIN_IMAGE = 0, ANOTHER_IMAGE, EDGE_IMAGE };
class ImpressionistDoc;
class OriginalView : public Fl_Gl_Window
{
public:
OriginalView(int x, int y, int w, int h, const char *l);
void draw();
void refresh();
void setCursor(const Point& p);
void drawCursor();
void resizeWindow(int width, int height);
void setViewType(int type);
int getViewType();
ImpressionistDoc* m_pDoc;
private:
int m_nWindowWidth,
m_nWindowHeight;
int viewType;
//store the original height and width of the loaded picture
int iniWidth;
int iniHeight;
Point cursor;
};
#endif