TensorInspector
TensorInspector
Inspector widget for TensorData with design mode. More…
#include <TensorInspector.hpp>
Inherits from BaseInspector, QWidget, IDataInspector
Public Signals
| Name | |
|---|---|
| void | tensorCreated(QString const & key) Emitted when the designer creates or updates a tensor. |
Public Functions
| Name | |
|---|---|
| TensorInspector(std::shared_ptr< DataManager > data_manager, GroupManager * group_manager =[nullptr], QWidget * parent =[nullptr]) Construct the tensor inspector. |
|
| ~TensorInspector() override | |
| virtual void | setActiveKey(std::string const & key) override Set the active data key to inspect. |
| virtual void | removeCallbacks() override Remove all callbacks from the currently active data. |
| virtual void | updateView() override Update the view to reflect current data state. |
| virtual DM_DataType | getDataType() const override Get the data type this inspector handles. |
| virtual QString | getTypeName() const override Get a human-readable name for this inspector type. |
| virtual bool | supportsExport() const override Check if this inspector supports export functionality. |
| virtual bool | supportsGroupFiltering() const override Check if group filtering is supported. |
| void | setSelectionContext(SelectionContext * context) Set the SelectionContext for passive data awareness. |
| void | setOperationContext(EditorLib::OperationContext * context) Set the OperationContext for inter-widget pipeline requests. |
| void | setPipelineLibraryDir(QString const & library_dir) Set the resolved TransformsV2 pipeline library directory. |
| TensorDesigner * | designer() const Get the embedded TensorDesigner widget. |
Additional inherited members
Public Signals inherited from BaseInspector
| Name | |
|---|---|
| void | frameSelected(TimePosition position) Emitted when user selects a frame to navigate to. |
Public Functions inherited from BaseInspector
| Name | |
|---|---|
| BaseInspector(std::shared_ptr< DataManager > data_manager, GroupManager * group_manager =[nullptr], QWidget * parent =[nullptr]) Construct the base inspector. |
|
| ~BaseInspector() override | |
| virtual std::string | getActiveKey() const override Get the current active data key. |
| void | setGroupManager(GroupManager * group_manager) Set the GroupManager for group-aware features. |
| GroupManager * | groupManager() const Get the current GroupManager. |
| void | setCommandRecorder(commands::CommandRecorder * recorder) Set the CommandRecorder for recording command executions. |
| void | setState(std::shared_ptr< DataInspectorState > state) Set the DataInspectorState for time position access. |
| std::shared_ptr< DataInspectorState > | state() const Get the DataInspectorState. |
Protected Functions inherited from BaseInspector
| Name | |
|---|---|
| std::shared_ptr< DataManager > | dataManager() const Get the DataManager. |
| commands::CommandRecorder * | commandRecorder() const Get the CommandRecorder for recording command executions. |
| void | removeCallbackFromData(std::string const & key, int & callback_id) Helper to remove a callback from data. |
Protected Attributes inherited from BaseInspector
| Name | |
|---|---|
| std::string | _active_key The currently active data key. |
| int | _callback_id Callback ID for data observer (-1 if not registered). |
Public Functions inherited from IDataInspector
| Name | |
|---|---|
| virtual | ~IDataInspector() =default |
| virtual std::string | getActiveKey() const =0 Get the current active data key. |
Detailed Description
class TensorInspector;Inspector widget for TensorData with design mode.
Provides callback management for tensor data inspection and hosts TensorDesigner for interactive lazy-column tensor building. The actual table view is handled by TensorDataView.
Public Signals Documentation
signal tensorCreated
void tensorCreated(
QString const & key
)Emitted when the designer creates or updates a tensor.
Parameters:
- key DataManager key of the tensor
Public Functions Documentation
function TensorInspector
explicit TensorInspector(
std::shared_ptr< DataManager > data_manager,
GroupManager * group_manager =nullptr,
QWidget * parent =nullptr
)Construct the tensor inspector.
Parameters:
- data_manager Shared DataManager for data access
- group_manager Optional GroupManager for group features (not used for tensors)
- parent Parent widget
function ~TensorInspector
~TensorInspector() overridefunction setActiveKey
virtual void setActiveKey(
std::string const & key
) overrideSet the active data key to inspect.
Parameters:
- key The data key in DataManager
Reimplements: IDataInspector::setActiveKey
This method should:
- Remove callbacks from any previously active data
- Store the new key
- Set up callbacks on the new data
- Update the view to show the new data
function removeCallbacks
virtual void removeCallbacks() overrideRemove all callbacks from the currently active data.
Reimplements: IDataInspector::removeCallbacks
Called when the inspector is being destroyed or when switching to a different data key. Must clean up any registered observers.
function updateView
virtual void updateView() overrideUpdate the view to reflect current data state.
Reimplements: IDataInspector::updateView
Called when the underlying data has changed. Should refresh all UI elements (tables, labels, etc.) to show current data.
function getDataType
inline virtual DM_DataType getDataType() const overrideGet the data type this inspector handles.
Return: The DM_DataType enum value
Reimplements: IDataInspector::getDataType
function getTypeName
inline virtual QString getTypeName() const overrideGet a human-readable name for this inspector type.
Return: Display name (e.g., “Point”, “Line”, “Mask”)
Reimplements: IDataInspector::getTypeName
function supportsExport
inline virtual bool supportsExport() const overrideCheck if this inspector supports export functionality.
Return: true if export is supported, false otherwise
Reimplements: IDataInspector::supportsExport
Default returns false. Override in inspectors that support data export.
function supportsGroupFiltering
inline virtual bool supportsGroupFiltering() const overrideCheck if group filtering is supported.
Return: true if GroupManager is available
Reimplements: BaseInspector::supportsGroupFiltering
function setSelectionContext
void setSelectionContext(
SelectionContext * context
)Set the SelectionContext for passive data awareness.
Parameters:
- context SelectionContext instance (can be nullptr)
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 resolved TransformsV2 pipeline library directory.
Parameters:
- library_dir Path to pipelines/transforms_v2 under the app config root
function designer
inline TensorDesigner * designer() constGet the embedded TensorDesigner widget.
Return: Pointer to TensorDesigner, or nullptr if not created
Updated on 2026-11-13 at 20:25:39 +0000