Brief description of class still missing. More...
#include <StationLine.h>
Public Types | |
| enum | Label { StationName, PeakValue, NoLabel } |
| enum | PeakSelection { PeakNumber, PeakLowest, PeakHighest, PeakMaximum } |
Public Member Functions | |
| virtual void | append () |
| virtual void | clear () |
| virtual AbstractLine * | clone () const |
| virtual int | count () const |
| virtual void | insert (int) |
| virtual QString | name (int) const |
| void | operator= (const StationLine &o) |
| virtual Point | point (int, const CurvePointOptions *) const |
| virtual void | removeLast () |
| void | setLabel (Label l) |
| void | setLabelPrecision (int p) |
| virtual void | setName (int, QString) |
| void | setStation (StationResults *station) |
| void | setValue (PeakSelection ps, StationResults::PeakValue pv, int peakIndex) |
| virtual void | setX (int, double) |
| virtual void | setY (int, double, const CurvePointOptions *) |
| virtual void | setZ (int, double, const CurvePointOptions *) |
| StationLine () | |
| const RealValue & | value () const |
| virtual const QString & | xml_tagName () const |
Protected Attributes | |
| Label | _label |
| int | _labelPrecision |
| StationResults * | _station |
| RealValue | _value |
Brief description of class still missing.
Full description of class still missing
{StationName, PeakValue, NoLabel};
| MonoStation::StationLine::StationLine | ( | ) | [inline] |
| virtual void MonoStation::StationLine::append | ( | ) | [inline, virtual] |
Implements SciFigs::AbstractLine.
{}
| virtual void MonoStation::StationLine::clear | ( | ) | [inline, virtual] |
Implements SciFigs::AbstractLine.
{}
| AbstractLine * MonoStation::StationLine::clone | ( | ) | const [virtual] |
Implements SciFigs::AbstractLine.
References StationLine().
{
StationLine * l=new StationLine;
*l=*this;
return l;
}
| virtual int MonoStation::StationLine::count | ( | ) | const [inline, virtual] |
Implements SciFigs::AbstractLine.
{return _station ? 1 : 0;}
| virtual void MonoStation::StationLine::insert | ( | int | ) | [inline, virtual] |
Implements SciFigs::AbstractLine.
{}
| QString MonoStation::StationLine::name | ( | int | ) | const [virtual] |
Implements SciFigs::AbstractNameLine.
References _label, _labelPrecision, _station, _value, QGpCoreTools::Value< numberType >::isValid(), NoLabel, PeakValue, StationName, MonoStation::StationResults::stationName(), and QGpCoreTools::Value< numberType >::value().
{
switch(_label) {
case StationName:
return _station->stationName();
case PeakValue:
if(_value.isValid()) {
return QString::number(_value.value(), 'f', _labelPrecision);
}
case NoLabel:
break;
}
return QString::null;
}
| void MonoStation::StationLine::operator= | ( | const StationLine & | o | ) |
References _station.
{
_station=o._station;
AbstractNameLine::operator=(o);
}
| virtual Point MonoStation::StationLine::point | ( | int | , |
| const CurvePointOptions * | |||
| ) | const [inline, virtual] |
Implements SciFigs::AbstractLine.
{return _station->coordinates();}
| virtual void MonoStation::StationLine::removeLast | ( | ) | [inline, virtual] |
Implements SciFigs::AbstractLine.
{}
| void MonoStation::StationLine::setLabel | ( | Label | l | ) | [inline] |
Referenced by MonoStation::AbstractSummary::setBubbleValues().
{_label=l;}
| void MonoStation::StationLine::setLabelPrecision | ( | int | p | ) | [inline] |
Referenced by MonoStation::AbstractSummary::setBubbleValues().
{_labelPrecision=p;}
| virtual void MonoStation::StationLine::setName | ( | int | , |
| QString | |||
| ) | [inline, virtual] |
Implements SciFigs::AbstractNameLine.
{}
| void MonoStation::StationLine::setStation | ( | StationResults * | station | ) | [inline] |
Referenced by MonoStation::AbstractSummary::setBubbleValues().
{_station=station;}
| void MonoStation::StationLine::setValue | ( | PeakSelection | ps, |
| StationResults::PeakValue | pv, | ||
| int | peakIndex | ||
| ) |
References _station, _value, MonoStation::StationResults::highestPeak(), MonoStation::StationResults::lowestPeak(), MonoStation::StationResults::maximumAmplitudePeak(), MonoStation::StationResults::peak(), MonoStation::StationResults::peakCount(), PeakHighest, PeakLowest, PeakMaximum, PeakNumber, QGpCoreTools::Value< numberType >::setValid(), and QGpCoreTools::Value< numberType >::setValue().
Referenced by MonoStation::AbstractSummary::setBubbleValues().
{
if(_station->peakCount()==0) {
_value.setValid(false);
} else {
switch(ps) {
case PeakNumber:
if(peakIndex<_station->peakCount()) {
_value.setValue(_station->peak(peakIndex, pv));
} else {
_value.setValid(false);
}
break;
case PeakLowest:
_value.setValue(_station->lowestPeak(pv));
break;
case PeakHighest:
_value.setValue(_station->highestPeak(pv));
break;
case PeakMaximum:
_value.setValue(_station->maximumAmplitudePeak(pv));
break;
}
}
}
| virtual void MonoStation::StationLine::setX | ( | int | , |
| double | |||
| ) | [inline, virtual] |
Implements SciFigs::AbstractLine.
{}
| virtual void MonoStation::StationLine::setY | ( | int | , |
| double | , | ||
| const CurvePointOptions * | |||
| ) | [inline, virtual] |
Implements SciFigs::AbstractLine.
{}
| virtual void MonoStation::StationLine::setZ | ( | int | , |
| double | , | ||
| const CurvePointOptions * | |||
| ) | [inline, virtual] |
Implements SciFigs::AbstractLine.
{}
| const RealValue& MonoStation::StationLine::value | ( | ) | const [inline] |
Referenced by MonoStation::AbstractSummary::setBubbleValues().
{return _value;}
| virtual const QString& MonoStation::StationLine::xml_tagName | ( | ) | const [inline, virtual] |
Reimplemented from SciFigs::AbstractNameLine.
{return NameLine::xmlNameLineTag;}
Label MonoStation::StationLine::_label [protected] |
Referenced by name().
int MonoStation::StationLine::_labelPrecision [protected] |
Referenced by name().
StationResults* MonoStation::StationLine::_station [protected] |
Referenced by name(), operator=(), and setValue().
RealValue MonoStation::StationLine::_value [protected] |
Referenced by name(), and setValue().