|
QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
|
Generic interface for standard and user written I/O handlers 更多...
#include <qwt3d_io.h>
类 | |
| class | Functor |
| Functor class for more flexible IO handler implementation 更多... | |
Public 类型 | |
| using | Function = bool(*)(Plot3D *, QString const &fname) |
静态 Public 成员函数 | |
| 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 |