30 #include "../factory/AbstractItemFactory.h"
31 #include "../../Utils.h"
32 #include "../factory/AbstractOutsideFactory.h"
33 #include "../../../../maptools/Canvas.h"
34 #include "../../../../geometry/Envelope.h"
35 #include "../../enum/Enums.h"
36 #include "../proxy/AbstractProxyProject.h"
40 m_lineIntersectionMouseMode(0),
43 m_defaultZoomFactor(0.5),
52 m_version(
"MAPLayoutQt5_1.0.0"),
54 m_buildGraphicsItem(0),
55 m_systematicConfig(0),
60 m_buildGraphicsOutside(0)
110 m_zoomFactor = zoomFactor;
115 return m_itemFactory;
120 m_itemFactory = factory;
125 return m_outsideFactory;
130 m_outsideFactory = factory;
135 return m_templateFactory;
140 m_templateFactory = factory;
200 return m_paperConfig;
205 m_paperConfig = config;
210 return m_buildGraphicsItem;
215 m_buildGraphicsItem = build;
220 return m_lineIntersectionMouseMode;
225 m_lineIntersectionMouseMode = mode;
230 return m_defaultZoomFactor;
235 m_defaultZoomFactor = zoomFactor;
240 return m_oldZoomFactor;
245 m_oldZoomFactor = zoomFactor;
250 return m_systematicConfig;
255 m_systematicConfig = scale;
260 m_proxyProject = project;
265 return m_proxyProject;
300 return m_buildGraphicsOutside;
305 m_buildGraphicsOutside = build;
void setPaperConfig(PaperConfig *config)
Change paper setting.
Abstract Factory provide an interface for creating families of related or dependent graphic objects (...
LayoutUnitsMetrics getUnitMetric()
double getOldZoomFactor()
Returns previous zoom factor. Ex.: 0.5 (50%)
AbstractOutsideFactory * getOutsideFactory()
Returns Abstract Factory provide an interface for creating families of related or dependent graphic w...
void setDpiY(double dpiY)
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.
virtual EnumModeType * getEnumModeType()
Returns mode type enumeration.
void setUnitMetric(LayoutUnitsMetrics unit)
void setZoomFactor(double zoomFactor)
Change current zoom factor. Ex.: 0.5 (50%)
void setAbstractBuildGraphicsItem(AbstractBuildGraphicsItem *build)
Change a pointer for build graphics MVC components.
void setSystematicScaleConfig(SystematicScaleConfig *scale)
Abstract Factory provide an interface for creating families of related or dependent templates without...
void setItemFactory(AbstractItemFactory *factory)
Change factory for creating families of related or dependent graphic objects (MVC components)...
Singleton class responsible for keeping active objects while the plugin is loaded in memory and make ...
Abstract class to represent an observer. "View" part of MVC component. All classes representing the g...
void setDpiX(double dpiX)
Abstract class for build MVC widgets.
void setAbstractBuildGraphicsOutside(AbstractBuildGraphicsOutside *build)
Change a pointer for build graphics MVC components.
double getDefaultZoomFactor()
Default zoom factor. Ex.: 0.5 (50%)
void setItem(ItemObserver *item)
static Enums & getInstance()
It returns a reference to the singleton instance.
Class to represent a mode type enumeration. Ex.: select, pan, create text, etc. The type of mode is u...
AbstractProxyProject * getProxyProject()
Returns proxy to provide a surrogate or placeholder for te::qt::af::Project to control access to it...
virtual EnumType * getModeNone() const
Returns value that represents none mode type belonging to enumeration.
EnumType * m_mode
value of the enumeration of mode type
virtual EnumType * getModeOffLinesIntersectionMouse() const
Returns value that represents off lines intersection mouse mode type belonging to enumeration...
Utils * getUtils()
Returns pointer with functions to manipulate the canvas and conversion between projections.
ItemUtils * getItemUtils()
Returns pointer for manipulating items in the scene and vectorization of text and legend...
EnumType * getMode()
Returns value of the enumeration of mode type.
AbstractBuildGraphicsItem * getAbstractBuildGraphicsItem()
Returns pointer for build graphics MVC components.
AbstractItemFactory * getItemFactory()
Returns Abstract Factory that provide an interface for creating families of related or dependent grap...
Utility class for manipulating items in the scene and vectorization of text and legend.
EnumType * m_lineIntersectionMouseMode
Abstract scene for Scene, a QGraphicsScene class, 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.
SystematicScaleConfig * getSystematicScaleConfig()
AbstractBuildGraphicsOutside * getAbstractBuildGraphicsOutside()
Returns pointer for build graphics MVC components.
Abstract class to provide a surrogate or placeholder for te::qt::af::Project to control access to it...
AbstractTemplateFactory * getTemplateFactory()
Returns Abstract Factory provide an interface for creating families of related or dependent templates...
A canvas is an abstraction of a drawing area.
virtual ~Context()
Destructor.
void setWait(EnumType *wait)
void setProxyProject(AbstractProxyProject *project)
Change the proxy to provide a surrogate or placeholder for te::qt::af::Project to control access to i...
Class that represents the value of an enumeration. An enumeration is made of "1..n" objects EnumType...
Abstract Factory provide an interface for creating families of related or dependent graphic widgets (...
void setUtils(Utils *utils)
Change pointer with functions to manipulate the canvas and conversion between projections.
EnumType * getLineIntersectionMouseMode()
void setDefaultZoomFactor(double zoomFactor)
Change default zoom factor. Ex.: 0.5 (50%)
void setMode(EnumType *mode)
Change value of the enumeration of mode type. Ex.: select, pan, create text, etc. The type of mode is...
std::string getVersion()
Template structure version.
AbstractScene * getScene()
Returns abstract scene for QGraphicsScene class, part of Graphics View Framework. ...
PaperConfig * getPaperConfig() const
Returns paper setting.
Abstract class for build graphics MVC components.
double getZoomFactor()
Returns current zoom factor. Ex.: 0.5 (50%)
void setOldZoomFactor(double zoomFactor)
Change previous zoom factor. Ex.: 0.5 (50%)
Utility class with functions to manipulate the canvas and conversion between projections.
te::map::Canvas * getCanvas()
Returns abstraction of a drawing area.
void setLineIntersectionMouseMode(EnumType *mode)
void setTemplateFactory(AbstractTemplateFactory *factory)
Change factory provide an interface for creating families of related or dependent templates...