Abstract class to represent a visitor. All classes representing a visitor must inherit from this class. More...
#include <AbstractVisitor.h>
  
 Public Member Functions | |
| AbstractVisitor () | |
| Constructor.  More... | |
| virtual void | disassociate () | 
| Separate this object from visitable.  More... | |
| virtual Visitable * | getVisitable () | 
| Return the object to be visited.  More... | |
| virtual void | visit (Visitable *visitable) | 
| Constructor.  More... | |
| ~AbstractVisitor (void) | |
| Destructor.  More... | |
Protected Member Functions | |
| virtual ContextItem | getContextItem () | 
| Returns context maintaining the drawing context of a MVC component.  More... | |
| virtual void | visitDependent (ContextItem context)=0 | 
| visit and if necessary redraw  More... | |
Protected Attributes | |
| Visitable * | m_visitable | 
| object to be visited  More... | |
Abstract class to represent a visitor. All classes representing a visitor must inherit from this class.
Definition at line 45 of file AbstractVisitor.h.
| te::layout::AbstractVisitor::AbstractVisitor | ( | ) | 
Constructor.
Definition at line 35 of file AbstractVisitor.cpp.
| te::layout::AbstractVisitor::~AbstractVisitor | ( | void | ) | 
Destructor.
Definition at line 41 of file AbstractVisitor.cpp.
      
  | 
  virtual | 
Separate this object from visitable.
Definition at line 72 of file AbstractVisitor.cpp.
Referenced by te::layout::Visitable::unacceptVisitor().
      
  | 
  protectedvirtual | 
Returns context maintaining the drawing context of a MVC component.
| context | maintaining the drawing context of a MVC component | 
Definition at line 77 of file AbstractVisitor.cpp.
References te::layout::Context::getCanvas(), te::layout::Context::getDpiX(), te::layout::Context::getDpiY(), te::common::Singleton< Context >::getInstance(), te::layout::Context::getUtils(), te::layout::Context::getZoomFactor(), te::layout::ContextItem::setCanvas(), te::layout::ContextItem::setDpiX(), te::layout::ContextItem::setDpiY(), te::layout::ContextItem::setUtils(), and te::layout::ContextItem::setZoomFactor().
      
  | 
  virtual | 
Return the object to be visited.
Definition at line 95 of file AbstractVisitor.cpp.
Referenced by te::layout::ItemUtils::createLegendChildAsObject().
      
  | 
  virtual | 
Constructor.
Definition at line 46 of file AbstractVisitor.cpp.
Referenced by te::layout::Visitable::acceptVisitor().
      
  | 
  protectedpure virtual | 
visit and if necessary redraw
Implemented in te::layout::GridMapModel, te::layout::LegendModel, te::layout::ScaleModel, and te::layout::LegendChildModel.
      
  | 
  protected | 
object to be visited
Definition at line 90 of file AbstractVisitor.h.