Skip to content

Class QAccelPlot::LineCurveEffect

ClassList > QAccelPlot > LineCurveEffect

Abstract base class for visual effects applied to a LineCurve .More...

  • #include <LineCurveEffect.hpp>

Inherits the following classes: QObject

Inherited by the following classes: QAccelPlot::GradientFill, QAccelPlot::GradientStroke

Inheritance diagram

flowchart TB
  classQAccelPlot_1_1LineCurveEffect["QAccelPlot::LineCurveEffect"]

  external_base_classQAccelPlot_1_1LineCurveEffect_1["QObject"]
  external_base_classQAccelPlot_1_1LineCurveEffect_1 --> classQAccelPlot_1_1LineCurveEffect

  classQAccelPlot_1_1GradientFill["QAccelPlot::GradientFill"]
  classQAccelPlot_1_1LineCurveEffect --> classQAccelPlot_1_1GradientFill
  click classQAccelPlot_1_1GradientFill "../classQAccelPlot_1_1GradientFill/" "Open QAccelPlot::GradientFill"

  classQAccelPlot_1_1GradientStroke["QAccelPlot::GradientStroke"]
  classQAccelPlot_1_1LineCurveEffect --> classQAccelPlot_1_1GradientStroke
  click classQAccelPlot_1_1GradientStroke "../classQAccelPlot_1_1GradientStroke/" "Open QAccelPlot::GradientStroke"

Public Properties

Type Name
property QML_ANONYMOUSbool enabled
Whether this effect is active. Disabled effects are ignored during rendering.

Public Signals

Type Name
signal void effectChanged
Emitted when any effect property changes, requesting a curve redraw.
signal void enabledChanged
Emitted when the enabled property changes.

Public Functions

Type Name
LineCurveEffect (QObject * parent=nullptr)
Constructs an LineCurveEffect with the given__parent .
bool enabled () const
Returns true if the effect is active.
virtual void refresh ()
Re-reads inputs that can change without a notification and emits effectChanged() if they did.
void setEnabled (bool enabled)
Sets the effect's enabled state to enabled .

Detailed Description

Effects are attached via the LineCurve::effects list property and evaluated during updatePaintNode to modify line or fill rendering.

See also: GradientFill, GradientStroke, LineCurve

Public Properties Documentation

property enabled

Whether this effect is active. Disabled effects are ignored during rendering.

QML_ANONYMOUSbool QAccelPlot::LineCurveEffect::enabled;


Public Signals Documentation

signal effectChanged

Emitted when any effect property changes, requesting a curve redraw.

void QAccelPlot::LineCurveEffect::effectChanged;


signal enabledChanged

Emitted when the enabled property changes.

void QAccelPlot::LineCurveEffect::enabledChanged;


Public Functions Documentation

function LineCurveEffect

Constructs an LineCurveEffect with the given__parent .

explicit QAccelPlot::LineCurveEffect::LineCurveEffect (
    QObject * parent=nullptr
) 


function enabled

Returns true if the effect is active.

bool QAccelPlot::LineCurveEffect::enabled () const


function refresh

Re-reads inputs that can change without a notification and emits effectChanged() if they did.

virtual void QAccelPlot::LineCurveEffect::refresh () 

LineCurve calls this on the GUI thread once per frame. The default implementation does nothing.


function setEnabled

Sets the effect's enabled state to enabled .

void QAccelPlot::LineCurveEffect::setEnabled (
    bool enabled
) 



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