![]() |
IOT
0.5
I Only Think
|
Classe abstraite implemente des methodes communes aux calques(custom | defaut), menu. More...
#include <AbstractScene.h>
Public Member Functions | |
AbstractScene (QString const &id, QObject *parent=0) | |
bool | operator== (QString const &id) const |
bool | operator== (BoxType const &type) const |
virtual void | initialize (QList< QGraphicsRectItem * > const &sceneItems) |
takes a scene (a list of Items) to draw graphical areas on the view | |
AbstractItem const * | getCurrentItem () const |
virtual QRect | getGeometry () const =0 |
BoxType | getType () const |
QString const & | getId () const |
virtual IAction * | keyPressEvent (int key)=0 |
void | resetFocusItem () |
Protected Attributes | |
BoxType | _type |
QString | _id |
Classe abstraite implemente des methodes communes aux calques(custom | defaut), menu.
Une scene est composee d'items graphiques
AbstractScene::AbstractScene | ( | QString const & | id, |
QObject * | parent = 0 |
||
) |
AbstractItem const * AbstractScene::getCurrentItem | ( | ) | const |
QString const & AbstractScene::getId | ( | ) | const |
BoxType AbstractScene::getType | ( | ) | const |
void AbstractScene::initialize | ( | QList< QGraphicsRectItem * > const & | sceneItems | ) | [virtual] |
takes a scene (a list of Items) to draw graphical areas on the view
Reimplemented in Layer.
virtual IAction* AbstractScene::keyPressEvent | ( | int | key | ) | [pure virtual] |
bool AbstractScene::operator== | ( | QString const & | id | ) | const |
bool AbstractScene::operator== | ( | BoxType const & | type | ) | const |
void AbstractScene::resetFocusItem | ( | ) |
QString AbstractScene::_id [protected] |
BoxType AbstractScene::_type [protected] |