Display Class Reference

Abstact display interface class. More...

#include <display/Display.h>

Inheritance diagram for Display:

DisplayOpenGL

List of all members.

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_STATEState (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


Detailed Description

Abstact display interface class.

Member Function Documentation

virtual void Display::SetZoom ( int  iCenterX,
int  iCenterY,
float  fZoomX,
float  fZoomY 
) [pure virtual]

Set viewport offset and zoom.

Parameters:
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.

Parameters:
level Used to specify parts of graph that must be updated.

Implemented in DisplayOpenGL.


The documentation for this class was generated from the following files:

Generated on Thu Jul 2 23:00:07 2009 for armscope by  doxygen 1.5.9
Tomasz Ostrowski