leocad/common/view.h
2013-08-09 04:57:18 +00:00

38 lines
686 B
C++

#ifndef _VIEW_H_
#define _VIEW_H_
#include "lc_glwidget.h"
class Camera;
class Project;
class View : public lcGLWidget
{
public:
View(Project *project);
virtual ~View();
void OnDraw();
void OnInitialUpdate();
void OnUpdateCursor();
void OnLeftButtonDown();
void OnLeftButtonUp();
void OnLeftButtonDoubleClick();
void OnMiddleButtonDown();
void OnMiddleButtonUp();
void OnRightButtonDown();
void OnRightButtonUp();
void OnMouseMove();
void OnMouseWheel(float Direction);
void SetCamera(Camera* camera, bool ForceCopy);
void SetDefaultCamera();
LC_CURSOR_TYPE GetCursor() const;
Project* m_Project;
Camera* mCamera;
float m_OverlayScale;
};
#endif // _VIEW_H_