Modernized code in guisan objects, improved GUI layout
This commit is contained in:
parent
ed31f6849d
commit
ecb56ef5be
94 changed files with 7326 additions and 7347 deletions
|
@ -63,34 +63,35 @@
|
|||
|
||||
namespace gcn
|
||||
{
|
||||
class Image;
|
||||
class Image;
|
||||
|
||||
/**
|
||||
* ImageLoaders base class. Contains basic image loading functions every
|
||||
* image loader should have. Image loaders should inherit from this
|
||||
* class and impements it's functions.
|
||||
*/
|
||||
class GCN_CORE_DECLSPEC ImageLoader
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* ImageLoaders base class. Contains basic image loading functions every
|
||||
* image loader should have. Image loaders should inherit from this
|
||||
* class and impements it's functions.
|
||||
*/
|
||||
class GCN_CORE_DECLSPEC ImageLoader
|
||||
{
|
||||
public:
|
||||
|
||||
/**
|
||||
* Destructor.
|
||||
*/
|
||||
virtual ~ImageLoader() { }
|
||||
/**
|
||||
* Destructor.
|
||||
*/
|
||||
virtual ~ImageLoader()
|
||||
= default;
|
||||
|
||||
/**
|
||||
* Loads an image by calling the image's ImageLoader.
|
||||
*
|
||||
* NOTE: The functions getPixel and putPixel in Image are only guaranteed to
|
||||
* work before an image has been converted to display format.
|
||||
*
|
||||
* @param filename the file to load.
|
||||
* @param convertToDisplayFormat true if the image should be converted
|
||||
* to display, false otherwise.
|
||||
*/
|
||||
virtual Image* load(const std::string& filename, bool convertToDisplayFormat = true) = 0;
|
||||
};
|
||||
/**
|
||||
* Loads an image by calling the image's ImageLoader.
|
||||
*
|
||||
* NOTE: The functions getPixel and putPixel in Image are only guaranteed to
|
||||
* work before an image has been converted to display format.
|
||||
*
|
||||
* @param filename the file to load.
|
||||
* @param convertToDisplayFormat true if the image should be converted
|
||||
* to display, false otherwise.
|
||||
*/
|
||||
virtual Image* load(const std::string& filename, bool convertToDisplayFormat = true) = 0;
|
||||
};
|
||||
}
|
||||
|
||||
#endif // end GCN_IMAGELOADER_HPP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue