|
QWT API (English) 7.3.0
Qt Widget Library for Technical Applications - English API Documentation
|
Generic interface for standard and user written I/O handlers. More...
#include <qwt3d_io.h>
Classes | |
| class | Functor |
| Functor class for more flexible IO handler implementation. More... | |
Public Types | |
| using | Function = bool(*)(Plot3D *, QString const &fname) |
Static Public Member Functions | |
| static bool | defineInputHandler (QString const &format, Function func) |
| Registers a new IO::Function for data input. | |
| static bool | defineOutputHandler (QString const &format, Function func) |
| Registers a new IO::Function for data output. | |
| static bool | defineInputHandler (QString const &format, Functor const &func) |
| Registers a new Functor for data input. | |
| static bool | defineOutputHandler (QString const &format, Functor const &func) |
| Registers a new Functor for data output. | |
| static bool | save (Plot3D *, QString const &fname, QString const &format) |
| Applies a writing IO::Function or IO::Functor. | |
| static bool | load (Plot3D *, QString const &fname, QString const &format) |
| Applies a reading IO::Function or IO::Functor. | |
| static QStringList | inputFormatList () |
| Returns a list of currently registered input formats. | |
| static QStringList | outputFormatList () |
| Returns a list of currently registered output formats. | |
| static Functor * | outputHandler (QString const &format) |
| Returns the output functor in charge for format. | |
| static Functor * | inputHandler (QString const &format) |
| Returns the input functor in charge for format. | |
Generic interface for standard and user written I/O handlers.
IO provides a generic interface for standard and user written I/O handlers. It also provides functionality for the registering of such handlers in the framework. The interface mimics roughly Qt's QImageIO functions for defining image input/output functions.
|
static |
Registers a new IO::Function for data input.
| format | Format string identifier |
| func | Input handler function |
Every call overwrites a formerly registered handler for the same format string (case sensitive).
|
static |
Registers a new Functor for data input.
| format | Format string identifier |
| func | Input handler functor |
Every call overwrites a formerly registered handler for the same format string (case sensitive).
|
static |
Registers a new IO::Function for data output.
| format | Format string identifier |
| func | Output handler function |
Every call overwrites a formerly registered handler for the same format string (case sensitive).
|
static |
Registers a new Functor for data output.
| format | Format string identifier |
| func | Output handler functor |
Every call overwrites a formerly registered handler for the same format string (case sensitive).
|
static |
Returns a list of currently registered input formats.
|
static |
Returns the input functor in charge for format.
| format | Format string identifier |
|
static |
Applies a reading IO::Function or IO::Functor.
| plot | Plot with the content that should be loaded |
| fname | File name |
| format | Input format |
|
static |
Returns a list of currently registered output formats.
|
static |
Returns the output functor in charge for format.
| format | Format string identifier |
|
static |
Applies a writing IO::Function or IO::Functor.
| plot | Plot with the content that should be saved |
| fname | File name |
| format | Output format |