summaryrefslogtreecommitdiff
path: root/wx+/graph.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2015-10-02 14:53:20 +0200
committerDaniel Wilhelm <daniel@wili.li>2015-10-02 14:53:20 +0200
commit94db751716dd2851f99b5c4c2981da1d1f4780f8 (patch)
treee4ffc9f5ae2b2873f267a6e5d3d2092c8aad49a7 /wx+/graph.h
parent6.10 (diff)
downloadFreeFileSync-94db751716dd2851f99b5c4c2981da1d1f4780f8.tar.gz
FreeFileSync-94db751716dd2851f99b5c4c2981da1d1f4780f8.tar.bz2
FreeFileSync-94db751716dd2851f99b5c4c2981da1d1f4780f8.zip
6.11
Diffstat (limited to 'wx+/graph.h')
-rw-r--r--wx+/graph.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/wx+/graph.h b/wx+/graph.h
index bafbe4eb..00b0b469 100644
--- a/wx+/graph.h
+++ b/wx+/graph.h
@@ -55,7 +55,7 @@ struct ContinuousCurveData : public CurveData
virtual double getValue(double x) const = 0;
private:
- virtual void getPoints(double minX, double maxX, int pixelWidth, std::vector<CurvePoint>& points) const override;
+ void getPoints(double minX, double maxX, int pixelWidth, std::vector<CurvePoint>& points) const override;
};
struct SparseCurveData : public CurveData
@@ -66,19 +66,19 @@ struct SparseCurveData : public CurveData
virtual Opt<CurvePoint> getGreaterEq(double x) const = 0;
private:
- virtual void getPoints(double minX, double maxX, int pixelWidth, std::vector<CurvePoint>& points) const override;
+ void getPoints(double minX, double maxX, int pixelWidth, std::vector<CurvePoint>& points) const override;
bool addSteps_;
};
struct ArrayCurveData : public SparseCurveData
{
virtual double getValue(size_t pos) const = 0;
- virtual size_t getSize() const = 0;
+ virtual size_t getSize () const = 0;
private:
- virtual std::pair<double, double> getRangeX() const override { const size_t sz = getSize(); return std::make_pair(0.0, sz == 0 ? 0.0 : sz - 1.0); }
+ std::pair<double, double> getRangeX() const override { const size_t sz = getSize(); return std::make_pair(0.0, sz == 0 ? 0.0 : sz - 1.0); }
- virtual Opt<CurvePoint> getLessEq(double x) const override
+ Opt<CurvePoint> getLessEq(double x) const override
{
const size_t sz = getSize();
const size_t pos = std::min<ptrdiff_t>(std::floor(x), sz - 1); //[!] expect unsigned underflow if empty!
@@ -87,7 +87,7 @@ private:
return NoValue();
}
- virtual Opt<CurvePoint> getGreaterEq(double x) const override
+ Opt<CurvePoint> getGreaterEq(double x) const override
{
const size_t pos = std::max<ptrdiff_t>(std::ceil(x), 0); //[!] use std::max with signed type!
if (pos < getSize())
@@ -100,8 +100,8 @@ struct VectorCurveData : public ArrayCurveData
{
std::vector<double>& refData() { return data; }
private:
- virtual double getValue(size_t pos) const override { return pos < data.size() ? data[pos] : 0; }
- virtual size_t getSize() const override { return data.size(); }
+ double getValue(size_t pos) const override { return pos < data.size() ? data[pos] : 0; }
+ size_t getSize() const override { return data.size(); }
std::vector<double> data;
};
@@ -122,8 +122,8 @@ double nextNiceNumber(double blockSize); //round to next number which is conveni
struct DecimalNumberFormatter : public LabelFormatter
{
- virtual double getOptimalBlockSize(double sizeProposed) const { return nextNiceNumber(sizeProposed); }
- virtual wxString formatText(double value, double optimalBlockSize) const { return zen::numberTo<wxString>(value); }
+ double getOptimalBlockSize(double sizeProposed ) const override { return nextNiceNumber(sizeProposed); }
+ wxString formatText (double value, double optimalBlockSize) const override { return zen::numberTo<wxString>(value); }
};
//------------------------------------------------------------------------------------------------------------
@@ -144,7 +144,7 @@ class GraphSelectEvent : public wxCommandEvent
{
public:
GraphSelectEvent(const SelectionBlock& selBlock) : wxCommandEvent(wxEVT_GRAPH_SELECTION), selBlock_(selBlock) {}
- virtual wxEvent* Clone() const { return new GraphSelectEvent(selBlock_); }
+ wxEvent* Clone() const override { return new GraphSelectEvent(selBlock_); }
SelectionBlock getSelection() { return selBlock_; }
bgstack15