Brief description of class still missing. More...
#include <TFAMaxEntry.h>
Public Member Functions | |
| double | delay () const |
| double | hAmplitude () const |
| double | hv () const |
| void | includeAmplitude (double &minVAmplitude, double &maxVAmplitude) |
| virtual bool | operator< (const MaxEntry &o) const |
| virtual bool | readLine (QTextStream &s) |
| virtual double | value () const |
| double | vAmplitude () const |
| virtual void | writeHeader (QTextStream &s) const |
| virtual void | writeLine (QTextStream &s) const |
Static Public Member Functions | |
| static QByteArray | fields () |
| static bool | isHeaderLine (QString f) |
Brief description of class still missing.
Full description of class still missing
| double TFAMaxEntry::delay | ( | ) | const [inline] |
Referenced by MaxEntryList::rejectDelay().
{return _delay;}
| QByteArray TFAMaxEntry::fields | ( | ) | [static] |
References TRACE.
Referenced by readLine(), and writeHeader().
{
TRACE;
return "seconds from start | cfreq | H/V | AmpZ | AmpH | Delay";
}
| double TFAMaxEntry::hAmplitude | ( | ) | const [inline] |
Referenced by MaxEntryList::rejectAmplitudeHorizontalAbsolute().
{return _hAmplitude;}
| double TFAMaxEntry::hv | ( | ) | const [inline] |
{return _hv;}
| void TFAMaxEntry::includeAmplitude | ( | double & | minVAmplitude, |
| double & | maxVAmplitude | ||
| ) |
| bool TFAMaxEntry::isHeaderLine | ( | QString | f | ) | [static] |
References TRACE.
Referenced by MaxEntryList::load().
{
TRACE;
return f.contains("secondsfromstart|cfreq|h/v|ampz|amph|delay");
}
| bool TFAMaxEntry::operator< | ( | const MaxEntry & | o | ) | const [virtual] |
Reimplemented from MaxEntry.
References TRACE, value(), MaxEntry::value(), and MaxEntry::x().
{
TRACE;
if(x()<o.x()) return true;
else if(x()>o.x()) return false;
const TFAMaxEntry& m=static_cast<const TFAMaxEntry&>(*this);
const TFAMaxEntry& mo=static_cast<const TFAMaxEntry&>(o);
if(m._vAmplitude>mo._vAmplitude) return true;
else if(m._vAmplitude<mo._vAmplitude) return false;
if(value()<o.value()) return true;
else return false;
}
| bool TFAMaxEntry::readLine | ( | QTextStream & | s | ) | [virtual] |
Implements MaxEntry.
References MaxEntry::_selected, MaxEntry::_time, MaxEntry::_x, fields(), QGpCoreTools::StringSection::isValid(), QGpCoreTools::StringSection::nextField(), QGpCoreTools::StringSection::toDouble(), QGpCoreTools::StringSection::toInt(), and TRACE.
{
TRACE;
QString line;
do {
line=s.readLine();
} while(!line.isEmpty() && line[0]=='#');
if(!line.isEmpty()) {
const QChar * ptr=0;
StringSection field,fields(line);
field=fields.nextField(ptr);
_time=field.toDouble();
field=fields.nextField(ptr);
_x=field.toDouble();
field=fields.nextField(ptr);
_hv=field.toDouble();
field=fields.nextField(ptr);
_vAmplitude=field.toDouble();
field=fields.nextField(ptr);
_hAmplitude=field.toDouble();
field=fields.nextField(ptr);
_delay=field.toDouble();
field=fields.nextField(ptr);
if(field.isValid())
_selected=field.toInt()>0 ? true : false;
else
_selected=true; // compatibility with format out of Geopsy and Cap
return true;
} else {
return false;
}
}
| virtual double TFAMaxEntry::value | ( | ) | const [inline, virtual] |
| double TFAMaxEntry::vAmplitude | ( | ) | const [inline] |
Referenced by MaxEntryList::rejectAmplitudeVerticalAbsolute(), MaxEntryList::rejectAmplitudeVerticalFactor(), and MaxEntryList::unselectAmplitude().
{return _vAmplitude;}
| void TFAMaxEntry::writeHeader | ( | QTextStream & | s | ) | const [virtual] |
| void TFAMaxEntry::writeLine | ( | QTextStream & | s | ) | const [virtual] |
Implements MaxEntry.
References MaxEntry::_selected, MaxEntry::_time, MaxEntry::_x, QGpCoreTools::endl(), and TRACE.