![]() |
Thermal Camera SDK 10.1.1
SDK for Optris Thermal Cameras
|
Interface defining the API for interacting with Optris thermal cameras. More...
#include <IRImager.h>

Public Member Functions | |
| IRImager ()=default | |
| Constructor. | |
| IRImager (const IRImager &)=delete | |
| No copy constructor. | |
| IRImager & | operator= (const IRImager &)=delete |
| No copy assignment. | |
| IRImager (IRImager &&)=delete | |
| No move constructor. | |
| IRImager & | operator= (IRImager &&)=delete |
| No move assignment. | |
| virtual | ~IRImager ()=default |
| Destructor. | |
| virtual void | connect (IRImagerConfig config)=0 |
| Connects to the device with the given configuration. | |
| virtual void | connect (const DeviceInfo &deviceInfo)=0 |
| Connects to the device with the given device information. | |
| virtual void | connect (unsigned long serialNumber)=0 |
| Connects to the device with the given serial number. | |
| virtual void | disconnect ()=0 |
| Disconnects from the current device. | |
| virtual bool | isConnected () const noexcept=0 |
| Returns whether a connection is established. | |
| virtual void | addClient (IRImagerClient *client)=0 |
| Adds an observer/client that will be updated when new data arrives. | |
| virtual bool | removeClient (IRImagerClient *client)=0 |
| Removes the given observer/client. | |
| virtual void | run ()=0 |
| Runs the processing loop continuously. | |
| virtual bool | runAsync ()=0 |
| Runs the processing loop continuously in a dedicated thread. | |
| virtual void | stopRunning ()=0 |
| Stops the continuously running processing loop. | |
| virtual bool | isRunning () const noexcept=0 |
| Returns whether the processing loop is currently running. | |
| virtual DeviceType | getDeviceType () const =0 |
| Returns the type of device the IRImager is connected to. | |
| virtual unsigned long | getSerialNumber () const =0 |
| Returns the serial number of the connected device. | |
| virtual unsigned int | getHardwareRevision () const =0 |
| Returns the hardware revision of the connected device. | |
| virtual unsigned int | getFirmwareRevision () const =0 |
| Returns the firmware revision of the connected device. | |
| virtual std::string | getConnectionInterface () const noexcept=0 |
| Returns the name of the connection interface used to communication with the device. | |
| virtual IpAddress | getIpAddress () const noexcept=0 |
| Returns the IP address of the connected device. | |
| virtual Port | getPort () const noexcept=0 |
| Returns the number of the port on which the device data is received. | |
| virtual std::vector< std::shared_ptr< OperationMode > > | getOperationModes ()=0 |
| Returns the operation modes for the currently connected device. | |
| virtual void | setActiveOperationMode (const std::shared_ptr< OperationMode > &mode)=0 |
| Sets the active operation mode for the currently connected device. | |
| virtual void | setActiveOperationMode (int opticsFieldOfView, const std::string &opticsText, float temperatureLowerLimit, float temperatureUpperLimit, int width, int height, int framerate)=0 |
| Sets the active operation mode for the currently connected device. | |
| virtual std::shared_ptr< OperationMode > | getActiveOperationMode ()=0 |
| Returns the active operation mode for the currently connected device. | |
| virtual void | setSoSCorrectionEnabled (bool enable)=0 |
| Enables or disables the Size of Source Correction. | |
| virtual bool | isSoSCorrectionEnabled () const =0 |
| Checks if the Size of Source Correction is enabled. | |
| virtual void | setTemperatureRangeExtensionEnabled (bool enabled)=0 |
| Die-/Enables temperature range extension. | |
| virtual bool | isTemperatureRangeExtensionEnabled () const noexcept=0 |
| Returns whether the temperature ranges are being extended. | |
| virtual void | setTemperatureHighPrecisionEnabled (bool enabled)=0 |
| Dis-/Enables high precision temperature measurements. | |
| virtual bool | isTemperatureHighPrecisionEnabled () const noexcept=0 |
| Returns whether high precision temperature measurements are enabled. | |
| virtual int | getWidth () const =0 |
| Returns the width in pixels of the thermal frame. | |
| virtual int | getHeight () const =0 |
| Returns the height in pixels of thermal frame. | |
| virtual int | addMeasurementField (const MeasurementFieldConfig &config)=0 |
| Adds a measurement field that is processed for every new thermal frame. | |
| virtual void | setAutoFlagEnabled (bool enable)=0 |
| Sets the automatic triggering of flag cycles en-/disabled. | |
| virtual bool | isAutoFlagEnabled () const =0 |
| Returns whether flag cycles are triggered automatically. | |
| virtual void | setFlagInterval (float minInterval, float maxInterval)=0 |
| Sets the minimum and maximum flag intervals in seconds. | |
| virtual float | getFlagMinInterval () const =0 |
| Returns the minimum flag interval in seconds. | |
| virtual float | getFlagMaxInterval () const =0 |
| Returns the maximum flag interval in seconds. | |
| virtual void | forceFlagEvent (float time=0.F)=0 |
| Force a flag cycle manually. | |
| virtual bool | isFlagOpen () const =0 |
| Returns whether the shutter flag is open. | |
| virtual void | setFlagForecastEnabled (bool enable)=0 |
| Set the shutter flag forecast en-/disabled. | |
| virtual bool | isFlagForecastEnabled () const =0 |
| Returns whether the shutter flag forecast is en-/disabled. | |
| virtual float | getTemperatureFlag () const =0 |
| Returns the temperature of the shutter flag in °C. | |
| virtual float | getTemperatureBox () const =0 |
| Returns the temperature of the device housing in °C. | |
| virtual float | getTemperatureChip () const =0 |
| Returns the temperature of the sensor chip. | |
| virtual void | setChipHeatingEnabled (bool enable)=0 |
| Enables the heating of the sensor chip. | |
| virtual bool | isChipHeatingEnabled () const =0 |
| Return whether the sensor chip heating is enabled. | |
| virtual void | setTemperatureChipReference (float temperature)=0 |
| Sets the reference temperature in °C for the sensor chip heating. | |
| virtual float | getTemperatureChipReference () const =0 |
| Returns the reference temperature in °C of the sensor chip heating. | |
| virtual RadiationParameterSource | getEmissivitySource () const noexcept=0 |
| Returns the source that currently defines the emissivity for the thermal frame. | |
| virtual RadiationParameterSource | getTransmissivitySource () const noexcept=0 |
| Returns the source that currently defines the transmissivity for the thermal frame. | |
| virtual RadiationParameterSource | getAmbientTemperatureSource () const noexcept=0 |
| Returns the source that currently defines the ambient temperature for the thermal frame. | |
| virtual void | setRadiationParameters (const RadiationParameters &radiation)=0 |
| Sets the radiation parameters (emissivity, transmissivity and ambient temperature). | |
| virtual RadiationParameters | getRadiationParameters () const =0 |
| Returns the set/configured radiation parameters. | |
| virtual void | setFocusMotorPosition (float position)=0 |
| Sets the position of the focus motor. | |
| virtual float | getFocusMotorPosition () const =0 |
| Returns the position of the focus motor. | |
| virtual void | setReferenceTemperature (float referenceTemperature, float measuredTemperature, float ambientTemperature=INVALID_TEMPERATURE)=0 |
| Sets a reference temperature to a known reference source inside the view of the device to improve measurement accuracy. | |
| virtual void | resetReferenceTemperature ()=0 |
| Resets a previously set reference temperature. | |
| virtual void | setDeviceNetworkConfig (const DeviceNetworkConfig &networkConfig)=0 |
| Sets the network configuration of the device. | |
| virtual DeviceNetworkConfig | getDeviceNetworkConfig ()=0 |
| Returns the network configuration of the device. | |
| virtual ProcessInterface & | getPif ()=0 |
| Grants access to the process interface. | |
| virtual const ProcessInterface & | getPif () const =0 |
| Grants read access to the process interface. | |
| virtual void | interruptFailSafe (bool active, const std::string &reason)=0 |
| Interrups the all clear fail safe signal. | |
Interface defining the API for interacting with Optris thermal cameras.
|
pure virtual |
Adds an observer/client that will be updated when new data arrives.
| [in] | client | callback client. |
|
pure virtual |
Adds a measurement field that is processed for every new thermal frame.
The resulting data can be accessed via the IRImagerClient::onMeasurementField() callback.
| [in] | config | of the measurement field to add. |
| SDKException | if not connected or if the measurement field is not completely within the thermal frame or if adding it failed. |
|
pure virtual |
Connects to the device with the given device information.
EnumerationManager to find a device to connect to.| [in] | deviceInfo | device information. |
| SDKException | if connecting fails. |
|
pure virtual |
Connects to the device with the given configuration.
EnumerationManager to find a device to connect to. Its remaining data points will be ignored and the SDK will generate a default configuration for the detected device but without saving it.| [in] | config | configuration. |
| SDKException | if connecting fails. |
|
pure virtual |
Connects to the device with the given serial number.
EnumerationManager to find a device to connect to.| [in] | serialNumber | of the device. |
| SDKException | if connecting fails. |
|
pure virtual |
Force a flag cycle manually.
| [in] | time | point of time in future in milliseconds, when the shutter flag should be closed. |
| SDKException | if not connected. |
|
pure virtual |
Returns the active operation mode for the currently connected device.
Each operation mode holds a valid combination of optics, temperature range and video format settings for the currently connected device.
| SDKException | if not connected. |
|
pure virtualnoexcept |
Returns the source that currently defines the ambient temperature for the thermal frame.
|
pure virtualnoexcept |
Returns the name of the connection interface used to communication with the device.
|
pure virtual |
Returns the network configuration of the device.
| SDKException | if not connect via USB or if device does not support Ethernet or if getting the device network configuration failed. |
|
pure virtual |
|
pure virtualnoexcept |
Returns the source that currently defines the emissivity for the thermal frame.
|
pure virtual |
Returns the firmware revision of the connected device.
|
pure virtual |
Returns the maximum flag interval in seconds.
Maximum time that can elapse before a new flag cycle is triggered.
|
pure virtual |
Returns the minimum flag interval in seconds.
Minimum time that has to elapse before a new flag cycle is triggered.
|
pure virtual |
Returns the position of the focus motor.
|
pure virtual |
Returns the hardware revision of the connected device.
|
pure virtual |
Returns the height in pixels of thermal frame.
|
pure virtualnoexcept |
Returns the IP address of the connected device.
|
pure virtual |
Returns the operation modes for the currently connected device.
Each operation mode holds a valid combination of optics, temperature range and video format settings for the currently connected device.
The returned container is always sorted in an ascending order based on the optics, temperature range and video format properties.
With OperationMode::getIndex() you can conveniently inquire a mode for its index within the returned container.
| SDKException | if not connected. |
|
pure virtual |
Grants read access to the process interface.
| SDKException | if not connected. |
|
pure virtual |
Grants access to the process interface.
| SDKException | if not connected. |
|
pure virtualnoexcept |
Returns the number of the port on which the device data is received.
|
pure virtual |
Returns the set/configured radiation parameters.
To get the actually applied parameters see the FrameMetadata::getRadiationParameters() for the thermal frame and the MeasurementField::getRadiationParameters() for measurement fields.
|
pure virtual |
Returns the serial number of the connected device.
|
pure virtual |
Returns the temperature of the device housing in °C.
|
pure virtual |
Returns the temperature of the sensor chip.
|
pure virtual |
Returns the reference temperature in °C of the sensor chip heating.
|
pure virtual |
Returns the temperature of the shutter flag in °C.
|
pure virtualnoexcept |
Returns the source that currently defines the transmissivity for the thermal frame.
|
pure virtual |
Returns the width in pixels of the thermal frame.
|
pure virtual |
Interrups the all clear fail safe signal.
| [in] | active | if true the all clear signal is interrupted. If false, the all clear may be restored, if all other sources report an all clear. |
| [in] | reason | to be displayed in the logs. |
| SDKException | if not connected. |
|
pure virtual |
Returns whether flag cycles are triggered automatically.
|
pure virtual |
Return whether the sensor chip heating is enabled.
|
pure virtualnoexcept |
Returns whether a connection is established.
|
pure virtual |
Returns whether the shutter flag forecast is en-/disabled.
|
pure virtual |
Returns whether the shutter flag is open.
|
pure virtualnoexcept |
Returns whether the processing loop is currently running.
|
pure virtual |
Checks if the Size of Source Correction is enabled.
| SDKException | if not connected. |
|
pure virtualnoexcept |
Returns whether high precision temperature measurements are enabled.
|
pure virtualnoexcept |
Returns whether the temperature ranges are being extended.
|
pure virtual |
Removes the given observer/client.
| [in] | client | to remove. |
|
pure virtual |
Resets a previously set reference temperature.
| SDKException | if not connected. |
|
pure virtual |
Runs the processing loop continuously.
Blocks until stopRunning() or disconnect() is called from another thread or until the application terminates.
|
pure virtual |
Runs the processing loop continuously in a dedicated thread.
Runs until stopRunning() or disconnect() is called from another thread or until the application terminates.
|
pure virtual |
Sets the active operation mode for the currently connected device.
Each operation mode holds a valid combination of optics, temperature range and video format settings for the currently connected device.
| [in] | mode | to set active. |
| SDKException | if not connected, if mode is not supported by device or if applying the mode fails. |
|
pure virtual |
Sets the active operation mode for the currently connected device.
Each operation mode holds a valid combination of optics, temperature range and video format settings for the currently connected device.
| [in] | opticsFieldOfView | in degrees. |
| [in] | opticsText | further specifying the optics if the field of view is not unique enough. |
| [in] | temperatureLowerLimit | in degree Celsius (not extended). |
| [in] | temperatureUpperLimit | in degree Celsius (not extended). |
| [in] | width | in pixel of the output frame. |
| [in] | height | in pixel of the output frame. |
| [in] | framerate | in Hz (not sub-sampled). |
| SDKException | SDKException if not connected, if mode is not supported by device or if applying the mode fails. |
|
pure virtual |
Sets the automatic triggering of flag cycles en-/disabled.
| [in] | enable | or disable automatic triggering of flag cycles. |
|
pure virtual |
Enables the heating of the sensor chip.
| [in] | enable | indicates whether to enable heating. |
| SDKException | if not connected. |
|
pure virtual |
Sets the network configuration of the device.
| [in] | networkConfig | to set. |
| SDKException | if not connect via USB or if device does not support Ethernet or if setting the device network configuration failed. |
|
pure virtual |
Set the shutter flag forecast en-/disabled.
| enable | of disable the shutter flag forecast. |
| SDKException | if not connected. |
|
pure virtual |
Sets the minimum and maximum flag intervals in seconds.
| [in] | minInterval | minimal time in seconds that has to elapse before a new flag cycle is triggered. |
| [in] | maxInterval | maximum time in seconds that can elapse until a new flag cycle is triggered. Set to 0 to deactivate. |
| SDKException | if provided intervals are negative. |
|
pure virtual |
Sets the position of the focus motor.
The position should be in [0, 100] %. If not, the position will automatically be clipped.
| [in] | position | focus motor position in %. |
| SDKException | if not connected or if no focus motor is available. |
|
pure virtual |
Sets the radiation parameters (emissivity, transmissivity and ambient temperature).
| [in] | radiation | parameters to set. |
| SDKException | if not connected or if parameters are invalid or if setting the parameters fails. |
|
pure virtual |
Sets a reference temperature to a known reference source inside the view of the device to improve measurement accuracy.
| [in] | referenceTemperature | real temperature of reference source. |
| [in] | measuredTemperature | measured temperature from the device of reference source. |
| [in] | ambientTemperature | in °C. Set it to INVALID_TEMPERATURE or less to force the SDK to estimate the ambient temperature based on thermal probe readings of the device. |
| SDKException | if not connected. |
|
pure virtual |
Enables or disables the Size of Source Correction.
| [in] | enable | indicates whether to enable or disable the Size of Source Correction. |
| SDKException | if not connected. |
|
pure virtual |
Sets the reference temperature in °C for the sensor chip heating.
The specified temperature should be in [20, 55] °C. If not, the temperature will automatically be clipped. The current chip temperature can be monitored with getTemperatureChip().
| [in] | temperature | to set in °C. |
| SDKException | if not connected. |
|
pure virtual |
Dis-/Enables high precision temperature measurements.
| [in] | enabled | if true high temperature measurements are enabled. |
| SDKException | if setting enabled failed or if not connected. |
|
pure virtual |
Die-/Enables temperature range extension.
| [in] | enabled | if true temperature range extension is enabled. |