23#ifndef QTRADINGVIEW_LOGSCALE_H
24#define QTRADINGVIEW_LOGSCALE_H
27#include "QTradingView/scale/IScale.h"
28#include "QTradingView/qtradingview_global.h"
30namespace QTradingView {
51 LogScale(
double minValue,
double maxValue,
double minPixel,
double maxPixel);
62 double dataToPixel(
double value)
const override;
68 double pixelToData(
double pixel)
const override;
74 void setDomain(
double minValue,
double maxValue)
override;
80 void setRange(
double minPixel,
double maxPixel)
override;
86 std::vector<double> getTicks(
int approxCount)
const override;
93 void applyPadding(
double &minValue,
double &maxValue,
double paddingRatio)
const override;
101 void zoomDomain(
double &minValue,
double &maxValue,
double zoomFactor,
double anchorValue)
const override;
106 void setLinearThreshold(
double threshold);
111 double getLinearThreshold()
const;
118 double m_linearThreshold;
120 double symlog(
double value)
const;
121 double invsymlog(
double logValue)
const;
Abstract base class for value-to-pixel scaling in QTradingView.
Definition IScale.h:37
Logarithmic scale implementation for chart axes.
Definition LogScale.h:38
~LogScale() override=default
Destructor.