2#include <NDEVR/PhysicalCameraView.h>
3#include <NDEVR/Vector.h>
4#include <NDEVR/Bounds.h>
7 class RealSenseCameraRenderer;
73 RealSenseCameraRenderer* m_renderer;
74 Time m_start_record_time;
75 File m_video_record_file;
Stores an angle in an optimized internal format with support for efficient trigonometric operations.
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Logic for reading or writing to a file as well as navigating filesystems or other common file operati...
A PhysicalCameraViewFactory that creates OpenCV/RealSense-based camera views.
virtual PhysicalCameraView * createView(const DynamicPointer< Camera > &camera, QWidget *parent) override
Creates a camera view widget for the given camera.
virtual void resetToDefaults() override
Resets the factory to default settings.
virtual bool canCreateView(const DynamicPointer< Camera > &camera, QWidget *parent) override
Checks whether this factory can create a view for the given camera.
Factory for creating PhysicalCameraView instances and querying supported output formats.
A Viewport that represents a physical camera stream, or real world camera view.
virtual ConstPointer< Camera > camera() const override
Returns a read-only pointer to the Camera.
PhysicalCameraView()
Default constructor for subclass use only.
virtual void setRecordingState(RecordingState recording_state) override
Sets the recording state of the camera view.
virtual void invertScreenColors(bool invert) override
Inverts the screen colors for the camera display.
virtual void refreshInstance() override
Refreshes the camera instance and reconnects if needed.
virtual Angle< fltp08 > cameraRotation() override
Gets the current camera rotation angle.
virtual bool setCameraSource(const String &connection_id) override
Sets the camera source by connection identifier.
virtual ~RealSenseCameraView()
Destructor.
void cleanup() override
Cleans up camera resources.
bool startRecord(const File &file) override
Starts recording video to the given file.
bool finishRecord(const File &file) override
Stops recording and finalizes the video file.
virtual void setCameraZoom(fltp08 zoom) override
Sets the zoom level for the camera display.
virtual QImage grabFramebuffer() override
Captures the current frame as a QImage.
virtual void setCameraRotation(Angle< fltp08 > rotation) override
Sets the rotation angle for the camera display.
virtual bool takeImage(const File &file) override
Captures a single image to a file.
RealSenseCameraView()
Default constructor.
RealSenseCameraView(const DynamicPointer< Camera > &camera, QWidget *parent=nullptr)
Constructs a RealSenseCameraView with a camera and parent widget.
The core String class for the NDEVR API.
Represents a timestamp with utilities for manipulation and conversion.
The primary namespace for the NDEVR SDK.
double fltp08
Defines an alias representing an 8 byte floating-point number.
@ file
The source file path associated with this object.