10 CurveView(&m_boxRange, nullptr, bannerView, nullptr),
14 m_selectedQuantile(selectedQuantile)
22 float calculation = (m_store->*calculationMethods[(int)*m_selectedQuantile])();
26 KDRect dirtyZone(
KDRect(selectedValueInPixels, pixelLowerBound, 4, pixelUpperBound - pixelLowerBound));
31 return *m_selectedQuantile;
35 if (selectedQuantile < 0 || selectedQuantile > 4) {
50 float lowBound = 0.35f;
51 float upBound = 0.65f;
57 ctx->
fillRect(
KDRect(firstQuartilePixels, lowBoundPixel, thirdQuartilePixels - firstQuartilePixels+2,
69 for (
int k = 0; k < 5; k++) {
77 char * BoxView::label(Axis axis,
int index)
const {
81 return (
char *)m_labels[index];
static constexpr KDColor YellowDark
bool isMainViewSelected() const
static constexpr KDColor GreyDark
void markRectAsDirty(KDRect rect)
void drawSegment(KDContext *ctx, KDRect rect, Axis axis, float coordinate, float lowerBound, float upperBound, KDColor color, KDCoordinate thickness=1) const
void drawAxes(KDContext *ctx, KDRect rect, Axis axis) const
constexpr KDColor KDColorWhite
void drawLabels(KDContext *ctx, KDRect rect, Axis axis, bool shiftOrigin) const
double(Store::* CalculPointer)()
static constexpr KDColor GreyMiddle
void fillRect(KDRect rect, KDColor color)
float floatToPixel(Axis axis, float f) const
void drawRect(KDContext *ctx, KDRect rect) const override
Quantile selectedQuantile()
static constexpr KDColor GreyWhite
bool selectQuantile(int selectedQuantile)