20 #ifndef PROJECTORWINDOW_HPP 21 #define PROJECTORWINDOW_HPP 23 #include "KFPrediction.hpp" 24 #include "TrackingBall.hpp" 26 #include <QOpenGLWidget> 137 mShowParam = showParam;
149 mColorMiss = colorMiss;
155 mVerboseKF = verboseKF;
162 mShowParabola = showParabola;
168 mPointRadius = pointRadius;
174 mPointThickness = pointThickness;
180 mFitThickness = fitThickness;
186 mFontSize = fontSize;
192 mColorFitLock = QColor(color);
198 mMinFallSpeed = minFallSpeed;
203 mWaitTilFall = waitTilFall;
221 #endif // PROJECTORWINDOW_HPP double mFitThickness
Thickness of the track fit parabola.
Definition: ProjectorWindow.hpp:99
void toggleShowJet(bool showJet)
toggle whether to show jet ((dx,dy)) of tracked ball
Definition: ProjectorWindow.hpp:141
int mPointRadius
Radius of circles denoting tracked ball.
Definition: ProjectorWindow.hpp:97
void setProjW(int w)
set the projector width (in inches)
Definition: ProjectorWindow.hpp:207
bool mDataStale
whether data should be cleared on next track
Definition: ProjectorWindow.hpp:58
bool mShowParam
Whether we show the parametrized equation for the fit or not.
Definition: ProjectorWindow.hpp:79
A display widget for projector coordinates on the projector.
Definition: ProjectorWindow.hpp:35
void setPointThickness(double pointThickness)
set thickness of ball track marks
Definition: ProjectorWindow.hpp:172
QSize mProjSize
The size of the projector (in inches)
Definition: ProjectorWindow.hpp:40
bool mColorMiss
Whether we should color differently the predictions for unseen balls.
Definition: ProjectorWindow.hpp:83
QColor mColorFitLock
The color of the fit curve projection, after lock.
Definition: ProjectorWindow.hpp:95
void setFitThickness(double fitThickness)
set thickness of fit parabola
Definition: ProjectorWindow.hpp:178
void toggleColorMiss(bool colorMiss)
toggle color difference between seen/unseen KF hits
Definition: ProjectorWindow.hpp:147
bool mVerboseKF
Whether we should include width, height, etc from KF prediction data in display.
Definition: ProjectorWindow.hpp:86
QList< KFPrediction > mPreds
A list of predictions of ball location in the projector.
Definition: ProjectorWindow.hpp:45
void toggleShowFit(bool showFit)
toggle whether to show fit information for tracked ball
Definition: ProjectorWindow.hpp:129
void setProjH(int h)
set the projector height (in inches)
Definition: ProjectorWindow.hpp:209
void setColorFitLock(QString color)
Set the after-lock fit curve color.
Definition: ProjectorWindow.hpp:191
void setFontSize(int fontSize)
set font size for data display
Definition: ProjectorWindow.hpp:184
bool mShowFit
Whether we show the fit or not.
Definition: ProjectorWindow.hpp:77
int mNumPointFit
Number of tracked points to wait for until the curve is fit.
Definition: ProjectorWindow.hpp:63
void pushBall(TrackingBall ball)
push a raw tracked ball to projector
Definition: ProjectorWindow.cpp:55
void setPointRadius(int pointRadius)
set radius of ball track circles
Definition: ProjectorWindow.hpp:166
QPointF relPointToWindow(QPointF pt)
convert a relative point in the projector to window coords
Definition: ProjectorWindow.cpp:194
bool mWaitTilFall
Whether we should wait until the ball is falling to lock/fit a curve.
Definition: ProjectorWindow.hpp:69
void toggleLockFit(bool lockFit)
toggle whether to wait until manual clear for tracked ball
Definition: ProjectorWindow.hpp:123
void markDataStale()
mark data stale, ie ready to wipe on next track.
Definition: ProjectorWindow.hpp:115
int mFontSize
Data display font size in pt.
Definition: ProjectorWindow.hpp:90
void setMinFallSpeed(int minFallSpeed)
set minimum y-velocity for lock
Definition: ProjectorWindow.hpp:196
A ball which has been tracked by the software.
Definition: TrackingBall.hpp:30
QList< KFPrediction > mMarkedPoints
list of points marked and selected to be solved for x(t), y(t)
Definition: ProjectorWindow.hpp:55
QList< TrackingBall > mBalls
A list of raw spotted balls in the projector.
Definition: ProjectorWindow.hpp:43
void toggleVerboseKF(bool verboseKF)
toggle verbose display [size, etc] of track/predict info
Definition: ProjectorWindow.hpp:153
bool mShowJet
Whether we show (dx,dy) vectors on the display.
Definition: ProjectorWindow.hpp:81
QRectF relRectToWindow(QRectF rect)
convert a relative rect in projector to window coords
Definition: ProjectorWindow.cpp:186
Object which represents a prediction from the Kalman filter.
Definition: KFPrediction.hpp:34
bool mLockFit
Whether to lock the fit curve and track until manual clear.
Definition: ProjectorWindow.hpp:61
QList< KFPrediction > mFitPreds
A [sub]list of predictions which are used for the fit curve.
Definition: ProjectorWindow.hpp:47
QColor mColorFitNoLock
The color of the fit curve projection, pre-lock.
Definition: ProjectorWindow.hpp:93
void pushPred(KFPrediction pred)
push a predicted ball (ie a KF prediction) to projector
Definition: ProjectorWindow.cpp:112
void toggleWaitTilFall(bool waitTilFall)
set whether we should wait until given y-velocity to lock
Definition: ProjectorWindow.hpp:201
void clearTrack()
clear all data immediately
Definition: ProjectorWindow.cpp:175
bool mFitPoints
Whether we fit a degree-d curve exactly to (d+1) points, or use a regression.
Definition: ProjectorWindow.hpp:75
int mMinFallSpeed
Minimum fall speed to determine that the ball is "falling".
Definition: ProjectorWindow.hpp:71
bool mFitLocked
Whether the fit is 'locked' for the time being, until reset either manually or after sufficient time ...
Definition: ProjectorWindow.hpp:66
void paintEvent(QPaintEvent *ev)
Draw the data on the projector screen widget.
Definition: ProjectorWindow.cpp:200
void toggleShowParabola(bool showParabola)
set whether we should show the fit parabola
Definition: ProjectorWindow.hpp:160
double mFitLineX[2]
linear coefficients of x(t) equation, (b,m)
Definition: ProjectorWindow.hpp:50
void toggleShowParam(bool showParam)
toggle whether to show parametrized equations y(t), x(t)
Definition: ProjectorWindow.hpp:135
double mPointThickness
Thickness of circle lines for balls.
Definition: ProjectorWindow.hpp:98
double mFitParabolaY[3]
quadratic coefficients of y(t) equation, (C,B,A)
Definition: ProjectorWindow.hpp:52
bool mShowParabola
Whether we should show the fit parabola curve.
Definition: ProjectorWindow.hpp:88