All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ParentItem.h File Reference

Abstract class that represents a graphic item. Its coordinate system is the same of scene (millimeters). Knows rotate and resize. Stores a pixmap drawn by model. This is also son of ItemObserver, so it can become observer of a model (Observable). This class will be inherited and will became the view part of the MVC component. Who inherits it is required the implementation of updateObserver(ContextItem context) method. Drawing starting point is llx, lly. Can't add signals and slots in this class because moc(Qt) doesn't support templates. More...

#include <QPixmap>
#include <QVariant>
#include <QPainter>
#include <QGraphicsSceneHoverEvent>
#include <QGraphicsSceneMouseEvent>
#include <QStyleOptionGraphicsItem>
#include <QWidget>
#include <QTransform>
#include "../../core/pattern/mvc/ItemObserver.h"
#include "../../../geometry/Envelope.h"
#include "../../core/enum/AbstractType.h"
#include "../../../color/RGBAColor.h"
#include "../../core/Config.h"
#include "../../core/pattern/singleton/Context.h"
#include "../../core/pattern/mvc/ItemController.h"
#include "../../core/AbstractScene.h"
#include "../../core/pattern/mvc/ItemModelObservable.h"
#include "../core/Scene.h"
#include "../../../qt/widgets/Utils.h"
#include "../../../common/STLUtils.h"
#include "../../core/ContextItem.h"
#include "../../../geometry/Coord2D.h"
#include <string>

Go to the source code of this file.

Classes

class  te::layout::ParentItem< T >
 Abstract class that represents a graphic item. Its coordinate system is the same of scene (millimeters). Knows rotate and resize. Stores a pixmap drawn by model. This is also son of ItemObserver, so it can become observer of a model (Observable). This class will be inherited and will became the view part of the MVC component. Who inherits it is required the implementation of updateObserver(ContextItem context) method. Drawing starting point is llx, lly. Can't add signals and slots in this class because moc(Qt) doesn't support templates. More...
 

Namespaces

 te
 URI C++ Library.
 
 te::layout
 This is the namespace for the Layout module.
 

Detailed Description

Abstract class that represents a graphic item. Its coordinate system is the same of scene (millimeters). Knows rotate and resize. Stores a pixmap drawn by model. This is also son of ItemObserver, so it can become observer of a model (Observable). This class will be inherited and will became the view part of the MVC component. Who inherits it is required the implementation of updateObserver(ContextItem context) method. Drawing starting point is llx, lly. Can't add signals and slots in this class because moc(Qt) doesn't support templates.

Definition in file ParentItem.h.