QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
| Public 类型 | 静态 Public 成员函数 | 所有成员列表
Qwt3D::IO类 参考

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 FunctoroutputHandler (QString const &format)
 Returns the output functor in charge for format
 
static FunctorinputHandler (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.

成员函数说明

◆ defineInputHandler() [1/2]

bool IO::defineInputHandler ( QString const &  format,
IO::Function  func 
)
static

Registers a new IO::Function for data input

参数
formatFormat string identifier
funcInput handler function
返回
True on successful registration

Every call overwrites a formerly registered handler for the same format string (case sensitive).

◆ defineInputHandler() [2/2]

bool IO::defineInputHandler ( QString const &  format,
IO::Functor const &  func 
)
static

Registers a new Functor for data input

参数
formatFormat string identifier
funcInput handler functor
返回
True on successful registration

Every call overwrites a formerly registered handler for the same format string (case sensitive).

◆ defineOutputHandler() [1/2]

bool IO::defineOutputHandler ( QString const &  format,
IO::Function  func 
)
static

Registers a new IO::Function for data output

参数
formatFormat string identifier
funcOutput handler function
返回
True on successful registration

Every call overwrites a formerly registered handler for the same format string (case sensitive).

◆ defineOutputHandler() [2/2]

bool IO::defineOutputHandler ( QString const &  format,
IO::Functor const &  func 
)
static

Registers a new Functor for data output

参数
formatFormat string identifier
funcOutput handler functor
返回
True on successful registration

Every call overwrites a formerly registered handler for the same format string (case sensitive).

◆ inputFormatList()

QStringList IO::inputFormatList ( )
static

Returns a list of currently registered input formats

返回
List of input format strings

◆ inputHandler()

IO::Functor * IO::inputHandler ( QString const &  format)
static

Returns the input functor in charge for format

参数
formatFormat string identifier
返回
Pointer to the input functor, or 0 if non-existent

◆ load()

bool IO::load ( Plot3D plot,
QString const &  fname,
QString const &  format 
)
static

Applies a reading IO::Function or IO::Functor

参数
plotPlot with the content that should be loaded
fnameFile name
formatInput format
返回
The return value from the called Function/Functor. Returns false if no registered handler could be found.

◆ outputFormatList()

QStringList IO::outputFormatList ( )
static

Returns a list of currently registered output formats

返回
List of output format strings

◆ outputHandler()

IO::Functor * IO::outputHandler ( QString const &  format)
static

Returns the output functor in charge for format

参数
formatFormat string identifier
返回
Pointer to the output functor, or 0 if non-existent

◆ save()

bool IO::save ( Plot3D plot,
QString const &  fname,
QString const &  format 
)
static

Applies a writing IO::Function or IO::Functor

参数
plotPlot with the content that should be saved
fnameFile name
formatOutput format
返回
The return value from the called Function/Functor. Returns false if no registered handler could be found.

该类的文档由以下文件生成: