Manipulates an axis of a graph. 更多...
| import 語句: |
import QtGraphs
|
| 在 C++: | QValue3DAxis |
| 繼承: |
This type provides an axis that can be given a range of values and segment and subsegment counts to divide the range into.
|
autoAdjustRange : bool |
Defines whether the axis will automatically adjust the range so that all data fits in it.
|
formatter : Value3DAxisFormatter |
The axis formatter to be used. Any existing formatter is deleted when a new formatter is set.
|
labelAutoAngle : real |
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.
|
labelFormat : string |
The label format to be used for the labels on this axis.
格式字符串支持的以下轉換說明符、長度修飾符和標誌的提供通過
printf()
在標準 C++ 庫:d、i、o、x、X、f、F、e、E、g、G、c。
若
GraphsItem3D::locale
is anything else than
"C"
,支持的說明符限於:d、e、E、f、g、G 和 i。另外,僅支持精度修飾符。其餘格式來自默認
Locale
對於應用程序。
另請參閱 GraphsItem3D::locale .
|
labels : list |
The labels for the axis.
注意: Setting this property for Value3DAxis does nothing, as it generates labels automatically.
|
labelsVisible : bool |
Defines whether the axis labels are visible in the primary graph view.
默認值為
true
.
|
max : real |
The maximum value on the axis. When setting this property, the minimum value is adjusted if necessary, so the range remains valid.
|
min : real |
The minimum value on the axis. When setting this property, the maximum value is adjusted if necessary, so the range remains valid.
|
orientation
:
Abstract3DAxis
.
AxisOrientation
|
The orientation of the axis.
|
reversed : bool |
若
true
, the axis will be rendered in reverse. That is, the positions of the minimum and maximum values are swapped when the graph is rendered. This property does not affect the actual minimum and maximum values of the axis.
|
segmentCount : qsizetype |
The number of segments on the axis. This indicates how many labels are drawn. The number of grid lines to be drawn is calculated with the following formula:
segments * subsegments + 1
. The preset default is
5
. The value cannot be below
1
.
|
subSegmentCount : qsizetype |
The number of subsegments inside each segment on the axis. Grid lines are drawn between each subsegment, in addition to each segment. The preset default is
1
. The value cannot be below
1
.
|
title : string |
The title for the axis.
另請參閱 titleVisible and titleFixed .
|
titleFixed : bool |
The rotation of axis titles.
若
false
, axis titles in the primary graph view will be rotated towards the camera similarly to the axis labels. If
true
, 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
labelAutoAngle
特性值為 0。默認值為
true
.
另請參閱 labelAutoAngle , title ,和 titleVisible .
|
titleOffset : real |
The position of the axis title on the axis. The value must be between
-1.0f
and
1.0f
Default value is
0
.
另請參閱 title and titleVisible .
|
titleVisible : bool |
Defines whether the axis title is visible in the primary graph view.
默認值為
false
.
另請參閱 title and titleFixed .
|
type
:
Abstract3DAxis
.
AxisType
|
The type of the axis.
|
autoAdjustRangeChanged ( bool autoAdjust ) |
此信號發射,當 autoAdjustRange property value changes to autoAdjust .
注意:
相應處理程序是
onAutoAdjustRangeChanged
.
|
formatterChanged ( Value3DAxisFormatter formatter ) |
此信號發射,當 formatter changes to formatter .
注意:
相應處理程序是
onFormatterChanged
.
|
labelAutoAngleChanged ( real angle ) |
This signal is emitted when the angle of label rotation changes to angle .
注意:
相應處理程序是
onLabelAutoAngleChanged
.
|
labelFormatChanged ( string format ) |
此信號發射,當 labelFormat changes to format .
注意:
相應處理程序是
onLabelFormatChanged
.
|
labelVisibilityChanged ( bool visible ) |
This signal is emitted when the label visibility changes to visible .
注意:
相應處理程序是
onLabelVisibilityChanged
.
|
labelsChanged () |
This signal is emitted when axis labels change.
注意:
相應處理程序是
onLabelsChanged
.
|
maxChanged ( real value ) |
This signal is emitted when the maximum value of the axis changes to value .
注意:
相應處理程序是
onMaxChanged
.
|
minChanged ( real value ) |
This signal is emitted when the minimum value of the axis changes to value .
注意:
相應處理程序是
onMinChanged
.
|
orientationChanged ( AxisOrientation orientation ) |
This signal is emitted when axis orientation changes to orientation .
注意:
相應處理程序是
onOrientationChanged
.
This signal is emitted when the axis range changes. min and max are the min and max of the new range.
注意:
相應處理程序是
onRangeChanged
.
|
reversedChanged ( bool enable ) |
此信號發射,當 reversed changes to enable .
注意:
相應處理程序是
onReversedChanged
.
|
segmentCountChanged ( qsizetype count ) |
此信號發射,當 segmentCount changes to count .
注意:
相應處理程序是
onSegmentCountChanged
.
|
subSegmentCountChanged ( qsizetype count ) |
此信號發射,當 subSegmentCount changes to count .
注意:
相應處理程序是
onSubSegmentCountChanged
.
|
titleChanged ( string newTitle ) |
此信號發射,當 title changes to newTitle .
注意:
相應處理程序是
onTitleChanged
.
|
titleFixedChanged ( bool fixed ) |
此信號發射,當 titleFixed property value changes to fixed .
注意:
相應處理程序是
onTitleFixedChanged
.
|
titleOffsetChanged ( real offset ) |
此信號發射,當 titleOffset property value changes to offset .
注意:
相應處理程序是
onTitleOffsetChanged
.
|
titleVisibilityChanged ( bool visible ) |
This signal is emitted when the title visibility changes to visible .
注意:
相應處理程序是
onTitleVisibilityChanged
.