Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <QmlMitkRenderWindowItem.h>
Public Slots | |
void | setupView () |
Signals | |
void | multiItemChanged () |
void | viewTypeChanged () |
Static Public Member Functions | |
static QmlMitkRenderWindowItem * | GetInstanceForVTKRenderWindow (vtkRenderWindow *rw) |
static QMap< vtkRenderWindow *, QmlMitkRenderWindowItem * > & | GetInstances () |
Static Public Attributes | |
static QmlMitkRenderWindowItem * | instance |
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 |
vtkMitkRenderProp * | m_RenderProp |
bool | m_InResize |
Definition at line 31 of file QmlMitkRenderWindowItem.h.
QmlMitkRenderWindowItem::QmlMitkRenderWindowItem | ( | QQuickItem * | parent = 0 , |
const QString & | name = "QML render window" , |
||
mitk::VtkPropRenderer * | renderer = NULL , |
||
mitk::RenderingManager * | renderingManager = NULL |
||
) |
Definition at line 55 of file QmlMitkRenderWindowItem.cpp.
References GetInstances(), QVTKQuickItem::GetRenderWindow(), mitk::RenderWindowBase::Initialize(), instance, and mitk::New().
QmlMitkRenderWindowItem::~QmlMitkRenderWindowItem | ( | ) |
Definition at line 354 of file QmlMitkRenderWindowItem.cpp.
References mitk::RenderWindowBase::Destroy().
|
virtual |
Reimplemented from QVTKQuickItem.
Definition at line 344 of file QmlMitkRenderWindowItem.cpp.
void QmlMitkRenderWindowItem::createPlaneNode | ( | ) |
Definition at line 66 of file QmlMitkRenderWindowItem.cpp.
References mitk::SliceNavigationController::Axial, mitk::SliceNavigationController::Frontal, mitk::BaseRenderer::GetCurrentWorldPlaneGeometryNode(), mitk::BaseRenderer::GetDataStorage(), mitk::RenderingManager::GetInstance(), mitk::RenderWindowBase::GetRenderer(), mitk::RenderWindowBase::GetSliceNavigationController(), mitk::BaseRenderer::GetSliceNavigationController(), mitk::RenderingManager::InitializeViews(), m_DataStorage, mitk::BoolProperty::New(), mitk::IntProperty::New(), mitk::StringProperty::New(), mitk::PlaneGeometryDataMapper2D::New(), mitk::SliceNavigationController::Original, mitk::SliceNavigationController::Sagittal, and mitk::BaseRenderer::Standard2D.
Referenced by QmlMitkStdMultiItem::registerViewerItem().
|
virtual |
Reimplemented from QVTKQuickItem.
Definition at line 348 of file QmlMitkRenderWindowItem.cpp.
References mitk::CameraController::Fit(), QVTKQuickItem::geometryChanged(), mitk::BaseRenderer::GetCameraController(), mitk::BaseRenderer::GetInstance(), and QVTKQuickItem::GetRenderWindow().
mitk::InteractionEvent::MouseButtons QmlMitkRenderWindowItem::GetButtonState | ( | QMouseEvent * | me | ) | const |
Definition at line 220 of file QmlMitkRenderWindowItem.cpp.
References mitk::InteractionEvent::LeftMouseButton, mitk::InteractionEvent::MiddleMouseButton, mitk::InteractionEvent::NoButton, and mitk::InteractionEvent::RightMouseButton.
Referenced by mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), and wheelEvent().
mitk::InteractionEvent::MouseButtons QmlMitkRenderWindowItem::GetButtonState | ( | QWheelEvent * | we | ) | const |
Definition at line 258 of file QmlMitkRenderWindowItem.cpp.
References mitk::InteractionEvent::LeftMouseButton, mitk::InteractionEvent::MiddleMouseButton, mitk::InteractionEvent::NoButton, and mitk::InteractionEvent::RightMouseButton.
mitk::InteractionEvent::MouseButtons QmlMitkRenderWindowItem::GetEventButton | ( | QMouseEvent * | me | ) | const |
Definition at line 199 of file QmlMitkRenderWindowItem.cpp.
References mitk::InteractionEvent::LeftMouseButton, mitk::InteractionEvent::MiddleMouseButton, mitk::InteractionEvent::NoButton, and mitk::InteractionEvent::RightMouseButton.
Referenced by mousePressEvent(), and mouseReleaseEvent().
|
static |
Definition at line 40 of file QmlMitkRenderWindowItem.cpp.
References GetInstances().
|
static |
Definition at line 49 of file QmlMitkRenderWindowItem.cpp.
Referenced by GetInstanceForVTKRenderWindow(), and QmlMitkRenderWindowItem().
mitk::InteractionEvent::ModifierKeys QmlMitkRenderWindowItem::GetModifiers | ( | QInputEvent * | me | ) | const |
Definition at line 239 of file QmlMitkRenderWindowItem.cpp.
References mitk::InteractionEvent::AltKey, mitk::InteractionEvent::ControlKey, mitk::InteractionEvent::NoKey, and mitk::InteractionEvent::ShiftKey.
Referenced by mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), and wheelEvent().
mitk::Point2D QmlMitkRenderWindowItem::GetMousePosition | ( | QMouseEvent * | me | ) | const |
Definition at line 181 of file QmlMitkRenderWindowItem.cpp.
Referenced by mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), and wheelEvent().
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.
|
virtual |
Implements mitk::RenderWindowBase.
Definition at line 359 of file QmlMitkRenderWindowItem.cpp.
References QVTKQuickItem::GetRenderWindow().
|
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 | ||
) |
|
virtual |
Reimplemented from QVTKQuickItem.
Definition at line 307 of file QmlMitkRenderWindowItem.cpp.
References GetButtonState(), GetModifiers(), GetMousePosition(), mitk::RenderWindowBase::GetRenderer(), mitk::RenderWindowBase::HandleEvent(), QVTKQuickItem::mouseMoveEvent(), and mitk::MouseMoveEvent::New().
|
virtual |
Reimplemented from QVTKQuickItem.
Definition at line 283 of file QmlMitkRenderWindowItem.cpp.
References GetButtonState(), GetEventButton(), GetModifiers(), GetMousePosition(), mitk::RenderWindowBase::GetRenderer(), mitk::RenderWindowBase::HandleEvent(), QVTKQuickItem::mousePressEvent(), and mitk::MousePressEvent::New().
|
virtual |
Reimplemented from QVTKQuickItem.
Definition at line 295 of file QmlMitkRenderWindowItem.cpp.
References GetButtonState(), GetEventButton(), GetModifiers(), GetMousePosition(), mitk::RenderWindowBase::GetRenderer(), mitk::RenderWindowBase::HandleEvent(), QVTKQuickItem::mouseReleaseEvent(), and mitk::MouseReleaseEvent::New().
|
signal |
|
virtual |
Reimplemented from QVTKQuickItem.
Definition at line 330 of file QmlMitkRenderWindowItem.cpp.
References mitk::BaseRenderer::ForceImmediateUpdate(), mitk::BaseRenderer::GetInstance(), mitk::RenderWindowBase::GetRenderer(), QVTKQuickItem::GetRenderWindow(), and mitk::VtkPropRenderer::PrepareRender().
void QmlMitkRenderWindowItem::SetDataStorage | ( | mitk::DataStorage::Pointer | storage | ) |
Definition at line 176 of file QmlMitkRenderWindowItem.cpp.
References mitk::RenderWindowBase::GetRenderer(), and mitk::VtkPropRenderer::SetDataStorage().
Referenced by QmlMitkStdMultiItem::init().
void QmlMitkRenderWindowItem::setDecorationProperties | ( | std::string | text, |
mitk::Color | color | ||
) |
Definition at line 117 of file QmlMitkRenderWindowItem.cpp.
References mitk::RenderWindowBase::GetRenderer(), and mitk::BaseRenderer::GetVtkRenderer().
void QmlMitkRenderWindowItem::setMultiItem | ( | QmlMitkStdMultiItem * | multiItem | ) |
Definition at line 162 of file QmlMitkRenderWindowItem.cpp.
References multiItem, and QmlMitkStdMultiItem::registerViewerItem().
|
slot |
Definition at line 137 of file QmlMitkRenderWindowItem.cpp.
References mitk::SliceNavigationController::Axial, mitk::SliceNavigationController::Frontal, mitk::RenderWindowBase::GetRenderer(), mitk::BaseRenderer::GetSliceNavigationController(), mitk::SliceNavigationController::Original, mitk::SliceNavigationController::Sagittal, mitk::VtkPropRenderer::SetMapperID(), mitk::BaseRenderer::Standard2D, and mitk::BaseRenderer::Standard3D.
Referenced by QmlMitkStdMultiItem::registerViewerItem().
void QmlMitkRenderWindowItem::setViewType | ( | int | type | ) |
Definition at line 110 of file QmlMitkRenderWindowItem.cpp.
References viewType, and viewTypeChanged().
|
signal |
Referenced by setViewType().
|
virtual |
Reimplemented from QVTKQuickItem.
Definition at line 319 of file QmlMitkRenderWindowItem.cpp.
References GetButtonState(), GetModifiers(), GetMousePosition(), mitk::RenderWindowBase::GetRenderer(), mitk::RenderWindowBase::HandleEvent(), mitk::MouseWheelEvent::New(), and QVTKQuickItem::wheelEvent().
|
static |
Definition at line 44 of file QmlMitkRenderWindowItem.h.
Referenced by QmlMitkRenderWindowItem().
|
readwrite |
Definition at line 34 of file QmlMitkRenderWindowItem.h.
Referenced by setMultiItem().
|
readwrite |
Definition at line 34 of file QmlMitkRenderWindowItem.h.
Referenced by setViewType().