DisplayOpenGL Class Reference

OpenGL based Display implementation. More...

#include <display/DisplayOpenGL.h>

Inheritance diagram for DisplayOpenGL:

Display

List of all members.

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.


Detailed Description

OpenGL based Display implementation.

Member Function Documentation

std::auto_ptr< Graphics::TBitmap > DisplayOpenGL::CreateBitmap ( void   )  [virtual]

Create plot bitmap.

Todo:
MarkTrigger

Implements Display.

int DisplayOpenGL::GetCursorPhysical ( enum E_CURSOR  cursor,
float &  fValX,
float &  fValY 
) [virtual]

Get physical (voltage/time or freq/time) coordinates of cursor.

Returns:
0 on success

Implements Display.

void DisplayOpenGL::SetOffsetY ( float  fVal  )  [virtual]

Set Y-axis offset.

Parameters:
fVal requested value at center position

Implements Display.

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

Set viewport offset and zoom.

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

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

Implements Display.


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

Generated on Wed May 15 22:42:22 2013 for miniscope v3 by  doxygen 1.5.9
Tomasz Ostrowski