HDF5Explorer_Widget
HDF5Explorer_Widget
Widget for browsing HDF5 file structure. More…
#include <HDF5Explorer_Widget.hpp>
Inherits from QWidget
Public Signals
| Name | |
|---|---|
| void | fileLoaded(QString const & file_path) Emitted when a file is successfully loaded. |
| void | datasetSelected(QString const & dataset_path) Emitted when a dataset is selected in the tree. |
| void | datasetActivated(QString const & dataset_path, HDF5ObjectInfo const & info) Emitted when a dataset is double-clicked (for import). |
| void | errorOccurred(QString const & message) Emitted when an error occurs. |
Public Functions
| Name | |
|---|---|
| HDF5Explorer_Widget(std::shared_ptr< DataManager > data_manager =[nullptr], QWidget * parent =[nullptr]) Construct the HDF5Explorer_Widget. |
|
| ~HDF5Explorer_Widget() override | |
| bool | loadFile(QString const & file_path) Load and display the structure of an HDF5 file. |
| QString | currentFilePath() const Get the currently loaded file path. |
| QString | selectedDatasetPath() const Get the currently selected dataset path. |
| HDF5ObjectInfo | selectedObjectInfo() const Get information about the currently selected object. |
Detailed Description
class HDF5Explorer_Widget;Widget for browsing HDF5 file structure.
Provides a tree view of HDF5 files showing:
- Groups (folders)
- Datasets with their types and dimensions
- Selection of specific datasets for import
Public Signals Documentation
signal fileLoaded
void fileLoaded(
QString const & file_path
)Emitted when a file is successfully loaded.
Parameters:
- file_path Path to the loaded file
signal datasetSelected
void datasetSelected(
QString const & dataset_path
)Emitted when a dataset is selected in the tree.
Parameters:
- dataset_path Full path to the selected dataset
signal datasetActivated
void datasetActivated(
QString const & dataset_path,
HDF5ObjectInfo const & info
)Emitted when a dataset is double-clicked (for import).
Parameters:
- dataset_path Full path to the dataset
- info Information about the dataset
signal errorOccurred
void errorOccurred(
QString const & message
)Emitted when an error occurs.
Parameters:
- message Error message
Public Functions Documentation
function HDF5Explorer_Widget
explicit HDF5Explorer_Widget(
std::shared_ptr< DataManager > data_manager =nullptr,
QWidget * parent =nullptr
)Construct the HDF5Explorer_Widget.
Parameters:
- data_manager DataManager for future data import integration
- parent Parent widget
function ~HDF5Explorer_Widget
~HDF5Explorer_Widget() overridefunction loadFile
bool loadFile(
QString const & file_path
)Load and display the structure of an HDF5 file.
Parameters:
- file_path Path to the HDF5 file
Return: true if file was loaded successfully
function currentFilePath
inline QString currentFilePath() constGet the currently loaded file path.
Return: File path, or empty if no file loaded
function selectedDatasetPath
QString selectedDatasetPath() constGet the currently selected dataset path.
Return: Selected dataset path, or empty if no dataset selected
function selectedObjectInfo
HDF5ObjectInfo selectedObjectInfo() constGet information about the currently selected object.
Return: Object info, or empty struct if nothing selected
Updated on 2026-11-13 at 20:25:40 +0000