Thermal Camera SDK 10.0.1
SDK for Optris Thermal Cameras
Loading...
Searching...
No Matches
MeasurementFieldIterator.h
Go to the documentation of this file.
1// Copyright (c) 2025 Optris GmbH Co. KG
2
10
11#pragma once
12
13#include <vector>
14
15#include "otcsdk/Api.h"
16
17
18namespace optris
19{
20
21// Forward declaration
23
24
27{
28public:
30 using Container = std::vector<unsigned short>;
31
32
39
40
46 bool hasNext() const noexcept;
47
50
51
57 unsigned short getValue() const noexcept;
58
59
65 int getIndex() const noexcept;
66
72 int getX() const noexcept;
73
79 int getY() const noexcept;
80
81
82private:
83 Container::const_iterator _iterator;
84 Container::const_iterator _end;
85
86 int _width;
87
88 int _index;
89 int _x;
90 int _y;
91};
92
93
94// Inline implementations
95inline bool ConstMeasurementFieldIterator::hasNext() const noexcept
96{
97 return _iterator != _end;
98}
99
100inline unsigned short ConstMeasurementFieldIterator::getValue() const noexcept
101{
102 return *_iterator;
103}
104
106{
107 return _index;
108}
109
110inline int ConstMeasurementFieldIterator::getX() const noexcept
111{
112 return _x;
113}
114
115inline int ConstMeasurementFieldIterator::getY() const noexcept
116{
117 return _y;
118}
119
120} // namespace optris
Contains defines controlling the Windows DLL export and import of symbols.
#define OTC_SDK_API
Only needed when working with Windows DLLs.
Definition Api.h:65
int getX() const noexcept
Returns the x-coordinate of the current measurement field value.
Definition MeasurementFieldIterator.h:110
std::vector< unsigned short > Container
Container type storing the frame values.
Definition MeasurementFieldIterator.h:30
int getIndex() const noexcept
Returns the index of the current measurement field value.
Definition MeasurementFieldIterator.h:105
OTC_SDK_API ConstMeasurementFieldIterator(const MeasurementField &field) noexcept
Constructor.
bool hasNext() const noexcept
Returns whether there is a next measurement field value.
Definition MeasurementFieldIterator.h:95
int getY() const noexcept
Returns the y-coordinate of the current measurement field value.
Definition MeasurementFieldIterator.h:115
unsigned short getValue() const noexcept
Returns the current measurement field value.
Definition MeasurementFieldIterator.h:100
OTC_SDK_API void next()
Moves to the next measurement field value.
Rectangular measurement field with individual radiation parameters.
Definition MeasurementField.h:32
Main SDK namespace.
Definition DeviceInfo.h:23