The QAbstract3DAxis class is a base class for the axes of a graph. 更多...
头: | #include <QAbstract3DAxis> |
Since: | QtDataVisualization 1.0 |
实例化: | AbstractAxis3D |
继承: | QObject |
继承者: | QCategory3DAxis and QValue3DAxis |
enum | AxisOrientation { AxisOrientationNone, AxisOrientationX, AxisOrientationY, AxisOrientationZ } |
enum | AxisType { AxisTypeNone, AxisTypeCategory, AxisTypeValue } |
|
|
virtual | ~QAbstract3DAxis () |
bool | isAutoAdjustRange () const |
bool | isTitleFixed () const |
bool | isTitleVisible () const |
float | labelAutoRotation () const |
QStringList | labels () const |
float | max () const |
float | min () const |
QAbstract3DAxis::AxisOrientation | orientation () const |
void | setAutoAdjustRange (bool autoAdjust ) |
void | setLabelAutoRotation (float angle ) |
void | setLabels (const QStringList & labels ) |
void | setMax (float max ) |
void | setMin (float min ) |
void | setRange (float min , float max ) |
void | setTitle (const QString & title ) |
void | setTitleFixed (bool fixed ) |
void | setTitleVisible (bool visible ) |
QString | title () const |
QAbstract3DAxis::AxisType | type () const |
void | autoAdjustRangeChanged (bool autoAdjust ) |
void | labelAutoRotationChanged (float angle ) |
void | labelsChanged () |
void | maxChanged (float value ) |
void | minChanged (float value ) |
void | orientationChanged (QAbstract3DAxis::AxisOrientation orientation ) |
void | rangeChanged (float min , float max ) |
void | titleChanged (const QString & newTitle ) |
void | titleFixedChanged (bool fixed ) |
void | titleVisibilityChanged (bool visible ) |
const QMetaObject | staticMetaObject |
QScopedPointer<QAbstract3DAxisPrivate> | d_ptr |
The QAbstract3DAxis class is a base class for the axes of a graph.
This class specifies the enumerations, properties, and functions shared by graph axes. It should not be used directly, but one of its subclasses should be used instead.
另请参阅 QCategory3DAxis and QValue3DAxis .
轴对象的取向。
常量 | 值 |
---|---|
QAbstract3DAxis::AxisOrientationNone
|
0
|
QAbstract3DAxis::AxisOrientationX
|
1
|
QAbstract3DAxis::AxisOrientationY
|
2
|
QAbstract3DAxis::AxisOrientationZ
|
4
|
轴对象的类型。
常量 | 值 |
---|---|
QAbstract3DAxis::AxisTypeNone
|
0
|
QAbstract3DAxis::AxisTypeCategory
|
1
|
QAbstract3DAxis::AxisTypeValue
|
2
|
This property holds whether the axis will automatically adjust the range so that all data fits in it.
访问函数:
bool | isAutoAdjustRange () const |
void | setAutoAdjustRange (bool autoAdjust ) |
通知程序信号:
void | autoAdjustRangeChanged (bool autoAdjust ) |
另请参阅 setRange (), setMin (),和 setMax ().
This property holds the maximum angle the labels can autorotate when the camera angle changes.
The angle can be between 0 and 90, inclusive. The default value is 0. If the value is 0, axis labels do not automatically rotate. If the value is greater than zero, labels attempt to orient themselves toward the camera, up to the specified angle.
访问函数:
float | labelAutoRotation () const |
void | setLabelAutoRotation (float angle ) |
通知程序信号:
void | labelAutoRotationChanged (float angle ) |
此特性保持轴的标签。
注意: Setting this property for QValue3DAxis does nothing, as it generates labels automatically.
访问函数:
QStringList | labels () const |
void | setLabels (const QStringList & labels ) |
通知程序信号:
void | labelsChanged () |
此特性保持轴的最大值。
When setting this property, the minimum value is adjusted if necessary, to ensure that the range remains valid.
注意: For QCategory3DAxis , specifies the index of the last row or column to show.
访问函数:
float | max () const |
void | setMax (float max ) |
通知程序信号:
void | maxChanged (float value ) |
此特性保持轴的最小值。
When setting this property, the maximum value is adjusted if necessary, to ensure that the range remains valid.
注意: For QCategory3DAxis , specifies the index of the first row or column to show.
访问函数:
float | min () const |
void | setMin (float min ) |
通知程序信号:
void | minChanged (float value ) |
此特性保持轴的取向。
The value is one of AxisOrientation 值。
访问函数:
QAbstract3DAxis::AxisOrientation | orientation () const |
通知程序信号:
void | orientationChanged (QAbstract3DAxis::AxisOrientation orientation ) |
此特性保持轴的标题。
访问函数:
QString | title () const |
void | setTitle (const QString & title ) |
通知程序信号:
void | titleChanged (const QString & newTitle ) |
另请参阅 titleVisible and titleFixed .
此特性保持轴标题的旋转。
若
true
, axis titles in the primary graph view will be rotated towards the camera similarly to the axis labels. If
false
, axis titles are only rotated around their axis but are not otherwise oriented towards the camera. This property does not have any effect if the
labelAutoRotation
特性值为 0。默认值为
true
.
访问函数:
bool | isTitleFixed () const |
void | setTitleFixed (bool fixed ) |
通知程序信号:
void | titleFixedChanged (bool fixed ) |
另请参阅 labelAutoRotation , title ,和 titleVisible .
此特性保持轴标题在首要图形视图中是否可见。
默认值为
false
.
访问函数:
bool | isTitleVisible () const |
void | setTitleVisible (bool visible ) |
通知程序信号:
void | titleVisibilityChanged (bool visible ) |
另请参阅 title and titleFixed .
此特性保持轴的类型。
The value is one of AxisType 值。
访问函数:
QAbstract3DAxis::AxisType | type () const |
[虚拟]
QAbstract3DAxis::
~QAbstract3DAxis
()
销毁 QAbstract3DAxis .
[signal]
void
QAbstract3DAxis::
rangeChanged
(
float
min
,
float
max
)
Emits the minimum and maximum values of the range, min and max ,当范围改变时。
Sets the value range of the axis from min to max . When setting the range, the maximum value is adjusted if necessary, to ensure that the range remains valid.
注意: For QCategory3DAxis , specifies the index range of rows or columns to show.