mirror of
https://github.com/leozide/leocad
synced 2024-11-17 07:47:55 +01:00
36 lines
958 B
C++
36 lines
958 B
C++
#ifndef _VIEW_H_
|
|
#define _VIEW_H_
|
|
|
|
#include "glwindow.h"
|
|
|
|
class Camera;
|
|
class Project;
|
|
|
|
class View : public GLWindow
|
|
{
|
|
public:
|
|
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);
|
|
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);
|
|
|
|
void SetCamera(Camera* camera, bool ForceCopy);
|
|
void SetDefaultCamera();
|
|
|
|
LC_CURSOR_TYPE GetCursor() const;
|
|
|
|
Project* m_Project;
|
|
Camera* mCamera;
|
|
float m_OverlayScale;
|
|
};
|
|
|
|
#endif // _VIEW_H_
|