Skip to main content

NpyExplorer_Widget

NpyExplorer_Widget

Widget for browsing NumPy .npy files. More…

#include <NpyExplorer_Widget.hpp>

Inherits from QWidget

Public Signals

Name
void fileLoaded(QString const & file_path)
Emitted when a file is successfully loaded.
void errorOccurred(QString const & message)
Emitted when an error occurs.

Public Functions

Name
NpyExplorer_Widget(std::shared_ptr< DataManager > data_manager =[nullptr], QWidget * parent =[nullptr])
Construct the NpyExplorer_Widget.
~NpyExplorer_Widget() override
bool loadFile(QString const & file_path)
Load and display a .npy file.
QString currentFilePath() const
Get the currently loaded file path.

Detailed Description

class NpyExplorer_Widget;

Widget for browsing NumPy .npy files.

Provides:

  • File browse and path display
  • Metadata panel (dtype, shape, byte order, memory order, element count)
  • Lazy-loading data preview table

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 errorOccurred

void errorOccurred(
    QString const & message
)

Emitted when an error occurs.

Parameters:

  • message Error message

Public Functions Documentation

function NpyExplorer_Widget

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

Construct the NpyExplorer_Widget.

Parameters:

  • data_manager DataManager for future data import integration
  • parent Parent widget

function ~NpyExplorer_Widget

~NpyExplorer_Widget() override

function loadFile

bool loadFile(
    QString const & file_path
)

Load and display a .npy file.

Parameters:

  • file_path Path to the .npy file

Return: true if file was loaded successfully

function currentFilePath

inline QString currentFilePath() const

Get the currently loaded file path.

Return: File path, or empty if no file loaded


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