35 friend class ConstFrameIterator;
186 return ConstFrameIterator{*
this};
201 return static_cast<int>(
_values.size());
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
Contains the exceptions raised by the SDK.
Contains a class that realizes the iteration over Frames.
std::vector< unsigned short > _values
Frame data.
Definition Frame.h:172
OTC_SDK_API const unsigned short * getData() const noexcept
Returns a pointer to the first element of the internal value array.
Definition Frame.h:214
OTC_SDK_API unsigned short getValue(int index) const noexcept(false)
Returns the frame data value at the given index.
OTC_SDK_API ConstFrameIterator getConstIterator() const noexcept
Returns an iterator with read access.
Definition Frame.h:184
OTC_SDK_API void setData(const unsigned short *source)
Sets the frame data values.
OTC_SDK_API void resize(int width, int height)
Resizes the frame.
OTC_SDK_API bool isEmpty() const noexcept
Returns whether the frame is empty.
Definition Frame.h:204
OTC_SDK_API void copyDataTo(unsigned short *destination, int size) const noexcept
Copies the internal values to the destination array.
OTC_SDK_API int getSize() const noexcept
Returns the overall size in pixels of the frame (width * height).
Definition Frame.h:199
OTC_SDK_API void clear()
Clears the frame data.
OTC_SDK_API Frame clone() const noexcept
Returns a complete copy of this frame.
Definition Frame.h:209
OTC_SDK_API int getWidth() const noexcept
Returns the width in pixels of the frame.
Definition Frame.h:189
OTC_SDK_API void setFromRawData(const void *source)
Sets the frame data values from raw data.
OTC_SDK_API Frame() noexcept
Constructor.
OTC_SDK_API int getHeight() const noexcept
Returns the height in pixel of the frame.
Definition Frame.h:194
Main SDK namespace.
Definition DeviceInfo.h:23