41#if defined(Q_OS_LINUX) && !defined(Q_OS_ANDROID)
42#include <QVulkanWindow>
51 class BasicResourceListener;
52 class QTResourceListener;
57 friend class RenderThread;
63 virtual void initialize();
64 void setCamera(
const UUID& camera)
override;
65 void exposeEvent(QExposeEvent* e)
override;
66 void setAnimating(
bool animating);
67 virtual bool visible()
const override;
68 virtual void setModelManager(
QTModelManager* manager,
bool auto_add_models);
69 void resizeEvent(QResizeEvent *resize_event)
override;
72 virtual bool shouldExit()
const override;
73 QImage getImage()
const;
74 void setExposed(
bool exposed);
75 void flushBackingStore();
79 void contextMenu(
const QPoint &pos);
82 void addCameraObjectSlot(
UUID camera_id,
UUID model);
86 void onSelectionChanged(
Buffer<UUID> selection,
bool selected);
87 void onFocusChanged(
UUID focus,
bool focussed);
88 void removeModel(
UUID model);
89 void updateFallbackStore();
90 void setOverrideMaterial(
UUID material);
97 bool event(QEvent *event)
override;
99 void createMouseListener();
100 void addRootModels();
104#if NDEVR_SUPPORTS_THREADING
105 Thread* m_render_thread;
110 QBackingStore* m_backing_store =
nullptr;
118 bool m_instance_valid =
false;
130 bool eventCallback(QEvent* event);
131 bool eventFilter(QObject* watched, QEvent* e)
override;
132 void updateSize()
override;
133 void setCamera(
UUID camera);
134 void setModelManager(
QTModelManager* manager,
bool auto_add_models);
135 void updateBackgroundColor();
143#if !NDEVR_SPECIAL_GRAPHICS_WINDOW
QWindow GraphicsWindowBase
Definition QtGraphicsWindow.h:45
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:64
Definition Pointer.hpp:303
Definition GraphicsUpdateArguments.h:40
Definition QtGraphicsWindow.h:54
bool m_animating
Definition QtGraphicsWindow.h:113
bool m_initiation_failure
Definition QtGraphicsWindow.h:116
void mouseInScreenSignal(bool mouse_in_screen)
QTResourceListener * m_mouse_manager_listener
Definition QtGraphicsWindow.h:109
QRect m_last_render_size
Definition QtGraphicsWindow.h:119
bool m_has_valid_khr
Definition QtGraphicsWindow.h:114
DynamicPointer< GraphicsDevice > m_device
Definition QtGraphicsWindow.h:120
Buffer< UUID > m_models_to_add
Definition QtGraphicsWindow.h:108
bool m_is_init
Definition QtGraphicsWindow.h:111
bool m_is_size_valid
Definition QtGraphicsWindow.h:112
void onSelectedSignal(Buffer< UUID > selected)
QTModelManager * m_manager
Definition QtGraphicsWindow.h:107
bool m_is_exposed
Definition QtGraphicsWindow.h:115
bool m_auto_add_models
Definition QtGraphicsWindow.h:117
void requestContextMenu(const QPoint &pos)
Renderer * m_render
Definition QtGraphicsWindow.h:103
Definition QTModelManager.h:94
Represents a color in the RGB space with optional alpha transparency.
Definition RGBColor.h:53
An element of a vector space. An element of the real coordinate space Rn Basis vector,...
Definition Vector.hpp:62
Definition WindowContainer.h:31
Definition BaseValues.hpp:272