#include <Context.h>
Static Public Member Functions | |
static Context * | getInstance () |
This function is called to create an instance of the class. More... | |
Protected Attributes | |
BuildGraphicsItem * | m_buildGraphicsItem |
te::map::Canvas * | m_canvas |
double | m_dpiX |
double | m_dpiY |
AbstractItemFactory * | m_itemFactory |
LayoutMode | m_lineIntersectionMouseMode |
LayoutMode | m_mode |
AbstractOutsideFactory * | m_outsideFactory |
PaperConfig * | m_paperConfig |
AbstractScene * | m_scene |
AbstractTemplateFactory * | m_templateFactory |
LayoutUnitsMetrics | m_unitMetric |
Utils * | m_utils |
std::string | m_version |
double | m_zoomFactor |
Private Member Functions | |
Context () | |
Context (Context const &) | |
Context & | operator= (Context const &) |
Static Private Attributes | |
static Context * | _instance = NULL |
|
inlineprivate |
Definition at line 53 of file Context.h.
Referenced by getInstance().
|
inlineprivate |
te::gm::Envelope* te::layout::Context::getBoxPaper | ( | ) |
te::layout::BuildGraphicsItem * te::layout::Context::getBuildGraphicsItem | ( | ) |
Definition at line 181 of file Context.cpp.
Referenced by te::layout::Scene::buildTemplate(), te::layout::Scene::createItem(), and te::layout::Scene::createItemGroup().
te::map::Canvas * te::layout::Context::getCanvas | ( | ) |
Definition at line 116 of file Context.cpp.
Referenced by te::layout::Utils::changeCanvas(), te::layout::ItemGroupModel::draw(), te::layout::RectangleModel::draw(), te::layout::PaperModel::draw(), te::layout::ScaleModel::draw(), te::layout::LegendModel::draw(), te::layout::HorizontalRulerModel::draw(), te::layout::MapGridModel::draw(), te::layout::VerticalRulerModel::draw(), te::layout::Utils::drawLineW(), te::layout::Utils::drawRectW(), te::layout::Utils::getImageW(), te::layout::ItemController::redraw(), and te::layout::Utils::textBoundingBox().
double te::layout::Context::getDpiX | ( | ) |
Definition at line 146 of file Context.cpp.
Referenced by te::layout::Scene::calculateMatrixViewScene(), te::layout::VisualizationArea::createHorizontalRuler(), te::layout::VisualizationArea::createPaper(), te::layout::VisualizationArea::createVerticalRuler(), te::layout::Utils::mm2pixel(), and te::layout::Scene::printPaper().
double te::layout::Context::getDpiY | ( | ) |
Definition at line 156 of file Context.cpp.
Referenced by te::layout::Scene::calculateMatrixViewScene(), and te::layout::Scene::printPaper().
|
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::AbstractItemFactory * te::layout::Context::getItemFactory | ( | ) |
Definition at line 86 of file Context.cpp.
Referenced by te::layout::MapController::create(), te::layout::HorizontalRulerController::HorizontalRulerController(), te::layout::ItemGroupController::ItemGroupController(), te::layout::LegendController::LegendController(), te::layout::MapGridController::MapGridController(), te::layout::PaperController::PaperController(), te::layout::RectangleController::RectangleController(), te::layout::ScaleController::ScaleController(), 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::LayoutMode te::layout::Context::getMode | ( | ) |
Definition at line 56 of file Context.cpp.
Referenced by te::layout::OutsideArea::changeAction(), te::layout::ToolbarOutside::changeAction(), te::layout::Scene::createItem(), te::layout::isCurrentMapTools(), and te::layout::View::outsideAreaChangeContext().
te::layout::AbstractOutsideFactory * te::layout::Context::getOutsideFactory | ( | ) |
Definition at line 96 of file Context.cpp.
Referenced by te::layout::DisplayController::DisplayController(), te::layout::GridSettingsController::GridSettingsController(), te::layout::ObjectInspectorController::ObjectInspectorController(), te::layout::PageSetupController::PageSetupController(), te::layout::PropertiesController::PropertiesController(), and te::layout::ToolbarController::ToolbarController().
te::layout::PaperConfig * te::layout::Context::getPaperConfig | ( | ) | const |
Definition at line 171 of file Context.cpp.
Referenced by te::layout::Scene::calculateBoxPaper(), and te::layout::Scene::calculateWindow().
te::layout::AbstractScene * te::layout::Context::getScene | ( | ) |
Definition at line 61 of file Context.cpp.
Referenced by te::layout::ItemGroup::ItemGroup(), te::layout::MapItem::MapItem(), te::layout::BuildGraphicsItem::nameItem(), and te::layout::ObjectItem::ObjectItem().
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.
te::layout::Utils * te::layout::Context::getUtils | ( | ) |
Definition at line 126 of file Context.cpp.
Referenced by te::layout::ItemGroupModel::draw(), te::layout::RectangleModel::draw(), te::layout::GridGeodesicModel::draw(), te::layout::GridPlanarModel::draw(), te::layout::PaperModel::draw(), te::layout::ScaleModel::draw(), te::layout::HorizontalRulerModel::draw(), te::layout::LegendModel::draw(), te::layout::MapGridModel::draw(), te::layout::VerticalRulerModel::draw(), te::layout::GridGeodesicModel::drawHorizontalLines(), te::layout::GridPlanarModel::drawHorizontalLines(), te::layout::GridGeodesicModel::drawVerticalLines(), te::layout::GridPlanarModel::drawVerticalLines(), te::layout::MapItem::MapItem(), te::layout::Scene::renderScene(), te::layout::MapItem::setPixmap(), te::layout::ObjectItem::setPixmap(), te::layout::HorizontalRulerItem::updateObserver(), te::layout::VerticalRulerItem::updateObserver(), te::layout::RectangleItem::updateObserver(), te::layout::PaperItem::updateObserver(), te::layout::ScaleItem::updateObserver(), te::layout::LegendItem::updateObserver(), te::layout::ItemGroup::updateObserver(), and te::layout::MapItem::updateObserver().
std::string te::layout::Context::getVersion | ( | ) |
Definition at line 166 of file Context.cpp.
double te::layout::Context::getZoomFactor | ( | ) |
Definition at line 76 of file Context.cpp.
Referenced by te::layout::ObjectItem::mouseReleaseEvent(), and te::layout::Scene::redrawItems().
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::setMode | ( | LayoutMode | mode | ) |
Definition at line 66 of file Context.cpp.
Referenced by te::layout::OutsideArea::changeAction(), te::layout::ToolbarOutside::changeAction(), te::layout::Scene::createItem(), and te::layout::Scene::printPreview().
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.
|
staticprivate |
Definition at line 71 of file Context.h.
Referenced by getInstance().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |