58 : m_widget(widget), m_visualizer(visualizer), m_main_window(main_window), m_event_callback(event_callback), m_width(width), m_height(height), m_mouse_mode(0)
197 #define ROT_SPEED 0.1f 198 #define TRANS_SPEED 100.0f void MouseMove(WIDGET_HANDLE widget, int x, int y)
virtual void KeyUp(WIDGET_HANDLE widget, int key)
virtual void ButtonPushed(WIDGET_HANDLE widget)
virtual void ValueChanged(WIDGET_HANDLE widget, int value)
virtual void KeyDown(WIDGET_HANDLE widget, int key)
CMainWindowInterface * m_main_window
void ButtonPushed(WIDGET_HANDLE widget)
const Transformation3d & GetViewMatrix()
void PointClicked(WIDGET_HANDLE widget, int x, int y)
COpenGLVisualizerControl(WIDGET_HANDLE widget, int width, int height, COpenGLVisualizer *visualizer, CMainWindowInterface *main_window, CMainWindowEventInterface *event_callback)
virtual int GetModifierKeyState()=0
virtual void MouseDown(WIDGET_HANDLE widget, int button, int x, int y)
COpenGLVisualizer * m_visualizer
CMainWindowEventInterface * m_event_callback
void KeyDown(WIDGET_HANDLE widget, int key)
void SetRotationMatZ(Mat3d &matrix, float theta)
void RectSelected(WIDGET_HANDLE widget, int x0, int y0, int x1, int y1)
GLsizei const GLfloat * value
virtual void MouseMove(WIDGET_HANDLE widget, int x, int y)
void MulMatMat(const Mat3d &matrix1, const Mat3d &matrix2, Mat3d &result)
void KeyUp(WIDGET_HANDLE widget, int key)
virtual void PointClicked(WIDGET_HANDLE widget, int x, int y)
void SetViewMatrix(const Transformation3d &transformation)
Transformation3d m_ViewMatrix
Interface for the creation of GUIs with the GUI toolkit of the IVT.
void MouseUp(WIDGET_HANDLE widget, int button, int x, int y)
GLenum GLsizei GLsizei height
#define IVT_MIDDLE_BUTTON
void SetRotationMatY(Mat3d &matrix, float theta)
void SetViewMatrix(const Transformation3d &transformation)
void MouseDown(WIDGET_HANDLE widget, int button, int x, int y)
void ValueChanged(WIDGET_HANDLE widget, int value)
void SetRotationMatX(Mat3d &matrix, float theta)
Data structure for the representation of a 3x3 matrix.
Interface for the event mechanism of GUIs using the GUI toolkit of the IVT.
virtual void RectSelected(WIDGET_HANDLE widget, int x0, int y0, int x1, int y1)
virtual void MouseUp(WIDGET_HANDLE widget, int button, int x, int y)