Computer Assited Medical Intervention Tool Kit  version 5.0
QtCanvasView Class Reference

#include <qtcanvas.h>

+ Inheritance diagram for QtCanvasView:
+ Collaboration diagram for QtCanvasView:

Public Slots

void setHighQualityRendering (bool enable)
 
void setHighQualityRendering (bool enable)
 

Public Member Functions

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

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 contentsMouseDoubleClickEvent (QMouseEvent *)
 
virtual void contentsMouseDoubleClickEvent (QMouseEvent *)
 
virtual void contentsMouseMoveEvent (QMouseEvent *)
 
virtual void contentsMouseMoveEvent (QMouseEvent *)
 
virtual void contentsMousePressEvent (QMouseEvent *)
 
virtual void contentsMousePressEvent (QMouseEvent *)
 
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)
 

Properties

bool highQualityRendering
 

Private Slots

void updateContentsSize ()
 
void updateContentsSize ()
 

Private Member Functions

void drawContents (QPainter *)
 
void drawContents (QPainter *)
 

Private Attributes

QtCanvasViewDatad
 
QtCanvasviewing
 

Friends

class QtCanvas
 
class QtCanvasWidget
 

Constructor & Destructor Documentation

◆ QtCanvasView() [1/4]

QtCanvasView::QtCanvasView ( QWidget *  parent = 0)

References d, QtCanvasViewData::highQuality, QtCanvasWidget, setCanvas(), and viewing.

+ Here is the call graph for this function:

◆ QtCanvasView() [2/4]

QtCanvasView::QtCanvasView ( QtCanvas viewing,
QWidget *  parent = 0 
)

References canvas(), d, QtCanvasViewData::highQuality, QtCanvasWidget, setCanvas(), and viewing.

+ Here is the call graph for this function:

◆ ~QtCanvasView() [1/2]

QtCanvasView::~QtCanvasView ( )

References d, and setCanvas().

+ Here is the call graph for this function:

◆ QtCanvasView() [3/4]

QtCanvasView::QtCanvasView ( QWidget *  parent = 0)

◆ QtCanvasView() [4/4]

QtCanvasView::QtCanvasView ( QtCanvas viewing,
QWidget *  parent = 0 
)

◆ ~QtCanvasView() [2/2]

QtCanvasView::~QtCanvasView ( )

Member Function Documentation

◆ canvas() [1/2]

QtCanvas* QtCanvasView::canvas ( ) const
inline

References viewing.

Referenced by CanvasView::contentsMouseMoveEvent(), CanvasView::handleMouseClickEvent(), QtCanvasView(), setCanvas(), and sizeHint().

+ Here is the caller graph for this function:

◆ canvas() [2/2]

QtCanvas* QtCanvasView::canvas ( ) const
inline

References viewing.

◆ contentsContextMenuEvent() [1/2]

void QtCanvasView::contentsContextMenuEvent ( QContextMenuEvent *  e)
protectedvirtual

Referenced by QtCanvasWidget::contextMenuEvent().

+ Here is the caller graph for this function:

◆ contentsContextMenuEvent() [2/2]

virtual void QtCanvasView::contentsContextMenuEvent ( QContextMenuEvent *  )
protectedvirtual

◆ contentsDragEnterEvent() [1/2]

virtual void QtCanvasView::contentsDragEnterEvent ( QDragEnterEvent *  )
protectedvirtual

◆ contentsDragEnterEvent() [2/2]

void QtCanvasView::contentsDragEnterEvent ( QDragEnterEvent *  )
protectedvirtual

Referenced by QtCanvasWidget::dragEnterEvent().

+ Here is the caller graph for this function:

◆ contentsDragLeaveEvent() [1/2]

void QtCanvasView::contentsDragLeaveEvent ( QDragLeaveEvent *  )
protectedvirtual

Referenced by QtCanvasWidget::dragLeaveEvent().

+ Here is the caller graph for this function:

◆ contentsDragLeaveEvent() [2/2]

virtual void QtCanvasView::contentsDragLeaveEvent ( QDragLeaveEvent *  )
protectedvirtual

◆ contentsDragMoveEvent() [1/2]

virtual void QtCanvasView::contentsDragMoveEvent ( QDragMoveEvent *  )
protectedvirtual

◆ contentsDragMoveEvent() [2/2]

void QtCanvasView::contentsDragMoveEvent ( QDragMoveEvent *  )
protectedvirtual

Referenced by QtCanvasWidget::dragMoveEvent().

+ Here is the caller graph for this function:

◆ contentsDropEvent() [1/2]

void QtCanvasView::contentsDropEvent ( QDropEvent *  )
protectedvirtual

Referenced by QtCanvasWidget::dropEvent().

+ Here is the caller graph for this function:

◆ contentsDropEvent() [2/2]

virtual void QtCanvasView::contentsDropEvent ( QDropEvent *  )
protectedvirtual

◆ contentsMouseDoubleClickEvent() [1/2]

virtual void QtCanvasView::contentsMouseDoubleClickEvent ( QMouseEvent *  )
protectedvirtual

Reimplemented in CanvasView, and CanvasView.

◆ contentsMouseDoubleClickEvent() [2/2]

void QtCanvasView::contentsMouseDoubleClickEvent ( QMouseEvent *  e)
protectedvirtual

Reimplemented in CanvasView, and CanvasView.

Referenced by QtCanvasWidget::mouseDoubleClickEvent().

+ Here is the caller graph for this function:

◆ contentsMouseMoveEvent() [1/2]

virtual void QtCanvasView::contentsMouseMoveEvent ( QMouseEvent *  )
protectedvirtual

Reimplemented in CanvasView, and CanvasView.

◆ contentsMouseMoveEvent() [2/2]

void QtCanvasView::contentsMouseMoveEvent ( QMouseEvent *  e)
protectedvirtual

Reimplemented in CanvasView, and CanvasView.

Referenced by QtCanvasWidget::mouseMoveEvent().

+ Here is the caller graph for this function:

◆ contentsMousePressEvent() [1/2]

void QtCanvasView::contentsMousePressEvent ( QMouseEvent *  e)
protectedvirtual

Reimplemented in CanvasView, and CanvasView.

Referenced by QtCanvasWidget::mousePressEvent().

+ Here is the caller graph for this function:

◆ contentsMousePressEvent() [2/2]

virtual void QtCanvasView::contentsMousePressEvent ( QMouseEvent *  )
protectedvirtual

Reimplemented in CanvasView, and CanvasView.

◆ contentsMouseReleaseEvent() [1/2]

virtual void QtCanvasView::contentsMouseReleaseEvent ( QMouseEvent *  )
protectedvirtual

◆ contentsMouseReleaseEvent() [2/2]

void QtCanvasView::contentsMouseReleaseEvent ( QMouseEvent *  e)
protectedvirtual

Referenced by QtCanvasWidget::mouseReleaseEvent().

+ Here is the caller graph for this function:

◆ contentsWheelEvent() [1/2]

virtual void QtCanvasView::contentsWheelEvent ( QWheelEvent *  )
protectedvirtual

◆ contentsWheelEvent() [2/2]

void QtCanvasView::contentsWheelEvent ( QWheelEvent *  e)
protectedvirtual

Referenced by QtCanvasWidget::wheelEvent().

+ Here is the caller graph for this function:

◆ drawContents() [1/4]

void QtCanvasView::drawContents ( QPainter *  )
private

◆ drawContents() [2/4]

void QtCanvasView::drawContents ( QPainter *  )
private

◆ drawContents() [3/4]

void QtCanvasView::drawContents ( QPainter *  p,
int  cx,
int  cy,
int  cw,
int  ch 
)
protectedvirtual

References d, QtCanvas::drawViewArea(), QtCanvas::rect(), viewing, and QtCanvasViewData::xform.

Referenced by QtCanvasWidget::paintEvent().

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

◆ drawContents() [4/4]

virtual void QtCanvasView::drawContents ( QPainter *  p,
int  cx,
int  cy,
int  cw,
int  ch 
)
protectedvirtual

◆ highQualityRendering() [1/2]

bool QtCanvasView::highQualityRendering ( ) const

◆ highQualityRendering() [2/2]

bool QtCanvasView::highQualityRendering ( ) const

◆ inverseWorldMatrix() [1/2]

const QMatrix & QtCanvasView::inverseWorldMatrix ( ) const

References d, and QtCanvasViewData::ixform.

Referenced by CanvasView::contentsMouseMoveEvent(), and CanvasView::handleMouseClickEvent().

+ Here is the caller graph for this function:

◆ inverseWorldMatrix() [2/2]

const QMatrix& QtCanvasView::inverseWorldMatrix ( ) const

◆ setCanvas() [1/2]

void QtCanvasView::setCanvas ( QtCanvas v)

References QtCanvas::addView(), canvas(), d, QtCanvas::removeView(), updateContentsSize(), and viewing.

Referenced by QtCanvasView(), and ~QtCanvasView().

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

◆ setCanvas() [2/2]

void QtCanvasView::setCanvas ( QtCanvas v)

◆ setHighQualityRendering [1/2]

void QtCanvasView::setHighQualityRendering ( bool  enable)
slot

References d, and QtCanvasViewData::highQuality.

◆ setHighQualityRendering [2/2]

void QtCanvasView::setHighQualityRendering ( bool  enable)
slot

◆ setWorldMatrix() [1/2]

bool QtCanvasView::setWorldMatrix ( const QMatrix &  wm)

References d, QtCanvasViewData::ixform, updateContentsSize(), and QtCanvasViewData::xform.

+ Here is the call graph for this function:

◆ setWorldMatrix() [2/2]

bool QtCanvasView::setWorldMatrix ( const QMatrix &  )

◆ sizeHint() [1/2]

QSize QtCanvasView::sizeHint ( ) const
virtual

References canvas().

+ Here is the call graph for this function:

◆ sizeHint() [2/2]

virtual QSize QtCanvasView::sizeHint ( ) const
virtual

◆ updateContentsSize [1/2]

void QtCanvasView::updateContentsSize ( )
privateslot

◆ updateContentsSize [2/2]

void QtCanvasView::updateContentsSize ( )
privateslot

References d, QtCanvas::height(), viewing, QtCanvas::width(), and QtCanvasViewData::xform.

Referenced by setCanvas(), and setWorldMatrix().

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

◆ worldMatrix() [1/2]

const QMatrix& QtCanvasView::worldMatrix ( ) const

◆ worldMatrix() [2/2]

const QMatrix & QtCanvasView::worldMatrix ( ) const

References d, and QtCanvasViewData::xform.

Referenced by QtCanvas::drawViewArea(), and QtCanvas::update().

+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ QtCanvas

QtCanvas
friend

◆ QtCanvasWidget

Referenced by QtCanvasView().

Member Data Documentation

◆ d

◆ viewing

QtCanvas * QtCanvasView::viewing
private

Property Documentation

◆ highQualityRendering

bool QtCanvasView::highQualityRendering
readwrite

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