[apps] Modular reimplementation of application models (stores and

ranges) and of curve views/curve view controllers.

Change-Id: If4ca9bf1bec024917ef540a3fc7baefa8700f7ba
This commit is contained in:
Émilie Feral
2017-01-09 14:57:13 +01:00
parent 6e9528103b
commit affda5eae9
70 changed files with 1406 additions and 1416 deletions

View File

@@ -0,0 +1,33 @@
#include "box_range.h"
namespace Statistics {
BoxRange::BoxRange(Store * store) :
m_store(store)
{
}
float BoxRange::xMin() {
return m_store->minValue();
}
float BoxRange::xMax() {
if (m_store->minValue() >= m_store->maxValue()) {
return m_store->minValue() + 1.0f;
}
return m_store->maxValue();
}
float BoxRange::yMin() {
return 0.0f;
}
float BoxRange::yMax() {
return 1.0f;
}
float BoxRange::xGridUnit() {
return computeGridUnit(Axis::X, xMin(), xMax());
}
}