TransformsV2State
TransformsV2State
State class for TransformsV2_Widget. More…
#include <TransformsV2State.hpp>
Inherits from EditorState, QObject
Public Signals
| Name | |
|---|---|
| void | inputDataKeyChanged(std::string const & key) |
| void | pipelineJsonChanged(std::string const & json) |
| void | outputDataKeyChanged(std::string const & key) |
Public Functions
| Name | |
|---|---|
| TransformsV2State(std::shared_ptr< DataManager > data_manager =[nullptr], QObject * parent =[nullptr]) | |
| ~TransformsV2State() override =default | |
| virtual QString | getTypeName() const override Get unique type name for this editor state. |
| virtual QString | getDisplayName() const override Get display name for UI. |
| virtual void | setDisplayName(QString const & name) override Set display name. |
| virtual std::string | toJson() const override Serialize state to JSON string. |
| virtual bool | fromJson(std::string const & json) override Restore state from JSON string. |
| std::shared_ptr< DataManager > | dataManager() const |
| void | setInputDataKey(std::string const & key) |
| std::optional< std::string > | inputDataKey() const |
| void | setPipelineJson(std::string const & json) |
| std::optional< std::string > | pipelineJson() const |
| void | setOutputDataKey(std::string const & key) |
| std::optional< std::string > | outputDataKey() const |
| void | setOutputTimeKey(std::string const & key) |
| std::optional< std::string > | outputTimeKey() const |
| void | setExecutionMode(std::string const & mode) |
| std::string | executionMode() const |
| void | setJsonPanelExpanded(bool expanded) |
| bool | jsonPanelExpanded() const |
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 TransformsV2State;State class for TransformsV2_Widget.
Manages state for the TransformsV2 properties panel which provides a UI for the TransformsV2 transform pipeline architecture.
Public Signals Documentation
signal inputDataKeyChanged
void inputDataKeyChanged(
std::string const & key
)signal pipelineJsonChanged
void pipelineJsonChanged(
std::string const & json
)signal outputDataKeyChanged
void outputDataKeyChanged(
std::string const & key
)Public Functions Documentation
function TransformsV2State
explicit TransformsV2State(
std::shared_ptr< DataManager > data_manager =nullptr,
QObject * parent =nullptr
)function ~TransformsV2State
~TransformsV2State() override =defaultfunction getTypeName
inline virtual QString getTypeName() const overrideGet unique type name for this editor state.
Return: Type name, e.g., “MediaWidget”, “DataViewerWidget”
Reimplements: EditorState::getTypeName
This is used for:
- Factory registration
- Serialization type field
- Properties panel routing
function getDisplayName
virtual QString getDisplayName() const overrideGet display name for UI.
Return: Display name, e.g., “Media Viewer 1”
Reimplements: EditorState::getDisplayName
This is the user-visible name shown in tabs, window titles, etc. It may be customized by the user.
function setDisplayName
virtual void setDisplayName(
QString const & name
) overrideSet display name.
Parameters:
- name New display name
Reimplements: EditorState::setDisplayName
function toJson
virtual std::string toJson() const overrideSerialize state to JSON string.
Return: JSON string representation of state
Reimplements: EditorState::toJson
Subclasses should use reflect-cpp for serialization: ```cpp
std::string toJson() const override { return rfl::json::write(_data); }
### function fromJson
```cpp
virtual bool fromJson(
std::string const & json
) override
Restore state from JSON string.
Parameters:
- json JSON string to parse
Return: true if parsing succeeded, false on error
Reimplements: EditorState::fromJson
Subclasses should use reflect-cpp for deserialization: ```cpp
bool fromJson(std::string const& json) override { auto result = rfl::json::read
### function dataManager
```cpp
inline std::shared_ptr< DataManager > dataManager() const
function setInputDataKey
void setInputDataKey(
std::string const & key
)function inputDataKey
inline std::optional< std::string > inputDataKey() constfunction setPipelineJson
void setPipelineJson(
std::string const & json
)function pipelineJson
inline std::optional< std::string > pipelineJson() constfunction setOutputDataKey
void setOutputDataKey(
std::string const & key
)function outputDataKey
inline std::optional< std::string > outputDataKey() constfunction setOutputTimeKey
void setOutputTimeKey(
std::string const & key
)function outputTimeKey
inline std::optional< std::string > outputTimeKey() constfunction setExecutionMode
void setExecutionMode(
std::string const & mode
)function executionMode
inline std::string executionMode() constfunction setJsonPanelExpanded
void setJsonPanelExpanded(
bool expanded
)function jsonPanelExpanded
inline bool jsonPanelExpanded() constUpdated on 2026-11-13 at 20:25:39 +0000