Computer Assited Medical Intervention Tool Kit  version 5.0
CanvasView Class Reference

#include <mainwindow.h>

+ Inheritance diagram for CanvasView:
+ Collaboration diagram for CanvasView:

Signals

void itemClicked (QtCanvasItem *item)
 
void itemClicked (QtCanvasItem *item)
 
void itemMoved (QtCanvasItem *item)
 
void itemMoved (QtCanvasItem *item)
 

Public Member Functions

 CanvasView (QtCanvas *canvas, QWidget *parent=0)
 
 CanvasView (QtCanvas *canvas, QWidget *parent=0)
 
 CanvasView (QWidget *parent=0)
 
 CanvasView (QWidget *parent=0)
 
- Public Member Functions inherited from QtCanvasView
QtCanvascanvas () const
 
QtCanvascanvas () const
 
bool highQualityRendering () const
 
bool highQualityRendering () const
 
const QMatrix & inverseWorldMatrix () const
 
const QMatrix & inverseWorldMatrix () const
 
 QtCanvasView (QtCanvas *viewing, QWidget *parent=0)
 
 QtCanvasView (QtCanvas *viewing, QWidget *parent=0)
 
 QtCanvasView (QWidget *parent=0)
 
 QtCanvasView (QWidget *parent=0)
 
void setCanvas (QtCanvas *v)
 
void setCanvas (QtCanvas *v)
 
bool setWorldMatrix (const QMatrix &)
 
bool setWorldMatrix (const QMatrix &)
 
virtual QSize sizeHint () const
 
virtual QSize sizeHint () const
 
const QMatrix & worldMatrix () const
 
const QMatrix & worldMatrix () const
 
 ~QtCanvasView ()
 
 ~QtCanvasView ()
 

Protected Member Functions

void contentsMouseDoubleClickEvent (QMouseEvent *event)
 
void contentsMouseDoubleClickEvent (QMouseEvent *event)
 
void contentsMouseMoveEvent (QMouseEvent *event)
 
void contentsMouseMoveEvent (QMouseEvent *event)
 
void contentsMousePressEvent (QMouseEvent *event)
 
void contentsMousePressEvent (QMouseEvent *event)
 
- Protected Member Functions inherited from QtCanvasView
virtual void contentsContextMenuEvent (QContextMenuEvent *)
 
virtual void contentsContextMenuEvent (QContextMenuEvent *)
 
virtual void contentsDragEnterEvent (QDragEnterEvent *)
 
virtual void contentsDragEnterEvent (QDragEnterEvent *)
 
virtual void contentsDragLeaveEvent (QDragLeaveEvent *)
 
virtual void contentsDragLeaveEvent (QDragLeaveEvent *)
 
virtual void contentsDragMoveEvent (QDragMoveEvent *)
 
virtual void contentsDragMoveEvent (QDragMoveEvent *)
 
virtual void contentsDropEvent (QDropEvent *)
 
virtual void contentsDropEvent (QDropEvent *)
 
virtual void contentsMouseReleaseEvent (QMouseEvent *)
 
virtual void contentsMouseReleaseEvent (QMouseEvent *)
 
virtual void contentsWheelEvent (QWheelEvent *)
 
virtual void contentsWheelEvent (QWheelEvent *)
 
virtual void drawContents (QPainter *p, int cx, int cy, int cw, int ch)
 
virtual void drawContents (QPainter *p, int cx, int cy, int cw, int ch)
 

Private Member Functions

void handleMouseClickEvent (QMouseEvent *event)
 
void handleMouseClickEvent (QMouseEvent *event)
 

Private Attributes

QtCanvasItemmoving
 
QPoint moving_start
 

Additional Inherited Members

- Public Slots inherited from QtCanvasView
void setHighQualityRendering (bool enable)
 
void setHighQualityRendering (bool enable)
 
- Properties inherited from QtCanvasView
bool highQualityRendering
 

Constructor & Destructor Documentation

◆ CanvasView() [1/4]

CanvasView::CanvasView ( QWidget *  parent = 0)
inline

◆ CanvasView() [2/4]

CanvasView::CanvasView ( QtCanvas canvas,
QWidget *  parent = 0 
)
inline

◆ CanvasView() [3/4]

CanvasView::CanvasView ( QWidget *  parent = 0)
inline

◆ CanvasView() [4/4]

CanvasView::CanvasView ( QtCanvas canvas,
QWidget *  parent = 0 
)
inline

Member Function Documentation

◆ contentsMouseDoubleClickEvent() [1/2]

void CanvasView::contentsMouseDoubleClickEvent ( QMouseEvent *  event)
protectedvirtual

Reimplemented from QtCanvasView.

References handleMouseClickEvent().

+ Here is the call graph for this function:

◆ contentsMouseDoubleClickEvent() [2/2]

void CanvasView::contentsMouseDoubleClickEvent ( QMouseEvent *  event)
protectedvirtual

Reimplemented from QtCanvasView.

◆ contentsMouseMoveEvent() [1/2]

void CanvasView::contentsMouseMoveEvent ( QMouseEvent *  event)
protectedvirtual

Reimplemented from QtCanvasView.

References QtCanvasView::canvas(), QtCanvasView::inverseWorldMatrix(), itemMoved(), QtCanvasItem::moveBy(), moving, moving_start, and QtCanvas::update().

+ Here is the call graph for this function:

◆ contentsMouseMoveEvent() [2/2]

void CanvasView::contentsMouseMoveEvent ( QMouseEvent *  event)
protectedvirtual

Reimplemented from QtCanvasView.

◆ contentsMousePressEvent() [1/2]

void CanvasView::contentsMousePressEvent ( QMouseEvent *  event)
protectedvirtual

Reimplemented from QtCanvasView.

References handleMouseClickEvent().

+ Here is the call graph for this function:

◆ contentsMousePressEvent() [2/2]

void CanvasView::contentsMousePressEvent ( QMouseEvent *  event)
protectedvirtual

Reimplemented from QtCanvasView.

◆ handleMouseClickEvent() [1/2]

void CanvasView::handleMouseClickEvent ( QMouseEvent *  event)
private

References QtCanvasView::canvas(), QtCanvas::collisions(), QtCanvasView::inverseWorldMatrix(), itemClicked(), moving, and moving_start.

Referenced by contentsMouseDoubleClickEvent(), and contentsMousePressEvent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ handleMouseClickEvent() [2/2]

void CanvasView::handleMouseClickEvent ( QMouseEvent *  event)
private

◆ itemClicked [1/2]

void CanvasView::itemClicked ( QtCanvasItem item)
signal

Referenced by handleMouseClickEvent().

+ Here is the caller graph for this function:

◆ itemClicked [2/2]

void CanvasView::itemClicked ( QtCanvasItem item)
signal

◆ itemMoved [1/2]

void CanvasView::itemMoved ( QtCanvasItem item)
signal

Referenced by contentsMouseMoveEvent().

+ Here is the caller graph for this function:

◆ itemMoved [2/2]

void CanvasView::itemMoved ( QtCanvasItem item)
signal

Member Data Documentation

◆ moving

QtCanvasItem * CanvasView::moving
private

◆ moving_start

QPoint CanvasView::moving_start
private

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