A canvas is an abstraction of a drawing area. More...
#include <Canvas.h>
Public Member Functions | |
Initializer Methods | |
Methods related to instantiation and destruction. | |
Canvas () | |
Constructor. More... | |
virtual | ~Canvas () |
Virtual destructor. More... | |
Accessor Methods | |
Methods used to access internal attributes. | |
virtual void | setWindow (const double &llx, const double &lly, const double &urx, const double &ury)=0 |
It sets the world (or window) coordinates area (supposing a cartesian reference system). More... | |
virtual void | calcAspectRatio (double &llx, double &lly, double &urx, double &ury, const AlignType hAlign=Center, const AlignType vAlign=Center)=0 |
It calculates the best aspect ratio for world (or window) coordinates area (supposing a cartesian reference system). More... | |
virtual void | calcAspectRatio (te::gm::Envelope *envelope, const AlignType hAlign=Center, const AlignType vAlign=Center)=0 |
It calculates the best aspect ratio for world (or window) coordinates area (supposing a cartesian reference system). More... | |
virtual void | setBackgroundColor (const te::color::RGBAColor &color)=0 |
It sets the canvas background color. More... | |
virtual te::color::RGBAColor | getBackgroundColor () const =0 |
It returns the canvas background color. More... | |
virtual void | clear ()=0 |
It clears the canvas content and fills with the background color. More... | |
virtual void | resize (int w, int h)=0 |
It adjusts the canvas size (width and height). More... | |
virtual int | getWidth () const =0 |
It returns the canvas width. More... | |
virtual int | getHeight () const =0 |
It returns the canvas height. More... | |
Geographical Objects Drawing Methods (TerraLib Geometry) | |
Methods used to draw geographical objects encoded as a TerraLib Geometry. Note that the visual (style and symbol) used to draw geometries is affected by the visual methods. | |
virtual void | draw (const te::gm::Geometry *geom)=0 |
It draws the geometry on canvas. More... | |
virtual void | draw (const te::gm::Point *point)=0 |
It draws the point on canvas. More... | |
virtual void | draw (const te::gm::MultiPoint *mpoint)=0 |
It draws the MultiPoint on canvas. More... | |
virtual void | draw (const te::gm::LineString *line)=0 |
It draws the LineString on canvas. More... | |
virtual void | draw (const te::gm::MultiLineString *mline)=0 |
It draws the MultiLineString on canvas. More... | |
virtual void | draw (const te::gm::Polygon *poly)=0 |
It draws the polygon on canvas. More... | |
virtual void | draw (const te::gm::MultiPolygon *mpoly)=0 |
It draws the MultiPolygon on canvas. More... | |
virtual void | draw (const te::gm::GeometryCollection *g)=0 |
It draws the GeometryCollection on canvas. More... | |
virtual void | draw (const te::gm::MultiSurface *g)=0 |
It draws the MultiSurface on canvas. More... | |
Image Handling | |
Methods used to draw an image on Canvas. | |
virtual void | save (const char *fileName, ImageType t, int quality=75, int fg=0) const =0 |
It saves the canvas content to a file image in the specified format type. More... | |
virtual char * | getImage (ImageType t, std::size_t &size, int quality=75, int fg=0) const =0 |
It returns the internal content as an image in a specific format (PNG, JPEG, ...). More... | |
virtual te::color::RGBAColor ** | getImage (const int x=0, const int y=0, const int w=0, const int h=0) const =0 |
It gets a RGBA color array from internal canvas buffer. More... | |
virtual void | freeImage (char *img) const =0 |
This is the method that you should use to release an image generated by the canvas. More... | |
virtual void | drawImage (char *src, std::size_t size, ImageType t)=0 |
It draws the src image over the canvas. More... | |
virtual void | drawImage (te::color::RGBAColor **src, int w, int h)=0 |
It draws the src image over the canvas. More... | |
virtual void | drawImage (int x, int y, char *src, std::size_t size, ImageType t)=0 |
It draws the src image over the canvas at the specified position (x, y). More... | |
virtual void | drawImage (int x, int y, te::color::RGBAColor **src, int w, int h)=0 |
It draws the src image over the canvas at the specified position (x, y). More... | |
virtual void | drawImage (int x, int y, int w, int h, char *src, std::size_t size, ImageType t)=0 |
It draws the source image into the rectangle at position (x, y) with the given width and height. More... | |
virtual void | drawImage (int x, int y, int w, int h, te::color::RGBAColor **src, int srcw, int srch)=0 |
It draws the source image into the rectangle at position (x, y) with the given width and height. More... | |
virtual void | drawImage (int x, int y, int w, int h, char *src, std::size_t size, ImageType t, int sx, int sy, int sw, int sh)=0 |
It draws the rectangular portion with the origin (sx, sy), width sw and height sh, of the source image, at the point (x, y), with a width of w and a height of h. If sw or sh are equal to zero the width/height of the pixmap is used and adjusted by the offset sx/sy. More... | |
virtual void | drawImage (int x, int y, int w, int h, te::color::RGBAColor **src, int sx, int sy, int sw, int sh)=0 |
It draws the rectangular portion with the origin (sx, sy), width sw and height sh, of the source image, at the point (x, y), with a width of w and a height of h. If sw or sh are equal to zero the width/height of the pixmap is used and adjusted by the offset sx/sy. More... | |
virtual void | drawImage (int x, int y, te::rst::Raster *src, int opacity=TE_OPAQUE)=0 |
It draws a raster over the canvas at the specified position (x, y). The raster must be with three 8-bit bands (1R, 2G, 3B),. More... | |
virtual void | drawImage (int x, int y, int w, int h, te::rst::Raster *src, int sx, int sy, int sw, int sh, int opacity=TE_OPAQUE)=0 |
It draws the rectangular portion with the origin (sx, sy), width sw and height sh, of the source raster, starting at the point (x, y), with a width of w and a height of h. If sw or sh are equal to zero the width/height of the pixmap is used and adjusted by the offset sx/sy. More... | |
Pixel Handling | |
Methods used to draw a pixel on Canvas. | |
virtual void | drawPixel (int x, int y)=0 |
It sets a pixel using the point pen. More... | |
virtual void | drawPixel (int x, int y, const te::color::RGBAColor &color)=0 |
It sets a pixel to a particular color. More... | |
Text Handling | |
Methods used to draw a text on Canvas. | |
virtual void | drawText (int x, int y, const std::string &txt, float angle=0.0, double anchorX=0.5, double anchorY=0.5, int displacementX=0, int displacementY=0)=0 |
It draws a text. More... | |
virtual void | drawText (const te::gm::Point *p, const std::string &txt, float angle=0.0, double anchorX=0.5, double anchorY=0.5, int displacementX=0, int displacementY=0)=0 |
It draws a text. More... | |
virtual void | drawText (const double &x, const double &y, const std::string &txt, float angle=0.0, double anchorX=0.5, double anchorY=0.5, int displacementX=0, int displacementY=0)=0 |
It draws a text. More... | |
virtual te::gm::Polygon * | getTextBoundary (int x, int y, const std::string &txt, float angle=0.0, double anchorX=0.5, double anchorY=0.5, int displacementX=0, int displacementY=0)=0 |
It returns the text boundary (its enclose rectangle). More... | |
virtual te::gm::Polygon * | getTextBoundary (const te::gm::Point *p, const std::string &txt, float angle=0.0, double anchorX=0.5, double anchorY=0.5, int displacementX=0, int displacementY=0)=0 |
It returns the text boundary (its enclose rectangle). More... | |
virtual te::gm::Polygon * | getTextBoundary (const double &x, const double &y, const std::string &txt, float angle=0.0, double anchorX=0.5, double anchorY=0.5, int displacementX=0, int displacementY=0)=0 |
It returns the text boundary (its enclose rectangle). More... | |
Visual and Style Configuration | |
Note that the visual (style and symbol) used to draw geometries is affected by the visual methods. | |
virtual void | setTextColor (const te::color::RGBAColor &color)=0 |
It sets the text drawing color. More... | |
virtual void | setTextOpacity (int opacity)=0 |
It sets the text opacity. More... | |
virtual void | setFontFamily (const std::string &family)=0 |
It sets the text font family. More... | |
virtual void | setTextPointSize (double size)=0 |
It sets the text point Size. More... | |
virtual void | setTextStyle (te::se::Font::FontStyleType style)=0 |
It sets the text style. More... | |
virtual void | setTextWeight (te::se::Font::FontWeightType weight)=0 |
It sets the text weight. More... | |
virtual void | setTextStretch (std::size_t stretch)=0 |
It sets the text stretch. More... | |
virtual void | setTextUnderline (bool b)=0 |
It sets the text underline flag. More... | |
virtual void | setTextOverline (bool b)=0 |
It sets the text overline flag. More... | |
virtual void | setTextStrikeOut (bool b)=0 |
It sets the text strike out flag. More... | |
virtual void | setTextDecorationColor (const te::color::RGBAColor &color)=0 |
It sets the text color for drawing text decoration. More... | |
virtual void | setTextDecorationWidth (int width)=0 |
It sets the width for drawing text decoration. More... | |
virtual void | setTextContourColor (const te::color::RGBAColor &color)=0 |
It sets the text contour (outline) drawing color. More... | |
virtual void | setTextContourEnabled (bool b)=0 |
It controls the display of the text outline. More... | |
virtual void | setTextContourOpacity (int opacity)=0 |
It sets the text contour opacity. More... | |
virtual void | setTextContourWidth (int width)=0 |
It sets the text contour width. More... | |
virtual void | setTextJustification (int justType)=0 |
It sets the text justification for multi line text. More... | |
virtual void | setTextMultiLineSpacing (int spacing)=0 |
It sets the multi line text spacing. More... | |
virtual void | setPointColor (const te::color::RGBAColor &color)=0 |
It sets the point drawing color. More... | |
virtual void | setPointWidth (int w)=0 |
It sets the point width. If point has a patterns, this pattern is scaled to width. More... | |
virtual void | setPointPattern (te::color::RGBAColor **pattern, int ncols, int nrows)=0 |
It sets the point pattern. More... | |
virtual void | setPointPattern (char *pattern, std::size_t size, ImageType t)=0 |
It sets the point pattern using a buffered image. More... | |
virtual void | setPointPatternRotation (const double &angle)=0 |
It sets the point pattern rotation. Rotation is made from the center of the pattern. More... | |
virtual void | setPointPatternOpacity (int opacity)=0 |
It sets the point pattern opacity. More... | |
virtual void | setLineColor (const te::color::RGBAColor &color)=0 |
It sets the pen color used to draw line geometries. More... | |
virtual void | setLinePattern (te::color::RGBAColor **pattern, int ncols, int nrows)=0 |
It sets the line pattern. More... | |
virtual void | setLinePattern (char *pattern, std::size_t size, ImageType t)=0 |
It sets the line pattern using a buffered image. More... | |
virtual void | setLinePatternRotation (const double &angle)=0 |
It sets the line pattern rotation. Rotation is made from the center of the pattern. More... | |
virtual void | setLinePatternOpacity (int opacity)=0 |
It sets the line pattern opacity. More... | |
virtual void | setLineWidth (int w)=0 |
It sets the line width. More... | |
virtual void | setLineDashStyle (LineDashStyle style)=0 |
It sets the line dash style. More... | |
virtual void | setLineDashStyle (const std::vector< double > &style)=0 |
It sets the line dash style to the given pattern. More... | |
virtual void | setLineCapStyle (LineCapStyle style)=0 |
It sets the line cap style. More... | |
virtual void | setLineJoinStyle (LineJoinStyle style)=0 |
It sets the line join style. More... | |
virtual void | setPolygonFillColor (const te::color::RGBAColor &color)=0 |
It sets the color used to fill the draw of polygon geometries. More... | |
virtual void | setPolygonContourColor (const te::color::RGBAColor &color)=0 |
It sets the pen color used to draw the boundary of polygon geometries. More... | |
virtual void | setPolygonFillPattern (te::color::RGBAColor **pattern, int ncols, int nrows)=0 |
It sets the polygon fill pattern. More... | |
virtual void | setPolygonFillPattern (char *pattern, std::size_t size, ImageType t)=0 |
It sets the polygon fill pattern using a buffered image. More... | |
virtual void | setPolygonPatternWidth (int w)=0 |
It sets the polygon pattern width. More... | |
virtual void | setPolygonPatternRotation (const double &angle)=0 |
It sets the polygon pattern rotation. More... | |
virtual void | setPolygonPatternOpacity (int opacity)=0 |
It sets the polygon pattern opacity. More... | |
virtual void | setPolygonContourPattern (te::color::RGBAColor **pattern, int ncols, int nrows)=0 |
It sets the pen pattern used to draw the boundary of polygon geometries. More... | |
virtual void | setPolygonContourPattern (char *pattern, std::size_t size, ImageType t)=0 |
It sets the pen pattern used to draw the boundary of polygon geometries using a buffered image. More... | |
virtual void | setPolygonContourWidth (int w)=0 |
It sets the polygon contour width. More... | |
virtual void | setPolygonContourPatternRotation (const double &angle)=0 |
It sets the polygon contour pattern rotation. More... | |
virtual void | setPolygonContourPatternOpacity (int opacity)=0 |
It sets the polygon contour pattern opacity. More... | |
virtual void | setPolygonContourDashStyle (LineDashStyle style)=0 |
It sets the polygon contour dash style. More... | |
virtual void | setPolygonContourDashStyle (const std::vector< double > &style)=0 |
It sets the polygon contour dash style to the given pattern. More... | |
virtual void | setPolygonContourCapStyle (LineCapStyle style)=0 |
It sets the polygon contour cap style. More... | |
virtual void | setPolygonContourJoinStyle (LineJoinStyle style)=0 |
It sets the polygon contour join style. More... | |
virtual void | setEraseMode ()=0 |
It sets the painter to erase mode. More... | |
virtual void | setNormalMode ()=0 |
It sets the painter to normal copy source to destination mode. More... | |
A canvas is an abstraction of a drawing area.
What is a Canvas?
It is an abstraction of a drawing area. You can use it to:
The Canvas can be viewed as one of the rendering surface used by an application to show a map.
|
inlinevirtual |
Virtual destructor.
Reimplemented in te::qt::widgets::Canvas.
|
pure virtual |
It calculates the best aspect ratio for world (or window) coordinates area (supposing a cartesian reference system).
llx | Lower left x-coordinate of the World. |
lly | Lower left y-coordinate of the World. |
urx | Upper right x-coordinate of the World. |
ury | Upper right y-coordinate of the World. |
hAlign | Horizontal Alignment. It can be left, center or right. |
vAlign | Vertical Alignment. It can be top, center or bottom. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It calculates the best aspect ratio for world (or window) coordinates area (supposing a cartesian reference system).
envelope | A rectangle with world coordinates that will be adjusted. |
hAlign | Horizontal Alignment. It can be left, center or right. |
vAlign | Vertical Alignment. It can be top, center or bottom. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It clears the canvas content and fills with the background color.
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It draws the geometry on canvas.
geom | Any geometry (point, line, polygon, ...). |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
|
pure virtual |
It draws the MultiPoint on canvas.
mpoint | The MultiPoint. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It draws the LineString on canvas.
line | The LineString. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It draws the MultiLineString on canvas.
mline | The MultiLineString. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
|
pure virtual |
It draws the MultiPolygon on canvas.
mpoly | The MultiPolygon. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It draws the GeometryCollection on canvas.
g | The GeometryCollection. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It draws the MultiSurface on canvas.
g | The MultiSurface. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It draws the src image over the canvas.
src | A source image of any type (PNG, JPEG, GIF, ...). |
size | The image size in bytes. |
t | The image format type (see ImageType enum). |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It draws the src image over the canvas.
src | The source image. |
w | The image width (number of columns). |
h | The image height (number of rows). |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It draws the src image over the canvas at the specified position (x, y).
x | The canvas start position where the src image will be drawn. |
y | The canvas start position where the src image will be drawn. |
src | A source image of any type (PNG, JPEG, GIF, ...). |
size | The image size in bytes. |
t | The image format type (see ImageType enum). |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It draws the src image over the canvas at the specified position (x, y).
x | The canvas start position where the src image will be drawn. |
y | The canvas start position where the src image will be drawn. |
src | The source image. |
w | The image width (number of columns). |
h | The image height (number of rows). |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It draws the source image into the rectangle at position (x, y) with the given width and height.
x | The canvas start position where the src image will be drawn. |
y | The canvas start position where the src image will be drawn. |
w | The rectangle width. |
h | The rectangle height. |
src | A source image of any type (PNG, JPEG, GIF, ...). |
size | The image size in bytes. |
t | The image format type (see ImageType enum). |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It draws the source image into the rectangle at position (x, y) with the given width and height.
x | The canvas start position where the src image will be drawn. |
y | The canvas start position where the src image will be drawn. |
w | The rectangle width. |
h | The rectangle height. |
src | The source image. |
srcw | The source image width (number of columns). |
srch | The source image height (number of rows). |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It draws the rectangular portion with the origin (sx, sy), width sw and height sh, of the source image, at the point (x, y), with a width of w and a height of h. If sw or sh are equal to zero the width/height of the pixmap is used and adjusted by the offset sx/sy.
x | The canvas start position where the src image will be drawn. |
y | The canvas start position where the src image will be drawn. |
w | The rectangle width. |
h | The rectangle height. |
src | A source image of any type (PNG, JPEG, GIF, ...). |
size | The image size in bytes. |
t | The image format type (see ImageType enum). |
sx | The source image position. |
sy | The source image position. |
sw | The source image rectangle width. |
sh | The source image rectangle height. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It draws the rectangular portion with the origin (sx, sy), width sw and height sh, of the source image, at the point (x, y), with a width of w and a height of h. If sw or sh are equal to zero the width/height of the pixmap is used and adjusted by the offset sx/sy.
x | The canvas start position where the src image will be drawn. |
y | The canvas start position where the src image will be drawn. |
w | The rectangle width. |
h | The rectangle height. |
src | The source image. |
sx | The source image start position. |
sy | The source image start position. |
sw | The source image rectangle width. |
sh | The source image rectangle height. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It draws a raster over the canvas at the specified position (x, y). The raster must be with three 8-bit bands (1R, 2G, 3B),.
x | The canvas start position in x where the raster image will be drawn. |
y | The canvas start position in y where the raster image will be drawn. |
src | The source raster. |
opacity | The opacity value used to draw the image |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It draws the rectangular portion with the origin (sx, sy), width sw and height sh, of the source raster, starting at the point (x, y), with a width of w and a height of h. If sw or sh are equal to zero the width/height of the pixmap is used and adjusted by the offset sx/sy.
x | The canvas start position where the src image will be drawn. |
y | The canvas start position where the src image will be drawn. |
w | The rectangle width. |
h | The rectangle height. |
src | The source raster. |
sx | The source image start position. |
sy | The source image start position. |
sw | The source image rectangle width. |
sh | The source image rectangle height. |
opacity | The opacity value used to draw the image |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets a pixel using the point pen.
x | Column. |
y | Row. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets a pixel to a particular color.
The color must be an RGBA value. With the following range:
A: 0-255.
x | Column. |
y | Row. |
color | Pixel color. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It draws a text.
Color and font family should be defined in advance.
x | The text entry point x in device coordinate. |
y | The text entry point y in device coordinate. |
txt | The text to be drawn. |
angle | The text rotation. |
anchorX | The horizontal text anchor. |
anchorY | The vertical text anchor. |
displacementX | The horizontal text displacement. |
displacementY | The vertical text displacement. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It draws a text.
Color and font family should be defined in advance.
p | The text entry point in world coordinate. |
txt | The text to be drawn. |
angle | The text rotation. |
anchorX | The horizontal text anchor. |
anchorY | The vertical text anchor. |
displacementX | The horizontal text displacement. |
displacementY | The vertical text displacement. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It draws a text.
Color and font family should be defined in advance.
x | The text entry point x in world coordinate. |
y | The text entry point y in world coordinate. |
txt | The text to be drawn. |
angle | The text rotation. |
anchorX | The horizontal text anchor. |
anchorY | The vertical text anchor. |
displacementX | The horizontal text displacement. |
displacementY | The vertical text displacement. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
This is the method that you should use to release an image generated by the canvas.
img | A pointer to an image previously created by the canvas. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It returns the canvas background color.
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
|
pure virtual |
It returns the internal content as an image in a specific format (PNG, JPEG, ...).
t | The image format type (see ImageType enum). |
size | The image size in bytes. |
quality | JPEG quality, generally a value between 0 and 95. |
fg | Foreground color for WBMP images. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It gets a RGBA color array from internal canvas buffer.
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It returns the text boundary (its enclose rectangle).
Color and font family should be defined in advance.
x | The text entry point x in device coordinate. |
y | The text entry point y in device coordinate. |
txt | The text to be drawn. |
angle | The text rotation. |
anchorX | The horizontal text anchor. |
anchorY | The vertical text anchor. |
displacementX | The horizontal text displacement. |
displacementY | The vertical text displacement. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It returns the text boundary (its enclose rectangle).
Color and font family should be defined in advance.
p | The text entry point in world coordinate. |
txt | The text to be drawn. |
angle | The text rotation. |
anchorX | The horizontal text anchor. |
anchorY | The vertical text anchor. |
displacementX | The horizontal text displacement. |
displacementY | The vertical text displacement. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It returns the text boundary (its enclose rectangle).
Color and font family should be defined in advance.
x | The text entry point x in world coordinate. |
y | The text entry point y in world coordinate. |
txt | The text to be drawn. |
angle | The text rotation. |
anchorX | The horizontal text anchor. |
anchorY | The vertical text anchor. |
displacementX | The horizontal text displacement. |
displacementY | The vertical text displacement. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
|
pure virtual |
It adjusts the canvas size (width and height).
w | The new canvas width. |
h | The new canvas height. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It saves the canvas content to a file image in the specified format type.
fileName | The file name and path where the image will be saved. |
t | The image format type (see ImageType enum). |
quality | JPEG quality, generally a value between 0 and 95. |
fg | Foreground color for WBMP images. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the canvas background color.
The default is totally transparent (255, 255, 255, 0).
color | The background color. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the painter to erase mode.
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the text font family.
family | The new font family for drawing a text. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the line cap style.
style | The line cap style. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the pen color used to draw line geometries.
This method will drop any pattern or line style previously set.
color | The color to be used by the pen. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the line dash style.
style | The line dash style. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the line dash style to the given pattern.
style | The line custom dash style. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the line join style.
style | The line join style. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the line pattern.
The pattern is a matrix of int's, and each position corresponds to a RGBA color.
pattern | The pattern matrix: a square matrix of int's where each position corresponds to a RGBA color. |
ncols | Number of columns in the matrix. |
nrows | Number of rows in the matrix. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the line pattern using a buffered image.
pattern | The buffered image. |
size | The buffer image size. |
t | The image type used by the style. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the line pattern opacity.
opacity | The pattern opacity. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the line pattern rotation. Rotation is made from the center of the pattern.
angle | The rotation angle in degress. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
|
pure virtual |
It sets the painter to normal copy source to destination mode.
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the point drawing color.
This method will instruct the canvas to draw points like pixels. Any pattern previously set will be released.
color | The new color for drawing a point. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the point pattern.
The pattern is a matrix of int's, and each position corresponds to a RGBA color.
pattern | The pattern matrix: a square matrix of int's where each position corresponds to a RGBA color. |
ncols | Number of columns in the matrix. |
nrows | Number of rows in the matrix. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the point pattern using a buffered image.
pattern | The buffered image. |
size | The buffer image size. |
t | The image type used by the style. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the point pattern opacity.
opacity | The pattern opacity. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the point pattern rotation. Rotation is made from the center of the pattern.
angle | The rotation angle in degress. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the point width. If point has a patterns, this pattern is scaled to width.
w | The width used to draw point. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the polygon contour cap style.
style | The polygon contour cap style. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the pen color used to draw the boundary of polygon geometries.
color | The color to be used to outline a polygon. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the polygon contour dash style.
style | The polygon contour dash style. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the polygon contour dash style to the given pattern.
style | The polygon contour custom dash style. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the polygon contour join style.
style | The polygon contour join style. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the pen pattern used to draw the boundary of polygon geometries.
The pattern is a matrix of int's, and each position corresponds to a RGBA color.
pattern | The pattern matrix: a square matrix of int's where each position corresponds to a RGBA color. |
ncols | Number of columns in the matrix. |
nrows | Number of rows in the matrix. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the pen pattern used to draw the boundary of polygon geometries using a buffered image.
pattern | The buffered image. |
size | The buffer image size. |
t | The image type used by the style. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the polygon contour pattern opacity.
opacity | The pattern opacity. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the polygon contour pattern rotation.
angle | The rotation angle in degress. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the polygon contour width.
w | The contour width. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the color used to fill the draw of polygon geometries.
color | The color to be used when filling a polygon. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the polygon fill pattern.
The pattern is a matrix of int's, and each position corresponds to a RGBA color.
pattern | The style matrix: a square matrix of int's where each position corresponds to a RGBA color. |
ncols | Number of columns in the matrix. |
nrows | Number of rows in the matrix. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the polygon fill pattern using a buffered image.
pattern | The buffered image. |
size | The buffer image size. |
t | The image type used by the style. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the polygon pattern opacity.
opacity | The pattern opacity. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the polygon pattern rotation.
angle | The rotation angle in degress. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the polygon pattern width.
w | The pattern width. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the text drawing color.
color | The new color for drawing a text. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the text contour (outline) drawing color.
color | The new color for drawing the contour of texts. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It controls the display of the text outline.
b | True to display and false to not display. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the text contour opacity.
opacity | The new opacity for drawing the text contour. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the text contour width.
width | The new width for drawing the text contour. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the text color for drawing text decoration.
color | The new color for drawing text decoration. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the width for drawing text decoration.
width | The new width for drawing text decoration. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the text justification for multi line text.
just | The new justification for drawing a multi line text. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the multi line text spacing.
spacing | The new spacing for drawing a multi line text. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the text opacity.
opacity | The new opacity for drawing a text. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the text overline flag.
b | True: for overline. False otherwise. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the text point Size.
size | The new point size for drawing a text. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the text stretch.
stretch | The new stretch for drawing a text. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the text strike out flag.
b | True: for strike out. False otherwise. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the text style.
style | The new style for drawing a text. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the text underline flag.
b | True: for underline. False otherwise. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the text weight.
weight | The new weight for drawing a text. |
Implemented in te::qt::widgets::Canvas.
|
pure virtual |
It sets the world (or window) coordinates area (supposing a cartesian reference system).
llx | Lower left x-coordinate of the World. |
lly | Lower left y-coordinate of the World. |
urx | Upper right x-coordinate of the World. |
ury | Upper right y-coordinate of the World. |
Implemented in te::qt::widgets::Canvas.