VTK  9.3.1
Public Slots | Signals | Public Member Functions | Protected Attributes | Properties | List of all members
QQuickVTKInteractiveWidget Class Reference

QObject that manages a VTK interactive widget to ensure that it behaves as per the QtQuick threaded render loop. More...

#include <QQuickVTKInteractiveWidget.h>

Inherits QObject.

Collaboration diagram for QQuickVTKInteractiveWidget:
[legend]

Public Slots

virtual void sync (vtkRenderer *ren)
 

Signals

void enabledChanged (bool e)
 

Public Member Functions

 QQuickVTKInteractiveWidget (QObject *parent=nullptr)
 
 ~QQuickVTKInteractiveWidget () override=default
 
void setWidget (vtkAbstractWidget *w)
 Set/Get the widget reference. More...
 
vtkAbstractWidgetwidget () const
 Set/Get the widget reference. More...
 
void setEnabled (bool e)
 Set/Get whether the widget is enabled. More...
 
bool enabled () const
 Set/Get whether the widget is enabled. More...
 

Protected Attributes

vtkWeakPointer< vtkAbstractWidgetm_widget
 
bool m_enabled = false
 

Properties

bool enabled
 

Detailed Description

QObject that manages a VTK interactive widget to ensure that it behaves as per the QtQuick threaded render loop.

QQuickVTKInteractiveWidget holds a weak reference to the vtk widget it manages.

Definition at line 27 of file QQuickVTKInteractiveWidget.h.

Constructor & Destructor Documentation

QQuickVTKInteractiveWidget::QQuickVTKInteractiveWidget ( QObject *  parent = nullptr)
QQuickVTKInteractiveWidget::~QQuickVTKInteractiveWidget ( )
overridedefault

Member Function Documentation

void QQuickVTKInteractiveWidget::setWidget ( vtkAbstractWidget w)

Set/Get the widget reference.

vtkAbstractWidget* QQuickVTKInteractiveWidget::widget ( ) const

Set/Get the widget reference.

void QQuickVTKInteractiveWidget::setEnabled ( bool  e)

Set/Get whether the widget is enabled.

bool QQuickVTKInteractiveWidget::enabled ( ) const

Set/Get whether the widget is enabled.

virtual void QQuickVTKInteractiveWidget::sync ( vtkRenderer ren)
virtualslot
void QQuickVTKInteractiveWidget::enabledChanged ( bool  e)
signal

Member Data Documentation

vtkWeakPointer<vtkAbstractWidget> QQuickVTKInteractiveWidget::m_widget
protected

Definition at line 64 of file QQuickVTKInteractiveWidget.h.

bool QQuickVTKInteractiveWidget::m_enabled = false
protected

Definition at line 67 of file QQuickVTKInteractiveWidget.h.

Property Documentation

bool QQuickVTKInteractiveWidget::enabled
readwrite

Definition at line 34 of file QQuickVTKInteractiveWidget.h.


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