NDEVR
API Documentation
VideoModelViewer.h
1#pragma once
2#include "DLLInfo.h"
3#include "NDEVR/Headers/Editor.h"
4namespace Ui
5{
6 class VLCVideoModelViewerUI;
7}
8namespace NDEVR
9{
10 class VlcInstance;
11}
12class VlcMedia;
13class VlcMediaPlayer;
14class EqualizerDialog;
15class QTimer;
16namespace NDEVR
17{
18 class VlcWindow;
19 class ImageView;
26 class VLC_INTERFACE_API VLCVideoModelViewer : public Editor
27 {
28 public:
34 , VlcInstance* instance, QWidget* parent = nullptr);
38 virtual void updateValues() override;
40 void startMedia();
43 void updatePlaying(bool playing);
48 void setSubtitle(const String& subtitle);
51 EditorShowMode showMode() const override;
55 bool event(QEvent* event) override;
58 virtual bool disableExport() const override { return true; }
59 protected:
60 Ui::VLCVideoModelViewerUI* ui;
62 VlcInstance* m_instance;
63 VlcMedia* m_media;
64 VlcMediaPlayer* m_player;
65 VlcWindow* m_window;
66 };
67}
DLL export macros and version definitions for the VLCInterface module.
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Definition Pointer.hpp:356
Editor(QWidget *parent=nullptr)
Constructs an Editor with no design object target.
A widget that shows a raster image or icon.
Definition ImageView.h:44
The core String class for the NDEVR API.
Definition String.h:95
Class which can be used to read a subtitle file and return the subtitle that should be played at a sp...
EditorShowMode showMode() const override
Returns the preferred show mode for this editor.
virtual ~VLCVideoModelViewer()
Destroys the VLCVideoModelViewer and releases resources.
void startMedia()
Starts playing the media associated with the design object.
virtual bool disableExport() const override
Returns whether export is disabled for this editor.
void setSubtitle(const String &subtitle)
Displays the specified subtitle text.
Ui::VLCVideoModelViewerUI * ui
The UI form for the video model viewer.
bool event(QEvent *event) override
Handles Qt events for this widget.
VlcMediaPlayer * m_player
The VLC media player.
virtual void updateValues() override
Updates the displayed values from the design object.
SubtitleFileReader * m_subtitle_reader
Reader for subtitle files.
void setupSubtitles()
Sets up subtitle display from the associated subtitle file.
VLCVideoModelViewer(const DynamicPointer< QTDesignObject > &project, VlcInstance *instance, QWidget *parent=nullptr)
Constructs a VLCVideoModelViewer.
void updatePlaying(bool playing)
Updates the UI to reflect the current playing state.
VlcInstance * m_instance
The VLC library instance.
VlcWindow * m_window
The video display window.
VlcMedia * m_media
The current VLC media object.
The primary namespace for the NDEVR SDK.
EditorShowMode
Describes how an Editor should be displayed within the application UI.
Definition Editor.h:48
Vector2< g_type > project(const Vector3< g_type > &)
Projects a 3D point to 2D by dividing by the z component.
Definition se3_ops.hpp:50