Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
GraphicsItem Class Reference

#include <graphicsitem.h>

Inheritance diagram for GraphicsItem:
Inheritance graph
Collaboration diagram for GraphicsItem:
Collaboration graph

Signals

void Image (const QPixmap &, const QFileInfo &)
 

Public Member Functions

 GraphicsItem (QString name, QPixmap pix, QFileInfo file)
 
virtual QRectF boundingRect () const Q_DECL_OVERRIDE
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) Q_DECL_OVERRIDE
 
QPixmap pixmap () const
 
QFileInfo fileInfo () const
 
void setPix2 (const QPixmap &value)
 
QPixmap getPix2 () const
 

Protected Member Functions

virtual void mousePressEvent (QGraphicsSceneMouseEvent *event) Q_DECL_OVERRIDE
 
virtual void mouseMoveEvent (QGraphicsSceneMouseEvent *event) Q_DECL_OVERRIDE
 
virtual void mouseReleaseEvent (QGraphicsSceneMouseEvent *event) Q_DECL_OVERRIDE
 

Detailed Description

Definition at line 8 of file graphicsitem.h.

Constructor & Destructor Documentation

GraphicsItem::GraphicsItem ( QString  name,
QPixmap  pix,
QFileInfo  file 
)

Definition at line 6 of file graphicsitem.cpp.

Member Function Documentation

QRectF GraphicsItem::boundingRect ( ) const
virtual

Definition at line 11 of file graphicsitem.cpp.

QFileInfo GraphicsItem::fileInfo ( ) const

Definition at line 64 of file graphicsitem.cpp.

QPixmap GraphicsItem::getPix2 ( ) const

Definition at line 56 of file graphicsitem.cpp.

void GraphicsItem::Image ( const QPixmap &  ,
const QFileInfo &   
)
signal
void GraphicsItem::mouseMoveEvent ( QGraphicsSceneMouseEvent *  event)
protectedvirtual

Definition at line 27 of file graphicsitem.cpp.

void GraphicsItem::mousePressEvent ( QGraphicsSceneMouseEvent *  event)
protectedvirtual

Definition at line 21 of file graphicsitem.cpp.

void GraphicsItem::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  event)
protectedvirtual

Definition at line 50 of file graphicsitem.cpp.

void GraphicsItem::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
)
virtual

Definition at line 15 of file graphicsitem.cpp.

QPixmap GraphicsItem::pixmap ( ) const

Definition at line 68 of file graphicsitem.cpp.

void GraphicsItem::setPix2 ( const QPixmap &  value)

Definition at line 60 of file graphicsitem.cpp.


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