26 #ifndef __TERRALIB_QT_WIDGETS_INTERNAL_CANVAS_H
27 #define __TERRALIB_QT_WIDGETS_INTERNAL_CANVAS_H
30 #include "../../../maptools/Canvas.h"
31 #include "../Config.h"
70 Canvas(
int w,
int h,
int devType = QInternal::Pixmap);
101 const double& urx,
const double& ury);
162 void drawImage(
int x,
int y,
int w,
int h,
char* src, std::size_t size,
te::map::ImageType t,
int sx,
int sy,
int sw,
int sh);
175 const std::string& txt,
177 double anchorX = 0.5,
double anchorY = 0.5,
178 int displacementX = 0,
int displacementY = 0);
181 const std::string& txt,
183 double anchorX = 0.5,
double anchorY = 0.5,
184 int displacementX = 0,
int displacementY = 0);
187 const std::string& txt,
189 double anchorX = 0.5,
double anchorY = 0.5,
190 int displacementX = 0,
int displacementY = 0);
193 const std::string& txt,
195 double anchorX = 0.5,
double anchorY = 0.5,
196 int displacementX = 0,
int displacementY = 0);
199 const std::string& txt,
201 double anchorX = 0.5,
double anchorY = 0.5,
202 int displacementX = 0,
int displacementY = 0);
205 const std::string& txt,
207 double anchorX = 0.5,
double anchorY = 0.5,
208 int displacementX = 0,
int displacementY = 0);
339 const std::string& txt,
341 double anchorX = 0.5,
double anchorY = 0.5,
342 int displacementX = 0,
int displacementY = 0);
362 double anchorX = 0.5,
double anchorY = 0.5,
363 int displacementX = 0,
int displacementY = 0);
404 void setDevice(QPaintDevice* device,
bool takeOwnerShip);
A helper class for 32-bit RGBA (Red-Green-Blue-Alpha channel) color.
An Envelope defines a 2D rectangular region.
It is a collection of other geometric objects.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
LineString is a curve with linear interpolation between points.
MultiLineString is a MultiCurve whose elements are LineStrings.
MultiPoint is a GeometryCollection whose elements are restricted to points.
MultiPolygon is a MultiSurface whose elements are Polygons.
MultiSurface is a class that represents a 2-dimensional GeometryCollection whose elements are surface...
A point with x and y coordinate values.
Polygon is a subclass of CurvePolygon whose rings are defined by linear rings.
A canvas is an abstraction of a drawing area.
An abstract class for raster data strucutures.
FontStyleType
It defines the style to use for a font.
FontWeightType
It gives the amount of weight or boldness to use for a font.
LineJoinStyle
This enum encodes enumerated values telling how line strings should be joined (between line segments)...
LineDashStyle
This enum encodes enumerated values telling how lines should be drawn. e.g. as a plain line or dash l...
ImageType
This enum specifies the possible input and output image formats supported by the canvas API.
LineCapStyle
This enum encodes enumerated values telling how line strings should be capped (at the two ends of the...
AlignType
This enum contains values to control the alignment of components (like Canvas and MapDisplay).
#define TE_OPAQUE
For an RGBA color this is the value of the alpha-channel for totally opaque.