Describes an zoom setting for the display. More...
#include <cvb/ui/ui.hpp>
Public Member Functions | |
| bool | operator== (const ZoomDescriptor &zoomDescriptor) const noexcept |
| Compares to an other zoom descriptor. | |
| bool | operator!= (const ZoomDescriptor &zoomDescriptor) const noexcept |
| Compares to an other zoom descriptor. | |
| ZoomDescriptor (ZoomID id) noexcept | |
| Constructor for a standard zoom descriptor. | |
| ZoomDescriptor (double customFactor) noexcept | |
| Constructor for a custom zoom descriptor. | |
Public Attributes | |
| ZoomID | ID = ZoomID::Invalid |
| Zoom identifier for known factors. | |
| double | Factor = std::numeric_limits<double>::quiet_NaN() |
| Numeric representation of the zoom factor. | |
Describes an zoom setting for the display.
|
inlineexplicitnoexcept |
Constructor for a standard zoom descriptor.
| [in] | id | Zoom identifier to set the factor. This does not work for CvbZoomID::Custom and CvbZoomID::Panorama. |
| Does | not throw any exception. |
|
inlineexplicitnoexcept |
Constructor for a custom zoom descriptor.
| [in] | customFactor | A custom zoom factor. The identifier will always be custom, even if, the numeric factor matches a known identifier. |
| Does | not throw any exception. |
|
inlinenoexcept |
Compares to an other zoom descriptor.
| [in] | zoomDescriptor | Other zoom descriptor. |
| Does | not throw any exception. |
|
inlinenoexcept |
Compares to an other zoom descriptor.
| [in] | zoomDescriptor | Other zoom descriptor. |
| Does | not throw any exception. |