#include <Utils.h>
Public Member Functions | |
virtual te::gm::LinearRing * | addCoordsInX (te::gm::Envelope box, double gap) |
virtual te::gm::LinearRing * | addCoordsInY (te::gm::Envelope box, double gap) |
virtual void | configCanvas (te::gm::Envelope box, bool resize=true) |
virtual void | configGeoCanvas (te::gm::Envelope boxgeo, te::gm::Envelope boxmm, bool resize=true) |
virtual void | configGeoCanvasFromGeo (te::gm::Envelope boxgeo, te::gm::Envelope boxmm, bool resize=true) |
virtual te::gm::LinearRing * | createSimpleLine (te::gm::Envelope box) |
virtual void | drawLineW (te::gm::LinearRing *line) |
virtual void | drawRectW (te::gm::Envelope box) |
virtual te::color::RGBAColor ** | getImageW (te::gm::Envelope boxmm) |
virtual int | mm2pixel (double mm) |
virtual void | textBoundingBox (double &w, double &h, std::string txt) |
Utils () | |
virtual te::gm::Envelope | viewportBox (te::gm::Envelope box) |
virtual te::gm::Envelope | viewportBoxFromGeo (te::gm::Envelope boxgeo, te::gm::Envelope boxmm) |
virtual | ~Utils () |
Protected Member Functions | |
virtual void | changeCanvas (te::gm::Envelope viewport, te::gm::Envelope world, bool resize=true) |
virtual te::gm::Envelope | transformToViewport (te::map::WorldDeviceTransformer transf, te::gm::Envelope box) |
virtual te::gm::Envelope | viewportBoxFromMM (te::gm::Envelope box) |
|
virtual |
Definition at line 234 of file Utils.cpp.
References te::gm::Envelope::getLowerLeftX(), te::gm::Envelope::getLowerLeftY(), te::gm::Envelope::getUpperRightX(), te::gm::LineStringType, te::gm::LineString::setNumCoordinates(), and te::gm::LineString::setPointN().
Referenced by te::layout::GridGeodesicModel::drawVerticalLines().
|
virtual |
Definition at line 259 of file Utils.cpp.
References te::gm::Envelope::getLowerLeftX(), te::gm::Envelope::getLowerLeftY(), te::gm::Envelope::getUpperRightX(), te::gm::Envelope::getUpperRightY(), te::gm::LineStringType, te::gm::LineString::setNumCoordinates(), and te::gm::LineString::setPointN().
Referenced by te::layout::GridGeodesicModel::drawHorizontalLines().
|
protectedvirtual |
Definition at line 142 of file Utils.cpp.
References te::layout::Context::getCanvas(), te::gm::Envelope::getHeight(), te::layout::Context::getInstance(), te::gm::Envelope::getLowerLeftX(), te::gm::Envelope::getLowerLeftY(), te::gm::Envelope::getUpperRightX(), te::gm::Envelope::getUpperRightY(), te::gm::Envelope::getWidth(), te::map::Canvas::resize(), te::map::Canvas::setBackgroundColor(), and te::map::Canvas::setWindow().
|
virtual |
Definition at line 124 of file Utils.cpp.
Referenced by te::layout::ItemGroupModel::draw(), te::layout::RectangleModel::draw(), te::layout::PaperModel::draw(), te::layout::ScaleModel::draw(), te::layout::HorizontalRulerModel::draw(), te::layout::LegendModel::draw(), te::layout::MapGridModel::draw(), and te::layout::VerticalRulerModel::draw().
|
virtual |
Definition at line 130 of file Utils.cpp.
Referenced by te::layout::MapGridModel::drawGrid().
|
virtual |
|
virtual |
Definition at line 85 of file Utils.cpp.
References te::gm::Envelope::getLowerLeftX(), te::gm::Envelope::getLowerLeftY(), te::gm::Envelope::getUpperRightX(), te::gm::Envelope::getUpperRightY(), te::gm::LineStringType, te::gm::LineString::setNumCoordinates(), and te::gm::LineString::setPointN().
Referenced by te::layout::GridPlanarModel::drawHorizontalLines(), te::layout::AbstractRulerModel::drawLineW(), and te::layout::GridPlanarModel::drawVerticalLines().
|
virtual |
Definition at line 73 of file Utils.cpp.
References te::map::Canvas::draw(), te::layout::Context::getCanvas(), and te::layout::Context::getInstance().
Referenced by te::layout::GridGeodesicModel::drawHorizontalLines(), te::layout::GridPlanarModel::drawHorizontalLines(), te::layout::AbstractRulerModel::drawLineW(), te::layout::GridGeodesicModel::drawVerticalLines(), and te::layout::GridPlanarModel::drawVerticalLines().
|
virtual |
Definition at line 49 of file Utils.cpp.
References te::map::Canvas::draw(), te::layout::Context::getCanvas(), te::layout::Context::getInstance(), te::gm::Envelope::getLowerLeftX(), te::gm::Envelope::getLowerLeftY(), te::gm::Envelope::getUpperRightX(), te::gm::Envelope::getUpperRightY(), te::gm::LineStringType, te::gm::PolygonType, te::gm::LineString::setPointN(), and te::gm::CurvePolygon::setRingN().
Referenced by te::layout::ItemGroupModel::draw(), te::layout::RectangleModel::draw(), te::layout::ScaleModel::draw(), te::layout::PaperModel::draw(), te::layout::LegendModel::draw(), te::layout::MapGridModel::draw(), te::layout::LegendModel::drawLegend(), te::layout::AbstractRulerModel::drawRectW(), and te::layout::ScaleModel::drawScale().
|
virtual |
Definition at line 97 of file Utils.cpp.
References te::layout::Context::getCanvas(), te::gm::Envelope::getHeight(), te::map::Canvas::getImage(), te::layout::Context::getInstance(), te::gm::Envelope::getWidth(), and te::gm::Envelope::isValid().
Referenced by te::layout::ItemGroupModel::draw(), te::layout::RectangleModel::draw(), te::layout::PaperModel::draw(), te::layout::ScaleModel::draw(), te::layout::HorizontalRulerModel::draw(), te::layout::LegendModel::draw(), te::layout::MapGridModel::draw(), and te::layout::VerticalRulerModel::draw().
|
virtual |
Definition at line 117 of file Utils.cpp.
References te::layout::Context::getDpiX(), and te::layout::Context::getInstance().
|
virtual |
Definition at line 284 of file Utils.cpp.
References te::layout::Context::getCanvas(), te::gm::Envelope::getHeight(), te::layout::Context::getInstance(), te::gm::Geometry::getMBR(), te::map::Canvas::getTextBoundary(), and te::gm::Envelope::getWidth().
Referenced by te::layout::LegendModel::drawLegend().
|
protectedvirtual |
Definition at line 213 of file Utils.cpp.
References te::gm::Envelope::getLowerLeftX(), te::gm::Envelope::getLowerLeftY(), te::gm::Envelope::getUpperRightX(), te::gm::Envelope::getUpperRightY(), and te::map::WorldDeviceTransformer::world2Device().
|
virtual |
Definition at line 164 of file Utils.cpp.
References te::gm::Envelope::isValid().
Referenced by te::layout::MapItem::MapItem(), 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().
|
virtual |
Definition at line 190 of file Utils.cpp.
References te::gm::Envelope::getHeight(), te::gm::Envelope::getLowerLeftX(), te::gm::Envelope::getLowerLeftY(), te::gm::Envelope::getUpperRightX(), te::gm::Envelope::getUpperRightY(), te::gm::Envelope::getWidth(), te::gm::Envelope::isValid(), and te::map::WorldDeviceTransformer::setTransformationParameters().
|
protectedvirtual |
Definition at line 175 of file Utils.cpp.
References te::gm::Envelope::getHeight(), te::gm::Envelope::getLowerLeftX(), te::gm::Envelope::getLowerLeftY(), te::gm::Envelope::getUpperRightX(), te::gm::Envelope::getUpperRightY(), te::gm::Envelope::getWidth(), and te::map::WorldDeviceTransformer::setTransformationParameters().