leocad/common/view.h

37 lines
958 B
C
Raw Normal View History

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