#include <display/DisplayOpenGL.h>
Public Member Functions | |
DisplayOpenGL (void *hParent) | |
virtual void | SetMode (const enum E_DISPLAY_MODE m) |
Switch between plot modes (time graph/FFT/...). | |
virtual void | Update (enum E_UPDATE_LEVEL level) |
Update displayed content. | |
virtual void | ChangeSize (int iWidth, int iHeight) |
Resize viewport (visible area of plot). | |
virtual void | SetCursor1 (int x, int y) |
Set position of cursor #1. | |
virtual void | SetCursor2 (int x, int y) |
Set position of cursor #2. | |
virtual void | PosToPhysical (int x, int y, float &fValX, float &fValY) |
Transform screen coordinates to physical values. | |
virtual void | SetZoom (int iCenterX, int iCenterY, float fZoomX, float fZoomY) |
Set viewport offset and zoom. | |
virtual void | Move (int iStartX, int iStartY, int iStopX, int iStopY) |
Move viewport. |
void DisplayOpenGL::SetZoom | ( | int | iCenterX, | |
int | iCenterY, | |||
float | fZoomX, | |||
float | fZoomY | |||
) | [virtual] |
Set viewport offset and zoom.
iCenterX | requested center of viewport (i.e. zoom click coordinate), -1 to omit | |
iCenterY | requested center of viewport (i.e. zoom click coordinate), -1 to omit | |
fZoomX | X-axis scale | |
fZoomY | Y-axis scale |
Implements Display.
void DisplayOpenGL::Update | ( | enum E_UPDATE_LEVEL | level | ) | [virtual] |
Update displayed content.
level | Used to specify parts of graph that must be updated. |
Implements Display.