46 this->m_viewerAxial = viewerItem;
49 this->m_viewerFrontal = viewerItem;
52 this->m_viewerSagittal = viewerItem;
55 this->m_viewerOriginal = viewerItem;
61 if(QmlMitkStdMultiItem::storage.IsNull())
65 this->m_mouseMode->SetInteractionScheme(mitk::MouseModeSwitcher::InteractionScheme::MITK);
68 this->m_viewerFrontal->
SetDataStorage(QmlMitkStdMultiItem::storage);
69 this->m_viewerSagittal->
SetDataStorage(QmlMitkStdMultiItem::storage);
70 this->m_viewerOriginal->
SetDataStorage(QmlMitkStdMultiItem::storage);
80 this->m_planeAxial->GetBoolProperty(
"visible", toggle);
82 this->m_planeAxial->SetVisibility(!toggle);
83 this->m_planeFrontal->SetVisibility(!toggle);
84 this->m_planeSagittal->SetVisibility(!toggle);
95 QmlMitkStdMultiItem::storage->Add(this->m_planeAxial);
96 QmlMitkStdMultiItem::storage->Add(this->m_planeFrontal);
97 QmlMitkStdMultiItem::storage->Add(this->m_planeSagittal);
116 if ( (plane1 != NULL) && (plane2 != NULL)
120 if ( (plane3 != NULL)
135 return this->m_viewerAxial;
140 return this->m_viewerFrontal;
145 return this->m_viewerSagittal;
150 return this->m_viewerOriginal;
155 QmlMitkStdMultiItem::storage = storage;
157 qmlRegisterType<QmlMitkStdMultiItem>(
"Mitk.Views", 1, 0,
"MultiItem");
158 qmlRegisterType<QmlMitkRenderWindowItem>(
"Mitk.Views", 1, 0,
"ViewItem");
159 QQmlComponent component(&engine, QUrl(
"qrc:/views/MitkStdMultiItem.qml"));
QmlMitkRenderWindowItem * getViewerAxial()
virtual DataNode * GetCurrentWorldPlaneGeometryNode()
Get a DataNode pointing to a data object containing the current 2D-worldgeometry. ...
QmlMitkRenderWindowItem * getViewerOriginal()
void SelectSliceByPoint(const mitk::Point3D &point)
Positions the SNC according to the specified point.
bool IntersectionPoint(const Line3D &line, Point3D &intersectionPoint) const
Calculate intersection point between the plane and a line.
QmlMitkRenderWindowItem * getViewerSagittal()
void SetDataStorage(mitk::DataStorage::Pointer storage)
void moveCrossToPosition(const mitk::Point3D &newPosition)
static void create(QQmlEngine &engine, mitk::DataStorage::Pointer storage)
const mitk::Point3D getCrossPosition() const
QmlMitkRenderWindowItem * getViewerCoronal()
static RenderingManager * GetInstance()
const mitk::PlaneGeometry * GetCurrentPlaneGeometry()
Returns the currently selected Plane in the current BaseGeometry (if existent).
virtual mitk::VtkPropRenderer * GetRenderer()
static QmlMitkStdMultiItem * instance
bool IntersectionLine(const PlaneGeometry *plane, Line3D &crossline) const
Calculate the intersecting line of two planes.
void registerViewerItem(QmlMitkRenderWindowItem *viewerItem)
virtual SliceNavigationController * GetSliceNavigationController()
virtual mitk::SliceNavigationController * GetSliceNavigationController()
Describes a two-dimensional, rectangular plane.
virtual void InitializeViewsByBoundingObjects(const DataStorage *)
Initializes the renderwindows by the aggregated geometry of all objects that are held in the data sto...
void RequestUpdateAll(RequestType type=REQUEST_UPDATE_ALL)