25 #ifndef QVTKGraphicsItem_hpp
26 #define QVTKGraphicsItem_hpp
28 #include "vtkGUISupportQtOpenGLModule.h"
30 #include <QGraphicsWidget>
34 class QGLFramebufferObject;
73 virtual void MakeCurrent();
79 virtual void IsCurrent(
vtkObject* caller,
unsigned long vtk_event,
void* client_data,
void* call_data);
81 virtual void IsDirect(
vtkObject* caller,
unsigned long vtk_event,
void* client_data,
void* call_data);
83 virtual void SupportsOpenGL(
vtkObject* caller,
unsigned long vtk_event,
void* client_data,
void* call_data);
88 void keyPressEvent(QKeyEvent* e);
89 void keyReleaseEvent(QKeyEvent* e);
92 void mousePressEvent(QGraphicsSceneMouseEvent* e);
93 void mouseReleaseEvent(QGraphicsSceneMouseEvent* e);
94 void mouseMoveEvent(QGraphicsSceneMouseEvent* e);
95 void resizeEvent(QGraphicsSceneResizeEvent* e);
96 void moveEvent(QGraphicsSceneMoveEvent* e);
97 void wheelEvent(QGraphicsSceneWheelEvent* e);
98 void hoverEnterEvent(QGraphicsSceneHoverEvent* e);
99 void hoverLeaveEvent(QGraphicsSceneHoverEvent* e);
100 void hoverMoveEvent(QGraphicsSceneHoverEvent* e);
103 void paint(QPainter *painter,
const QStyleOptionGraphicsItem *option, QWidget *widget);
abstract base class for most VTK objects
vtkSmartPointer< QVTKInteractor > mIren
vtkRenderWindow * GetRenderWindow()
virtual void SetRenderWindow(vtkRenderWindow *renwin)
virtual void Update()
Updates the extensions string.
Manage connections between VTK events and Qt slots.
platform independent render window
vtkSmartPointer< vtkEventQtSlotConnect > mConnect
QGLFramebufferObject * mFBO
QVTKInteractorAdapter * mIrenAdapter
vtkSmartPointer< vtkGenericOpenGLRenderWindow > mWin