QAbstract3DAxis Class

QAbstract3DAxisクラスは、3Dグラフの軸の基底クラスです。詳細...

ヘッダー #include <QAbstract3DAxis>
CMake: find_package(Qt6 REQUIRED COMPONENTS Graphs)
target_link_libraries(mytarget PRIVATE Qt6::Graphs)
qmake QT += graphs
QML で Abstract3DAxis
を継承: QObject
継承される

QCategory3DAxis そしてQValue3DAxis

パブリックタイプ

enum class AxisOrientation { None, X, Y, Z }
enum class AxisType { None, Category, Value }

プロパティ

パブリック機能

virtual ~QAbstract3DAxis() override
bool isAutoAdjustRange() const
bool isTitleFixed() const
bool isTitleVisible() const
float labelAutoAngle() const
QStringList labels() const
bool labelsVisible() const
float max() const
float min() const
QAbstract3DAxis::AxisOrientation orientation() const
void setAutoAdjustRange(bool autoAdjust)
void setLabelAutoAngle(float degree)
void setLabels(const QStringList &labels)
void setLabelsVisible(bool visible)
void setMax(float max)
void setMin(float min)
void setRange(float min, float max)
void setTitle(const QString &title)
void setTitleFixed(bool fixed)
void setTitleOffset(float offset)
void setTitleVisible(bool visible)
QString title() const
float titleOffset() const
QAbstract3DAxis::AxisType type() const

シグナル

void autoAdjustRangeChanged(bool autoAdjust)
void labelAutoAngleChanged(float angle)
void labelVisibleChanged(bool visible)
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 titleOffsetChanged(float offset)
void titleVisibleChanged(bool visible)

詳細説明

このクラスは、グラフ軸によって共有される列挙、プロパティ、および関数を指定します。直接使用するのではなく、サブクラスのいずれかを使用する必要があります。

QCategory3DAxis およびQValue3DAxisも参照

メンバ型ドキュメント

enum class QAbstract3DAxis::AxisOrientation

軸オブジェクトの向き。

定数
QAbstract3DAxis::AxisOrientation::None0
QAbstract3DAxis::AxisOrientation::X1
QAbstract3DAxis::AxisOrientation::Y2
QAbstract3DAxis::AxisOrientation::Z3

enum class QAbstract3DAxis::AxisType

軸オブジェクトのタイプ。

定数
QAbstract3DAxis::AxisType::None0
QAbstract3DAxis::AxisType::Category1
QAbstract3DAxis::AxisType::Value2

プロパティの説明

autoAdjustRange : bool

このプロパティは、すべてのデータがその中に収まるように軸が自動的に範囲を調整するかどうかを保持する。

アクセス関数:

bool isAutoAdjustRange() const
void setAutoAdjustRange(bool autoAdjust)

通知シグナル:

void autoAdjustRangeChanged(bool autoAdjust)

setRange()、setMin()、setMax()も参照して ください。

labelAutoAngle : float

このプロパティは、カメラの角度が変化したときにラベルが自動回転できる最大角度を保持する。

角度は 0 から 90 の間で指定できる。デフォルト値は0です。値が0の場合、軸ラベルは自動的に回転しません。値が 0 よ り 大き い と 、 ラ ベルは、指定 さ れた角度まで、 カ メ ラ の方向に向かおうとする。

アクセス関数:

float labelAutoAngle() const
void setLabelAutoAngle(float degree)

通知信号:

void labelAutoAngleChanged(float angle)

labels : QStringList

このプロパティは軸のラベルを保持する。

注: QValue3DAxis にこのプロパティを設定しても、ラベルは自動的に生成されるため、何もしない。

アクセス関数:

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

通知シグナル:

void labelsChanged()

labelsVisible : bool

このプロパティは、主グラフビューで軸ラベルを表示するかどうかを保持する。

デフォルト値はtrue です。

アクセス関数:

bool labelsVisible() const
void setLabelsVisible(bool visible)

通知シグナル:

void labelVisibleChanged(bool visible)

max : float

このプロパティは、軸の最大値を保持する。

このプロパティを設定すると、範囲が有効であることを保証するために、必要に応じて最小値が調整されます。

注: QCategory3DAxis 、表示する最後の行または列のインデックスを指定します。

アクセス関数:

float max() const
void setMax(float max)

通知シグナル:

void maxChanged(float value)

min : float

このプロパティは、軸の最小値を保持する。

このプロパティを設定すると、必要に応じて最大値が調整され、有効な範囲が維持されます。

注: QCategory3DAxis の場合、表示する最初の行または列のインデックスを指定します。

アクセス関数:

float min() const
void setMin(float min)

通知シグナル:

void minChanged(float value)

[read-only] orientation : const QAbstract3DAxis::AxisOrientation

このプロパティは、軸の向きを保持する。

値はAxisOrientation 値のいずれかである。

アクセス関数:

QAbstract3DAxis::AxisOrientation orientation() const

ノーティファイアシグナル:

void orientationChanged(QAbstract3DAxis::AxisOrientation orientation)

title : QString

このプロパティは、軸のタイトルを保持する。

アクセス関数:

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

ノーティファイアシグナル:

void titleChanged(const QString &newTitle)

titleVisible およびtitleFixedも参照してください

titleFixed : bool

このプロパティは、軸タイトルの回転を保持する。

false の場合、プライマリ・グラフ・ビューの軸タイトルは、軸ラベルと同様にカメラに向かって回転する。true の場合、軸タイトルはその軸を中心に回転されるだけで、それ以外はカメラに向かわない。このプロパティは、labelAutoAngle プロパティ値がゼロの場合、何の効果も持ちません。デフ ォル ト 値はtrue です。

アクセス関数:

bool isTitleFixed() const
void setTitleFixed(bool fixed)

ノーティファイアシグナル:

void titleFixedChanged(bool fixed)

labelAutoAngletitle 、およびtitleVisibleも参照

titleOffset : float

軸上の軸タイトルの位置。値は-1.0f から1.0f

アクセス関数:

float titleOffset() const
void setTitleOffset(float offset)

信号:

void titleOffsetChanged(float offset)

title およびtitleFixedも参照

titleVisible : bool

このプロパティは、主グラフビューで軸タイトルを表示するかどうかを保持する。

デフォルト値はfalse である。

アクセス関数:

bool isTitleVisible() const
void setTitleVisible(bool visible)

Notifier シグナル:

void titleVisibleChanged(bool visible)

title およびtitleFixedも参照してください

[read-only] type : const QAbstract3DAxis::AxisType

このプロパティは、軸のタイプを保持する。

値はAxisType 値のいずれかである。

アクセス関数:

QAbstract3DAxis::AxisType type() const

メンバ関数ドキュメント

[override virtual noexcept] QAbstract3DAxis::~QAbstract3DAxis()

QAbstract3DAxis を破壊する。

[signal] void QAbstract3DAxis::rangeChanged(float min, float max)

レンジが変化したときに、レンジの最小値と最大値、minmax を発する。

void QAbstract3DAxis::setRange(float min, float max)

min からmax までの軸の値範囲を設定する。 範囲を設定するとき、範囲が有効であることを確実にするために、必要に応じて最大値が調整される。

注: QCategory3DAxis の場合は、表示する行または列のインデックス範囲を指定します。

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.