GlyphStyleState
GlyphStyleState
QObject wrapper for glyph style settings. More…
#include <GlyphStyleState.hpp>
Inherits from QObject
Public Signals
| Name | |
|---|---|
| void | styleChanged() Emitted when any glyph style property changes (user action). |
| void | styleUpdated() Emitted when style is updated programmatically (e.g., deserialization). |
Public Functions
| Name | |
|---|---|
| GlyphStyleState(QObject * parent =[nullptr]) | |
| ~GlyphStyleState() override =default | |
| CorePlotting::GlyphType | glyphType() const |
| void | setGlyphType(CorePlotting::GlyphType type) |
| float | size() const |
| void | setSize(float size) |
| std::string const & | hexColor() const |
| void | setHexColor(std::string const & color) |
| float | alpha() const |
| void | setAlpha(float alpha) |
| void | setStyle(CorePlotting::GlyphStyleData const & style) Set all style properties at once (emits styleChanged). |
| void | setStyleSilent(CorePlotting::GlyphStyleData const & style) Set all style properties silently (emits styleUpdated, not styleChanged). |
| CorePlotting::GlyphStyleData const & | data() const |
| CorePlotting::GlyphStyleData & | data() |
Detailed Description
class GlyphStyleState;QObject wrapper for glyph style settings.
Wraps CorePlotting::GlyphStyleData and emits signals on change. Composable into plot state classes as a member variable.
Public Signals Documentation
signal styleChanged
void styleChanged()Emitted when any glyph style property changes (user action).
Connect to this to trigger scene rebuilds.
signal styleUpdated
void styleUpdated()Emitted when style is updated programmatically (e.g., deserialization).
Connect to this for UI refresh without triggering scene rebuilds.
Public Functions Documentation
function GlyphStyleState
explicit GlyphStyleState(
QObject * parent =nullptr
)function ~GlyphStyleState
~GlyphStyleState() override =defaultfunction glyphType
CorePlotting::GlyphType glyphType() constfunction setGlyphType
void setGlyphType(
CorePlotting::GlyphType type
)function size
float size() constfunction setSize
void setSize(
float size
)function hexColor
std::string const & hexColor() constfunction setHexColor
void setHexColor(
std::string const & color
)function alpha
float alpha() constfunction setAlpha
void setAlpha(
float alpha
)function setStyle
void setStyle(
CorePlotting::GlyphStyleData const & style
)Set all style properties at once (emits styleChanged).
function setStyleSilent
void setStyleSilent(
CorePlotting::GlyphStyleData const & style
)Set all style properties silently (emits styleUpdated, not styleChanged).
Use when loading from serialized state to avoid triggering scene rebuilds.
function data
inline CorePlotting::GlyphStyleData const & data() constfunction data
inline CorePlotting::GlyphStyleData & data()Updated on 2026-11-13 at 20:25:40 +0000