6#include "axisTickLabels.h"
7#include <QQuick3DGeometry>
11class Axis :
public QQuick3DGeometry
14 QML_NAMED_ELEMENT(
Axis)
15 Q_PROPERTY(
double thickness MEMBER thickness_ NOTIFY dataChanged)
16 Q_PROPERTY(
double minimum READ minimum WRITE
setMinimum NOTIFY dataChanged)
17 Q_PROPERTY(
double maximum READ maximum WRITE
setMaximum NOTIFY dataChanged)
18 Q_PROPERTY(Direction direction MEMBER direction_ NOTIFY dataChanged)
19 Q_PROPERTY(
AxisTickLabels *tickLabels READ tickLabels NOTIFY dataChanged)
20 Q_PROPERTY(
int tickCount READ tickCount NOTIFY dataChanged)
36 virtual std::vector<float>
convert(QList<double> values)
const;
43 Direction direction()
const;
45 double minimum()
const;
49 double maximum()
const;
53 int tickCount()
const;
55 double tick(
int index)
const;
57 virtual double tickCoord(
int index)
const;
64 virtual void nudge(
double delta);
69 double minimum_, maximum_;
73 virtual void updateTicks_();
Definition axisTickLabels.h:12
void setMaximum(const double value)
Definition axis.cpp:24
virtual std::vector< float > convert(QList< double > values) const
Definition axis.cpp:92
virtual double tickCoord(int index) const
Definition axis.cpp:104
void setMinimum(const double value)
Definition axis.cpp:22
AxisTickLabels * tickLabels()
virtual void nudge(double delta)
Definition axis.cpp:106
std::vector< double > tics_
Definition axis.h:68
double tick(int index) const
Definition axis.cpp:102