leocad/common/view.h

38 lines
1,019 B
C
Raw Normal View History

2011-09-07 23:06:51 +02:00
#ifndef _VIEW_H_
#define _VIEW_H_
#include "glwindow.h"
2012-02-05 03:50:57 +01:00
class Camera;
2011-09-07 23:06:51 +02:00
class Project;
class View : public GLWindow
{
public:
2012-02-05 03:50:57 +01:00
View(Project *pProject, GLWindow *share);
virtual ~View();
void OnDraw();
void OnInitialUpdate();
2013-01-28 20:57:33 +01:00
void OnLeftButtonDown(int x, int y, bool Control, bool Shift);
void OnLeftButtonUp(int x, int y, bool Control, bool Shift);
void OnLeftButtonDoubleClick(int x, int y, bool Control, bool Shift);
void OnMiddleButtonDown(int x, int y, bool Control, bool Shift);
void OnMiddleButtonUp(int x, int y, bool Control, bool Shift);
void OnRightButtonDown(int x, int y, bool Control, bool Shift);
void OnRightButtonUp(int x, int y, bool Control, bool Shift);
void OnMouseMove(int x, int y, bool Control, bool Shift);
void OnMouseWheel(int x, int y, float Direction, bool Control, bool Shift);
2011-09-07 23:06:51 +02:00
2012-11-15 02:14:35 +01:00
void SetCamera(Camera* camera, bool ForceCopy);
2012-08-20 06:05:56 +02:00
void SetDefaultCamera();
LC_CURSOR_TYPE GetCursor() const;
2011-09-07 23:06:51 +02:00
Project* m_Project;
2012-08-20 06:05:56 +02:00
Camera* mCamera;
2012-02-05 03:50:57 +01:00
float m_OverlayScale;
2011-09-07 23:06:51 +02:00
};
#endif // _VIEW_H_