IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QAbstract3DAxis Class

The QAbstract3DAxis class is a base class for the axes of a graph.

This class was introduced in QtDataVisualization 1.0.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QAbstract3DAxis Class

  • Header: QAbstract3DAxis

  • Since: QtDataVisualization 1.0

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS DataVisualization)

    target_link_libraries(mytarget PRIVATE Qt6::DataVisualization)

  • qmake: QT += datavisualization

  • Inherited By: QCategory3DAxis and QValue3DAxis

  • Instantiated By: qml-qtdatavisualization-abstractaxis3d.xml

  • Inherits: QObject

  • Inherited By: QCategory3DAxis and QValue3DAxis

Detailed Description

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.

See Also

Member Type Documentation

 

enum QAbstract3DAxis::AxisOrientation

The orientation of the axis object.

Constant

QAbstract3DAxis::AxisOrientationNone

0

QAbstract3DAxis::AxisOrientationX

1

QAbstract3DAxis::AxisOrientationY

2

QAbstract3DAxis::AxisOrientationZ

4

enum QAbstract3DAxis::AxisType

The type of the axis object.

Constant

QAbstract3DAxis::AxisTypeNone

0

QAbstract3DAxis::AxisTypeCategory

1

QAbstract3DAxis::AxisTypeValue

2

Property Documentation

 

autoAdjustRange : bool

This property holds whether the axis will automatically adjust the range so that all data fits in it.

Access functions:

  • bool isAutoAdjustRange() const

  • void setAutoAdjustRange(bool autoAdjust)

Notifier signal:

  • void autoAdjustRangeChanged(bool autoAdjust)

See Also

See also 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.

Access functions:

  • float labelAutoRotation() const

  • void setLabelAutoRotation(float angle)

Notifier signal:

  • void labelAutoRotationChanged(float angle)

labels : QStringList

This property holds the labels for the axis.

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

Access functions:

  • labels() const

  • void setLabels(const &labels)

Notifier signal:

  • void labelsChanged()

max : float

This property holds the maximum value on the axis.

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.

Access functions:

  • float max() const

  • void setMax(float max)

Notifier signal:

  • void maxChanged(float value)

min : float

This property holds the minimum value on the axis.

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.

Access functions:

  • float min() const

  • void setMin(float min)

Notifier signal:

  • void minChanged(float value)

[read-only] orientation : const AxisOrientation

This property holds the orientation of the axis.

The value is one of AxisOrientation values.

Access functions:

  • orientation() const

Notifier signal:

  • void orientationChanged( orientation)

title : QString

This property holds the title for the axis.

Access functions:

  • title() const

  • void setTitle(const &title)

Notifier signal:

  • void titleChanged(const &newTitle)

See Also

titleFixed : bool

This property holds the rotation of the axis titles.

If 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 property value is zero. Default value is true.

Access functions:

  • bool isTitleFixed() const

  • void setTitleFixed(bool fixed)

Notifier signal:

  • void titleFixedChanged(bool fixed)

See Also

titleVisible : bool

This property holds whether the axis title is visible in the primary graph view.

The default value is false.

Access functions:

  • bool isTitleVisible() const

  • void setTitleVisible(bool visible)

Notifier signal:

  • void titleVisibilityChanged(bool visible)

See Also

See also title, titleFixed

[read-only] type : const AxisType

This property holds the type of the axis.

The value is one of AxisType values.

Access functions:

  • type() const

Member Function Documentation

 

[virtual] QAbstract3DAxis::~QAbstract3DAxis()

Destroys QAbstract3DAxis.

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

Emits the minimum and maximum values of the range, min and max, when the range changes.

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.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+