SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
A base class for user interface elements that wish to serialize their state. More...
#include <UIElementState.h>
Public Member Functions | |
smtkTypenameMacroBase (UIElementState) | |
virtual smtk::string::Token | elementType () const =0 |
Return an (application-unique) token for the type of user-interface element this state object will serialize/deserialize. More... | |
virtual nlohmann::json | configuration ()=0 |
Return the UI element's current, in-memory state to be serialized. | |
virtual bool | configure (const nlohmann::json &data)=0 |
Using the deserialized configuration data, configure the user interface element to match it. | |
A base class for user interface elements that wish to serialize their state.
UI elements, such as panels, should
Read and write operations will then iterate the map to serialize or deserialize each entry.
|
pure virtual |
Return an (application-unique) token for the type of user-interface element this state object will serialize/deserialize.
We suggest the type-name of the UI element (e.g., "pqSMTKDiagramPanel") that owns or inherits this UIElementState instance.
Implemented in pqSMTKDiagramPanel.