#include <PainterGraphicsScene.h>
PainterPanel::PainterGraphicsScene::PainterGraphicsScene |
( |
| ) |
|
|
inline |
virtual PainterPanel::PainterGraphicsScene::~PainterGraphicsScene |
( |
| ) |
|
|
inlinevirtual |
Destructor of the PainterGraphicsScene class.
Defined virtual to guarantee that the destructor of a derived class will be called if the instance of the derived class is saved in a variable of its parent class type.
void PainterPanel::PainterGraphicsScene::setBackground |
( |
QImage |
image | ) |
|
|
inline |
Set the background image as none selectable graphics pixmap item.
QGraphicsItem* PainterPanel::PainterGraphicsScene::getBackground |
( |
| ) |
const |
|
inline |
Get the background image as graphics pixmap item.
void PainterPanel::PainterGraphicsScene::renderToImage |
( |
QImage & |
image | ) |
|
|
inline |
Render the content of the scene to a qimage The size is determined by the background image.
void PainterPanel::PainterGraphicsScene::clear |
( |
| ) |
|
|
inline |
Clear the whole scene and delete all items.
QGraphicsItem* PainterPanel::PainterGraphicsScene::m_background |
|
private |
The documentation for this class was generated from the following file: