QwtPlot3D API
0.2.7
|
#include <qwt3d_io.h>
Classes | |
class | Functor |
Public Types | |
typedef bool(* | Function) (Plot3D *, QString const &fname) |
Static Public Member Functions | |
static bool | defineInputHandler (QString const &format, Function func) |
static bool | defineOutputHandler (QString const &format, Function func) |
static bool | defineInputHandler (QString const &format, Functor const &func) |
static bool | defineOutputHandler (QString const &format, Functor const &func) |
static bool | save (Plot3D *, QString const &fname, QString const &format) |
static bool | load (Plot3D *, QString const &fname, QString const &format) |
static QStringList | inputFormatList () |
static QStringList | outputFormatList () |
static Functor * | outputHandler (QString const &format) |
static Functor * | inputHandler (QString const &format) |
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.
The function type that can be processed by the define... members. An extension is the IO::Functor.
|
static |
Registers a new Functor for data input.
Every call overwrites a formerly registered handler for the same format string (case sensitive).
|
static |
Registers a new Functor for data output.
Every call overwrites a formerly registered handler for the same format string (case sensitive).
|
static |
Applies a writing IO::Function or IO::Functor.
plot | Plot with the content that should be saved |
fname | File name |
format | Output format |
Referenced by Plot3D::save(), Plot3D::savePixmap(), and Plot3D::saveVector().
|
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 input formats.
|
static |
Returns a list of currently registered output formats.
|
static |
Returns the output functor in charge for format and 0 if non-existent.
Referenced by Plot3D::saveVector().
|
static |
Returns the input functor in charge for format and 0 if non-existent.