Class QAccelPlot::SeriesMarker¶
ClassList > QAccelPlot > SeriesMarker
Controls the markers a series draws at its data points. More...
#include <SeriesMarker.hpp>
Inherits the following classes: QObject
Inheritance diagram¶
flowchart TB
classQAccelPlot_1_1SeriesMarker["QAccelPlot::SeriesMarker"]
external_base_classQAccelPlot_1_1SeriesMarker_1["QObject"]
external_base_classQAccelPlot_1_1SeriesMarker_1 --> classQAccelPlot_1_1SeriesMarker
Public Types¶
| Type | Name |
|---|---|
| enum | NoneShape Whether MarkerShape.None is a valid shape for the owning series. |
Public Properties¶
| Type | Name |
|---|---|
| property bool | filled Whether closed marker shapes are filled. When false they are drawn as outlines ofstrokeWidth inside the shape's edge. Line-like shapes (Cross ,XCross ,Asterisk ,HLine ,VLine ) andPixel are unaffected. Default:true . |
| property QML_ANONYMOUSMarkerShape | shape Shape drawn at each data point. Series that always draw markers, such as PointCloud , ignoreMarkerShape.None and log a warning. Default:None onLineCurve ,Circle onPointCloud . |
| property qreal | size Radius of each marker in pixels, clamped to at least 0. Default: 4 on LineCurve , 3 onPointCloud . |
| property qreal | strokeWidth Outline width in pixels of hollow markers, clamped to at least 0. Has effect only when filled isfalse . Default: 1. |
Public Signals¶
| Type | Name |
|---|---|
| signal void | filledChanged Emitted when the filled property changes. |
| signal void | shapeChanged Emitted when the shape property changes. |
| signal void | sizeChanged Emitted when the size property changes. |
| signal void | strokeWidthChanged Emitted when the strokeWidth property changes. |
Public Functions¶
| Type | Name |
|---|---|
| SeriesMarker (MarkerShape shape, qreal size, NoneShape noneShape, QObject * parent) Constructs a SeriesMarker with the default__shape and__size , owned by__parent . |
|
| bool | filled () const Returns true if closed marker shapes are filled. |
| void | setFilled (bool filled) Sets whether closed marker shapes are filled ( filled ) or drawn as outlines. |
| void | setShape (MarkerShape shape) Sets the marker shape to shape . MarkerShape.None is ignored when the series rejects it. |
| void | setSize (qreal size) Sets the marker radius to size pixels. Negative values are clamped to 0. |
| void | setStrokeWidth (qreal width) Sets the outline width of hollow markers to width pixels. Negative values are clamped to 0. |
| MarkerShape | shape () const Returns the marker shape. |
| qreal | size () const Returns the marker radius in pixels. |
| qreal | strokeWidth () const Returns the outline width of hollow markers in pixels. |
Detailed Description¶
Accessible via the marker CONSTANT grouped property of LineCurve and PointCloud, for example marker.shape: QAccelPlot.MarkerShape.Diamond. Defaults depend on the owning series.
See also: LineCurve, PointCloud
Public Types Documentation¶
enum NoneShape¶
Whether MarkerShape.None is a valid shape for the owning series.
Public Properties Documentation¶
property filled¶
Whether closed marker shapes are filled. When false they are drawn as outlines ofstrokeWidth inside the shape's edge. Line-like shapes (Cross ,XCross ,Asterisk ,HLine ,VLine ) andPixel are unaffected. Default:true .
property shape¶
Shape drawn at each data point. Series that always draw markers, such as PointCloud , ignoreMarkerShape.None and log a warning. Default:None onLineCurve ,Circle onPointCloud .
property size¶
Radius of each marker in pixels, clamped to at least 0. Default: 4 on LineCurve , 3 onPointCloud .
property strokeWidth¶
Outline width in pixels of hollow markers, clamped to at least 0. Has effect only when filled isfalse . Default: 1.
Public Signals Documentation¶
signal filledChanged¶
Emitted when the filled property changes.
signal shapeChanged¶
Emitted when the shape property changes.
signal sizeChanged¶
Emitted when the size property changes.
signal strokeWidthChanged¶
Emitted when the strokeWidth property changes.
Public Functions Documentation¶
function SeriesMarker¶
Constructs a SeriesMarker with the default__shape and__size , owned by__parent .
QAccelPlot::SeriesMarker::SeriesMarker (
MarkerShape shape,
qreal size,
NoneShape noneShape,
QObject * parent
)
function filled¶
Returns true if closed marker shapes are filled.
function setFilled¶
Sets whether closed marker shapes are filled ( filled ) or drawn as outlines.
function setShape¶
Sets the marker shape to shape .MarkerShape.None is ignored when the series rejects it.
function setSize¶
Sets the marker radius to size pixels. Negative values are clamped to 0.
function setStrokeWidth¶
Sets the outline width of hollow markers to width pixels. Negative values are clamped to 0.
function shape¶
Returns the marker shape.
function size¶
Returns the marker radius in pixels.
function strokeWidth¶
Returns the outline width of hollow markers in pixels.
The documentation for this class was generated from the following file QAccelPlot/src/QAccelPlot/series/SeriesMarker.hpp