30 #include "../../item/PaperModel.h"
31 #include "../../item/PaperController.h"
32 #include "../item/PaperItem.h"
33 #include "../../core/pattern/mvc/ItemObserver.h"
34 #include "../../core/pattern/singleton/Context.h"
68 qPaper->setPos(QPointF(x,y));
virtual void createPaper()
Class that represents a "Model" part of Paper MVC component. Its coordinate system is the same of sce...
Class that represents a graphic sheet of paper. Its coordinate system is the same of scene (millimete...
VisualizationArea(te::gm::Envelope boxArea)
const Observer * getView()
Returns the "View" part of the MVC component.
const double & getLowerLeftY() const
It returns a constant refernce to the y coordinate of the lower left corner.
Creates the viewing area. Ex.: creation of the sheet of paper.
Abstract class to represent an observer. "View" part of MVC component. All classes representing the g...
Class that represents a "Controller" part of Paper MVC component. Its coordinate system is the same o...
virtual void redraw(bool bRefresh=true)
Redraws the graphic component.
static Context & getInstance()
It returns a reference to the singleton instance.
An Envelope defines a 2D rectangular region.
te::gm::Envelope m_boxArea
virtual ~VisualizationArea()
virtual void changeBoxArea(te::gm::Envelope boxArea)
void setZValue(qreal z)
The Z value decides the stacking order of drawing.
const double & getLowerLeftX() const
It returns a constant reference to the x coordinate of the lower left corner.
virtual te::gm::Envelope getBox()
Reimplemented from Observable.