Camera-facing textured quad rendered at a focus point in the 3-D scene. More...
#include <videooverlay.h>
Public Member Functions | |
| VideoOverlay ()=default | |
| bool | isEnabled () const |
| void | setEnabled (bool enabled) |
| QVector3D | focusPosition () const |
| void | setFocusPosition (const QVector3D &pos) |
| float | sizeMeters () const |
| void | setSizeMeters (float size) |
| const QImage & | frame () const |
| bool | hasFrame () const |
| void | setFrame (const QImage &image) |
| quint64 | frameGeneration () const |
| float | opacity () const |
| void | setOpacity (float opacity) |
| QVector3D | upHint () const |
| Hint direction used as the quad's "up" axis. When set (non-zero), the quad's long edge is perpendicular to this direction instead of using the default world-up billboard. | |
| void | setUpHint (const QVector3D &dir) |
| bool | isDepthEnabled () const |
| void | setDepthEnabled (bool enabled) |
| void | setDepthFrame (const QImage &image) |
| const QImage & | depthFrame () const |
| bool | hasDepthFrame () const |
| quint64 | depthFrameGeneration () const |
| float | depthScale () const |
| void | setDepthScale (float scale) |
| int | depthSteps () const |
| void | setDepthSteps (int steps) |
Camera-facing textured quad rendered at a focus point in the 3-D scene.
The overlay displays any live RGB/video frame "as a small cut-out view" on top of the 3-D scene. It is a billboarded square positioned at focusPosition with side length sizeMeters, textured with the latest video frame.
This class is a passive data holder: BrainRenderer owns the GPU resources (vertex buffer, texture, sampler, pipeline) and reads from here each frame.
Definition at line 54 of file videooverlay.h.
|
default |
|
inline |
Definition at line 172 of file videooverlay.h.
|
inline |
Definition at line 180 of file videooverlay.h.
|
inline |
Definition at line 186 of file videooverlay.h.
|
inline |
Definition at line 196 of file videooverlay.h.
|
inline |
Definition at line 69 of file videooverlay.h.
|
inline |
Definition at line 89 of file videooverlay.h.
|
inline |
Monotonic counter, incremented on every setFrame() call.
Definition at line 116 of file videooverlay.h.
|
inline |
Definition at line 176 of file videooverlay.h.
|
inline |
Definition at line 93 of file videooverlay.h.
|
inline |
Definition at line 150 of file videooverlay.h.
|
inline |
Definition at line 59 of file videooverlay.h.
|
inline |
Definition at line 122 of file videooverlay.h.
|
inline |
Definition at line 154 of file videooverlay.h.
|
inline |
Push a new monocular depth map (single-channel or RGBA grayscale).
| [in] | image | New depth map; null images are ignored. |
Definition at line 164 of file videooverlay.h.
|
inline |
Definition at line 190 of file videooverlay.h.
|
inline |
Definition at line 200 of file videooverlay.h.
|
inline |
Definition at line 63 of file videooverlay.h.
|
inline |
Definition at line 73 of file videooverlay.h.
|
inline |
Push a new video frame; bumps the generation counter so the GPU re-uploads.
| [in] | image | New video frame; null images are ignored. |
Definition at line 103 of file videooverlay.h.
|
inline |
Definition at line 126 of file videooverlay.h.
|
inline |
Definition at line 83 of file videooverlay.h.
|
inline |
Definition at line 142 of file videooverlay.h.
|
inline |
Definition at line 79 of file videooverlay.h.
|
inline |
Hint direction used as the quad's "up" axis. When set (non-zero), the quad's long edge is perpendicular to this direction instead of using the default world-up billboard.
Definition at line 138 of file videooverlay.h.