#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 int | GetCursorPhysical (enum E_CURSOR cursor, float &fValX, float &fValY) |
Get physical (voltage/time or freq/time) coordinates of cursor. | |
virtual void | SetZoom (int iCenterX, int iCenterY, float fZoomX, float fZoomY) |
Set viewport offset and zoom. | |
virtual void | SetOffsetY (float fVal) |
Set Y-axis offset. | |
virtual void | Move (int iStartX, int iStartY, int iStopX, int iStopY) |
Move viewport. | |
virtual void | SetRange (float range) |
Set expected range of input data to -range...+range. | |
virtual std::auto_ptr < Graphics::TBitmap > | CreateBitmap (void) |
Create plot bitmap. |
std::auto_ptr< Graphics::TBitmap > DisplayOpenGL::CreateBitmap | ( | void | ) | [virtual] |
int DisplayOpenGL::GetCursorPhysical | ( | enum E_CURSOR | cursor, | |
float & | fValX, | |||
float & | fValY | |||
) | [virtual] |
Get physical (voltage/time or freq/time) coordinates of cursor.
Implements Display.
void DisplayOpenGL::SetOffsetY | ( | float | fVal | ) | [virtual] |
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) or enum E_OFFSET_ACTION | |
iCenterY | requested center of viewport (i.e. zoom click coordinate) or enum E_OFFSET_ACTION | |
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.