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

#include <QtGraphicsWindow.h>

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

Signals

void mouseInScreenSignal (bool mouse_in_screen)
 

Public Member Functions

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

Protected Attributes

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

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ QTGraphicsWidget()

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

◆ ~QTGraphicsWidget()

~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>::NaN
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 files: