|
INFO702 - TPs
|
A disk is a simple graphical shape. More...
#include <objects.hpp>
Public Member Functions | |
| Disk (qreal r, const MasterShape *master_shape) | |
| virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override |
| virtual QPointF | randomPoint () const override |
| virtual bool | isInside (const QPointF &p) const override |
| virtual QRectF | boundingRect () const override |
Public Attributes | |
| const qreal | _r |
| const MasterShape * | _master_shape |
A disk is a simple graphical shape.
It points to its master shape in order to know in which color it must be painted.
Definition at line 74 of file objects.hpp.
| Disk::Disk | ( | qreal | r, |
| const MasterShape * | master_shape | ||
| ) |
Definition at line 30 of file objects.cpp.
|
overridevirtual |
Definition at line 51 of file objects.cpp.
|
overridevirtual |
Implements GraphicalShape.
Definition at line 45 of file objects.cpp.
|
overridevirtual |
Definition at line 57 of file objects.cpp.
|
overridevirtual |
Implements GraphicalShape.
Definition at line 34 of file objects.cpp.
| const MasterShape* Disk::_master_shape |
Definition at line 83 of file objects.hpp.
| const qreal Disk::_r |
Definition at line 82 of file objects.hpp.