30 #include "../../../layout/core/pattern/singleton/Context.h"
31 #include "../../../layout/qt/core/pattern/factory/ItemFactory.h"
32 #include "../../../layout/qt/core/pattern/factory/OutsideFactory.h"
33 #include "../../../layout/core/template/TemplateFactory.h"
34 #include "../../../layout/core/Utils.h"
35 #include "../../../layout/qt/core/Scene.h"
36 #include "../../../layout/qt/core/BuildGraphicsItem.h"
37 #include "../../../layout/qt/core/ItemUtils.h"
38 #include "../../../layout/qt/core/BuildGraphicsOutside.h"
47 m_buildGraphicsItem(0),
49 m_buildGraphicsOutside(0)
64 delete m_outsideFactory;
70 delete m_templateFactory;
71 m_templateFactory = 0;
86 if(m_buildGraphicsItem)
88 delete m_buildGraphicsItem;
89 m_buildGraphicsItem = 0;
104 if(m_buildGraphicsOutside)
106 delete m_buildGraphicsOutside;
107 m_buildGraphicsOutside = 0;
145 Scene* lScene =
dynamic_cast<Scene*
>(view->scene());
162 Scene* lScene =
dynamic_cast<Scene*
>(view->scene());
178 Scene* lScene =
dynamic_cast<Scene*
>(view->scene());
181 m_itemUtils =
new ItemUtils(view->scene());
void setPaperConfig(PaperConfig *config)
Change paper setting.
Class responsible for paper setting. Size, orientation, custom size, etc.
void setItemUtils(ItemUtils *utils)
Change pointer for manipulating items in the scene and vectorization of text and legend.
void setScene(AbstractScene *scene)
Change scene, QGraphicsScene class, part of Graphics View Framework.
void setAbstractBuildGraphicsItem(AbstractBuildGraphicsItem *build)
Change a pointer for build graphics MVC components.
const double & getUpperRightX() const
It returns a constant refernce to the x coordinate of the upper right corner.
void setSystematicScaleConfig(SystematicScaleConfig *scale)
const double & getLowerLeftY() const
It returns a constant refernce to the y coordinate of the lower left corner.
void setItemFactory(AbstractItemFactory *factory)
Change factory for creating families of related or dependent graphic objects (MVC components)...
Factory for creating families of related or dependent graphic objects (MVC components).
const double & getUpperRightY() const
It returns a constant refernce to the x coordinate of the upper right corner.
void createLayoutContext(int width, int height, View *view)
void setAbstractBuildGraphicsOutside(AbstractBuildGraphicsOutside *build)
Change a pointer for build graphics MVC components.
Class responsible for creating or building graphics objects. All objects are children of QGraphicsIte...
static Context & getInstance()
It returns a reference to the singleton instance.
An Envelope defines a 2D rectangular region.
Class responsible for creating or building widgets. All objects are children of Qwidget and OutsideOb...
Class representing the view. This view is child of QGraphicsView, part of Graphics View Framework...
Utility class for manipulating items in the scene and vectorization of text and legend.
Class representing the scene. This scene is child of QGraphicsScene, part of Graphics View Framework...
void setOutsideFactory(AbstractOutsideFactory *factory)
Change factory provide an interface for creating families of related or dependent graphic widgets (MV...
void setCanvas(te::map::Canvas *canvas)
Change abstraction of a drawing area.
Factory for creating families of related or dependent templates.
const double & getLowerLeftX() const
It returns a constant reference to the x coordinate of the lower left corner.
virtual te::gm::Envelope getSceneBox()
Method that return the scene box.
void setUtils(Utils *utils)
Change pointer with functions to manipulate the canvas and conversion between projections.
Factory for creating families of related or dependent widgets (MVC widgets).
Utility class with functions to manipulate the canvas and conversion between projections.
void setTemplateFactory(AbstractTemplateFactory *factory)
Change factory provide an interface for creating families of related or dependent templates...