Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef STATIONLINE_H
00027 #define STATIONLINE_H
00028
00029 #include <SciFigs.h>
00030
00031 #include "MonoStationDLLExport.h"
00032 #include "StationResults.h"
00033
00034 namespace MonoStation {
00035
00036 class MONOSTATION_EXPORT StationLine : public AbstractNameLine
00037 {
00038 public:
00039 StationLine() {_station=0;}
00040 virtual AbstractLine * clone() const;
00041 void operator=(const StationLine& o);
00042
00043 virtual const QString& xml_tagName() const {return NameLine::xmlNameLineTag;}
00044
00045 virtual int count() const {return _station ? 1 : 0;}
00046 virtual Point point(int, const CurvePointOptions *) const {return _station->coordinates();}
00047 virtual QString name(int) const;
00048
00049 virtual void clear() {}
00050 virtual void append() {}
00051 virtual void insert(int) {}
00052 virtual void removeLast() {}
00053 virtual void setX(int, double) {}
00054 virtual void setY(int, double, const CurvePointOptions *) {}
00055 virtual void setZ(int, double, const CurvePointOptions *) {}
00056 virtual void setName(int, QString) {}
00057
00058 enum Label {StationName, PeakValue, NoLabel};
00059 enum PeakSelection {PeakNumber, PeakLowest, PeakHighest, PeakMaximum};
00060
00061 void setStation(StationResults * station) {_station=station;}
00062 void setLabel(Label l) {_label=l;}
00063 void setLabelPrecision(int p) {_labelPrecision=p;}
00064 void setValue(PeakSelection ps, StationResults::PeakValue pv, int peakIndex);
00065 const RealValue& value() const {return _value;}
00066 protected:
00067 Label _label;
00068 int _labelPrecision;
00069 RealValue _value;
00070 StationResults * _station;
00071 };
00072
00073 }
00074
00075 #endif // STATIONLINE_H