Frapper  1.0a
Public Member Functions | Private Attributes | List of all members
PainterPanel::PainterGraphicsScene Class Reference

#include <PainterGraphicsScene.h>

Inheritance diagram for PainterPanel::PainterGraphicsScene:
Inheritance graph
[legend]
Collaboration diagram for PainterPanel::PainterGraphicsScene:
Collaboration graph
[legend]

Public Member Functions

 PainterGraphicsScene ()
 Constructor of the PainterGraphicsScene class.
 
virtual ~PainterGraphicsScene ()
 Destructor of the PainterGraphicsScene class.
 
void setBackground (QImage image)
 Set the background image as none selectable graphics pixmap item.
 
QGraphicsItem * getBackground () const
 Get the background image as graphics pixmap item.
 
void renderToImage (QImage &image)
 Render the content of the scene to a qimage The size is determined by the background image.
 
void clear ()
 Clear the whole scene and delete all items.
 

Private Attributes

QGraphicsItem * m_background
 the background item
 

Constructor & Destructor Documentation

PainterPanel::PainterGraphicsScene::PainterGraphicsScene ( )
inline

Constructor of the PainterGraphicsScene class.

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.

Member Function Documentation

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.

Member Data Documentation

QGraphicsItem* PainterPanel::PainterGraphicsScene::m_background
private

the background item


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