The QSpline3DSeries class represents a data series as a spline. 更多...
| 头: |
#include <QSpline3DSeries>
|
| CMake: |
find_package(Qt6 REQUIRED COMPONENTS Graphs)
target_link_libraries(mytarget PRIVATE Qt6::Graphs)
|
| qmake: |
QT += graphs
|
| Since: | Qt 6.9 |
| 在 QML: | Spline3DSeries |
| 继承: | QScatter3DSeries |
|
|
| QSpline3DSeries (QObject * parent = nullptr) | |
| QSpline3DSeries (QScatterDataProxy * dataProxy , QObject * parent = nullptr) | |
| virtual | ~QSpline3DSeries () override |
| bool | isSplineLooping () const |
| bool | isSplineVisible () const |
| void | setSplineColor (QColor color ) |
| void | setSplineKnotting (qreal knotting ) |
| void | setSplineLooping (bool looping ) |
| void | setSplineResolution (int resolution ) |
| void | setSplineTension (qreal tension ) |
| void | setSplineVisible (bool draw ) |
| QColor | splineColor () const |
| qreal | splineKnotting () const |
| int | splineResolution () const |
| qreal | splineTension () const |
| void | splineColorChanged (QColor color ) |
| void | splineKnottingChanged (qreal knotting ) |
| void | splineLoopingChanged (bool looping ) |
| void | splineResolutionChanged (int resolution ) |
| void | splineTensionChanged (qreal tension ) |
| void | splineVisibilityChanged (bool visible ) |
Spline graphs are used to show information as a series of data points connected by a curved or straight Catmull-Rom spline.
This class manages the spline specific visual elements.
Spline3DSeries extends the Scatter3DSeries API.
This property holds the color of the spline.
访问函数:
| QColor | splineColor () const |
| void | setSplineColor (QColor color ) |
通知程序信号:
| void | splineColorChanged (QColor color ) |
This property holds the knot parametrization of the spline.
This parameter can change the profile of the curve. The spline is classified as a uniform Catmull-Rom spline at a value of
0.0
, a centripetal Catmull-Rom spline at a value of
0.5
, and a chordal Catmull-Rom spline at a value of
1.0
.
值必须介于
0.0
and
1.0
。默认值为
0.5
.
访问函数:
| qreal | splineKnotting () const |
| void | setSplineKnotting (qreal knotting ) |
通知程序信号:
| void | splineKnottingChanged (qreal knotting ) |
Determines whether the spline loops.
This adds a spline segment between the first and last points of the series connecting the spline into a loop.
默认值为
false
访问函数:
| bool | isSplineLooping () const |
| void | setSplineLooping (bool looping ) |
通知程序信号:
| void | splineLoopingChanged (bool looping ) |
This property holds the resolution of the segments spline.
The number of vertices per spline segment, which is defined as the part between two points.
Must be a value above
2
。默认值为
10
.
访问函数:
| int | splineResolution () const |
| void | setSplineResolution (int resolution ) |
通知程序信号:
| void | splineResolutionChanged (int resolution ) |
This property holds the tension of the spline.
The spline uses maximum curvature for segments at a value of
0.0
Segments are completely straight at a value of
1.0
必须介于
0.0
and
1.0
默认值为
0.0
访问函数:
| qreal | splineTension () const |
| void | setSplineTension (qreal tension ) |
通知程序信号:
| void | splineTensionChanged (qreal tension ) |
Visibility of the spline.
Visibility of the spline. The default value is
true
.
访问函数:
| bool | isSplineVisible () const |
| void | setSplineVisible (bool draw ) |
通知程序信号:
| void | splineVisibilityChanged (bool visible ) |
[explicit]
QSpline3DSeries::
QSpline3DSeries
(
QObject
*
parent
= nullptr)
Constructs a spline 3D series with the parent parent .
[explicit]
QSpline3DSeries::
QSpline3DSeries
(
QScatterDataProxy
*
dataProxy
,
QObject
*
parent
= nullptr)
Constructs a spline 3D series with the data proxy dataProxy and the parent parent .
[override virtual noexcept]
QSpline3DSeries::
~QSpline3DSeries
()
Deletes the spline 3D series.