QAbstract3DAxis 類

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
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
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 )

額外繼承成員

詳細描述

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 .

成員類型文檔編製

enum QAbstract3DAxis:: AxisOrientation

軸對象的取嚮。

常量
QAbstract3DAxis::AxisOrientationNone 0
QAbstract3DAxis::AxisOrientationX 1
QAbstract3DAxis::AxisOrientationY 2
QAbstract3DAxis::AxisOrientationZ 4

enum QAbstract3DAxis:: AxisType

軸對象的類型。

常量
QAbstract3DAxis::AxisTypeNone 0
QAbstract3DAxis::AxisTypeCategory 1
QAbstract3DAxis::AxisTypeValue 2

特性文檔編製

autoAdjustRange : bool

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 ().

labelAutoRotation : float

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 )

labels : QStringList

此特性保持軸的標簽。

注意: Setting this property for QValue3DAxis does nothing, as it generates labels automatically.

訪問函數:

QStringList labels () const
void setLabels (const QStringList & labels )

通知程序信號:

void labelsChanged ()

max : float

此特性保持軸的最大值。

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 )

min : float

此特性保持軸的最小值。

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 )

orientation : const AxisOrientation

此特性保持軸的取嚮。

The value is one of AxisOrientation 值。

訪問函數:

AxisOrientation orientation () const

通知程序信號:

void orientationChanged (QAbstract3DAxis::AxisOrientation orientation )

title : QString

此特性保持軸的標題。

訪問函數:

QString title () const
void setTitle (const QString & title )

通知程序信號:

void titleChanged (const QString & newTitle )

另請參閱 titleVisible and titleFixed .

titleFixed : bool

此特性保持軸標題的鏇轉。

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 .

titleVisible : bool

此特性保持軸標題在首要圖形視圖中是否可見。

默認值為 false .

訪問函數:

bool isTitleVisible () const
void setTitleVisible (bool visible )

通知程序信號:

void titleVisibilityChanged (bool visible )

另請參閱 title and titleFixed .

type : const AxisType

此特性保持軸的類型。

The value is one of AxisType 值。

訪問函數:

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 ,當範圍改變時。

void QAbstract3DAxis:: setRange ( float min , float 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.