ACFState
ACFState
State class for ACFWidget. More…
#include <ACFState.hpp>
Inherits from EditorState, QObject
Public Signals
| Name | |
|---|---|
| void | eventKeyChanged(QString const & key) Emitted when event key changes. |
| void | viewStateChanged() |
Public Functions
| Name | |
|---|---|
| ACFState(QObject * parent =[nullptr]) Construct a new ACFState. |
|
| ~ACFState() override =default | |
| virtual QString | getTypeName() const override Get the type name for this state. |
| virtual QString | getDisplayName() const override Get the display name for UI. |
| virtual void | setDisplayName(QString const & name) override Set the display name. |
| QString | getEventKey() const Get the event data key. |
| void | setEventKey(QString const & key) Set the event data key. |
| HorizontalAxisState * | horizontalAxisState() |
| VerticalAxisState * | verticalAxisState() |
| CorePlotting::ViewStateData const & | viewState() const Get the current view state (zoom, pan, data bounds). |
| void | setXZoom(double zoom) |
| void | setYZoom(double zoom) |
| void | setPan(double x_pan, double y_pan) |
| void | setXBounds(double x_min, double x_max) Set X data bounds. Updates view state and horizontal axis. |
| void | setYBounds(double y_min, double y_max) Set Y data bounds. Updates view state and vertical axis. |
| virtual std::string | toJson() const override Serialize state to JSON. |
| virtual bool | fromJson(std::string const & json) override Restore state from JSON. |
Additional inherited members
Public Signals inherited from EditorState
| Name | |
|---|---|
| void | stateChanged() Emitted when any state property changes. |
| void | displayNameChanged(QString const & newName) Emitted when display name changes. |
| void | dirtyChanged(bool isDirty) Emitted when dirty state changes. |
Public Functions inherited from EditorState
| Name | |
|---|---|
| EditorState(QObject * parent =[nullptr]) Construct a new EditorState. |
|
| ~EditorState() override =default Virtual destructor. |
|
| QString | getInstanceId() const Get unique instance ID. |
| bool | isDirty() const Check if state has unsaved changes. |
| void | markClean() Mark state as clean (after save). |
Protected Functions inherited from EditorState
| Name | |
|---|---|
| void | markDirty() Mark state as modified. |
| void | setInstanceId(QString const & id) Set instance ID (for deserialization). |
| QString | generateInstanceId() Generate a new unique instance ID. |
Detailed Description
class ACFState;State class for ACFWidget.
ACFState is the Qt wrapper around ACFStateData that provides typed accessors and Qt signals for all state properties.
Public Signals Documentation
signal eventKeyChanged
void eventKeyChanged(
QString const & key
)Emitted when event key changes.
Parameters:
- key New event key
signal viewStateChanged
void viewStateChanged()Public Functions Documentation
function ACFState
explicit ACFState(
QObject * parent =nullptr
)Construct a new ACFState.
Parameters:
- parent Parent QObject (typically nullptr, managed by WorkspaceManager)
function ~ACFState
~ACFState() override =defaultfunction getTypeName
inline virtual QString getTypeName() const overrideGet the type name for this state.
Return: “ACF”
Reimplements: EditorState::getTypeName
function getDisplayName
virtual QString getDisplayName() const overrideGet the display name for UI.
Return: User-visible name (default: “Autocorrelation Function”)
Reimplements: EditorState::getDisplayName
function setDisplayName
virtual void setDisplayName(
QString const & name
) overrideSet the display name.
Parameters:
- name New display name
Reimplements: EditorState::setDisplayName
function getEventKey
QString getEventKey() constGet the event data key.
Return: Key of the selected DigitalEventSeries
function setEventKey
void setEventKey(
QString const & key
)Set the event data key.
Parameters:
- key Key of the DigitalEventSeries to use for ACF computation
function horizontalAxisState
inline HorizontalAxisState * horizontalAxisState()function verticalAxisState
inline VerticalAxisState * verticalAxisState()function viewState
inline CorePlotting::ViewStateData const & viewState() constGet the current view state (zoom, pan, data bounds).
function setXZoom
void setXZoom(
double zoom
)function setYZoom
void setYZoom(
double zoom
)function setPan
void setPan(
double x_pan,
double y_pan
)function setXBounds
void setXBounds(
double x_min,
double x_max
)Set X data bounds. Updates view state and horizontal axis.
function setYBounds
void setYBounds(
double y_min,
double y_max
)Set Y data bounds. Updates view state and vertical axis.
function toJson
virtual std::string toJson() const overrideSerialize state to JSON.
Return: JSON string representation
Reimplements: EditorState::toJson
function fromJson
virtual bool fromJson(
std::string const & json
) overrideRestore state from JSON.
Parameters:
- json JSON string to parse
Return: true if parsing succeeded
Reimplements: EditorState::fromJson
Updated on 2026-11-13 at 20:25:41 +0000