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

A Widget wrapper around a QTGraphicsWindow that allows it to be used inside the UI framework. More...

#include <QtGraphicsWindow.h>

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

Signals

void mouseInScreenSignal (bool mouse_in_screen)
 

Public Member Functions

bool eventCallback (QEvent *event)
 
bool eventFilter (QObject *watched, QEvent *e) override
 
QTGraphicsWindowgraphicsWindow ()
 
 QTGraphicsWidget (QTGraphicsWindow *window, QWidget *parent=nullptr)
 
void setCamera (UUID camera)
 
void setModelManager (QTModelManager *manager, bool auto_add_models)
 
void updateBackgroundColor ()
 
void updateSize () override
 
virtual ~QTGraphicsWidget ()
 
- Public Member Functions inherited from WindowContainer
bool event (QEvent *event) override
 
void paintEvent (QPaintEvent *event) override
 
void resizeEvent (QResizeEvent *resize_event) override
 
void setEventForwarder (const std::function< bool(QEvent *event)> &forwarder)
 
void setWidget (QWidget *window)
 
void setWindow (QWindow *window)
 
void visibleHack ()
 
 WindowContainer (QWidget *parent=nullptr)
 
QPoint windowOffset () const
 

Protected Attributes

RGBColor m_background_color = Constant<RGBColor>::Invalid
 
QTimer * m_check_visibility_timer
 
GlobalGraphicsWidgetEventFilter * m_filter
 
QTGraphicsWindowm_window
 
- Protected Attributes inherited from WindowContainer
QWidget * m_container
 
std::function< bool(QEvent *event)> m_event_forwarder
 
QSize m_last_paint_size
 
QTimer * m_location_timer
 
QWindow * m_window
 

Additional Inherited Members

- Static Public Member Functions inherited from WindowContainer
static Qt::WindowFlags windowFlags ()
 

Detailed Description

A Widget wrapper around a QTGraphicsWindow that allows it to be used inside the UI framework.


Constructor & Destructor Documentation

◆ QTGraphicsWidget()

QTGraphicsWidget ( QTGraphicsWindow * window,
QWidget * parent = nullptr )

◆ ~QTGraphicsWidget()

virtual ~QTGraphicsWidget ( )
virtual

Member Function Documentation

◆ eventCallback()

bool eventCallback ( QEvent * event)

◆ eventFilter()

bool eventFilter ( QObject * watched,
QEvent * e )
override

◆ graphicsWindow()

QTGraphicsWindow * graphicsWindow ( )
inline

◆ mouseInScreenSignal

void mouseInScreenSignal ( bool mouse_in_screen)
signal

◆ setCamera()

void setCamera ( UUID camera)

◆ setModelManager()

void setModelManager ( QTModelManager * manager,
bool auto_add_models )

◆ updateBackgroundColor()

void updateBackgroundColor ( )

◆ updateSize()

void updateSize ( )
overridevirtual

Reimplemented from WindowContainer.

Member Data Documentation

◆ m_background_color

RGBColor m_background_color = Constant<RGBColor>::Invalid
protected

◆ m_check_visibility_timer

QTimer* m_check_visibility_timer
protected

◆ m_filter

GlobalGraphicsWidgetEventFilter* m_filter
protected

◆ m_window

QTGraphicsWindow* m_window
protected

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