2#include "Base/Headers/Vector.hpp"
3#include "Base/Headers/Bounds.hpp"
4#include "Base/Headers/String.h"
5#include <QOpenGLWindow>
6#include <QOpenGLFunctions>
7#include <opencv2/core.hpp>
10 struct OpenGLDisplayImpl;
54 QColor m_background_color;
56 OpenGLDisplayImpl* m_impl;
Stores an angle in an optimized internal format with support for efficient trigonometric operations.
A specification of upper and lower bounds in N-dimensions.
void setInfrared(bool infrared)
Toggle infrared display mode.
Angle< sint04 > rotation() const
Get the current rotation angle.
void paintGL() override
Render the current camera frame to the OpenGL surface.
RasterCameraRenderer(const String &id)
Construct a renderer for the camera feed with the given connection ID.
void setBackgroundColor(QColor color)
Set the background color behind the camera frame.
void resizeGL(int w, int h) override
Handle window resize by updating the viewport.
void initializeGL() override
Initialize OpenGL state and shaders.
void setRotation(const Angle< sint04 > &rotation)
Set the rotation angle applied to the displayed camera frame.
Bounds< 2, sint04 > adjustRatio(const Bounds< 2, sint04 > &bounds, const Vector< 2, sint04 > &size)
Adjust a viewport rectangle to maintain the camera aspect ratio.
void onFrameUpdated(const String &id)
Slot called when a new frame is available for the given feed.
The core String class for the NDEVR API.
A fixed-size array with N dimensions used as the basis for geometric and mathematical types.
The primary namespace for the NDEVR SDK.
float fltp04
Defines an alias representing a 4 byte floating-point number Bit layout is as follows: -Sign: 1 bit a...