CVB++ 14.0
ZoomDescriptor Class Referencefinal

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. More...
 
bool operator!= (const ZoomDescriptor &zoomDescriptor) const noexcept
 Compares to an other zoom descriptor. More...
 
 ZoomDescriptor (ZoomID id) noexcept
 Constructor for a standard zoom descriptor. More...
 
 ZoomDescriptor (double customFactor) noexcept
 Constructor for a custom zoom descriptor. More...
 

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.
 

Detailed Description

Describes an zoom setting for the display.

Examples
Cvb/QtDisplayAdvanced.

Constructor & Destructor Documentation

◆ ZoomDescriptor() [1/2]

ZoomDescriptor ( ZoomID  id)
inlinenoexcept

Constructor for a standard zoom descriptor.

Parameters
[in]idZoom identifier to set the factor. This does not work for CvbZoomID::Custom and CvbZoomID::Panorama.
Exceptions
Doesnot throw any exception.

◆ ZoomDescriptor() [2/2]

ZoomDescriptor ( double  customFactor)
inlinenoexcept

Constructor for a custom zoom descriptor.

Parameters
[in]customFactorA custom zoom factor. The identifier will always be custom, even if, the numeric factor matches a known identifier.
Exceptions
Doesnot throw any exception.

Member Function Documentation

◆ operator!=()

bool operator!= ( const ZoomDescriptor zoomDescriptor) const
inlinenoexcept

Compares to an other zoom descriptor.

Parameters
[in]zoomDescriptorOther zoom descriptor.
Returns
True if not equal, otherwise false.
Exceptions
Doesnot throw any exception.

◆ operator==()

bool operator== ( const ZoomDescriptor zoomDescriptor) const
inlinenoexcept

Compares to an other zoom descriptor.

Parameters
[in]zoomDescriptorOther zoom descriptor.
Returns
True if equal, otherwise false.
Exceptions
Doesnot throw any exception.