Skip to main content

TensorDesigner

TensorDesigner

Design mode panel for building TensorData with lazy columns. More…

#include <TensorDesigner.hpp>

Inherits from QWidget

Public Signals

Name
void tensorCreated(QString const & key)
Emitted when the tensor has been created or updated.
void dataFocusRequested(QString const & key)
Emitted when the designer wants to inspect a data key.

Public Functions

Name
TensorDesigner(std::shared_ptr< DataManager > data_manager, QWidget * parent =[nullptr])
~TensorDesigner() override
void setSelectionContext(SelectionContext * context)
Set the SelectionContext for dataFocus awareness.
void setOperationContext(EditorLib::OperationContext * context)
Set the OperationContext for inter-widget pipeline requests.
void setPipelineLibraryDir(QString const & library_dir)
Set the TransformsV2 pipeline library directory for column configuration.
void setInspectorState(std::shared_ptr< DataInspectorState > state)
Set the DataInspectorState for auto-pinning during dialog interaction.
std::string tensorKey() const
Get the key of the tensor created by this designer.
void setTensorKey(std::string const & key)
Set an existing tensor key to edit (if it has LazyColumnTensorStorage).
std::string toJson() const
Serialize the current design configuration to JSON.
bool fromJson(std::string const & json)
Load a design configuration from JSON.

Detailed Description

class TensorDesigner;

Design mode panel for building TensorData with lazy columns.

Embedded in TensorInspector when the user wants to create/edit a tensor backed by LazyColumnTensorStorage.

Public Signals Documentation

signal tensorCreated

void tensorCreated(
    QString const & key
)

Emitted when the tensor has been created or updated.

Parameters:

signal dataFocusRequested

void dataFocusRequested(
    QString const & key
)

Emitted when the designer wants to inspect a data key.

Parameters:

  • key The data key to focus

Public Functions Documentation

function TensorDesigner

explicit TensorDesigner(
    std::shared_ptr< DataManager > data_manager,
    QWidget * parent =nullptr
)

function ~TensorDesigner

~TensorDesigner() override

function setSelectionContext

void setSelectionContext(
    SelectionContext * context
)

Set the SelectionContext for dataFocus awareness.

Parameters:

function setOperationContext

void setOperationContext(
    EditorLib::OperationContext * context
)

Set the OperationContext for inter-widget pipeline requests.

Parameters:

  • context OperationContext instance (can be nullptr)

function setPipelineLibraryDir

void setPipelineLibraryDir(
    QString const & library_dir
)

Set the TransformsV2 pipeline library directory for column configuration.

Parameters:

  • library_dir Path to pipelines/transforms_v2 under the app config root

function setInspectorState

void setInspectorState(
    std::shared_ptr< DataInspectorState > state
)

Set the DataInspectorState for auto-pinning during dialog interaction.

Parameters:

  • state Shared state pointer (can be nullptr)

When set, the designer will auto-pin the inspector when opening the ColumnConfigDialog to prevent SelectionContext changes from navigating away from the tensor being designed. The pin is restored when the dialog closes.

function tensorKey

inline std::string tensorKey() const

Get the key of the tensor created by this designer.

Return: Data key in DataManager, or empty if no tensor created yet

function setTensorKey

void setTensorKey(
    std::string const & key
)

Set an existing tensor key to edit (if it has LazyColumnTensorStorage).

function toJson

std::string toJson() const

Serialize the current design configuration to JSON.

Return: JSON string describing row source + column recipes

function fromJson

bool fromJson(
    std::string const & json
)

Load a design configuration from JSON.

Parameters:

  • json JSON string

Return: true if successfully loaded


Updated on 2026-11-13 at 20:25:39 +0000