Skip to content

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.

enum QAccelPlot::SeriesMarker::NoneShape {
    Accepted,
    Rejected
};


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 .

bool QAccelPlot::SeriesMarker::filled;


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 .

QML_ANONYMOUSMarkerShape QAccelPlot::SeriesMarker::shape;


property size

Radius of each marker in pixels, clamped to at least 0. Default: 4 on LineCurve , 3 onPointCloud .

qreal QAccelPlot::SeriesMarker::size;


property strokeWidth

Outline width in pixels of hollow markers, clamped to at least 0. Has effect only when filled isfalse . Default: 1.

qreal QAccelPlot::SeriesMarker::strokeWidth;


Public Signals Documentation

signal filledChanged

Emitted when the filled property changes.

void QAccelPlot::SeriesMarker::filledChanged;


signal shapeChanged

Emitted when the shape property changes.

void QAccelPlot::SeriesMarker::shapeChanged;


signal sizeChanged

Emitted when the size property changes.

void QAccelPlot::SeriesMarker::sizeChanged;


signal strokeWidthChanged

Emitted when the strokeWidth property changes.

void QAccelPlot::SeriesMarker::strokeWidthChanged;


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.

bool QAccelPlot::SeriesMarker::filled () const


function setFilled

Sets whether closed marker shapes are filled ( filled ) or drawn as outlines.

void QAccelPlot::SeriesMarker::setFilled (
    bool filled
) 


function setShape

Sets the marker shape to shape .MarkerShape.None is ignored when the series rejects it.

void QAccelPlot::SeriesMarker::setShape (
    MarkerShape shape
) 


function setSize

Sets the marker radius to size pixels. Negative values are clamped to 0.

void QAccelPlot::SeriesMarker::setSize (
    qreal size
) 


function setStrokeWidth

Sets the outline width of hollow markers to width pixels. Negative values are clamped to 0.

void QAccelPlot::SeriesMarker::setStrokeWidth (
    qreal width
) 


function shape

Returns the marker shape.

MarkerShape QAccelPlot::SeriesMarker::shape () const


function size

Returns the marker radius in pixels.

qreal QAccelPlot::SeriesMarker::size () const


function strokeWidth

Returns the outline width of hollow markers in pixels.

qreal QAccelPlot::SeriesMarker::strokeWidth () const



The documentation for this class was generated from the following file QAccelPlot/src/QAccelPlot/series/SeriesMarker.hpp