Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmlMitkRenderWindowItem Class Reference

#include <QmlMitkRenderWindowItem.h>

Inheritance diagram for QmlMitkRenderWindowItem:
Collaboration diagram for QmlMitkRenderWindowItem:

Public Slots

void setupView ()
 

Signals

void multiItemChanged ()
 
void viewTypeChanged ()
 

Public Member Functions

 QmlMitkRenderWindowItem (QQuickItem *parent=0, const QString &name="QML render window", mitk::VtkPropRenderer *renderer=NULL, mitk::RenderingManager *renderingManager=NULL)
 
 ~QmlMitkRenderWindowItem ()
 
virtual vtkRenderWindow * GetVtkRenderWindow ()
 
virtual vtkRenderWindowInteractor * GetVtkRenderWindowInteractor ()
 
void SetDataStorage (mitk::DataStorage::Pointer storage)
 
void InitView (mitk::BaseRenderer::MapperSlotId mapperID, mitk::SliceNavigationController::ViewDirection viewDirection)
 
virtual bool prepareForRender ()
 
virtual void cleanupAfterRender ()
 
void createPlaneNode ()
 
void setMultiItem (QmlMitkStdMultiItem *multiItem)
 
QmlMitkStdMultiItemgetMultiItem ()
 
void setDecorationProperties (std::string text, mitk::Color color)
 
void setViewType (int type)
 
int getViewType ()
 
void geometryChanged (const QRectF &newGeometry, const QRectF &oldGeometry)
 
virtual void mousePressEvent (QMouseEvent *e)
 
virtual void mouseReleaseEvent (QMouseEvent *e)
 
virtual void mouseMoveEvent (QMouseEvent *e)
 
virtual void wheelEvent (QWheelEvent *e)
 
mitk::Point2D GetMousePosition (QMouseEvent *me) const
 
mitk::Point2D GetMousePosition (QWheelEvent *we) const
 
mitk::InteractionEvent::MouseButtons GetEventButton (QMouseEvent *me) const
 
mitk::InteractionEvent::MouseButtons GetButtonState (QMouseEvent *me) const
 
mitk::InteractionEvent::ModifierKeys GetModifiers (QInputEvent *me) const
 
mitk::InteractionEvent::MouseButtons GetButtonState (QWheelEvent *we) const
 
- Public Member Functions inherited from QVTKQuickItem
 QVTKQuickItem (QQuickItem *parent=0)
 
 ~QVTKQuickItem ()
 
Renderer * createRenderer () const
 
vtkOpenGLRenderWindow * GetRenderWindow () const
 
QVTKInteractor * GetInteractor () const
 
- Public Member Functions inherited from mitk::RenderWindowBase
virtual ~RenderWindowBase ()
 
void InitRenderer ()
 
virtual mitk::SliceNavigationControllerGetSliceNavigationController ()
 
virtual mitk::CameraRotationControllerGetCameraRotationController ()
 
virtual mitk::BaseControllerGetController ()
 
virtual mitk::VtkPropRendererGetRenderer ()
 
virtual bool HandleEvent (InteractionEvent *interactionEvent)
 

Static Public Member Functions

static QmlMitkRenderWindowItemGetInstanceForVTKRenderWindow (vtkRenderWindow *rw)
 
static QMap< vtkRenderWindow *, QmlMitkRenderWindowItem * > & GetInstances ()
 

Static Public Attributes

static QmlMitkRenderWindowIteminstance
 

Properties

int viewType
 
QmlMitkStdMultiItem multiItem
 

Additional Inherited Members

- Public Attributes inherited from QVTKQuickItem
QMutex m_viewLock
 
- Protected Slots inherited from QVTKQuickItem
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)
 
void onTextureFollowsItemSizeChanged (bool follows)
 
- Protected Member Functions inherited from QVTKQuickItem
virtual void init ()
 
virtual void keyPressEvent (QKeyEvent *e)
 
virtual void keyReleaseEvent (QKeyEvent *e)
 
virtual void mouseDoubleClickEvent (QMouseEvent *e)
 
virtual void hoverEnterEvent (QHoverEvent *e)
 
virtual void hoverLeaveEvent (QHoverEvent *e)
 
virtual void hoverMoveEvent (QHoverEvent *e)
 
QSGNode * updatePaintNode (QSGNode *node, QQuickItem::UpdatePaintNodeData *nodeData)
 
- Protected Member Functions inherited from mitk::RenderWindowBase
 RenderWindowBase ()
 
void Initialize (mitk::RenderingManager *renderingManager=NULL, const char *name="unnamed renderer", mitk::BaseRenderer::RenderingMode::Type renderingMode=mitk::BaseRenderer::RenderingMode::Standard)
 
void Destroy ()
 
- Protected Attributes inherited from mitk::RenderWindowBase
mitk::VtkPropRenderer::Pointer m_Renderer
 
vtkMitkRenderPropm_RenderProp
 
bool m_InResize
 

Detailed Description

Definition at line 31 of file QmlMitkRenderWindowItem.h.

Constructor & Destructor Documentation

QmlMitkRenderWindowItem::QmlMitkRenderWindowItem ( QQuickItem *  parent = 0,
const QString &  name = "QML render window",
mitk::VtkPropRenderer renderer = NULL,
mitk::RenderingManager renderingManager = NULL 
)
QmlMitkRenderWindowItem::~QmlMitkRenderWindowItem ( )

Definition at line 354 of file QmlMitkRenderWindowItem.cpp.

References mitk::RenderWindowBase::Destroy().

Member Function Documentation

void QmlMitkRenderWindowItem::cleanupAfterRender ( )
virtual

Reimplemented from QVTKQuickItem.

Definition at line 344 of file QmlMitkRenderWindowItem.cpp.

void QmlMitkRenderWindowItem::geometryChanged ( const QRectF &  newGeometry,
const QRectF &  oldGeometry 
)
virtual
QmlMitkRenderWindowItem * QmlMitkRenderWindowItem::GetInstanceForVTKRenderWindow ( vtkRenderWindow *  rw)
static

Definition at line 40 of file QmlMitkRenderWindowItem.cpp.

References GetInstances().

QMap< vtkRenderWindow *, QmlMitkRenderWindowItem * > & QmlMitkRenderWindowItem::GetInstances ( )
static
mitk::Point2D QmlMitkRenderWindowItem::GetMousePosition ( QMouseEvent *  me) const
mitk::Point2D QmlMitkRenderWindowItem::GetMousePosition ( QWheelEvent *  we) const

Definition at line 190 of file QmlMitkRenderWindowItem.cpp.

QmlMitkStdMultiItem * QmlMitkRenderWindowItem::getMultiItem ( )

Definition at line 171 of file QmlMitkRenderWindowItem.cpp.

int QmlMitkRenderWindowItem::getViewType ( )

Definition at line 278 of file QmlMitkRenderWindowItem.cpp.

vtkRenderWindow * QmlMitkRenderWindowItem::GetVtkRenderWindow ( )
virtual

Implements mitk::RenderWindowBase.

Definition at line 359 of file QmlMitkRenderWindowItem.cpp.

References QVTKQuickItem::GetRenderWindow().

vtkRenderWindowInteractor * QmlMitkRenderWindowItem::GetVtkRenderWindowInteractor ( )
virtual

Implements mitk::RenderWindowBase.

Definition at line 364 of file QmlMitkRenderWindowItem.cpp.

References QVTKQuickItem::GetInteractor().

void QmlMitkRenderWindowItem::InitView ( mitk::BaseRenderer::MapperSlotId  mapperID,
mitk::SliceNavigationController::ViewDirection  viewDirection 
)
void QmlMitkRenderWindowItem::mouseMoveEvent ( QMouseEvent *  e)
virtual
void QmlMitkRenderWindowItem::multiItemChanged ( )
signal
void QmlMitkRenderWindowItem::SetDataStorage ( mitk::DataStorage::Pointer  storage)
void QmlMitkRenderWindowItem::setDecorationProperties ( std::string  text,
mitk::Color  color 
)
void QmlMitkRenderWindowItem::setMultiItem ( QmlMitkStdMultiItem multiItem)
void QmlMitkRenderWindowItem::setViewType ( int  type)

Definition at line 110 of file QmlMitkRenderWindowItem.cpp.

References viewType, and viewTypeChanged().

void QmlMitkRenderWindowItem::viewTypeChanged ( )
signal

Referenced by setViewType().

void QmlMitkRenderWindowItem::wheelEvent ( QWheelEvent *  e)
virtual

Member Data Documentation

QmlMitkRenderWindowItem * QmlMitkRenderWindowItem::instance
static

Definition at line 44 of file QmlMitkRenderWindowItem.h.

Referenced by QmlMitkRenderWindowItem().

Property Documentation

QmlMitkStdMultiItem QmlMitkRenderWindowItem::multiItem
readwrite

Definition at line 34 of file QmlMitkRenderWindowItem.h.

Referenced by setMultiItem().

int QmlMitkRenderWindowItem::viewType
readwrite

Definition at line 34 of file QmlMitkRenderWindowItem.h.

Referenced by setViewType().


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