2011-09-07 23:06:51 +02:00
|
|
|
#ifndef _VIEW_H_
|
|
|
|
#define _VIEW_H_
|
|
|
|
|
2013-08-09 06:57:18 +02:00
|
|
|
#include "lc_glwidget.h"
|
2011-09-07 23:06:51 +02:00
|
|
|
|
2012-02-05 03:50:57 +01:00
|
|
|
class Camera;
|
2011-09-07 23:06:51 +02:00
|
|
|
class Project;
|
|
|
|
|
2013-08-09 06:57:18 +02:00
|
|
|
class View : public lcGLWidget
|
2011-09-07 23:06:51 +02:00
|
|
|
{
|
|
|
|
public:
|
2013-08-09 06:57:18 +02:00
|
|
|
View(Project *project);
|
2012-02-05 03:50:57 +01:00
|
|
|
virtual ~View();
|
|
|
|
|
|
|
|
void OnDraw();
|
|
|
|
void OnInitialUpdate();
|
2013-08-09 06:57:18 +02:00
|
|
|
void OnUpdateCursor();
|
|
|
|
void OnLeftButtonDown();
|
|
|
|
void OnLeftButtonUp();
|
|
|
|
void OnLeftButtonDoubleClick();
|
|
|
|
void OnMiddleButtonDown();
|
|
|
|
void OnMiddleButtonUp();
|
|
|
|
void OnRightButtonDown();
|
|
|
|
void OnRightButtonUp();
|
|
|
|
void OnMouseMove();
|
|
|
|
void OnMouseWheel(float Direction);
|
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();
|
|
|
|
|
2012-07-31 07:27:40 +02:00
|
|
|
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_
|