#include <pxl_pfzutils.h>
Public Member Functions | |
| PFZInfoProvider (Image *inImage) | |
| PFZInfoProvider (Doc *inDoc) | |
| PFZInfoProvider (Storage *inStorage) | |
| bool | isPfz () const |
| size_t | getWidthLimit () const |
| size_t | getHeightLimit () const |
| size_t | getZoomLimit () const |
| size_t | getLevelLimit () const |
| Celartem::Guid | getGUID () const |
| String | getPadsAddress () const |
| bool | isPrintable () const |
| bool | isExportable () const |
| bool | isDuplicatable () const |
| bool | hasVisibleWatermark () const |
| bool | hasInvisibleWatermark () const |
| bool | isAcceptableScale (ssize_t inWidth, ssize_t inHeight) const |
Static Public Attributes | |
| static const size_t | Unlimited = (size_t)-1 |
Definition at line 26 of file pxl_pfzutils.h.
| Celartem::PFZInfoProvider::PFZInfoProvider | ( | Image * | inImage | ) |
This constructor create a PFZInfoProvider instance from an Image instance. It accepts any Image instances and the PFZInfoProvider created works correctly with non-PFZ files.
| Celartem::PFZInfoProvider::PFZInfoProvider | ( | Doc * | inDoc | ) |
This constructor create a PFZInfoProvider instance from a Doc instance. It accepts any Doc instances and the PFZInfoProvider created works correctly with non-PFZ files.
| Celartem::PFZInfoProvider::PFZInfoProvider | ( | Storage * | inStorage | ) |
This constructor create a PFZInfoProvider instance from a Storage instance. It accepts any Storage instances and the PFZInfoProvider created works correctly with non-PFZ files. Anyway, the PFZInfoProvider instance initialized with this constructor only supports isPfz, getGUID and getPadsAddress functions. The other functions return invalid values.
| bool Celartem::PFZInfoProvider::isPfz | ( | ) | const |
This function checks whether the instance is PFZ or not.
true if the instance is PFZ, otherwise false. | size_t Celartem::PFZInfoProvider::getWidthLimit | ( | ) | const |
This function returns the maximum width that the Image instance can be zoomed up to.
| size_t Celartem::PFZInfoProvider::getHeightLimit | ( | ) | const |
This function returns the maximum height that the Image instance can be zoomed up to.
| size_t Celartem::PFZInfoProvider::getZoomLimit | ( | ) | const |
This function returns the maximum zoom percentage that the Image instance can be zoomed up to.
| size_t Celartem::PFZInfoProvider::getLevelLimit | ( | ) | const |
This function returns the maximum quality level that is imposed to the image. This function only returns a valid value if the image is PFZ or VFZ.
| Celartem::Guid Celartem::PFZInfoProvider::getGUID | ( | ) | const |
This function returns the GUID of the PFZ image.
| String Celartem::PFZInfoProvider::getPadsAddress | ( | ) | const |
This function returns PixelSafe Server address of the PFZ image.
| bool Celartem::PFZInfoProvider::isPrintable | ( | ) | const |
This function checks whether this image can be printed or not. All PixelSafe Server client must obey this condition.
true if printable, otherwise false. | bool Celartem::PFZInfoProvider::isExportable | ( | ) | const |
This function checks whether this image can be exported or not. All PixelSafe Server client must obey this condition.
true if exportable, otherwise false. | bool Celartem::PFZInfoProvider::isDuplicatable | ( | ) | const |
This function checks whether this image can be duplicated or not. All PixelSafe Server client must obey this condition.
true if duplicatable, otherwise false. | bool Celartem::PFZInfoProvider::hasVisibleWatermark | ( | ) | const |
This function checks whether this image has visible watermark or not.
true if it has visible watermarks, otherwise false. | bool Celartem::PFZInfoProvider::hasInvisibleWatermark | ( | ) | const |
This function checks whether this image has invisible watermark or not.
true if it has invisible watermarks, otherwise false. | bool Celartem::PFZInfoProvider::isAcceptableScale | ( | ssize_t | inWidth, | |
| ssize_t | inHeight | |||
| ) | const |
This function verifies the specified dimensions can be acceptable or not. This verification is done based on the maximum width and the maximum height. This function is designed to ease the limit-check on zooming images and inWidth and inHeight are signed.
| inWidth | The width to zoom up to. | |
| inHeight | The height to zoom up to. |
ture if acceptable, otherwise false.
const size_t Celartem::PFZInfoProvider::Unlimited = (size_t)-1 [static] |
The functions that returns limitation information uses this value to indicate that there are no restrictions on the parameter.
Definition at line 33 of file pxl_pfzutils.h.