QAbstract3DAxis 類是圖形軸的基類。 更多...
| 頭: | #include <QAbstract3DAxis> |
| qmake: | QT += datavisualization |
| Since: | QtDataVisualization 1.0 |
| 實例化: | AbstractAxis3D |
| 繼承: | QObject |
| 繼承者: |
該類在 QtDataVisualization 1.0 引入。
| 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 ) |
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 |
[signal]
void
QAbstract3DAxis::
rangeChanged
(
float
min
,
float
max
)
Emits the minimum and maximum values of the range, min and max ,當範圍改變時。
[虛擬]
QAbstract3DAxis::
~QAbstract3DAxis
()
銷毀 QAbstract3DAxis .
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.