17 #ifndef __QmlMitkRenderWindowItem_h
18 #define __QmlMitkRenderWindowItem_h
26 #include <vtkCornerAnnotation.h>
34 Q_PROPERTY(
int viewType READ getViewType WRITE setViewType NOTIFY viewTypeChanged);
35 Q_PROPERTY(
QmlMitkStdMultiItem* multiItem READ getMultiItem WRITE setMultiItem NOTIFY multiItemChanged);
38 vtkSmartPointer<vtkCornerAnnotation> m_annotation;
39 vtkSmartPointer<vtkMitkRectangleProp> m_rectangle;
58 void createPlaneNode();
63 void setDecorationProperties(std::string text,
mitk::Color color);
65 void setViewType(
int type);
68 void geometryChanged(
const QRectF & newGeometry,
const QRectF & oldGeometry);
82 static QMap<vtkRenderWindow*, QmlMitkRenderWindowItem*>& GetInstances();
88 void multiItemChanged();
89 void viewTypeChanged();
Base class of MITK RenderWindows.
virtual void cleanupAfterRender()
virtual bool prepareForRender()
virtual void mouseMoveEvent(QMouseEvent *e)
#define MITKQMLITEMS_EXPORT
static std::string GetEventButton(mitk::InteractionEvent *event)
GetEventButton Return EventButton as String.
static std::string GetButtonState(mitk::InteractionEvent *event)
GetEventButton Return EventButton as String.
virtual void wheelEvent(QWheelEvent *e)
virtual void mouseReleaseEvent(QMouseEvent *e)
int MapperSlotId
MapperSlotId defines which kind of mapper (e.g., 2D or 3D) shoud be used.
Manager for coordinating the rendering process.
static QmlMitkRenderWindowItem * instance
virtual void mousePressEvent(QMouseEvent *e)
itk::RGBPixel< float > Color
Color Standard RGB color typedef (float)
virtual vtkRenderWindow * GetVtkRenderWindow()=0
virtual void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
ViewDirection
Possible view directions, Original will uses the PlaneGeometry instances in a SlicedGeometry3D provid...
virtual vtkRenderWindowInteractor * GetVtkRenderWindowInteractor()=0