RTXI  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Scope Class Reference

#include <scope.h>

Inheritance diagram for Scope:


class  Canvas
class  Channel
class  LegendItem

Public Types

enum  trig_t { NONE, POS, NEG }

Public Member Functions

 Scope (QWidget *=NULL)
virtual ~Scope (void)
bool paused (void) const
std::list< Channel >::iterator insertChannel (QString, double, double, const QPen &, QwtPlotCurve *, void *)
void * removeChannel (std::list< Channel >::iterator)
size_t getChannelCount (void) const
std::list< Channel >::iterator getChannelsBegin (void)
std::list< Channel >::iterator getChannelsEnd (void)
std::list< Channel >
getChannelsBegin (void) const
std::list< Channel >
getChannelsEnd (void) const
void clearData (void)
void setData (double *, size_t)
size_t getDataSize (void) const
void setDataSize (size_t)
trig_t getTriggerDirection (void)
double getTriggerThreshold (void)
double getTriggerWindow (void)
std::list< Channel >::iterator getTriggerChannel (void)
void setTrigger (trig_t, double, std::list< Channel >::iterator, double)
double getDivT (void) const
void setDivT (double)
void setPeriod (double)
size_t getDivX (void) const
size_t getDivY (void) const
size_t getRefresh (void) const
void setRefresh (size_t)
void setChannelScale (std::list< Channel >::iterator, double)
void setChannelOffset (std::list< Channel >::iterator, double)
void setChannelPen (std::list< Channel >::iterator, const QPen &)
void setChannelLabel (std::list< Channel >::iterator, const QString &)

Public Attributes

bool isPaused

Protected Member Functions

void resizeEvent (QResizeEvent *)

Private Slots

void timeoutEvent (void)

Private Member Functions

void drawCurves (void)

Private Attributes

size_t divX
size_t divY
size_t data_idx
size_t data_size
double hScl
double period
size_t refresh
bool triggering
trig_t triggerDirection
double triggerThreshold
double triggerWindow
std::list< size_t > triggerQueue
std::list< Channel >::iterator triggerChannel
QwtPlotDirectPainter * d_directPainter
QwtPlotGrid * grid
QwtPlotMarker * origin
QwtScaleMap * scaleMapY
QwtScaleMap * scaleMapX
QTimer * timer
QString dtLabel
std::list< Channelchannels


class Panel

Detailed Description

Definition at line 52 of file scope.h.

Member Enumeration Documentation


Definition at line 136 of file scope.h.

Constructor & Destructor Documentation

Scope::Scope(QWidget * parent = NULL)

Definition at line 74 of file scope.cpp.

Scope::~Scope(void )

Definition at line 158 of file scope.cpp.

Member Function Documentation

void Scope::clearData(void )

Definition at line 242 of file scope.cpp.

void Scope::drawCurves(void )

Definition at line 422 of file scope.cpp.

size_t Scope::getChannelCount(void )const

Definition at line 212 of file scope.cpp.

std::list< Scope::Channel >::iterator Scope::getChannelsBegin(void )

Definition at line 218 of file scope.cpp.

std::list< Scope::Channel >::const_iterator Scope::getChannelsBegin(void )const

Definition at line 230 of file scope.cpp.

std::list< Scope::Channel >::iterator Scope::getChannelsEnd(void )

Definition at line 224 of file scope.cpp.

std::list< Scope::Channel >::const_iterator Scope::getChannelsEnd(void )const

Definition at line 236 of file scope.cpp.

size_t Scope::getDataSize(void )const

Definition at line 286 of file scope.cpp.

double Scope::getDivT(void )const

Definition at line 347 of file scope.cpp.

size_t Scope::getDivX(void )const

Definition at line 373 of file scope.cpp.

size_t Scope::getDivY(void )const

Definition at line 379 of file scope.cpp.

size_t Scope::getRefresh(void )const

Definition at line 385 of file scope.cpp.

std::list< Scope::Channel >::iterator Scope::getTriggerChannel(void )

Definition at line 315 of file scope.cpp.

Scope::trig_t Scope::getTriggerDirection(void )

Definition at line 300 of file scope.cpp.

double Scope::getTriggerThreshold(void )

Definition at line 305 of file scope.cpp.

double Scope::getTriggerWindow(void )

Definition at line 310 of file scope.cpp.

std::list< Scope::Channel >::iterator Scope::insertChannel(QString label,
double scale,
double offset,
const QPen & pen,
QwtPlotCurve * curve,
void * info 

Definition at line 177 of file scope.cpp.

bool Scope::paused(void )const

Definition at line 164 of file scope.cpp.

void * Scope::removeChannel(std::list< Channel >::iterator )

Definition at line 195 of file scope.cpp.

void Scope::resizeEvent(QResizeEvent * event)

Definition at line 205 of file scope.cpp.

void Scope::setChannelLabel(std::list< Channel >::iterator channel,
const QString & label 

Definition at line 416 of file scope.cpp.

void Scope::setChannelOffset(std::list< Channel >::iterator channel,
double offset 

Definition at line 404 of file scope.cpp.

void Scope::setChannelPen(std::list< Channel >::iterator channel,
const QPen & pen 

Definition at line 410 of file scope.cpp.

void Scope::setChannelScale(std::list< Channel >::iterator channel,
double scale 

Definition at line 398 of file scope.cpp.

void Scope::setData(double * ,

Definition at line 251 of file scope.cpp.

void Scope::setDataSize(size_t size)

Definition at line 291 of file scope.cpp.

void Scope::setDivT(double divT)

Definition at line 353 of file scope.cpp.

void Scope::setPeriod(double p)

Definition at line 367 of file scope.cpp.

void Scope::setRefresh(size_t r)

Definition at line 391 of file scope.cpp.

void Scope::setTrigger(trig_t direction,
double threshold,
std::list< Channel >::iterator channel,
double window 

Definition at line 320 of file scope.cpp.

void Scope::timeoutEvent(void )

Definition at line 170 of file scope.cpp.

Friends And Related Function Documentation

friend class Panel

Definition at line 57 of file scope.h.

Member Data Documentation

std::list<Channel> Scope::channels

Definition at line 222 of file scope.h.

QwtPlotDirectPainter* Scope::d_directPainter

Definition at line 207 of file scope.h.

size_t Scope::data_idx

Definition at line 194 of file scope.h.

size_t Scope::data_size

Definition at line 195 of file scope.h.

size_t Scope::divX

Definition at line 192 of file scope.h.

size_t Scope::divY

Definition at line 193 of file scope.h.

QString Scope::dtLabel

Definition at line 221 of file scope.h.

QwtPlotGrid* Scope::grid

Definition at line 210 of file scope.h.

double Scope::hScl

Definition at line 196 of file scope.h.

bool Scope::isPaused

Definition at line 177 of file scope.h.

LegendItem* Scope::legendItem

Definition at line 218 of file scope.h.

QwtPlotMarker* Scope::origin

Definition at line 211 of file scope.h.

double Scope::period

Definition at line 197 of file scope.h.

size_t Scope::refresh

Definition at line 198 of file scope.h.

QwtScaleMap* Scope::scaleMapX

Definition at line 215 of file scope.h.

QwtScaleMap* Scope::scaleMapY

Definition at line 214 of file scope.h.

QTimer* Scope::timer

Definition at line 220 of file scope.h.

std::list<Channel>::iterator Scope::triggerChannel

Definition at line 204 of file scope.h.

trig_t Scope::triggerDirection

Definition at line 200 of file scope.h.

bool Scope::triggering

Definition at line 199 of file scope.h.

std::list<size_t> Scope::triggerQueue

Definition at line 203 of file scope.h.

double Scope::triggerThreshold

Definition at line 201 of file scope.h.

double Scope::triggerWindow

Definition at line 202 of file scope.h.

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