IGSTK
Public Types | Public Member Functions | Protected Member Functions | Friends | List of all members
igstk::QTWidget Class Reference

Display IGSTK graphical representation in a Qt Widget. More...

#include <igstkQTWidget.h>

Public Types

typedef QTWidget Self
typedef QVTKWidget Superclass
typedef View ViewType
typedef ViewProxy< QTWidgetProxyType

Public Member Functions

virtual const char * GetNameOfClass () const
void ExportStateMachineDescription (OutputStreamType &ostr, bool skipLoops=false) const
 Declarations needed for the State Machine.
void Print (std::ostream &os,::itk::Indent indent=0) const
 Print the object information in a stream.
void SetLogger (LoggerType *logger)
 QTWidget (QWidget *parent=NULL, const char *name=NULL, Qt::WFlags f=0)
 Constructor.
virtual ~QTWidget (void)
 Destructor.
void RequestSetView (const ViewType *view)
 set the view
void RequestDisableInteractions ()
 Disable user interactions with the window via mouse and keyboard.
void RequestEnableInteractions ()
 Enable user interactions with the window via mouse and keyboard.
vtkRenderWindowInteractor * GetRenderWindowInteractor () const
 Get render window interactor.

Protected Member Functions

LoggerType * GetLogger () const
 Set up variables, types and methods related to the Logger.
virtual void PrintSelf (std::ostream &os, itk::Indent indent) const
 Print the object information in a stream.
void mouseReleaseEvent (QMouseEvent *e)
 Override the method that manages mouse events in order to provide picker functionalities.
void mouseMoveEvent (QMouseEvent *e)
 Override the mouse move event to send transform events when the mouse is moved while the left button is down.
void mousePressEvent (QMouseEvent *e)
void wheelEvent (QWheelEvent *e)

Friends

class ViewProxy< QTWidget >

Detailed Description

Display IGSTK graphical representation in a Qt Widget.

This class is useful to develop QT based IGSTK application. Using this class, graphical represenation of a surgical scene can be displayed in a Qt widget. QT mouse events are captured and translated into VTK events.

igstkQTWidget.png
State Machine Diagram
See Also
QTWidget
View

Definition at line 65 of file igstkQTWidget.h.

Member Typedef Documentation

Definition at line 69 of file igstkQTWidget.h.

typedef QVTKWidget igstk::QTWidget::Superclass

Definition at line 70 of file igstkQTWidget.h.

Definition at line 71 of file igstkQTWidget.h.

Definition at line 100 of file igstkQTWidget.h.

Constructor & Destructor Documentation

igstk::QTWidget::QTWidget ( QWidget *  parent = NULL,
const char *  name = NULL,
Qt::WFlags  f = 0 
)

Constructor.

constructor for Qt 3

virtual igstk::QTWidget::~QTWidget ( void  )
virtual

Destructor.

Member Function Documentation

virtual const char* igstk::QTWidget::GetNameOfClass ( ) const
virtual
void igstk::QTWidget::ExportStateMachineDescription ( OutputStreamType &  ostr,
bool  skipLoops = false 
) const

Declarations needed for the State Machine.

void igstk::QTWidget::Print ( std::ostream &  os,
::itk::Indent  indent = 0 
) const

Print the object information in a stream.

LoggerType* igstk::QTWidget::GetLogger ( ) const
protected

Set up variables, types and methods related to the Logger.

void igstk::QTWidget::SetLogger ( LoggerType *  logger)
void igstk::QTWidget::RequestSetView ( const ViewType view)

set the view

void igstk::QTWidget::RequestDisableInteractions ( )

Disable user interactions with the window via mouse and keyboard.

void igstk::QTWidget::RequestEnableInteractions ( )

Enable user interactions with the window via mouse and keyboard.

vtkRenderWindowInteractor* igstk::QTWidget::GetRenderWindowInteractor ( ) const

Get render window interactor.

virtual void igstk::QTWidget::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
protectedvirtual

Print the object information in a stream.

void igstk::QTWidget::mouseReleaseEvent ( QMouseEvent *  e)
protected

Override the method that manages mouse events in order to provide picker functionalities.

void igstk::QTWidget::mouseMoveEvent ( QMouseEvent *  e)
protected

Override the mouse move event to send transform events when the mouse is moved while the left button is down.

void igstk::QTWidget::mousePressEvent ( QMouseEvent *  e)
protected
void igstk::QTWidget::wheelEvent ( QWheelEvent *  e)
protected

Friends And Related Function Documentation

friend class ViewProxy< QTWidget >
friend

Definition at line 102 of file igstkQTWidget.h.


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