open_iA 2023.02
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
iAFileParamDlg Class Reference

provides a dialog for reading parameters, currently for a given file I/O type ToDo: check whether it makes sense to use this or something similar for similar purposes, e.g. More...

#include <iAFileParamDlg.h>

Inheritance diagram for iAFileParamDlg:
[legend]

Public Member Functions

virtual ~iAFileParamDlg ()
 
virtual bool askForParameters (QWidget *parent, iAAttributes const &parameters, QString const &ioName, QVariantMap &values, QString const &fileName) const
 default implementation for asking file parameters The value contained in the values argument will be used as default values for the parameter, overwriting the default values provided in the parameters argument
 

Static Public Member Functions

static void add (QString const &ioName, std::shared_ptr< iAFileParamDlg > dlg)
 register a dialog for a given I/O name:
 
static iAFileParamDlgget (QString const &ioName)
 factory method, creating a parameter dialog for the given file I/O name:
 
static bool getParameters (QWidget *parent, iAFileIO const *io, iAFileIO::Operation op, QString const &fileName, QVariantMap &result)
 Convenience function for retrieving parameters for loading/saving a file.
 
static void setupDefaultFileParamDlgs ()
 set up a few custom file parameter dialogs
 

Detailed Description

provides a dialog for reading parameters, currently for a given file I/O type ToDo: check whether it makes sense to use this or something similar for similar purposes, e.g.

for asking for filter parameters?

Constructor & Destructor Documentation

◆ ~iAFileParamDlg()

iAFileParamDlg::~iAFileParamDlg ( )
virtual

Member Function Documentation

◆ add()

void iAFileParamDlg::add ( QString const &  ioName,
std::shared_ptr< iAFileParamDlg dlg 
)
static

register a dialog for a given I/O name:

◆ askForParameters()

bool iAFileParamDlg::askForParameters ( QWidget *  parent,
iAAttributes const &  parameters,
QString const &  ioName,
QVariantMap &  values,
QString const &  fileName 
) const
virtual

default implementation for asking file parameters The value contained in the values argument will be used as default values for the parameter, overwriting the default values provided in the parameters argument

Reimplemented in iANewRawFileLoadParamDlg, and iAImageStackLoadParamDlg.

◆ get()

iAFileParamDlg * iAFileParamDlg::get ( QString const &  ioName)
static

factory method, creating a parameter dialog for the given file I/O name:

◆ getParameters()

bool iAFileParamDlg::getParameters ( QWidget *  parent,
iAFileIO const *  io,
iAFileIO::Operation  op,
QString const &  fileName,
QVariantMap &  result 
)
static

Convenience function for retrieving parameters for loading/saving a file.

Note: in contrast to askForParameters, result is an out parameter only; the values in there will not be used as default

◆ setupDefaultFileParamDlgs()

void iAFileParamDlg::setupDefaultFileParamDlgs ( )
static

set up a few custom file parameter dialogs


The documentation for this class was generated from the following files: