TripletPlot Class Reference
Displays a triplet profile. More...
#include <tripletplot.h>
Inherits SetiGraph.
Inheritance diagram for TripletPlot:
Public Slots | |
void | showNewTripletData (TripletScore score) |
Public Methods | |
TripletPlot (QWidget *parent=0, const char *name=0) | |
TripletPlot (SetiLoc *loc, QWidget *parent=0, const char *name=0) | |
~TripletPlot () | |
Protected Methods | |
virtual void | paintWidget (QPaintDevice *pd) |
void | drawPulseMarker (int index, QPainter *p) |
void | init () |
Protected Attributes | |
QArray< double > | tripletData |
TripletScore | triplet |
bool | dataLoaded |
Detailed Description
Displays a triplet profile.This object can be constructed in two ways: either with or without specifying a S@h location. If a SetiLoc object is passed to the constructor of this class, the triplet profile shown in the widget always represents the best triplet the S@h client has found in the work unit it processes at that time. The triplet profile is automatically updated whenever the client finds a new and better triplet signal.
If this widget is created without a S@h location, the triplet data have to be explicitly passed with the showNewTripletData() method.
Definition at line 33 of file tripletplot.h.
Constructor & Destructor Documentation
|
The constructor.
Definition at line 30 of file tripletplot.cpp. References init(). |
|
The constructor. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 23 of file tripletplot.cpp. References init(). |
|
The destructor.
Definition at line 37 of file tripletplot.cpp. |
Member Function Documentation
|
Updates the widget with new triplet data.
Definition at line 102 of file tripletplot.cpp. References TripletScore::data, TripletScore::data_len, dataLoaded, TripletScore::mean, TripletScore::period, TripletScore::power, QWidget::repaint(), QArray< double >::resize(), SetiGraph::setCurve(), SetiGraph::setInfoText(), QString::sprintf(), triplet, and tripletData. Referenced by init(), SigMsg::SigMsg(), LoggedSigs::slotFirstSignal(), LoggedSigs::slotLastSignal(), LoggedSigs::slotNextSignal(), LoggedSigs::slotPreviousSignal(), LoggedSigs::slotSave(), and LoggedSigs::slotShowFirstSignals(). |
|
Paints the widget. Reimplemented for customized painting of this widget (drawing green markers indicating the triplet).
Reimplemented from SetiGraph. Definition at line 72 of file tripletplot.cpp. References SetiGraph::arraySize(), QPainter::begin(), drawPulseMarker(), QPainter::end(), SetiGraph::paintWidget(), QWidget::rect(), QPainter::setBrush(), QPen::setColor(), QBrush::setColor(), QPainter::setPen(), QBrush::setStyle(), TripletScore::tpotind0_0, TripletScore::tpotind1_0, TripletScore::tpotind2_0, QPainter::translate(), and triplet. |
|
Draws a marker. A green marker indicating the position of a spike of the triplet is drawn at position index.
Definition at line 129 of file tripletplot.cpp. References SetiGraph::arraySize(), QPainter::drawPolygon(), QWidget::height(), QPointArray::setPoints(), QWidget::width(), QWidget::x(), and QWidget::y(). Referenced by paintWidget(). |
|
Initializes the widget. If a S@h location is given, the triplet profile is painted, and a connection is made to the SetiLoc::newTriplet signal of the corresponding SetiLoc object. Definition at line 42 of file tripletplot.cpp. References QString::arg(), QObject::connect(), dataLoaded, SetiLoc::description(), QWidget::resize(), QArray< double >::resize(), QWidget::setBackgroundColor(), QWidget::setCaption(), QWidget::setMinimumSize(), showNewTripletData(), tripletData, and SetiContainer::tripletScore(). Referenced by TripletPlot(). |
Member Data Documentation
|
This array stores the triplet data.
Definition at line 96 of file tripletplot.h. Referenced by init(), and showNewTripletData(). |
|
A structure containing the triplet parameters.
Definition at line 98 of file tripletplot.h. Referenced by paintWidget(), and showNewTripletData(). |
|
Indicates if the data of a triplet is loaded.
Definition at line 100 of file tripletplot.h. Referenced by init(), and showNewTripletData(). |
The documentation for this class was generated from the following files: