OptrisOptrisDocumentation

Documentation/OTC SDK/OTC SDK — legacy C++ API referencev12.0

These are the pre-v12 classes, kept so existing code keeps building. New code should use the modern API — see Migration Guide: v11 to v12.

optris::OperationMode

Each operation mode encapsulates a valid combination of the following configuration settings:

  • Optics
  • Temperature range
  • Output video format The available operation modes depend on the device, its optics, its calibrations, the video format definitions and the type of connection to the device (USB, Ethernet).

Public types

ConstShared

std::shared_ptr< const OperationMode > ConstShared

Shared pointer type for operation modes.

Public functions

OperationMode

OperationMode()=default

Constructor.

OperationMode

OperationMode(const OperationMode &)=delete

No copy constructor.

operator=

OperationMode & operator=(const OperationMode &)=delete

No copy assignment.

OperationMode

OperationMode(OperationMode &&)=delete

No move constructor.

operator=

OperationMode & operator=(OperationMode &&)=delete

No move assignment.

~OperationMode

~OperationMode()=default

Destructor.

getIndex

int getIndex() const noexcept=0

Returns the index of the mode. Convenience method to easily locate the mode within the container returned by IRImager::getOperationModes().

Returns: index of the mode.

See also: IRImager::getOperationModes()

getFieldOfView

int getFieldOfView() const noexcept=0

Returns the number that characterises the optics.

Note: Historically documented as degrees, and for most optics it is. An optic characterised by focal length reports millimetres through this same call -- the value is unchanged, only ambiguous on its own. Ask getOpticsUnit() what it means before printing a unit.

Returns: field of view in degrees, or focal length in millimetres.

See also: OperationMode::getOpticsUnit()

getOpticsUnit

optris::sdk::OpticsUnit getOpticsUnit() const noexcept=0

Returns the unit getFieldOfView() is expressed in. Read from the calibration file's <OptId>, falling back to the camera-wide <Main><Optics> and then to degrees. Per mode, because one camera can carry two optics measured in different units.

Returns: the unit, or optris::sdk::OpticsUnit::kUnknown when this mode did not come from a calibration.

See also: OperationMode::getFieldOfView()

getOpticsText

std::string getOpticsText() const noexcept=0

Returns an optional string that further specifies the optics.

Returns: optional string that further specifies the optics.

getOpticsSerialNumber

int getOpticsSerialNumber() const noexcept=0

Returns the serial number of the optics.

Returns: serial number of the optics.

getTemperatureLowerLimit

float getTemperatureLowerLimit() const noexcept=0

Returns the lower limit temperature in °C.

Note: The returned temperature may vary depended on whether the temperature range is extended.

Returns: lower limit temperature in °C.

See also: OperationMode::isTemperatureRangeExtended()

getTemperatureUpperLimit

float getTemperatureUpperLimit() const noexcept=0

Returns the upper limit temperature in °C.

Note: The returned temperature may vary depended on whether the temperature range is extended.

Returns: upper limit temperature in °C.

See also: OperationMode::isTemperatureRangeExtended()

getTemperatureNormalLowerLimit

float getTemperatureNormalLowerLimit() const noexcept=0

Returns the lower non-extended limit temperature in °C.

Returns: lower non-extended limit temperature in °C.

getTemperatureNormalUpperLimit

float getTemperatureNormalUpperLimit() const noexcept=0

Returns the upper non-extended limit temperature in °C.

Returns: upper non-extended limit temperature in °C.

getTemperatureExtendedLowerLimit

float getTemperatureExtendedLowerLimit() const noexcept=0

Returns the lower extended limit temperature in °C. The extended limit will equal the non-extended one, if the temperature range is not extendable.

Returns: lower extended limit temperature in °C.

getTemperatureExtendedUpperLimit

float getTemperatureExtendedUpperLimit() const noexcept=0

Returns the upper extended limit temperature in °C. The extended limit will equal the non-extended one, if the temperature range is not extendable.

Returns: upper extended limit temperature in °C.

isTemperatureRangeExtended

bool isTemperatureRangeExtended() const noexcept=0

Returns whether the temperature range is currently extended. The return value depends on whether the temperature range can actually be extended and whether temperature range extension is enabled.

Returns: true, if the temperature range is currently extended. False, otherwise.

See also: OperationMode::isTemperatureRangeExtendable(), IRImager::isTemperatureRangeExtensionEnabled()

isTemperatureRangeExtendable

bool isTemperatureRangeExtendable() const noexcept=0

Returns whether the temperature range can be extended.

Note: Not all temperature ranges can be extended.

Returns: true, if the temperature range can be extended. False, otherwise.

isTemperatureHighPrecision

bool isTemperatureHighPrecision() const noexcept=0

Returns whether the temperatures were measured with high precision. The return value depends on whether the temperature range actually feature high precision measurements and whether high precision is enabled.

Returns: true if the temperatures were measured with high precision. False if the standard precision was used.

See also: OperationMode::isTemperatureHighPrecisionAvailable(), IRImager::isTemperatureHighPrecisionEnabled()

isTemperatureHighPrecisionAvailable

bool isTemperatureHighPrecisionAvailable() const noexcept=0

Returns whether measurements with high precision are available for the temperature range.

Note: Not all temperature ranges on all devices feature high precision temperature measurements.

Returns: true, if measurements with high precision are available for the temperature range. False, otherwise.

getFrameWidth

int getFrameWidth() const noexcept=0

Returns the width of the frame in pixels.

Returns: width of the frame in pixels.

getFrameHeight

int getFrameHeight() const noexcept=0

Returns the height of the frame in pixels.

Returns: height of the frame in pixels.

getFramerate

int getFramerate() const noexcept=0

Returns the framerate in Hz (not sub-sampled).

Returns: framerate in Hz (not sub-sampled).

toString

std::string toString() const noexcept=0

Returns a string representation of the operation mode.

Returns: string representation of the operation mode.