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::IRImagerClient
Deprecated
Use optris::sdk::Imager callback setters instead. Legacy observer interface for receiving IRImager events.
Public functions
IRImagerClient
IRImagerClient()=default
Constructor.
IRImagerClient
IRImagerClient(const IRImagerClient &)=default
No copy constructor.
operator=
IRImagerClient & operator=(const IRImagerClient &)=default
No copy assignment.
IRImagerClient
IRImagerClient(IRImagerClient &&)=default
Move constructor.
operator=
IRImagerClient & operator=(IRImagerClient &&)=default
Move assignment.
~IRImagerClient
~IRImagerClient()=default
Destructor.
onConnection
void onConnection(ConnectionEvent &evt) noexcept
Called when the connection state has changed. The ConnectionState also models the process of acquiring missing calibration files.
Attention: The memory referenced by the provided event is only valid during the callback. If you wish to use it outside of the callback make an explict copy (C++) or use the clone() method (all other languages). This callback is triggered by a dedicated thread that does not block the processing loop. Slow processing in this callback will, however, block subsequent callbacks.
Parameters
| Name | Description |
|---|---|
evt |
event containing the updated connection state. |
onFrame
void onFrame(const FrameEvent &evt) noexcept
Triggered when the processing of a frame is complete.
Attention: The memory referenced by the provided event is only valid during the callback. If you wish to use it outside of the callback make an explict copy (C++) or use the clone() method (all other languages). The SDK has an internal pool of buffers that it uses to store the processing results. The buffers are resused for subsequent frames. Since this callback is now triggered by a dedicated thread it will no longer block the processing loop. But slow processing in this callback can clog the internal buffer pool and will cause the SDK to drop old processing results. The maximum possible frequency of this callback is determined by two configuration parameters: - The set frame rate of the device. This is the upper limit for the callback frequency. - The set subsampled frame rate that internally limits the device frame rate. Depending on the set ProcessingOutputConfig the provided event may contain an empty thermal frame or no measurement field data. This callback will also be triggered during the initial startup calibration phase following a successful device connection. During this time the thermal data is unreliable. You can detect this phase by checking whether the flag state stored in the meta data is set to Initializing.
Parameters
| Name | Description |
|---|---|
evt |
event containing metadata, thermal frame data and measurement field data. |
See also: FrameEvent
onRawFrame
void onRawFrame(const RawFrameEvent &evt) noexcept
Triggered when a new raw frames is available.
Attention: The memory referenced by the provided event is only valid during the callback. If you wish to use it outside of the callback make an explict copy (C++) or use the clone() method (all other languages). The SDK has an internal pool of buffers that it uses to store the processing results. The buffers are resused for subsequent frames. Since this callback is now triggered by a dedicated thread it will no longer block the processing loop. But slow processing in this callback can clog the internal buffer pool and will cause the SDK to drop old processing results. The maximum possible frequency of this callback is determined by the set frame rate of the device, and it IS affected by the set subsampled frame rate and by the export-law frame cap: raw frames are delivered through the same gate as every other frame output, so an export-restricted camera triggers this callback at most 9 times a second. This paragraph said the opposite until version 12 -- "unaffected by the set subsampled frame rate" -- which described a dispatch path that no longer exists and documented an uncapped contract the SDK must not honour. The callback will not be triggered if ProcessingOutputConfig::rawFrames is set to false.
Parameters
| Name | Description |
|---|---|
evt |
event containing metadata and raw frame data. |
See also: RawFrameEvent
onVideoFormatChanged
void onVideoFormatChanged(const VideoFormatEvent &evt) noexcept
Called when the video format changed.
Attention: The memory referenced by the provided event is only valid during the callback. If you wish to use it outside of the callback make an explict copy (C++) or use the clone() method (all other languages). This callback is triggered by a dedicated thread that does not block the processing loop. Slow processing in this callback will, however, block subsequent callbacks.
Parameters
| Name | Description |
|---|---|
evt |
event containing the updated video format information. |
See also: VideoFormatEvent
onCompositeAlarm
void onCompositeAlarm(const CompositeAlarmEvent &evt) noexcept
Called when the state of the composite alarm changes.
Attention: The memory referenced by the provided event is only valid during the callback. If you wish to use it outside of the callback make an explict copy with a simple assignment (C++) or the clone() method (all other languages). The callback will not be triggered, if none of the active alarm channels is configured to be part of the composite alarm. This callback is triggered by a dedicated thread that does not block the processing loop. Slow processing in this callback will, however, block subsequent callbacks.
Parameters
| Name | Description |
|---|---|
evt |
event containing the composite alarm information. |
See also: CompositeAlarmEvent
onAlarm
void onAlarm(const AlarmEvent &evt) noexcept
Called when the state of an alarm channel changes.
Attention: The memory referenced by the provided event is only valid during the callback. If you wish to use it outside of the callback make an explict copy with a simple assignment (C++) or the clone() method (all other languages). This callback is triggered by a dedicated thread that does not block the processing loop. Slow processing in this callback will, however, block subsequent callbacks.
Parameters
| Name | Description |
|---|---|
evt |
event containing the alarm information. |
See also: AlarmEvent
onPifUncommittedValue
void onPifUncommittedValue(const UncommittedValueEvent &evt) noexcept
Called when an updated uncommitted value is available. The callback is only triggered when the corresponding PIF analog input signal has changed.
Attention: The memory referenced by the provided event is only valid during the callback. If you wish to use it outside of the callback make an explict copy with a simple assignment (C++) or the clone() method (all other languages). This callback is triggered by a dedicated thread that does not block the processing loop. Slow processing in this callback will, however, block subsequent callbacks.
Parameters
| Name | Description |
|---|---|
evt |
event containing the updated uncommitted value. |
See also: UncommittedValueEvent
onOperationInfo
void onOperationInfo(const OperationInfoEvent &evt) noexcept
Called when a new set of operation module tracing information is available.
Attention: The memory referenced by the provided event is only valid during the callback. If you wish to use it outside of the callback make an explict copy with a simple assignment (C++) or the clone() method (all other languages). The SDK has an internal pool of buffers that it uses to store the processing results. The buffers are resused for subsequent frames. Since this callback is now triggered by a dedicated thread it will no longer block the processing loop. But slow processing in this callback can clog the internal buffer pool and will cause the SDK to drop old processing results. The maximum possible frequency of this callback is determined by the interval time provided when configuring the operation info tracing via IRImager::configureOperationInfo(). If the interval is set to 0, this callback will not be triggered at all.
Parameters
| Name | Description |
|---|---|
evt |
event containing the updated operation mode tracing information. |
See also: OperationInfoEvent, IRImager::configureOperationInfo()