API Documentation
Loading...
Searching...
No Matches
QTGraphicsWindow Class Reference

#include <QtGraphicsWindow.h>

Inheritance diagram for QTGraphicsWindow:
[legend]
Collaboration diagram for QTGraphicsWindow:
[legend]

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
 
RenderergetRenderer ()
 

Protected Attributes

bool m_animating
 
bool m_auto_add_models
 
QBackingStore * m_backing_store = nullptr
 
DynamicPointer< GraphicsDevicem_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
 
QTModelManagerm_manager
 
Buffer< UUIDm_models_to_add
 
QTResourceListenerm_mouse_manager_listener
 
Rendererm_render
 
Threadm_render_thread
 

Friends

class QTGraphicsWidget
 
class RenderThread
 

Constructor & Destructor Documentation

◆ QTGraphicsWindow()

QTGraphicsWindow ( const DynamicPointer< GraphicsDevice > & device,
QWindow * parent,
Qt::WindowFlags flags )
explicit

◆ ~QTGraphicsWindow()

Member Function Documentation

◆ addCameraObjectSlot

void addCameraObjectSlot ( UUID camera_id,
UUID model )
slot

◆ addModel

void addModel ( Buffer< UUID > model)
slot

◆ addRootModels()

void addRootModels ( )
protected

◆ addScene

void addScene ( Buffer< UUID > model)
slot

◆ clearModels

void clearModels ( )
slot

◆ contextMenu

void contextMenu ( const QPoint & pos)
slot

◆ createMouseListener()

void createMouseListener ( )
protected

◆ device()

const DynamicPointer< GraphicsDevice > & device ( ) const

◆ event()

bool event ( QEvent * event)
overrideprotected

◆ exposeEvent()

void exposeEvent ( QExposeEvent * e)
override

◆ finishFrame()

void finishFrame ( GraphicsUpdateArguments & args)
override

◆ flushBackingStore()

void flushBackingStore ( )

◆ getImage()

QImage getImage ( ) const

◆ getRenderer()

Renderer * getRenderer ( )
protected

◆ initialize()

virtual void initialize ( )
virtual

Reimplemented in GLESGraphicsWindow, and VulkanGraphicsWindow.

◆ mouseInScreenSignal

void mouseInScreenSignal ( bool mouse_in_screen)
signal

◆ onFocusChanged

void onFocusChanged ( UUID focus,
bool focussed )
slot

◆ onSelectedSignal

void onSelectedSignal ( Buffer< UUID > selected)
signal

◆ onSelectionChanged

void onSelectionChanged ( Buffer< UUID > selection,
bool selected )
slot

◆ pause()

void pause ( const TimeSpan & span)

◆ removeModel

void removeModel ( UUID model)
slot

◆ renderShowing

void renderShowing ( )
signal

◆ requestContextMenu

void requestContextMenu ( const QPoint & pos)
signal

◆ resizeEvent()

void resizeEvent ( QResizeEvent * resize_event)
override

◆ setAnimating()

void setAnimating ( bool animating)

◆ setCamera()

void setCamera ( const UUID & camera)
override

◆ setExposed()

void setExposed ( bool exposed)

◆ setModelManager()

virtual void setModelManager ( QTModelManager * manager,
bool auto_add_models )
virtual

Reimplemented in VulkanGraphicsWindow.

◆ setOverrideMaterial

void setOverrideMaterial ( UUID material)
slot

◆ setSize

void setSize ( const Vector< 2, uint04 > & size)
finaloverrideslot

◆ shouldExit()

virtual bool shouldExit ( ) const
overridevirtual

◆ updateFallbackStore

void updateFallbackStore ( )
slot

◆ updateSize()

void updateSize ( )

◆ visible()

virtual bool visible ( ) const
overridevirtual

Friends And Related Symbol Documentation

◆ QTGraphicsWidget

friend class QTGraphicsWidget
friend

◆ RenderThread

friend class RenderThread
friend

Member Data Documentation

◆ m_animating

bool m_animating
protected

◆ m_auto_add_models

bool m_auto_add_models
protected

◆ m_backing_store

QBackingStore* m_backing_store = nullptr
protected

◆ m_device

DynamicPointer<GraphicsDevice> m_device
protected

◆ m_has_valid_khr

bool m_has_valid_khr
protected

◆ m_initiation_failure

bool m_initiation_failure
protected

◆ m_instance_valid

bool m_instance_valid = false
protected

◆ m_is_exposed

bool m_is_exposed
protected

◆ m_is_init

bool m_is_init
protected

◆ m_is_size_valid

bool m_is_size_valid
protected

◆ m_last_render_size

QRect m_last_render_size
protected

◆ m_manager

QTModelManager* m_manager
protected

◆ m_models_to_add

Buffer<UUID> m_models_to_add
protected

◆ m_mouse_manager_listener

QTResourceListener* m_mouse_manager_listener
protected

◆ m_render

Renderer* m_render
protected

◆ m_render_thread

Thread* m_render_thread
protected

The documentation for this class was generated from the following file: