Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
graphicsscene.h
Go to the documentation of this file.
1 #ifndef GRAPHICSSCENE_H
2 #define GRAPHICSSCENE_H
3 
4 #include <QGraphicsScene>
5 
6 class GraphicsScene : public QGraphicsScene {
7  bool m_overlay;
8  QPen m_overlayPen;
9  QPointF m_overlayPos;
10 
11 public:
12  explicit GraphicsScene( QObject *parent = 0 );
13  void setOverlay( bool overlay );
14  void setOverlayPen( const QPen &overlayPen );
15  void setOverlayPos( QPointF pos );
16  bool overlay( ) const;
17  QPointF overlayPos( ) const;
18 
19 protected:
20  void drawForeground( QPainter *painter, const QRectF &rect );
21 };
22 
23 #endif /* GRAPHICSSCENE_H */
void setOverlayPen(const QPen &overlayPen)
void drawForeground(QPainter *painter, const QRectF &rect)
void setOverlayPos(QPointF pos)
bool overlay() const
GraphicsScene(QObject *parent=0)
QPointF overlayPos() const
void setOverlay(bool overlay)