class containing all information concerning exporting images (screenshot) and the different supported format and extension. More...
#include <ScreenshotFormatInfo.h>
Collaboration diagram for camitk::ScreenshotFormatInfo:Public Types | |
| enum | ScreenshotFormat { PNG = 0 , JPG , BMP , PS , EPS , PDF , TEX , SVG , OBJ , RIB , VRML , NOT_SUPPORTED } |
| list of supported screenshot export formats More... | |
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... | |
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
References description, extension, get(), and NOT_SUPPORTED.
Referenced by camitk::InteractiveViewer::screenshot().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
get the information from the extension (QString)
References extension, get(), and NOT_SUPPORTED.
Here is the call graph for this function:
|
static |
retun the information concerning the supporting format using an index corresponding to the enum (check index validity)
References getMap().
Here is the call graph for this function:
|
static |
return the information concerning the supporting format using an index corresponding to the enum (check index validity)
References NOT_SUPPORTED.
Referenced by defaultFormat(), fileFilters(), and get().
Here is the caller graph for this function:
|
static |
| QString camitk::ScreenshotFormatInfo::description |
file format description
Referenced by fileFilters().
| QString camitk::ScreenshotFormatInfo::extension |
file extension (suffix)
Referenced by fileFilters(), and get().
| ScreenshotFormat camitk::ScreenshotFormatInfo::type {NOT_SUPPORTED} |
the corresponding type (key)