28 #ifndef __TERRALIB_LAYOUT_INTERNAL_UTILS_H
29 #define __TERRALIB_LAYOUT_INTERNAL_UTILS_H
32 #include "../../geometry/Envelope.h"
33 #include "../../geometry/LinearRing.h"
34 #include "../../color/RGBAColor.h"
35 #include "../../maptools/Canvas.h"
36 #include "../../maptools/WorldDeviceTransformer.h"
38 #include "../../common/UnitOfMeasure.h"
39 #include "../../maptools/Enums.h"
40 #include "../../geometry/Point.h"
41 #include "../../geometry/Polygon.h"
49 const double TeCDR = 0.01745329251994329576;
50 const double TeCRD = 57.29577951308232087679;
103 virtual int mm2pixel(
double mm);
139 virtual void configCanvas(
te::gm::Envelope box,
bool resize =
true,
bool applyZoom =
true);
156 virtual void textBoundingBox(
double &w,
double &h, std::string txt);
175 virtual std::string convertDecimalToDegree(
const double& value,
bool bDegrees,
bool bMinutes,
bool bSeconds);
182 virtual double convertDegreeToDecimal();
191 virtual std::string convertNumberToString(
const double& value,
int precision);
199 virtual int roundNumber(
const double& value);
207 std::string proj4DescToPlanar(
int zone);
214 std::string proj4DescToGeodesic();
277 virtual char* imageToChar(std::string fileName, std::ifstream::pos_type &size);
285 virtual std::string getFileExtension(std::string fileName);
292 virtual void setApplyZoom(
bool apply);
300 virtual bool getApplyZoom();
305 virtual void resetCanvas();
#define TELAYOUTEXPORT
You can use this macro in order to export/import classes and functions from this module.
A LinearRing is a LineString that is both closed and simple.
A point with x and y coordinate values.
An Envelope defines a 2D rectangular region.
boost::shared_ptr< UnitOfMeasure > UnitOfMeasurePtr
Polygon is a subclass of CurvePolygon whose rings are defined by linear rings.
A helper class for 32-bit RGBA (Red-Green-Blue-Alpha channel) color.
Configuration flags for the Terrralib Layout module.
Utility class with functions to manipulate the canvas and conversion between projections.
const double TeCDR
Conversion factor: degrees to radians.
const double TeCRD
Conversion factor: radians to degrees.