All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::layout::Context Class Reference

#include <Context.h>

Public Member Functions

te::gm::EnvelopegetBoxPaper ()
 
BuildGraphicsItemgetBuildGraphicsItem ()
 
te::map::CanvasgetCanvas ()
 
double getDpiX ()
 
double getDpiY ()
 
AbstractItemFactorygetItemFactory ()
 
LayoutMode getLineIntersectionMouseMode ()
 
LayoutMode getMode ()
 
AbstractOutsideFactorygetOutsideFactory ()
 
PaperConfiggetPaperConfig () const
 
AbstractScenegetScene ()
 
AbstractTemplateFactorygetTemplateFactory ()
 
LayoutAbstractPaperType getTypePaper ()
 
LayoutUnitsMetrics getUnitMetric ()
 
UtilsgetUtils ()
 
std::string getVersion ()
 
double getZoomFactor ()
 
void setBoxPaper (te::gm::Envelope *box)
 
void setBuildGraphicsItem (BuildGraphicsItem *build)
 
void setCanvas (te::map::Canvas *canvas)
 
void setDpiX (double dpiX)
 
void setDpiY (double dpiY)
 
void setItemFactory (AbstractItemFactory *factory)
 
void setLineIntersectionMouseMode (LayoutMode mode)
 
void setMode (LayoutMode mode)
 
void setOutsideFactory (AbstractOutsideFactory *factory)
 
void setPaperConfig (PaperConfig *config)
 
void setScene (AbstractScene *scene)
 
void setTemplateFactory (AbstractTemplateFactory *factory)
 
void setTypePaper (LayoutAbstractPaperType type)
 
void setUnitMetric (LayoutUnitsMetrics unit)
 
void setUtils (Utils *utils)
 
void setZoomFactor (double zoomFactor)
 
virtual ~Context ()
 

Static Public Member Functions

static ContextgetInstance ()
 This function is called to create an instance of the class. More...
 

Protected Attributes

BuildGraphicsItemm_buildGraphicsItem
 
te::map::Canvasm_canvas
 
double m_dpiX
 
double m_dpiY
 
AbstractItemFactorym_itemFactory
 
LayoutMode m_lineIntersectionMouseMode
 
LayoutMode m_mode
 
AbstractOutsideFactorym_outsideFactory
 
PaperConfigm_paperConfig
 
AbstractScenem_scene
 
AbstractTemplateFactorym_templateFactory
 
LayoutUnitsMetrics m_unitMetric
 
Utilsm_utils
 
std::string m_version
 
double m_zoomFactor
 

Private Member Functions

 Context ()
 
 Context (Context const &)
 
Contextoperator= (Context const &)
 

Static Private Attributes

static Context_instance = NULL
 

Detailed Description

Definition at line 50 of file Context.h.

Constructor & Destructor Documentation

te::layout::Context::Context ( )
inlineprivate

Definition at line 53 of file Context.h.

Referenced by getInstance().

te::layout::Context::Context ( Context const &  )
inlineprivate

Definition at line 70 of file Context.h.

virtual te::layout::Context::~Context ( )
inlinevirtual

Definition at line 75 of file Context.h.

Member Function Documentation

te::gm::Envelope* te::layout::Context::getBoxPaper ( )
te::layout::BuildGraphicsItem * te::layout::Context::getBuildGraphicsItem ( )
double te::layout::Context::getDpiY ( )
te::layout::Context * te::layout::Context::getInstance ( )
static

This function is called to create an instance of the class.

Calling the constructor publicly is not allowed. The constructor is private and is only called by this Instance function.

Definition at line 46 of file Context.cpp.

References _instance, and Context().

Referenced by te::layout::Scene::buildTemplate(), te::layout::Scene::calculateBoxPaper(), te::layout::Scene::calculateMatrixViewScene(), te::layout::Scene::calculateWindow(), te::layout::OutsideArea::changeAction(), te::layout::ToolbarOutside::changeAction(), te::layout::Utils::changeCanvas(), te::layout::MapController::create(), te::layout::VisualizationArea::createHorizontalRuler(), te::layout::Scene::createItem(), te::layout::Scene::createItemGroup(), te::layout::BuildContext::createLayoutContext(), te::layout::VisualizationArea::createPaper(), te::layout::BuildGraphicsItem::createPaper(), te::layout::VisualizationArea::createVerticalRuler(), te::layout::DisplayController::DisplayController(), te::layout::ItemGroupModel::draw(), te::layout::RectangleModel::draw(), te::layout::GridGeodesicModel::draw(), te::layout::GridPlanarModel::draw(), te::layout::ScaleModel::draw(), te::layout::PaperModel::draw(), te::layout::HorizontalRulerModel::draw(), te::layout::LegendModel::draw(), te::layout::VerticalRulerModel::draw(), te::layout::MapGridModel::draw(), te::layout::Scene::drawForeground(), te::layout::GridGeodesicModel::drawHorizontalLines(), te::layout::GridPlanarModel::drawHorizontalLines(), te::layout::Utils::drawLineW(), te::layout::Utils::drawRectW(), te::layout::GridGeodesicModel::drawVerticalLines(), te::layout::GridPlanarModel::drawVerticalLines(), te::layout::Utils::getImageW(), te::layout::GridSettingsController::GridSettingsController(), te::layout::HorizontalRulerController::HorizontalRulerController(), te::layout::isCurrentMapTools(), te::layout::ItemGroup::ItemGroup(), te::layout::ItemGroupController::ItemGroupController(), te::layout::LegendController::LegendController(), te::layout::MapGridController::MapGridController(), te::layout::MapItem::MapItem(), te::layout::Utils::mm2pixel(), te::layout::ObjectItem::mouseReleaseEvent(), te::layout::BuildGraphicsItem::nameItem(), te::layout::ObjectInspectorController::ObjectInspectorController(), te::layout::ObjectItem::ObjectItem(), te::layout::ToolbarOutside::onLineIntersectionMouse(), te::layout::View::outsideAreaChangeContext(), te::layout::PageSetupController::PageSetupController(), te::layout::PaperController::PaperController(), te::layout::Scene::printPaper(), te::layout::Scene::printPreview(), te::layout::PropertiesController::PropertiesController(), te::layout::RectangleController::RectangleController(), te::layout::ItemController::redraw(), te::layout::Scene::redrawItems(), te::layout::Scene::renderScene(), te::layout::ScaleController::ScaleController(), te::layout::MapItem::setPixmap(), te::layout::ObjectItem::setPixmap(), te::layout::TemplateEditor::TemplateEditor(), te::layout::Utils::textBoundingBox(), te::layout::ToolbarController::ToolbarController(), te::layout::HorizontalRulerItem::updateObserver(), te::layout::VerticalRulerItem::updateObserver(), te::layout::RectangleItem::updateObserver(), te::layout::ScaleItem::updateObserver(), te::layout::PaperItem::updateObserver(), te::layout::LegendItem::updateObserver(), te::layout::ItemGroup::updateObserver(), te::layout::MapItem::updateObserver(), and te::layout::VerticalRulerController::VerticalRulerController().

te::layout::LayoutMode te::layout::Context::getLineIntersectionMouseMode ( )

Definition at line 191 of file Context.cpp.

Referenced by te::layout::ToolbarOutside::onLineIntersectionMouse().

te::layout::PaperConfig * te::layout::Context::getPaperConfig ( ) const
te::layout::AbstractTemplateFactory * te::layout::Context::getTemplateFactory ( )

Definition at line 106 of file Context.cpp.

Referenced by te::layout::TemplateEditor::TemplateEditor().

LayoutAbstractPaperType te::layout::Context::getTypePaper ( )
te::layout::LayoutUnitsMetrics te::layout::Context::getUnitMetric ( )

Definition at line 136 of file Context.cpp.

std::string te::layout::Context::getVersion ( )

Definition at line 166 of file Context.cpp.

double te::layout::Context::getZoomFactor ( )
Context& te::layout::Context::operator= ( Context const &  )
inlineprivate

Definition at line 71 of file Context.h.

void te::layout::Context::setBoxPaper ( te::gm::Envelope box)
void te::layout::Context::setBuildGraphicsItem ( BuildGraphicsItem build)

Definition at line 186 of file Context.cpp.

Referenced by te::layout::BuildContext::createLayoutContext().

void te::layout::Context::setCanvas ( te::map::Canvas canvas)

Definition at line 121 of file Context.cpp.

Referenced by te::layout::BuildContext::createLayoutContext().

void te::layout::Context::setDpiX ( double  dpiX)

Definition at line 151 of file Context.cpp.

Referenced by te::layout::Scene::printPaper().

void te::layout::Context::setDpiY ( double  dpiY)

Definition at line 161 of file Context.cpp.

Referenced by te::layout::Scene::printPaper().

void te::layout::Context::setItemFactory ( AbstractItemFactory factory)

Definition at line 91 of file Context.cpp.

Referenced by te::layout::BuildContext::createLayoutContext().

void te::layout::Context::setLineIntersectionMouseMode ( LayoutMode  mode)

Definition at line 196 of file Context.cpp.

Referenced by te::layout::ToolbarOutside::onLineIntersectionMouse().

void te::layout::Context::setOutsideFactory ( AbstractOutsideFactory factory)

Definition at line 101 of file Context.cpp.

Referenced by te::layout::BuildContext::createLayoutContext().

void te::layout::Context::setPaperConfig ( PaperConfig config)

Definition at line 176 of file Context.cpp.

Referenced by te::layout::BuildContext::createLayoutContext().

void te::layout::Context::setScene ( AbstractScene scene)

Definition at line 71 of file Context.cpp.

Referenced by te::layout::BuildContext::createLayoutContext().

void te::layout::Context::setTemplateFactory ( AbstractTemplateFactory factory)

Definition at line 111 of file Context.cpp.

Referenced by te::layout::BuildContext::createLayoutContext().

void te::layout::Context::setTypePaper ( LayoutAbstractPaperType  type)
void te::layout::Context::setUnitMetric ( LayoutUnitsMetrics  unit)

Definition at line 141 of file Context.cpp.

void te::layout::Context::setUtils ( Utils utils)

Definition at line 131 of file Context.cpp.

Referenced by te::layout::BuildContext::createLayoutContext().

void te::layout::Context::setZoomFactor ( double  zoomFactor)

Definition at line 81 of file Context.cpp.

Member Data Documentation

te::layout::Context * te::layout::Context::_instance = NULL
staticprivate

Definition at line 71 of file Context.h.

Referenced by getInstance().

BuildGraphicsItem* te::layout::Context::m_buildGraphicsItem
protected

Definition at line 143 of file Context.h.

te::map::Canvas* te::layout::Context::m_canvas
protected

Definition at line 134 of file Context.h.

double te::layout::Context::m_dpiX
protected

Definition at line 139 of file Context.h.

double te::layout::Context::m_dpiY
protected

Definition at line 140 of file Context.h.

AbstractItemFactory* te::layout::Context::m_itemFactory
protected

Definition at line 135 of file Context.h.

LayoutMode te::layout::Context::m_lineIntersectionMouseMode
protected

Definition at line 130 of file Context.h.

LayoutMode te::layout::Context::m_mode
protected

Definition at line 129 of file Context.h.

AbstractOutsideFactory* te::layout::Context::m_outsideFactory
protected

Definition at line 136 of file Context.h.

PaperConfig* te::layout::Context::m_paperConfig
protected

Definition at line 142 of file Context.h.

AbstractScene* te::layout::Context::m_scene
protected

Definition at line 132 of file Context.h.

AbstractTemplateFactory* te::layout::Context::m_templateFactory
protected

Definition at line 137 of file Context.h.

LayoutUnitsMetrics te::layout::Context::m_unitMetric
protected

Definition at line 131 of file Context.h.

Utils* te::layout::Context::m_utils
protected

Definition at line 138 of file Context.h.

std::string te::layout::Context::m_version
protected

Definition at line 141 of file Context.h.

double te::layout::Context::m_zoomFactor
protected

Definition at line 133 of file Context.h.


The documentation for this class was generated from the following files: