|
quickplot
|
#include <axis.h>
Public Types | |
| enum | Direction { Z , Y , X } |
Public Slots | |
| virtual void | nudge (double delta) |
Signals | |
| void | dataChanged () |
Public Member Functions | |
| virtual std::vector< float > | convert (QList< double > values) const |
| AxisTickLabels * | tickLabels () |
| Direction | direction () const |
| double | minimum () const |
| void | setMinimum (const double value) |
| double | maximum () const |
| void | setMaximum (const double value) |
| int | tickCount () const |
| double | tick (int index) const |
| virtual double | tickCoord (int index) const |
Protected Attributes | |
| std::vector< double > | tics_ |
| double | minimum_ |
| double | maximum_ |
Properties | |
| double | thickness |
| double | minimum |
| double | maximum |
| Direction | direction |
| AxisTickLabels * | tickLabels |
| int | tickCount |
A translation between data values and graph coordinates
|
virtual |
Translate data space values into plot space values. Subclasses will overload this method to enable different scaling methods (e.g. log scaling).
Reimplemented in LogAxis.
| Axis::Direction Axis::direction | ( | ) | const |
The direction in which the axis is pointing.
| double Axis::maximum | ( | ) | const |
Get the maximum edge of the axis
| double Axis::minimum | ( | ) | const |
Get the minimum edge of the axis
|
virtualslot |
Shift the axis bounds by a given distance
Reimplemented in LogAxis.
| void Axis::setMaximum | ( | const double | value | ) |
Set the maximum edge of the axis
| void Axis::setMinimum | ( | const double | value | ) |
Set the minimum edge of the axis
| double Axis::tick | ( | int | index | ) | const |
Access the value of an individual tick label by index
|
virtual |
Access the position of an individual tick label by index
Reimplemented in LogAxis.
| int Axis::tickCount | ( | ) | const |
The number of tick labels on the axis
| AxisTickLabels * Axis::tickLabels | ( | ) |
The tick label model for this axis
|
protected |
The tick labels values