mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 18:50:44 +00:00
Merged Therapy & Expiratory Pressure..
This commit is contained in:
parent
2876103f77
commit
25a3c0ed50
@ -117,6 +117,7 @@ void DrawTextQueue(gGraphWindow & wid)
|
||||
|
||||
if (wid.parentWidget()!=0) {
|
||||
QPainter painter(&wid);
|
||||
painter.setRenderHint(QPainter::TextAntialiasing,true);
|
||||
// TODO.. Prerotate the 90degree stuff here and keep the matrix for all of these..
|
||||
for (int i=0;i<TextQueRot.size();i++) {
|
||||
TextBuffer & t=TextQueRot[i];
|
||||
@ -142,6 +143,7 @@ void DrawText(gGraphWindow &wid,QString text, int x, int y, float angle, QColor
|
||||
//wid.qglColor(color);
|
||||
//wid.renderText(x,wid.GetScrY()-y,0,text,*font);
|
||||
QPainter painter(&wid);
|
||||
painter.setRenderHint(QPainter::TextAntialiasing,true);
|
||||
RDrawText(painter,text,x,y,0,color,font);
|
||||
painter.end();
|
||||
}
|
||||
|
@ -847,6 +847,7 @@ void gGraphWindow::Render(int w, int h)
|
||||
for (QList<gLayer *>::iterator l=layers.begin();l!=layers.end();l++) {
|
||||
(*l)->Plot(*this,w,h);
|
||||
}
|
||||
|
||||
DrawTextQueue(*this);
|
||||
glDisable(GL_TEXTURE_2D);
|
||||
glDisable(GL_DEPTH_TEST);
|
||||
|
@ -632,7 +632,7 @@ bool ResmedLoader::LoadSAD(Session *sess,EDFParser &edf)
|
||||
|
||||
for (int s=0;s<edf.GetNumSignals();s++) {
|
||||
EDFSignal & es=*edf.edfsignals[s];
|
||||
qDebug() << "SAD:" << es.label << es.digital_maximum << es.digital_minimum << es.physical_maximum << es.physical_minimum;
|
||||
//qDebug() << "SAD:" << es.label << es.digital_maximum << es.digital_minimum << es.physical_maximum << es.physical_minimum;
|
||||
long recs=edf.edfsignals[s]->nr*edf.GetNumDataRecords();
|
||||
ChannelID code;
|
||||
if (edf.edfsignals[s]->label=="Pulse") {
|
||||
|
14
daily.cpp
14
daily.cpp
@ -87,8 +87,8 @@ Daily::Daily(QWidget *parent,QGLWidget * shared, MainWindow *mw)
|
||||
SF=new gGraphWindow(parental,tr("Event Flags"),shared);
|
||||
FRW=new gGraphWindow(parental,tr("Flow Rate"),SF);
|
||||
PRD=new gGraphWindow(parental,tr("Pressure"),SF);
|
||||
EXPR=new gGraphWindow(parental,tr("Therapy Pressure"),SF);
|
||||
THPR=new gGraphWindow(parental,tr("Exp. Pressure"),SF);
|
||||
//EXPR=new gGraphWindow(parental,tr("Exp. Pressure"),SF);
|
||||
THPR=new gGraphWindow(parental,tr("Therapy Pressure"),SF);
|
||||
LEAK=new gGraphWindow(parental,tr("Leaks"),SF);
|
||||
MP=new gGraphWindow(parental,tr("Mask Pressure"),SF);
|
||||
SNORE=new gGraphWindow(parental,tr("Snore"),SF);
|
||||
@ -150,12 +150,12 @@ Daily::Daily(QWidget *parent,QGLWidget * shared, MainWindow *mw)
|
||||
THPR->AddLayer(new gXAxis());
|
||||
THPR->AddLayer(new gYAxis());
|
||||
THPR->AddLayer(AddCPAP(new gLineChart(CPAP_TherapyPressure,QColor("dark green"),square)));
|
||||
THPR->AddLayer(AddCPAP(new gLineChart(CPAP_ExpiratoryPressure,QColor("dark blue"),square)));
|
||||
THPR->setMinimumHeight(min_height);
|
||||
|
||||
EXPR->AddLayer(new gXAxis());
|
||||
EXPR->AddLayer(new gYAxis());
|
||||
EXPR->AddLayer(AddCPAP(new gLineChart(CPAP_ExpiratoryPressure,QColor("dark green"),square)));
|
||||
EXPR->setMinimumHeight(min_height);
|
||||
//EXPR->AddLayer(new gXAxis());
|
||||
//EXPR->AddLayer(new gYAxis());
|
||||
//EXPR->setMinimumHeight(min_height);
|
||||
|
||||
|
||||
LEAK->AddLayer(new gXAxis());
|
||||
@ -308,7 +308,7 @@ Daily::Daily(QWidget *parent,QGLWidget * shared, MainWindow *mw)
|
||||
//int i=splitter->indexOf(NoData);
|
||||
splitter->setStretchFactor(NoData,1);
|
||||
|
||||
gGraphWindow * graphs[]={SF,FRW,MP,MV,TV,PTB,RR,PRD,EXPR,THPR,LEAK,FLG,SNORE,INTPULSE,INTSPO2};
|
||||
gGraphWindow * graphs[]={SF,FRW,MP,MV,TV,PTB,RR,PRD,THPR,LEAK,FLG,SNORE,INTPULSE,INTSPO2};
|
||||
int ss=sizeof(graphs)/sizeof(gGraphWindow *);
|
||||
|
||||
for (int i=0;i<ss;i++) {
|
||||
|
2
daily.h
2
daily.h
@ -82,7 +82,7 @@ private:
|
||||
|
||||
gFlagsGroup *fg;
|
||||
gGraphWindow *PRD,*FRW,*G_AHI,*TAP,*LEAK,*SF,*TAP_EAP,*TAP_IAP,*PULSE,*SPO2,
|
||||
*SNORE,*RR,*MP,*MV,*TV,*FLG,*PTB,*OF,*INTPULSE,*INTSPO2, *THPR, *EXPR;
|
||||
*SNORE,*RR,*MP,*MV,*TV,*FLG,*PTB,*OF,*INTPULSE,*INTSPO2, *THPR;
|
||||
|
||||
QList<gLayer *> OXIData;
|
||||
QList<gLayer *> CPAPData;
|
||||
|
Loading…
Reference in New Issue
Block a user