#include <display/Display.h>
Classes | |
struct | S_STATE |
State of plot elements (visibility, zoom, position) in specific mode. More... | |
Public Member Functions | |
virtual void | SetDiv (float fX, float fY) |
Set voltage per LSB and time between samples. | |
virtual void | SetMode (const enum E_DISPLAY_MODE m)=0 |
Switch between plot modes (time graph/FFT/...). | |
virtual enum E_DISPLAY_MODE | GetMode (void) |
Get type of current display mode. | |
virtual void | Update (enum E_UPDATE_LEVEL level)=0 |
Update displayed content. | |
virtual void | ChangeSize (int w, int h)=0 |
Resize viewport (visible area of plot). | |
virtual void | SetRange (int range) |
Set expected range of input data to -range...+range. | |
virtual void | SetCursor1 (int x, int y)=0 |
Set position of cursor #1. | |
virtual void | SetCursor2 (int x, int y)=0 |
Set position of cursor #2. | |
virtual void | SetZoom (int iCenterX, int iCenterY, float fZoomX, float fZoomY)=0 |
Set viewport offset and zoom. | |
virtual void | Move (int iStartX, int iStartY, int iStopX, int iStopY)=0 |
Move viewport. | |
virtual void | PosToPhysical (int x, int y, float &fValX, float &fValY)=0 |
Transform screen coordinates to physical values. | |
Public Attributes | |
std::vector< float > * | data |
Data to plot. | |
Protected Member Functions | |
struct S_STATE & | State (void) |
Get current plot state/zoom/offset/visibility. | |
Protected Attributes | |
int | iRange |
vertical range (range is from -iRange to iRange LSB) | |
float | fDivX |
time difference between samples | |
float | fDivY |
voltage per LSB | |
enum E_DISPLAY_MODE | mode |
current display mode type | |
struct S_STATE | scope |
display state for scope mode | |
struct S_STATE | spectrum |
display state for spectrum analyzer state |
virtual void Display::SetZoom | ( | int | iCenterX, | |
int | iCenterY, | |||
float | fZoomX, | |||
float | fZoomY | |||
) | [pure 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 |
Implemented in DisplayOpenGL.
virtual void Display::Update | ( | enum E_UPDATE_LEVEL | level | ) | [pure virtual] |
Update displayed content.
level | Used to specify parts of graph that must be updated. |
Implemented in DisplayOpenGL.