2011-09-07 21:06:51 +00:00
|
|
|
#ifndef _VIEW_H_
|
|
|
|
#define _VIEW_H_
|
|
|
|
|
2013-08-09 04:57:18 +00:00
|
|
|
#include "lc_glwidget.h"
|
2013-12-17 02:43:16 +00:00
|
|
|
#include "lc_projection.h"
|
2011-09-07 21:06:51 +00:00
|
|
|
|
2012-02-05 02:50:57 +00:00
|
|
|
class Camera;
|
2011-09-07 21:06:51 +00:00
|
|
|
class Project;
|
|
|
|
|
2013-08-09 04:57:18 +00:00
|
|
|
class View : public lcGLWidget
|
2011-09-07 21:06:51 +00:00
|
|
|
{
|
|
|
|
public:
|
2013-08-09 04:57:18 +00:00
|
|
|
View(Project *project);
|
2012-02-05 02:50:57 +00:00
|
|
|
virtual ~View();
|
|
|
|
|
|
|
|
void OnDraw();
|
|
|
|
void OnInitialUpdate();
|
2013-08-09 04:57:18 +00: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 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();
|
2013-12-17 02:43:16 +00:00
|
|
|
const lcProjection& UpdateProjection();
|
|
|
|
void SetProjectionType(lcProjection::Type type);
|
|
|
|
lcProjection::Type GetProjectionType() const;
|
2012-08-20 04:05:56 +00:00
|
|
|
|
2012-07-31 05:27:40 +00:00
|
|
|
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;
|
2013-12-17 02:43:16 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
lcProjection mProjection;
|
2011-09-07 21:06:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _VIEW_H_
|