API Documentation
|
A Window used to render 3D graphics. This container allows for a different graphics backend to be used than the rest of the UI. More...
#include <QtGraphicsWindow.h>
Public Slots | |
void | addCameraObjectSlot (UUID camera_id, UUID model) |
void | addModel (Buffer< UUID > model) |
void | addScene (Buffer< UUID > model) |
void | clearModels () |
void | contextMenu (const QPoint &pos) |
void | onFocusChanged (UUID focus, bool focussed) |
void | onSelectionChanged (Buffer< UUID > selection, bool selected) |
void | removeModel (UUID model) |
void | setOverrideMaterial (UUID material) |
void | setSize (const Vector< 2, uint04 > &size) final override |
void | updateFallbackStore () |
Signals | |
void | mouseInScreenSignal (bool mouse_in_screen) |
void | onSelectedSignal (Buffer< UUID > selected) |
void | renderShowing () |
void | requestContextMenu (const QPoint &pos) |
Public Member Functions | |
const DynamicPointer< GraphicsDevice > & | device () const |
void | exposeEvent (QExposeEvent *e) override |
void | finishFrame (GraphicsUpdateArguments &args) override |
void | flushBackingStore () |
QImage | getImage () const |
virtual void | initialize () |
void | pause (const TimeSpan &span) |
QTGraphicsWindow (const DynamicPointer< GraphicsDevice > &device, QWindow *parent, Qt::WindowFlags flags) | |
void | resizeEvent (QResizeEvent *resize_event) override |
void | setAnimating (bool animating) |
void | setCamera (const UUID &camera) override |
void | setExposed (bool exposed) |
virtual void | setModelManager (QTModelManager *manager, bool auto_add_models) |
virtual bool | shouldExit () const override |
void | updateSize () |
virtual bool | visible () const override |
~QTGraphicsWindow () | |
Protected Member Functions | |
void | addRootModels () |
void | createMouseListener () |
bool | event (QEvent *event) override |
Renderer * | getRenderer () |
Protected Attributes | |
bool | m_animating |
bool | m_auto_add_models |
QBackingStore * | m_backing_store = nullptr |
DynamicPointer< GraphicsDevice > | m_device |
bool | m_has_valid_khr |
bool | m_initiation_failure |
bool | m_instance_valid = false |
bool | m_is_exposed |
bool | m_is_init |
bool | m_is_size_valid |
QRect | m_last_render_size |
QTModelManager * | m_manager |
Buffer< UUID > | m_models_to_add |
QTResourceListener * | m_mouse_manager_listener |
Renderer * | m_render |
Thread * | m_render_thread |
Friends | |
class | QTGraphicsWidget |
class | RenderThread |
A Window used to render 3D graphics. This container allows for a different graphics backend to be used than the rest of the UI.
|
explicit |
~QTGraphicsWindow | ( | ) |
|
protected |
|
slot |
|
slot |
|
protected |
const DynamicPointer< GraphicsDevice > & device | ( | ) | const |
|
overrideprotected |
|
override |
|
override |
void flushBackingStore | ( | ) |
QImage getImage | ( | ) | const |
|
protected |
|
virtual |
Reimplemented in GLESGraphicsWindow, and VulkanGraphicsWindow.
|
signal |
|
slot |
void pause | ( | const TimeSpan & | span | ) |
|
slot |
|
signal |
|
signal |
|
override |
void setAnimating | ( | bool | animating | ) |
|
override |
void setExposed | ( | bool | exposed | ) |
|
virtual |
Reimplemented in VulkanGraphicsWindow.
|
slot |
|
overridevirtual |
|
slot |
void updateSize | ( | ) |
|
overridevirtual |
|
friend |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |