class containing all information concerning exporting images (screenshot) and the different supported format and extension. More...
#include <ScreenshotFormatInfo.h>
Public Types | |
enum | ScreenshotFormat { PNG = 0, JPG, BMP, PS, EPS, PDF, TEX, SVG, OBJ, RIB, VRML, NOT_SUPPORTED } |
Public Member Functions | |
ScreenshotFormatInfo () | |
default constructor More... | |
ScreenshotFormatInfo (ScreenshotFormat t, QString e, QString d) | |
Constructor. More... | |
Static Public Member Functions | |
static const ScreenshotFormatInfo * | defaultFormat () |
static const QString | fileFilters () |
return a list of supported format that can be used in a QFileDialog More... | |
static const ScreenshotFormatInfo * | get (QString) |
get the information from the extension (QString) More... | |
static const ScreenshotFormatInfo * | get (ScreenshotFormat) |
retun the information concerning the supporting format using an index corresponding to the enum (check index validity) More... | |
static const ScreenshotFormatInfo * | get (unsigned int) |
return the information concerning the supporting format using an index corresponding to the enum (check index validity) More... | |
static const QMap< ScreenshotFormat, ScreenshotFormatInfo * > | getMap () |
get the map More... | |
Public Attributes | |
QString | description |
file format description More... | |
QString | extension |
file extension (suffix) More... | |
ScreenshotFormat | type {NOT_SUPPORTED} |
the corresponding type (key) More... | |
Static Private Member Functions | |
static QMap< ScreenshotFormat, ScreenshotFormatInfo * > | initMap () |
build the map More... | |
class containing all information concerning exporting images (screenshot) and the different supported format and extension.
list of supported screenshot export formats
|
inline |
Constructor.
|
inline |
default constructor
|
static |
|
static |
return a list of supported format that can be used in a QFileDialog
|
static |
|
static |
retun the information concerning the supporting format using an index corresponding to the enum (check index validity)
|
static |
return the information concerning the supporting format using an index corresponding to the enum (check index validity)
Referenced by get().
|
static |
get the map
|
staticprivate |
build the map
QString camitk::ScreenshotFormatInfo::description |
file format description
QString camitk::ScreenshotFormatInfo::extension |
file extension (suffix)
Referenced by get().
ScreenshotFormat camitk::ScreenshotFormatInfo::type {NOT_SUPPORTED} |
the corresponding type (key)