VTK
Public Slots | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
QVTKGraphicsItem Class Reference

#include <QVTKGraphicsItem.h>

Inherits QGraphicsWidget.

Collaboration diagram for QVTKGraphicsItem:
[legend]

Public Slots

virtual void Update ()
 

Public Member Functions

 QVTKGraphicsItem (QGLContext *ctx, QGraphicsItem *p=0)
 
 ~QVTKGraphicsItem ()
 
void SetRenderWindow (vtkGenericOpenGLRenderWindow *win)
 
vtkGenericOpenGLRenderWindowGetRenderWindow () const
 
QVTKInteractorGetInteractor () const
 

Protected Slots

virtual void MakeCurrent ()
 
virtual void Start ()
 
virtual void End ()
 
virtual void IsCurrent (vtkObject *caller, unsigned long vtk_event, void *client_data, void *call_data)
 
virtual void IsDirect (vtkObject *caller, unsigned long vtk_event, void *client_data, void *call_data)
 
virtual void SupportsOpenGL (vtkObject *caller, unsigned long vtk_event, void *client_data, void *call_data)
 

Protected Member Functions

void keyPressEvent (QKeyEvent *e)
 
void keyReleaseEvent (QKeyEvent *e)
 
void mousePressEvent (QGraphicsSceneMouseEvent *e)
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *e)
 
void mouseMoveEvent (QGraphicsSceneMouseEvent *e)
 
void resizeEvent (QGraphicsSceneResizeEvent *e)
 
void moveEvent (QGraphicsSceneMoveEvent *e)
 
void wheelEvent (QGraphicsSceneWheelEvent *e)
 
void hoverEnterEvent (QGraphicsSceneHoverEvent *e)
 
void hoverLeaveEvent (QGraphicsSceneHoverEvent *e)
 
void hoverMoveEvent (QGraphicsSceneHoverEvent *e)
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
 

Protected Attributes

QGLContext * mContext
 
QGLFramebufferObject * mFBO
 
vtkSmartPointer< vtkGenericOpenGLRenderWindowmWin
 
vtkSmartPointer< QVTKInteractormIren
 
QVTKInteractorAdaptermIrenAdapter
 
vtkSmartPointer< vtkEventQtSlotConnectmConnect
 

Detailed Description

Definition at line 40 of file QVTKGraphicsItem.h.

Constructor & Destructor Documentation

◆ QVTKGraphicsItem()

QVTKGraphicsItem::QVTKGraphicsItem ( QGLContext *  ctx,
QGraphicsItem *  p = 0 
)

◆ ~QVTKGraphicsItem()

QVTKGraphicsItem::~QVTKGraphicsItem ( )

Member Function Documentation

◆ SetRenderWindow()

void QVTKGraphicsItem::SetRenderWindow ( vtkGenericOpenGLRenderWindow win)

◆ GetRenderWindow()

vtkGenericOpenGLRenderWindow* QVTKGraphicsItem::GetRenderWindow ( ) const

◆ GetInteractor()

QVTKInteractor* QVTKGraphicsItem::GetInteractor ( ) const

◆ Update

virtual void QVTKGraphicsItem::Update ( )
virtualslot

◆ MakeCurrent

virtual void QVTKGraphicsItem::MakeCurrent ( )
protectedvirtualslot

◆ Start

virtual void QVTKGraphicsItem::Start ( )
protectedvirtualslot

◆ End

virtual void QVTKGraphicsItem::End ( )
protectedvirtualslot

◆ IsCurrent

virtual void QVTKGraphicsItem::IsCurrent ( vtkObject caller,
unsigned long  vtk_event,
void *  client_data,
void *  call_data 
)
protectedvirtualslot

◆ IsDirect

virtual void QVTKGraphicsItem::IsDirect ( vtkObject caller,
unsigned long  vtk_event,
void *  client_data,
void *  call_data 
)
protectedvirtualslot

◆ SupportsOpenGL

virtual void QVTKGraphicsItem::SupportsOpenGL ( vtkObject caller,
unsigned long  vtk_event,
void *  client_data,
void *  call_data 
)
protectedvirtualslot

◆ keyPressEvent()

void QVTKGraphicsItem::keyPressEvent ( QKeyEvent *  e)
protected

◆ keyReleaseEvent()

void QVTKGraphicsItem::keyReleaseEvent ( QKeyEvent *  e)
protected

◆ mousePressEvent()

void QVTKGraphicsItem::mousePressEvent ( QGraphicsSceneMouseEvent *  e)
protected

◆ mouseReleaseEvent()

void QVTKGraphicsItem::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  e)
protected

◆ mouseMoveEvent()

void QVTKGraphicsItem::mouseMoveEvent ( QGraphicsSceneMouseEvent *  e)
protected

◆ resizeEvent()

void QVTKGraphicsItem::resizeEvent ( QGraphicsSceneResizeEvent *  e)
protected

◆ moveEvent()

void QVTKGraphicsItem::moveEvent ( QGraphicsSceneMoveEvent *  e)
protected

◆ wheelEvent()

void QVTKGraphicsItem::wheelEvent ( QGraphicsSceneWheelEvent *  e)
protected

◆ hoverEnterEvent()

void QVTKGraphicsItem::hoverEnterEvent ( QGraphicsSceneHoverEvent *  e)
protected

◆ hoverLeaveEvent()

void QVTKGraphicsItem::hoverLeaveEvent ( QGraphicsSceneHoverEvent *  e)
protected

◆ hoverMoveEvent()

void QVTKGraphicsItem::hoverMoveEvent ( QGraphicsSceneHoverEvent *  e)
protected

◆ paint()

void QVTKGraphicsItem::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
)
protected

Member Data Documentation

◆ mContext

QGLContext* QVTKGraphicsItem::mContext
protected

Definition at line 107 of file QVTKGraphicsItem.h.

◆ mFBO

QGLFramebufferObject* QVTKGraphicsItem::mFBO
protected

Definition at line 108 of file QVTKGraphicsItem.h.

◆ mWin

vtkSmartPointer<vtkGenericOpenGLRenderWindow> QVTKGraphicsItem::mWin
protected

Definition at line 109 of file QVTKGraphicsItem.h.

◆ mIren

vtkSmartPointer<QVTKInteractor> QVTKGraphicsItem::mIren
protected

Definition at line 110 of file QVTKGraphicsItem.h.

◆ mIrenAdapter

QVTKInteractorAdapter* QVTKGraphicsItem::mIrenAdapter
protected

Definition at line 111 of file QVTKGraphicsItem.h.

◆ mConnect

vtkSmartPointer<vtkEventQtSlotConnect> QVTKGraphicsItem::mConnect
protected

Definition at line 112 of file QVTKGraphicsItem.h.


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