VTK  9.1.0
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 ()=default
 
void setWidget (vtkAbstractWidget *w)
 Set/Get the widget reference.
 
vtkAbstractWidgetwidget () const
 Set/Get the widget reference.
 
void setEnabled (bool e)
 Set/Get whether the widget is enabled.
 
bool enabled () const
 Set/Get whether the widget is enabled.
 

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 38 of file QQuickVTKInteractiveWidget.h.

Constructor & Destructor Documentation

◆ QQuickVTKInteractiveWidget()

QQuickVTKInteractiveWidget::QQuickVTKInteractiveWidget ( QObject *  parent = nullptr)

◆ ~QQuickVTKInteractiveWidget()

QQuickVTKInteractiveWidget::~QQuickVTKInteractiveWidget ( )
default

Member Function Documentation

◆ setWidget()

void QQuickVTKInteractiveWidget::setWidget ( vtkAbstractWidget w)

Set/Get the widget reference.

◆ widget()

vtkAbstractWidget * QQuickVTKInteractiveWidget::widget ( ) const

Set/Get the widget reference.

◆ setEnabled()

void QQuickVTKInteractiveWidget::setEnabled ( bool  e)

Set/Get whether the widget is enabled.

◆ enabled()

bool QQuickVTKInteractiveWidget::enabled ( ) const

Set/Get whether the widget is enabled.

◆ sync

virtual void QQuickVTKInteractiveWidget::sync ( vtkRenderer ren)
virtualslot

◆ enabledChanged

void QQuickVTKInteractiveWidget::enabledChanged ( bool  e)
signal

Member Data Documentation

◆ m_widget

vtkWeakPointer<vtkAbstractWidget> QQuickVTKInteractiveWidget::m_widget
protected

Definition at line 73 of file QQuickVTKInteractiveWidget.h.

◆ m_enabled

bool QQuickVTKInteractiveWidget::m_enabled = false
protected

Definition at line 76 of file QQuickVTKInteractiveWidget.h.

Property Documentation

◆ enabled

bool QQuickVTKInteractiveWidget::enabled
readwrite

Definition at line 41 of file QQuickVTKInteractiveWidget.h.


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