31 #include "../singleton/Context.h" 
   32 #include "../../../../maptools/Canvas.h" 
   33 #include "../../Utils.h" 
   54       if(m_visitable != visitable)
 
   56         m_visitable->unacceptVisitor(
this);
 
   57         m_visitable = visitable;
 
   60     visitDependent(context);
 
   66       m_visitable = visitable;
 
   67       visitDependent(context);
 
Class to represent a visitable. All classes representing a visitable must inherit from this class...
 
Class responsible for maintaining the drawing context of a MVC component. It is always used by the "M...
 
Class to represent a visitable. All classes representing a visitable must inherit from this class...
 
virtual void setCanvas(te::map::Canvas *canvas)
Change canvas. 
 
virtual void disassociate()
Separate this object from visitable. 
 
virtual void setUtils(Utils *utils)
 
virtual ContextItem getContextItem()
Returns context maintaining the drawing context of a MVC component. 
 
static Context & getInstance()
It returns a reference to the singleton instance. 
 
Abstract class to represent a visitor. All classes representing a visitor must inherit from this clas...
 
virtual void visit(Visitable *visitable)
Constructor. 
 
Utils * getUtils()
Returns pointer with functions to manipulate the canvas and conversion between projections. 
 
AbstractVisitor()
Constructor. 
 
A canvas is an abstraction of a drawing area. 
 
~AbstractVisitor(void)
Destructor. 
 
virtual void setDpiX(double dpi)
 
virtual Visitable * getVisitable()
Return the object to be visited. 
 
virtual void setDpiY(double dpi)
 
double getZoomFactor()
Returns current zoom factor. Ex.: 0.5 (50%) 
 
Utility class with functions to manipulate the canvas and conversion between projections. 
 
virtual void setZoomFactor(double zoomFactor)
Change current zoom factor. 
 
te::map::Canvas * getCanvas()
Returns abstraction of a drawing area.