A class that provides mouse handling, camera, and selection for an OpenGL window.
FrameworkGLCanvas.h
A class that provides mouse handling, camera, and selection for an OpenGL window. | |
The wxFrameworkGLCanvas constructor. | |
The wxFrameworkGLCanvas destructor. | |
Turns hit tests on or off based on the hit parameter. | |
Returns whether an object was actually selected or simply moused over. | |
Returns the id of the currently selected object. | |
Returns the position of the current view camera. | |
Returns the lookat position of the current view camera. | |
The wxWidgets event table declaration. | |
Stores the current camera settings in the ConfigDatabase. | |
Resets the camera position and lookat back to original values. | |
Determines the final location for the view camera based on rotation and panning. | |
Rotates the view by adjusting the <mXRot> and <mYRot> variables. | |
Pans the view by adjusting the camera lookat position | |
Zooms the view by adjusting the camera position. | |
Does object selection checking based on the given window coordinates. | |
Handles object selection. | |
Handles the mouse moving. | |
Handles the mouse wheel moving. | |
Handles the left mouse click. | |
Handles the middle mouse down. | |
Handles the middle mouse up. | |
Handles the right mouse down. | |
Handles the right mouse up. | |
Handles the right mouse float click. | |
Handles a keystroke. | |
Resets the eye point to the loaded map’s default. | |
Whether hit tests are on or off. | |
Whether an actual selection has occurred or just a mouseover. | |
The last captured position of the mouse. | |
The OpenGL id of the current selection. |
The wxFrameworkGLCanvas constructor. | |
The wxFrameworkGLCanvas destructor. | |
Turns hit tests on or off based on the hit parameter. | |
Returns whether an object was actually selected or simply moused over. | |
Returns the id of the currently selected object. | |
Returns the position of the current view camera. | |
Returns the lookat position of the current view camera. | |
The wxWidgets event table declaration. |
|
The wxFrameworkGLCanvas constructor. Adds OnResetCamera as a receiver of the eventResetCamera Event.
| parent | The parent window (must not be NULL). |
| id | The id for message handling. |
| pos | The starting position. |
| size | The starting size. |
| style | The window style, using wxWindow parameters. |
| name | The name. |
| attribute | Starting OpenGL implementation attributes. |
| ~wxFrameworkGLCanvas() |
The wxFrameworkGLCanvas destructor. Removes OnResetCamera as a receiver of the eventResetCamera Event.
| const Vector &GetCameraPos() const |
Returns the position of the current view camera.
A Vector containing the view camera’s position.
| const Vector &GetCameraLookAt() const |
Returns the lookat position of the current view camera.
A Vector containing the view camera’s lookat position.
Stores the current camera settings in the ConfigDatabase. | |
Resets the camera position and lookat back to original values. | |
Determines the final location for the view camera based on rotation and panning. | |
Rotates the view by adjusting the <mXRot> and <mYRot> variables. | |
Pans the view by adjusting the camera lookat position | |
Zooms the view by adjusting the camera position. | |
Does object selection checking based on the given window coordinates. | |
Handles object selection. | |
Handles the mouse moving. | |
Handles the mouse wheel moving. | |
Handles the left mouse click. | |
Handles the middle mouse down. | |
Handles the middle mouse up. | |
Handles the right mouse down. | |
Handles the right mouse up. | |
Handles the right mouse float click. | |
Handles a keystroke. | |
Resets the eye point to the loaded map’s default. | |
Whether hit tests are on or off. | |
Whether an actual selection has occurred or just a mouseover. | |
The last captured position of the mouse. | |
The OpenGL id of the current selection. |
| void SaveCamera() |
Stores the current camera settings in the ConfigDatabase.
|
Resets the eye point to the loaded map’s default.
| val | Needed to satisfy Event’s one parameter requirement. Unused. |
|
|
| bool GotFinalHit() const |
| wxInt32 GetSelection() const |
| const Vector &GetCameraPos() const |
| const Vector &GetCameraLookAt() const |
| void SaveCamera() |
| void ResetCamera() |
| void UpdateViewCamera() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| bool mHitTest |
| bool mFinalHit |
| wxPoint mPoint |
| wxInt32 mSelection |