@ -57,10 +57,10 @@ checked by the implementation:
is supported .
- Function @ ref doExportToCompressedImage ( ) is called only if
@ ref Feature : : ConvertCompressedImage is supported .
- Function @ ref doExportToData ( const ImageView2D & ) const is called only if
- Function @ ref doExportToData ( const ImageView2D & ) is called only if
@ ref Feature : : ConvertData is supported .
- Function @ ref doExportToData ( const CompressedImageView2D & ) const is called
only if @ ref Feature : : ConvertCompressedData is supported .
- Function @ ref doExportToData ( const CompressedImageView2D & ) is called only
if @ ref Feature : : ConvertCompressedData is supported .
Plugin interface string is ` " cz.mosra.magnum.Trade.AbstractImageConverter/0.2.1 " ` .
*/
@ -80,21 +80,21 @@ class MAGNUM_EXPORT AbstractImageConverter: public PluginManager::AbstractManagi
/** Conversion to compressed image with @ref exportToCompressedImage() */
ConvertCompressedImage = 1 < < 1 ,
/** Exporting to file with @ref exportToFile(const ImageView2D&, const std::string&) const */
/** Exporting to file with @ref exportToFile(const ImageView2D&, const std::string&) */
ConvertFile = 1 < < 2 ,
/** Exporting to file with @ref exportToFile(const CompressedImageView2D&, const std::string&) const */
/** Exporting to file with @ref exportToFile(const CompressedImageView2D&, const std::string&) */
ConvertCompressedFile = 1 < < 3 ,
/**
* Exporting to raw data with @ ref exportToData ( const ImageView2D & ) const .
* Exporting to raw data with @ ref exportToData ( const ImageView2D & ) .
* Implies @ ref Feature : : ConvertFile .
*/
ConvertData = ConvertFile | ( 1 < < 4 ) ,
/**
* Exporting compressed image to raw data with
* @ ref exportToData ( const CompressedImageView2D & ) const . Implies
* @ ref exportToData ( const CompressedImageView2D & ) . Implies
* @ ref Feature : : ConvertCompressedFile .
*/
ConvertCompressedData = ConvertCompressedFile | ( 1 < < 4 )
@ -126,7 +126,7 @@ class MAGNUM_EXPORT AbstractImageConverter: public PluginManager::AbstractManagi
* converted image on success , ` std : : nullopt ` otherwise .
* @ see @ ref features ( ) , @ ref exportToData ( ) , @ ref exportToFile ( )
*/
std : : optional < Image2D > exportToImage ( const ImageView2D & image ) const ;
std : : optional < Image2D > exportToImage ( const ImageView2D & image ) ;
/**
* @ brief Convert image to compressed format
@ -135,7 +135,7 @@ class MAGNUM_EXPORT AbstractImageConverter: public PluginManager::AbstractManagi
* Returns converted image on success , ` std : : nullopt ` otherwise .
* @ see @ ref features ( ) , @ ref exportToData ( ) , @ ref exportToFile ( )
*/
std : : optional < CompressedImage2D > exportToCompressedImage ( const ImageView2D & image ) const ;
std : : optional < CompressedImage2D > exportToCompressedImage ( const ImageView2D & image ) ;
/**
* @ brief Export image to raw data
@ -143,9 +143,9 @@ class MAGNUM_EXPORT AbstractImageConverter: public PluginManager::AbstractManagi
* Available only if @ ref Feature : : ConvertData is supported . Returns
* data on success , zero - sized array otherwise .
* @ see @ ref features ( ) , @ ref exportToImage ( ) ,
* @ ref exportToFile ( const ImageView2D & , const std : : string & ) const
* @ ref exportToFile ( const ImageView2D & , const std : : string & )
*/
Containers : : Array < char > exportToData ( const ImageView2D & image ) const ;
Containers : : Array < char > exportToData ( const ImageView2D & image ) ;
/**
* @ brief Export compressed image to raw data
@ -153,9 +153,9 @@ class MAGNUM_EXPORT AbstractImageConverter: public PluginManager::AbstractManagi
* Available only if @ ref Feature : : ConvertCompressedData is supported .
* Returns data on success , zero - sized array otherwise .
* @ see @ ref features ( ) , @ ref exportToCompressedImage ( ) ,
* @ ref exportToFile ( const CompressedImageView2D & , const std : : string & ) const
* @ ref exportToFile ( const CompressedImageView2D & , const std : : string & )
*/
Containers : : Array < char > exportToData ( const CompressedImageView2D & image ) const ;
Containers : : Array < char > exportToData ( const CompressedImageView2D & image ) ;
/**
* @ brief Export image to file
@ -164,9 +164,9 @@ class MAGNUM_EXPORT AbstractImageConverter: public PluginManager::AbstractManagi
* @ ref Feature : : ConvertData is supported . Returns ` true ` on success ,
* ` false ` otherwise .
* @ see @ ref features ( ) , @ ref exportToImage ( ) ,
* @ ref exportToData ( const ImageView2D & ) const
* @ ref exportToData ( const ImageView2D & )
*/
bool exportToFile ( const ImageView2D & image , const std : : string & filename ) const ;
bool exportToFile ( const ImageView2D & image , const std : : string & filename ) ;
/**
* @ brief Export compressed image to file
@ -175,9 +175,9 @@ class MAGNUM_EXPORT AbstractImageConverter: public PluginManager::AbstractManagi
* @ ref Feature : : ConvertCompressedData is supported . Returns ` true ` on
* success , ` false ` otherwise .
* @ see @ ref features ( ) , @ ref exportToCompressedImage ( ) ,
* @ ref exportToData ( const CompressedImageView2D & ) const
* @ ref exportToData ( const CompressedImageView2D & )
*/
bool exportToFile ( const CompressedImageView2D & image , const std : : string & filename ) const ;
bool exportToFile ( const CompressedImageView2D & image , const std : : string & filename ) ;
# ifndef DOXYGEN_GENERATING_OUTPUT
private :
@ -188,34 +188,34 @@ class MAGNUM_EXPORT AbstractImageConverter: public PluginManager::AbstractManagi
virtual Features doFeatures ( ) const = 0 ;
/** @brief Implementation of @ref exportToImage() */
virtual std : : optional < Image2D > doExportToImage ( const ImageView2D & image ) const ;
virtual std : : optional < Image2D > doExportToImage ( const ImageView2D & image ) ;
/** @brief Implementation of @ref exportToCompressedImage() */
virtual std : : optional < CompressedImage2D > doExportToCompressedImage ( const ImageView2D & image ) const ;
virtual std : : optional < CompressedImage2D > doExportToCompressedImage ( const ImageView2D & image ) ;
/** @brief Implementation of @ref exportToData(const ImageView2D&) const */
virtual Containers : : Array < char > doExportToData ( const ImageView2D & image ) const ;
/** @brief Implementation of @ref exportToData(const ImageView2D&) */
virtual Containers : : Array < char > doExportToData ( const ImageView2D & image ) ;
/** @brief Implementation of @ref exportToData(const CompressedImageView2D&) const */
virtual Containers : : Array < char > doExportToData ( const CompressedImageView2D & image ) const ;
/** @brief Implementation of @ref exportToData(const CompressedImageView2D&) */
virtual Containers : : Array < char > doExportToData ( const CompressedImageView2D & image ) ;
/**
* @ brief Implementation of @ ref exportToFile ( const ImageView2D & , const std : : string & ) const
* @ brief Implementation of @ ref exportToFile ( const ImageView2D & , const std : : string & )
*
* If @ ref Feature : : ConvertData is supported , default implementation
* calls @ ref doExportToData ( const ImageView2D & ) const and saves the
* result to given file .
* calls @ ref doExportToData ( const ImageView2D & ) and saves the result
* to given file .
*/
virtual bool doExportToFile ( const ImageView2D & image , const std : : string & filename ) const ;
virtual bool doExportToFile ( const ImageView2D & image , const std : : string & filename ) ;
/**
* @ brief Implementation of @ ref exportToFile ( const CompressedImageView2D & , const std : : string & ) const
* @ brief Implementation of @ ref exportToFile ( const CompressedImageView2D & , const std : : string & )
*
* If @ ref Feature : : ConvertCompressedData is supported , default
* implementation calls @ ref doExportToData ( const CompressedImageView2D & ) const
* implementation calls @ ref doExportToData ( const CompressedImageView2D & )
* and saves the result to given file .
*/
virtual bool doExportToFile ( const CompressedImageView2D & image , const std : : string & filename ) const ;
virtual bool doExportToFile ( const CompressedImageView2D & image , const std : : string & filename ) ;
} ;
CORRADE_ENUMSET_OPERATORS ( AbstractImageConverter : : Features )