CustusX  2023.01.05-dev+develop.0da12
An IGT application
QVTKWidget3 Class Reference

#include <QVTKWidget3.h>

Inheritance diagram for QVTKWidget3:

Public Slots

virtual void MakeCurrent ()
 Slot to make this vtk render window current. More...
 
virtual void IsCurrent (vtkObject *caller, unsigned long vtk_event, void *client_data, void *call_data)
 Slot called when vtk wants to know if the context is current. More...
 
virtual void Frame ()
 Slot called when vtk wants to frame the window. More...
 
virtual void Start ()
 Slot called when vtk wants to start the render. More...
 
virtual void End ()
 Slot called when vtk wants to end the render. More...
 
virtual void IsDirect (vtkObject *caller, unsigned long vtk_event, void *client_data, void *call_data)
 Slot called when vtk wants to know if a window is direct. More...
 
virtual void SupportsOpenGL (vtkObject *caller, unsigned long vtk_event, void *client_data, void *call_data)
 Slot called when vtk wants to know if a window supports OpenGL. More...
 

Public Member Functions

 QVTKWidget3 (QWidget *parent=NULL, Qt::WindowFlags f=0, QSurfaceFormat format=QSurfaceFormat::defaultFormat())
 
virtual ~QVTKWidget3 ()
 
virtual void SetRenderWindow (vtkGenericOpenGLRenderWindow *)
 Set a custom render window. More...
 
virtual vtkGenericOpenGLRenderWindow * GetRenderWindow ()
 Returns the curren render window (creates one if none exists) More...
 
virtual QVTKInteractor * GetInteractor ()
 Returns interactor of the current render window. More...
 

Protected Member Functions

virtual void initializeGL ()
 Initialize handler. More...
 
virtual void paintGL ()
 Paint handler. More...
 
virtual void resizeGL (int, int)
 Resize handler. More...
 
virtual void moveEvent (QMoveEvent *event)
 Move handler. More...
 
virtual void mousePressEvent (QMouseEvent *event)
 
virtual void mouseMoveEvent (QMouseEvent *event)
 
virtual void mouseReleaseEvent (QMouseEvent *event)
 
virtual void keyPressEvent (QKeyEvent *event)
 
virtual void keyReleaseEvent (QKeyEvent *event)
 
virtual void enterEvent (QEvent *)
 
virtual void leaveEvent (QEvent *)
 
virtual void wheelEvent (QWheelEvent *)
 
virtual void contextMenuEvent (QContextMenuEvent *)
 
virtual void dragEnterEvent (QDragEnterEvent *)
 
virtual void dragMoveEvent (QDragMoveEvent *)
 
virtual void dragLeaveEvent (QDragLeaveEvent *)
 
virtual void dropEvent (QDropEvent *)
 
virtual bool focusNextPrevChild (bool)
 

Protected Attributes

vtkGenericOpenGLRenderWindow * m_renWin
 
QVTKInteractorAdapter * m_irenAdapter
 
vtkSmartPointer< vtkEventQtSlotConnect > m_connect
 

Detailed Description

Definition at line 14 of file QVTKWidget3.h.

Constructor & Destructor Documentation

QVTKWidget3::QVTKWidget3 ( QWidget *  parent = NULL,
Qt::WindowFlags  f = 0,
QSurfaceFormat  format = QSurfaceFormat::defaultFormat() 
)

Definition at line 9 of file QVTKWidget3.cpp.

QVTKWidget3::~QVTKWidget3 ( )
virtual

Definition at line 23 of file QVTKWidget3.cpp.

Member Function Documentation

void QVTKWidget3::contextMenuEvent ( QContextMenuEvent *  e)
protectedvirtual

Definition at line 309 of file QVTKWidget3.cpp.

void QVTKWidget3::dragEnterEvent ( QDragEnterEvent *  e)
protectedvirtual

Definition at line 317 of file QVTKWidget3.cpp.

void QVTKWidget3::dragLeaveEvent ( QDragLeaveEvent *  e)
protectedvirtual

Definition at line 333 of file QVTKWidget3.cpp.

void QVTKWidget3::dragMoveEvent ( QDragMoveEvent *  e)
protectedvirtual

Definition at line 325 of file QVTKWidget3.cpp.

void QVTKWidget3::dropEvent ( QDropEvent *  e)
protectedvirtual

Definition at line 341 of file QVTKWidget3.cpp.

void QVTKWidget3::End ( )
virtualslot

Slot called when vtk wants to end the render.

Definition at line 178 of file QVTKWidget3.cpp.

void QVTKWidget3::enterEvent ( QEvent *  e)
protectedvirtual

handle enter event

Definition at line 253 of file QVTKWidget3.cpp.

bool QVTKWidget3::focusNextPrevChild ( bool  )
protectedvirtual

Definition at line 349 of file QVTKWidget3.cpp.

void QVTKWidget3::Frame ( )
virtualslot

Slot called when vtk wants to frame the window.

Definition at line 208 of file QVTKWidget3.cpp.

QVTKInteractor * QVTKWidget3::GetInteractor ( )
virtual

Returns interactor of the current render window.

Definition at line 108 of file QVTKWidget3.cpp.

vtkGenericOpenGLRenderWindow * QVTKWidget3::GetRenderWindow ( )
virtual

Returns the curren render window (creates one if none exists)

Definition at line 31 of file QVTKWidget3.cpp.

void QVTKWidget3::initializeGL ( )
protectedvirtual

Initialize handler.

Definition at line 114 of file QVTKWidget3.cpp.

void QVTKWidget3::IsCurrent ( vtkObject *  caller,
unsigned long  vtk_event,
void *  client_data,
void *  call_data 
)
virtualslot

Slot called when vtk wants to know if the context is current.

Definition at line 190 of file QVTKWidget3.cpp.

void QVTKWidget3::IsDirect ( vtkObject *  caller,
unsigned long  vtk_event,
void *  client_data,
void *  call_data 
)
virtualslot

Slot called when vtk wants to know if a window is direct.

Definition at line 196 of file QVTKWidget3.cpp.

void QVTKWidget3::keyPressEvent ( QKeyEvent *  e)
protectedvirtual

handle key press event

Definition at line 283 of file QVTKWidget3.cpp.

void QVTKWidget3::keyReleaseEvent ( QKeyEvent *  e)
protectedvirtual

handle key release event

Definition at line 293 of file QVTKWidget3.cpp.

void QVTKWidget3::leaveEvent ( QEvent *  e)
protectedvirtual

handle leave event

Definition at line 263 of file QVTKWidget3.cpp.

void QVTKWidget3::MakeCurrent ( )
virtualslot

Slot to make this vtk render window current.

Definition at line 183 of file QVTKWidget3.cpp.

void QVTKWidget3::mouseMoveEvent ( QMouseEvent *  e)
protectedvirtual

handle mouse move event

Definition at line 243 of file QVTKWidget3.cpp.

void QVTKWidget3::mousePressEvent ( QMouseEvent *  e)
protectedvirtual

handle mouse press event

Definition at line 232 of file QVTKWidget3.cpp.

void QVTKWidget3::mouseReleaseEvent ( QMouseEvent *  e)
protectedvirtual

handle mouse release event

Definition at line 273 of file QVTKWidget3.cpp.

void QVTKWidget3::moveEvent ( QMoveEvent *  event)
protectedvirtual

Move handler.

Definition at line 155 of file QVTKWidget3.cpp.

void QVTKWidget3::paintGL ( )
protectedvirtual

Paint handler.

Definition at line 124 of file QVTKWidget3.cpp.

void QVTKWidget3::resizeGL ( int  w,
int  h 
)
protectedvirtual

Resize handler.

Definition at line 139 of file QVTKWidget3.cpp.

void QVTKWidget3::SetRenderWindow ( vtkGenericOpenGLRenderWindow *  w)
virtual

Set a custom render window.

Definition at line 44 of file QVTKWidget3.cpp.

void QVTKWidget3::Start ( )
virtualslot

Slot called when vtk wants to start the render.

Definition at line 171 of file QVTKWidget3.cpp.

void QVTKWidget3::SupportsOpenGL ( vtkObject *  caller,
unsigned long  vtk_event,
void *  client_data,
void *  call_data 
)
virtualslot

Slot called when vtk wants to know if a window supports OpenGL.

Definition at line 202 of file QVTKWidget3.cpp.

void QVTKWidget3::wheelEvent ( QWheelEvent *  e)
protectedvirtual

Definition at line 301 of file QVTKWidget3.cpp.

Member Data Documentation

vtkSmartPointer<vtkEventQtSlotConnect> QVTKWidget3::m_connect
protected

Definition at line 76 of file QVTKWidget3.h.

QVTKInteractorAdapter* QVTKWidget3::m_irenAdapter
protected

Definition at line 75 of file QVTKWidget3.h.

vtkGenericOpenGLRenderWindow* QVTKWidget3::m_renWin
protected

Definition at line 74 of file QVTKWidget3.h.


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