NDEVR
API Documentation
VncCameraView.h
1#pragma once
2#include "DLLInfo.h"
3#include <NDEVR/PhysicalCameraView.h>
4#include <NDEVR/String.h>
5#include <NDEVR/Resource.h>
6#include <NDEVR/File.h>
7namespace NDEVR
8{
9 class BasicThread;
10 class VncClientWidget;
11 class TcpServer;
16 class VNC_INTERFACE_API VncCameraView : public PhysicalCameraView
17 {
18 Q_OBJECT
19 public:
25 VncCameraView(DynamicPointer<Camera>& camera, QWidget* parent = nullptr);
26 virtual ~VncCameraView();
27 virtual bool setCameraSource(const StringView& connection_id) override;
28 virtual void refreshInstance() override;
31 virtual void setPassword(const StringView& password);
35 virtual void setResizeTcpServer(TcpServer* server, fltp08 size_multiplier);
36 void cleanup() override;
37 protected:
38 virtual void showToolRibbon(bool show_ribbon) override;
39 virtual bool takeImage(const File&) override { return false; };
40 virtual void invertScreenColors(bool) override {};
43 virtual ToolButtonSettings defaultButtonSettings() const override;
44 QPointer<QWidget> settingsWidget() override;
45 private:
46 VncClientWidget* m_client_widget;
47 String m_password;
48 public:
50 };
51}
A thread that executes a user-provided callback function concurrently.
Definition BasicThread.h:47
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Definition Pointer.hpp:356
Logic for reading or writing to a file as well as navigating filesystems or other common file operati...
Definition File.h:53
virtual ConstPointer< Camera > camera() const override
Returns a read-only pointer to the Camera.
PhysicalCameraView()
Default constructor for subclass use only.
The core String View class for the NDEVR API.
Definition StringView.h:58
The core String class for the NDEVR API.
Definition String.h:95
A TcpServer allows the software to receive socket connections from external sources.
Definition TcpServer.h:23
void createVNCInstance()
Creates and initializes the VNC client connection.
virtual ToolButtonSettings defaultButtonSettings() const override
Returns the default toolbar button visibility settings for this camera type.
virtual void setPassword(const StringView &password)
Sets the VNC authentication password.
BasicThread * m_start_thread
Thread for asynchronous VNC connection startup.
QPointer< QWidget > settingsWidget() override
Returns the settings widget for this camera view.
virtual void setResizeTcpServer(TcpServer *server, fltp08 size_multiplier)
Associates a TCP server for dynamic window resizing over the VNC connection.
virtual void showToolRibbon(bool show_ribbon) override
Shows or hides the tool ribbon overlay.
VncCameraView(DynamicPointer< Camera > &camera, QWidget *parent=nullptr)
Constructs a VNC camera view for the given camera.
void cleanup() override
Performs cleanup of camera resources before destruction.
virtual void refreshInstance() override
Refreshes the camera instance, reconnecting if needed.
virtual bool setCameraSource(const StringView &connection_id) override
Sets the camera source by connection string or identifier.
virtual void invertScreenColors(bool) override
Inverts the screen colors for the camera display.
virtual bool takeImage(const File &) override
Captures a single image and saves it to the specified file.
VncCameraView()
Default constructor.
A QWidget that renders the remote VNC framebuffer and forwards user input events (mouse,...
The primary namespace for the NDEVR SDK.
double fltp08
Defines an alias representing an 8 byte floating-point number.
Configuration flags controlling which tool buttons are visible in the camera toolbar.