#1321 Added a comand to show Flow Characteristics plot. Added timestp colors, zoom, mouse tracking, and titles

This commit is contained in:
Jacob Støren committed 2017-03-28 23:36:56 +02:00
1 parent 960e6833c4
commit ba60bf3c13
15 files changed
+398 -80

No files matched your search

@@ -28,6 +28,7 @@
class RimFlowCharacteristicsPlot;
class RiuNightchartsWidget;
class RiuResultQwtPlot;
class RiuLineSegmentQwtPlotCurve;
class QLabel;
@@ -51,8 +52,14 @@ public:
void addFlowCapStorageCapCurve(const QDateTime& dateTime, const std::vector<double>& xVals, const std::vector<double>& yVals);
void addSweepEfficiencyCurve(const QDateTime& dateTime, const std::vector<double>& xVals, const std::vector<double>& yVals);
void removeAllCurves();
void zoomAll();
RimFlowCharacteristicsPlot* ownerPlotDefinition();
static void addWindowZoom(QwtPlot* plot);
static RiuLineSegmentQwtPlotCurve* createEmptyCurve(QwtPlot* plot, const QString& curveName, const QColor& curveColor);
protected:
virtual QSize sizeHint() const override;
virtual QSize minimumSizeHint() const override;
@@ -60,11 +67,16 @@ protected:
private:
void setDefaults();
void initializeColors(const std::vector<QDateTime>& dateTimes);
private:
caf::PdmPointer<RimFlowCharacteristicsPlot> m_plotDefinition;
QPointer<RiuResultQwtPlot> m_lorenzPlot;
QPointer<RiuResultQwtPlot> m_flowCapVsStorageCapPlot;
QPointer<RiuResultQwtPlot> m_sweepEffPlot;
QPointer<QwtPlot> m_lorenzPlot;
QPointer<QwtPlot> m_flowCapVsStorageCapPlot;
QPointer<QwtPlot> m_sweepEffPlot;
std::map<QDateTime, QColor> m_dateToColorMap;
};