3#include "NDEVR/Headers/Editor.h"
6 class VLCVideoModelViewerUI;
34 , VlcInstance* instance, QWidget* parent =
nullptr);
60 Ui::VLCVideoModelViewerUI*
ui;
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Editor(QWidget *parent=nullptr)
Constructs an Editor with no design object target.
A widget that shows a raster image or icon.
The core String class for the NDEVR API.
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.
Vector2< g_type > project(const Vector3< g_type > &)
Projects a 3D point to 2D by dividing by the z component.