An OpenGL window that renders raster camera video frames with rotation, zoom, and infrared support.
More...
|
|
void | initializeGL () override |
| | Initialize OpenGL state and shaders.
|
| void | onFrameUpdated (const String &id) |
| | Slot called when a new frame is available for the given feed.
|
|
void | paintGL () override |
| | Render the current camera frame to the OpenGL surface.
|
| void | resizeGL (int w, int h) override |
| | Handle window resize by updating the viewport.
|
An OpenGL window that renders raster camera video frames with rotation, zoom, and infrared support.
Used to display live camera feeds from raster-based point scanners.
Definition at line 15 of file RasterCameraRenderer.h.
◆ RasterCameraRenderer()
| RasterCameraRenderer::RasterCameraRenderer |
( |
const String & | id | ) |
|
Construct a renderer for the camera feed with the given connection ID.
- Parameters
-
| [in] | id | The camera feed identifier. |
◆ adjustRatio()
Adjust a viewport rectangle to maintain the camera aspect ratio.
- Parameters
-
| [in] | bounds | The original viewport bounds. |
| [in] | size | The target window size. |
- Returns
- The adjusted bounds preserving the aspect ratio.
◆ onFrameUpdated()
| void RasterCameraRenderer::onFrameUpdated |
( |
const String & | id | ) |
|
|
protected |
Slot called when a new frame is available for the given feed.
- Parameters
-
| [in] | id | The camera feed identifier that was updated. |
◆ resizeGL()
| void RasterCameraRenderer::resizeGL |
( |
int | w, |
|
|
int | h ) |
|
overrideprotected |
Handle window resize by updating the viewport.
- Parameters
-
| [in] | w | New width in pixels. |
| [in] | h | New height in pixels. |
◆ rotation()
| Angle< sint04 > RasterCameraRenderer::rotation |
( |
| ) |
const |
|
inline |
◆ setBackgroundColor()
| void RasterCameraRenderer::setBackgroundColor |
( |
QColor | color | ) |
|
|
inline |
Set the background color behind the camera frame.
- Parameters
-
| [in] | color | The background color. |
Definition at line 29 of file RasterCameraRenderer.h.
◆ setInfrared()
| void RasterCameraRenderer::setInfrared |
( |
bool | infrared | ) |
|
Toggle infrared display mode.
- Parameters
-
| [in] | infrared | True to display the infrared stream. |
◆ setRotation()
| void RasterCameraRenderer::setRotation |
( |
const Angle< sint04 > & | rotation | ) |
|
Set the rotation angle applied to the displayed camera frame.
- Parameters
-
References rotation().
The documentation for this class was generated from the following file: