#include <TdkCanvas.h>
Inheritance diagram for TdkCanvas:
Public Types | |
enum | TdkCanvasBuffer { cbrBack = 0, cbrFront = 1, cbrCache = 2 } |
This enum specifies the possible drawing states on canvas. | |
enum | TdkPaintMode { pmdREPLACE = 1, pmdXOR = 2, pmdNotXOR = 3, pmdNot = 4 } |
This enum specifies the possible input and output image formats supported by this canvas API. | |
See that there are methods free of format, for example: drawImageRGB, drawImageMAP, drawImageGray. | |
enum | TdkImageType { imtPNG = 1, imtJPEG = 2, imtGIF = 3, imtBMP = 4, imtXPM = 5, imtTIFF = 6, imtWMF = 7 } |
enum | TdkClipAreaType { catUnion = 1, catIntersect = 2, catDifference = 3, catNotIntercsect = 4 } |
Public Member Functions | |
Constructor and Destructor Methods | |
Methods related to instantiation and destruction. | |
TdkCanvas () | |
Constructor. | |
virtual | ~TdkCanvas () |
Virtual destructor. | |
Canvas configuration | |
Methods related to canvas configuration. | |
virtual void | setWindow (const double &llx, const double &lly, const double &urx, const double &ury) |
Adjusts world (or window) coordinates area (supposing a cartesian reference system). | |
virtual void | setWindow (const TeBox &box) |
Adjusts world (window) coordinates area (supposing a cartesian reference system). | |
virtual void | getWindow (double &llx, double &lly, double &urx, double &ury) |
Returns the world (window) coordinates area (supposing a cartesian reference system). | |
virtual void | getWindow (TeBox &window) |
virtual void | setViewport (const double &llx, const double &lly, const double &urx, const double &ury) |
Adjusts device coordinates area (supposing a cartesian reference system). | |
virtual void | setViewport (const TeBox &box) |
Adjusts device coordinates area (supposing a cartesian reference system). | |
virtual void | getViewport (double &llx, double &lly, double &urx, double &ury) |
Returns the device coordinates area. | |
virtual void | getViewport (TeBox &viewport) |
virtual void | window2Viewport (const double &wx, const double &wy, double &vx, double &vy) |
Transform world (or window) coordinates to device (or viewport) coordinates. | |
virtual void | window2Viewport (const double &w, double &v, const bool &xdirection=true) |
Transform world (or window) value to device (or viewport) value according to one axis. | |
virtual void | window2Viewport (const TePolygon &pIn, TePolygon &pOut) |
Transform world (or window) value to device (or viewport) value according to one axis. | |
virtual void | viewport2Window (const TePolygon &pIn, TePolygon &pOut) |
Transform viewport (or device) coordinates to world (or window) coordinates. | |
virtual void | viewport2Window (const double &vx, const double &vy, double &wx, double &wy) |
Transform viewport (or device) coordinates to world (or window) coordinates. | |
virtual void | viewport2Window (const double &v, double &w, const bool &xdirection=true) |
Transform device (or viewpoort) value to world (or window) value according to one axis. | |
virtual void | setBackgroundColor (const TeColor &c) |
Sets the background color of the canvas to c. This will affect all buffers in use, painting all them with the specified color. | |
virtual const TeColor & | getBackgroundColor () const |
Returns the current canvas background color. | |
virtual void | mm2Pixel (const double &mmDx, const double &mmDy, double &pDx, double &pDy)=0 |
virtual void | pixel2MM (const double &pDx, const double &pDy, double &mmDx, double &mmDy)=0 |
virtual void | getDimension (double &width, double &height)=0 |
virtual void | getDimensionMM (double &width, double &height)=0 |
virtual void | clear ()=0 |
virtual double | getPixelSize () |
virtual double | getScale () |
virtual TeProjection * | setDataProjection (TeProjection *dataProjection=NULL) |
virtual TeProjection * | getDataProjection () |
virtual TeProjection * | setViewProjection (TeProjection *viewProjection=NULL) |
virtual TeProjection * | getViewProjection () |
virtual void | useProjection (const bool &useProjection=true) |
virtual bool | usingProjection () |
virtual void | toViewProjection (double &x, double &y) |
virtual void | toViewProjection (TeCoord2D &coord) |
virtual void | toViewProjection (TePoint &point) |
virtual void | toViewProjection (TeLine2D &line) |
virtual void | toViewProjection (TePolygon &poly) |
virtual void | toViewProjection (TeCell &cell) |
virtual void | toViewProjection (TeText &text) |
virtual void | toViewProjection (TeBox &box) |
Behavior Canvas methods | |
This methods can be used to set canvas behavior during drawing. For example, one can create four buffers (see addBuffer):
| |
virtual void | repaint ()=0 |
Do a repaint on canvas. | |
virtual int | setPaintMode (const int &mode) |
Adjusts canvas drawing mode: .... | |
virtual int | getPaintMode () const |
Gets current Canvas paint mode. | |
virtual int | setActiveBuffer (const int &bufferId) |
Sets the current buffer used to draw. This method changes the current buffer used to draw, you should specify a valid identifier, otherwise it will be raised an exception. | |
virtual const int & | getActiveBuffer () const |
Gets the current buffer identifier or -1 if there is not a current one. | |
virtual void | addBuffer (const int &bufferId)=0 |
Adds a new buffer identified by bufferId. If you try to create another one identified by the same id, it will raise an exception. | |
virtual void | removeBuffer (const int &bufferId)=0 |
Removes the buffer identified by bufferId. If you specify an invalid id, it will be raised an exception. | |
virtual void | writeBuffer (const int &sourceBuff, const int &destinationBuff, const bool &transparent=false, const int &r=0, const int &g=0, const int &b=0, const int &a=0)=0 |
Copies the content of source buffer to a destination buffer (its a pixel a pixel copy). When transparent is set to true, the pixels specified by (r, g, b, a) color will not be copied to the destination buffer. | |
Drawing methods for TerraLib's geometries using Window (World) Coordinates | |
Window (World) Coordinates Drawing Methods. These methods (wich have the "W" suffix) can be used to draw on canvas using Window (World) Coordinates. The visual (style) used to draw vector geometries is affected by the visual (style) methods defined in this API. | |
virtual void | drawPointW (const TePoint &pt) |
Draws a point specified in window (world) coordinates. | |
virtual void | drawPointsW (TePointSet &points) |
Draws a set of points specified in window (world) coordinates. | |
virtual void | drawLineW (const TeLine2D &line, const bool &showPoint=false) |
Draws a line with vertexes specified in window (world) coordinates. | |
virtual void | drawLinesW (TeLineSet &lines, const bool &showPoint=false) |
Draws a set of lines with vertexes specified in window (world) coordinates. | |
virtual void | drawPolygonW (const TePolygon &poly, const bool &showPoint=false) |
Draws a polygon with vertexes specified in window (world) coordinates. | |
virtual void | drawPolygonsW (TePolygonSet &polys, const bool &showPoint=false) |
Draws a set of polygons with vetexes specified in window (world) coordinates. | |
virtual void | drawCellW (const TeCell &cell, const bool &showPoint=false) |
Draws a cell with vetexes specified in window (world) coordinates. | |
virtual void | drawCellsW (TeCellSet &cells, const bool &showPoint=false) |
Draws a set of cells with vetexes specified in window (world) coordinates.. | |
virtual void | drawTextW (const TeText &text) |
Draws a text with baseline coordinates specified in window (world) coordinates. | |
virtual void | drawTextsW (TeTextSet &texts) |
Draws a set of texts with baseline coordinates specified in window (world) coordinates. | |
virtual void | drawRasterW (TeRaster *raster, TeRasterTransform *transf, const double &angle=0.0, TdkMathMatrix *matrix=NULL) |
Draws the raster. | |
Drawing methods for auxiliary TerraLib's geometries in Window (World) Coordinates | |
Window (World) Coordinates Drawing Methods. These methods (wich have the "W" suffix) can be used to draw on canvas using Window (World) Coordinates. The visual (style) used to draw vector geometries is affected by the visual (style) methods defined in this API. | |
virtual void | drawPointW (const TeCoord2D &coord) |
Draws a point specified in window (world) coordinates. | |
virtual void | drawBoxW (TeBox &box, const bool &showPoint=false) |
Draws a box specified in window (world) coordinates. | |
Primitive drawing methods in Window (World) Coordinates | |
Window (World) Coordinates Drawing Methods. These methods (wich have the "W" suffix) can be used to draw on canvas using Window (World) Coordinates. The visual (style) used to draw vector geometries is affected by the visual (style) methods defined in this API. | |
virtual void | drawPointW (const double &x, const double &y) |
Draws a point specified in window (world) coordinates. | |
virtual void | drawLineSegmentW (const double &x0, const double &y0, const double &x1, const double &y1) |
Draws a line segment from (x0, y0) to (x1, y1), specified in window (world) coordinates. | |
virtual void | drawLineSegmentW (const TeCoord2D &c1, const TeCoord2D &c2) |
virtual void | drawRectW (const double &llx, const double &lly, const double &urx, const double &ury) |
Draws a rectangle with lower left corner at (llx, lly) and upper right corner at (urx, ury), specified in window (world) coordinates. | |
virtual void | drawRectW (const TeBox &rect) |
virtual void | fillRectW (const double &llx, const double &lly, const double &urx, const double &ury) |
Fills the rectangle with lower left corner at (llx, lly) and upper right corner at (urx, ury), specified in window (world) coordinates. | |
virtual void | fillRectW (const TeBox &rect) |
virtual void | drawLineW (TdkPrimitiveCoord *line, const int &lineSize) |
Draws a line with vertexes specified in window (world) coordinates. | |
virtual void | drawPolygonW (TdkPrimitiveCoord *poly, int *ringSize, const int &nRings) |
Draws a polygon with vertexes specified in window (world) coordinates. | |
virtual void | drawEllipseW (const double &xc, const double &yc, const double &rx, const double &ry, const double &angle) |
Draws an ellipse with center at (xc, yc), specified in window (world) coordinates, x axis width r1 and y axis width r2, especified in the same window (world) unit. | |
virtual void | drawEllipseW (const double &xc, const double &yc, const double &rx1, const double &ry1, const double &rx2, const double &ry2) |
Draws an ellipse with center at (xc, yc), specified in window (world) coordinates, x axis width r1 and y axis width r2, especified in the same window (world) unit. | |
virtual void | fillEllipseW (const double &xc, const double &yc, const double &rx, const double &ry, const double &angle) |
Fills the ellipse with center at (xc, yc), specified in window (world) coordinates, x axis width r1 and y axis width r2, especified in the same window (world) unit. | |
virtual void | fillEllipseW (const double &xc, const double &yc, const double &rx1, const double &ry1, const double &rx2, const double &ry2) |
Fills the ellipse with center at (xc, yc), specified in window (world) coordinates, x axis width r1 and y axis width r2, especified in the same window (world) unit. | |
virtual void | drawArcW (const double &xc, const double &yc, const double &w, const double &h, const double &startAngle, const double &finalAngle) |
Draws an arc defined by a center at (xc, yc), specified in window (world) coordinates, width (w), height (h), the start angle (startAngle) and the final angle (finalAngle). | |
virtual void | drawSectorW (const double &xc, const double &yc, const double &w, const double &h, const double &startAngle, const double &finalAngle) |
Draws a sector defined by a center coordinate (xc, yc), specified in window (world) coordinates, width (w), height (h), the start angle (startAngle) and the final angle (finalAngle). | |
virtual void | fillSectorW (const double &xc, const double &yc, const double &w, const double &h, const double &startAngle, const double &finalAngle) |
Fills the sector defined by a center coordinate (xc, yc), specified in window (world) coordinates, width (w), height (h), the start angle (startANgle) and the final angle (finalAngle). | |
virtual void | drawTextW (const double &x, const double &y, const string &text) |
Draws the text with baseline at (x, y), specified in winodw (world) coordinates. | |
Drawing methods for TerraLib's geometries using device coordinates | |
Device Coordinates Drawing Methods. These methods can be used to draw on canvas using Device Coordinates. The visual (style) used to draw vector geometries is affected by the visual (style) methods defined in this API. | |
virtual void | drawPoint (const TePoint &pt) |
Draws a point specified in device coordinates. | |
virtual void | drawPoints (TePointSet &points) |
Draws a set of points specified in device coordinates. | |
virtual void | drawLine (const TeLine2D &line, const bool &showPoint=false)=0 |
Draws a line with vertexes specified in device coordinates. | |
virtual void | drawLines (TeLineSet &lines, const bool &showPoint=false) |
Draws a set of lines with vertexes specified in device coordinates. | |
virtual void | drawPolygon (const TePolygon &poly, const bool &showPoint=false)=0 |
Draws a polygon with vertexes specified in device coordinates. | |
virtual void | drawPolygons (TePolygonSet &polys, const bool &showPoint=false) |
Draws a set of polygons with vertexes specified in device coordinates. | |
virtual void | drawCell (const TeCell &cell, const bool &showPoint=false)=0 |
Draws a cell with vertexes specified in device coordinates. | |
virtual void | drawCells (TeCellSet &cells, const bool &showPoint=false) |
Draws a set of cells with vertexes specified in device coordinates. | |
virtual void | drawText (const TeText &text) |
Draws a text with baseline coordinates specified in device coordinates. | |
virtual void | drawTexts (TeTextSet &texts) |
Draws a set of texts with baseline coordinates specified in device coordinates. | |
virtual void | drawRaster (TeRaster *raster, TeRasterTransform *transf, const double &angle=0.0, TdkMathMatrix *matrix=NULL)=0 |
Draws the raster. | |
Drawing methods for auxiliary TerraLib's geometries using device coordinates | |
Device Coordinates Drawing Methods. These methods can be used to draw on canvas using Device Coordinates. The visual (style) used to draw vector geometries is affected by the visual (style) methods defined in this API. | |
virtual void | drawPoint (const TeCoord2D &coord) |
Draws a point specified in device coordinates. | |
virtual void | drawBox (const TeBox &box, const bool &showPoint=false) |
Draws a box specified in device coordinates. | |
Primitive drawing methods using device coordinates | |
Device Coordinates Drawing Methods. These methods can be used to draw on canvas using Device Coordinates. The visual (style) used to draw vector geometries is affected by the visual (style) methods defined in this API. | |
virtual void | drawPoint (const double &x, const double &y)=0 |
Draws a point specified in device coordinates. | |
virtual void | drawLineSegment (const double &x0, const double &y0, const double &x1, const double &y1)=0 |
Draws a line segment from (x0, y0) to (x1, y1), specified in device coordinates. | |
virtual void | drawLineSegment (const TeCoord2D &c1, const TeCoord2D &c2)=0 |
virtual void | drawRect (const double &llx, const double &lly, const double &urx, const double &ury)=0 |
Draws a rectangle with lower left corner at (llx, lly) and uper right corner at (urx, ury), specified in device coordinates. | |
virtual void | drawRect (const TeBox &rect) |
virtual void | fillRect (const double &llx, const double &lly, const double &urx, const double &ury)=0 |
Fills the rectangle with lower left corner at (llx, lly) and uper right corner at (urx, ury), specified in device coordinates. | |
virtual void | fillRect (const TeBox &rect) |
virtual void | drawLine (TdkPrimitiveCoord *line, const int &lineSize)=0 |
Draws a line with vertexes specified in device coordinates. | |
virtual void | drawPolygon (TdkPrimitiveCoord *poly, int *ringSize, const int &nRings)=0 |
Draws a polygon with vertexes specified in device coordinates. | |
virtual void | drawEllipse (const double &xc, const double &yc, const double &rx, const double &ry, const double &angle)=0 |
Draws an ellipse with center at (xc, yc), specified in device coordinates, x axis width r1 and y axis width r2, especified in the same device unit. | |
virtual void | drawEllipse (const double &xc, const double &yc, const double &rx1, const double &ry1, const double &rx2, const double &ry2)=0 |
Draws an ellipse with center at (xc, yc), specified in device coordinates, x axis width r1 and y axis width r2, especified in the same device unit. | |
virtual void | fillEllipse (const double &xc, const double &yc, const double &rx, const double &ry, const double &angle)=0 |
Fills the ellipse with center at (xc, yc), specified in device coordinates, x axis width r1 and y axis width r2, especified in the same device unit. | |
virtual void | fillEllipse (const double &xc, const double &yc, const double &rx1, const double &ry1, const double &rx2, const double &ry2)=0 |
Fills the ellipse with center at (xc, yc), specified in device coordinates, x axis width r1 and y axis width r2, especified in the same device unit. | |
virtual void | drawArc (const double &xc, const double &yc, const double &w, const double &h, const double &startAngle, const double &finalAngle)=0 |
Draws an arc defined by a center at (xc, yc), specified in device coordinates, width (w), height (h), the start angle (startAngle) and the final angle (finalAngle). | |
virtual void | drawSector (const double &xc, const double &yc, const double &w, const double &h, const double &startAngle, const double &finalAngle)=0 |
Draws a sector defined by a center coordinate (xc, yc), specified in device coordinates, width (w), height (h), the start angle (startANgle) and the final angle (finalAngle). | |
virtual void | fillSector (const double &xc, const double &yc, const double &w, const double &h, const double &startAngle, const double &finalAngle)=0 |
Fills the sector defined by a center coordinate (xc, yc), specified in device coordinates, width (w), height (h), the start angle (startANgle) and the final angle (finalAngle). | |
virtual void | drawText (const double &x, const double &y, const string &text)=0 |
Draws the text with baseline at (x, y), specified in device coordinates. | |
Drawing methods for images (pixmaps) using Device Coordinates | |
These methods can be used to draw an image on canvas using Device Coordinates. | |
virtual void | drawImageRGB (const unsigned int &imgW, const unsigned int &imgH, unsigned char *red, unsigned char *green, unsigned char *blue, const double &dstX, const double &dstY, const unsigned int &dstW, const unsigned int &dstH)=0 |
Draws at (dstX, dstY) the pixels of a RGB image. | |
virtual void | drawImageRGB (const unsigned int &imgW, const unsigned int &imgH, unsigned char *red, unsigned char *green, unsigned char *blue, const double &dstX, const double &dstY, const unsigned int &dstW, const unsigned int &dstH, const double &srcX, const double &srcY, const unsigned int &srcW=0, const unsigned int &srcH=0)=0 |
Draws at (dstX, dstY) the pixels of a RGB image. | |
virtual void | drawImageRGB (const double &angle, const unsigned int &imgW, const unsigned int &imgH, unsigned char *red, unsigned char *green, unsigned char *blue, const double &dstX, const double &dstY, const unsigned int &dstW, const unsigned int &dstH, const double &srcX, const double &srcY, const unsigned int &srcW=0, const unsigned int &srcH=0)=0 |
Draws at (dstX, dstY) the pixels of a RGB image. | |
virtual void | drawImageRGBA (const unsigned int &imgW, const unsigned int &imgH, unsigned char *red, unsigned char *green, unsigned char *blue, unsigned char *alpha, const double &dstX, const double &dstY, const unsigned int &dstW, const unsigned int &dstH)=0 |
Draws at (dstX, dstY) the pixels of a RGB-Alpha image. | |
virtual void | drawImageRGBA (const unsigned int &imgW, const unsigned int &imgH, unsigned char *red, unsigned char *green, unsigned char *blue, unsigned char *alpha, const double &dstX, const double &dstY, const unsigned int &dstW, const unsigned int &dstH, const double &srcX, const double &srcY, const unsigned int &srcW=0, const unsigned int &srcH=0)=0 |
Draws at (dstX, dstY) the pixels of a RGB-Alpha image. | |
virtual void | drawImageRGBA (const double &angle, const unsigned int &imgW, const unsigned int &imgH, unsigned char *red, unsigned char *green, unsigned char *blue, unsigned char *alpha, const double &dstX, const double &dstY, const unsigned int &dstW, const unsigned int &dstH, const double &srcX, const double &srcY, const unsigned int &srcW=0, const unsigned int &srcH=0)=0 |
Draws at (dstX, dstY) the pixels of a RGB-Alpha image. | |
virtual void | drawImageMap (const unsigned int &imgW, const unsigned int &imgH, unsigned char *index, long int *colors, const double &dstX, const double &dstY, const unsigned int &dstW, const unsigned int &dstH)=0 |
Draws at (dstX, dstY) the pixels of a palette image. | |
virtual void | drawImageMap (const unsigned int &imgW, const unsigned int &imgH, unsigned char *index, long int *colors, const double &dstX, const double &dstY, const unsigned int &dstW, const unsigned int &dstH, const double &srcX, const double &srcY, const unsigned int &srcW=0, const unsigned int &srcH=0)=0 |
Draws at (dstX, dstY) the pixels of a palette image. | |
virtual void | drawImageMap (const double &angle, const unsigned int &imgW, const unsigned int &imgH, unsigned char *index, long int *colors, const double &dstX, const double &dstY, const unsigned int &dstW, const unsigned int &dstH, const double &srcX, const double &srcY, const unsigned int &srcW=0, const unsigned int &srcH=0)=0 |
Draws at (dstX, dstY) the pixels of a palette image. | |
virtual void | drawImageGray (const unsigned int &imgW, const unsigned int &imgH, unsigned char *data, const double &dstX, const double &dstY, const unsigned int &dstW, const unsigned int &dstH)=0 |
Draws at (dstX, dstY) the pixels of a gray image. | |
virtual void | drawImageGray (const unsigned int &imgW, const unsigned int &imgH, unsigned char *data, const double &dstX, const double &dstY, const unsigned int &dstW, const unsigned int &dstH, const double &srcX, const double &srcY, const unsigned int &srcW=0, const unsigned int &srcH=0)=0 |
Draws at (dstX, dstY) the pixels of a gray image. | |
virtual void | drawImageGray (const double &angle, const unsigned int &imgW, const unsigned int &imgH, unsigned char *data, const double &dstX, const double &dstY, const unsigned int &dstW, const unsigned int &dstH, const double &srcX, const double &srcY, const unsigned int &srcW=0, const unsigned int &srcH=0)=0 |
Draws at (dstX, dstY) the pixels of a gray image. | |
virtual void | drawImage (char *image, const double &srcX, const double &srcY, const unsigned int &srcW, const unsigned int &srcH, const double &dstX, const double &dstY, const TdkImageType &imageType)=0 |
Draws at (dstX, dstY) the srcW by srcH area of pixels from (srcX, srcY) in image of type (imageType). | |
virtual void | drawImage (char *image, const double &srcX, const double &srcY, const unsigned int &srcW, const unsigned int &srcH, const double &dstX, const double &dstY, const unsigned int &dstW, const unsigned int &dstH, const TdkImageType &imageType)=0 |
Draws at (dstX, dstY) the srcW by srcH area of pixels from (srcX, srcY) in image of type (imageType). | |
virtual void | drawImage (const double &angle, char *image, const double &srcX, const double &srcY, const unsigned int &srcW, const unsigned int &srcH, const double &dstX, const double &dstY, const unsigned int &dstW, const unsigned int &dstH, const TdkImageType &imageType)=0 |
Draws at (dstX, dstY) the srcW by srcH area of pixels from (srcX, srcY) in image of type (imageType). | |
Gets an image that represent the canvas content | |
These methods can be used to retrieve an image array from the current canvas buffer content. | |
virtual void | getImageRGB (const double &x, const double &y, const int &w, const int &h, unsigned char *r, unsigned char *g, unsigned char *b)=0 |
Returns an RGB array from the current canvas buffer content. | |
virtual void | getImageRGBA (const double &x, const double &y, const int &w, const int &h, unsigned char *r, unsigned char *g, unsigned char *b, unsigned char *a)=0 |
Returns an RGB-Alpha array from the current canvas buffer content. | |
virtual void | getImageMap (const double &x, const double &y, const int &w, const int &h, unsigned char *index, long int *colors)=0 |
Returns a Palette Image from the current canvas buffer content. | |
virtual void | getImageGray (const double &x, const double &y, const int &w, const int &h, unsigned char *data)=0 |
Returns a Gray Image from the current canvas buffer content. | |
virtual char * | getImage (const double &x, const double &y, const int &w, const int &h, TdkImageType imageType, int &size, const int &quality=75)=0 |
Returns an image from the current canvas buffer content in a specified format (PNG, JPEG, GIF or other). | |
Styles configuration | |
Methods related to styles configuration. | |
virtual void | setVisual (TdkVisual *v, const TeGeomRep &rep)=0 |
Sets the visual for a given geometry type. | |
virtual void | setPointColor (const int &r, const int &g, const int &b)=0 |
Sets the pen color used to draw point geometries. | |
virtual void | setPointColor (const int &r, const int &g, const int &b, const int &alpha)=0 |
Sets the pen color used to draw point geometries. | |
virtual void | setPointColor (const TeColor &color, const int &alpha)=0 |
virtual void | setPointAlpha (const int &alpha)=0 |
Sets the alpha channel used to draw point geometries. | |
virtual void | setPointType (const int &type)=0 |
Sets the style for draw point geometries. | |
virtual void | setPointSize (const int &s)=0 |
Sets pen size (in pixels) used to draw point geometries. | |
virtual void | setPointChar (const char &c)=0 |
virtual void | setLineColor (const int &r, const int &g, const int &b)=0 |
Sets the pen color used to draw line geometries. | |
virtual void | setLineColor (const int &r, const int &g, const int &b, const int &alpha)=0 |
Sets the pen color used to draw line geometries. | |
virtual void | setLineColor (const TeColor &color, const int &alpha)=0 |
virtual void | setLineAlpha (const int &alpha)=0 |
Sets the alpha channel used to draw line geometries. | |
virtual void | setLineType (const int &type)=0 |
Sets the style for draw line geometries. | |
virtual void | setLineStyleDashes (double *dashArray, const int &size)=0 |
Sets an array of custom dashes and spaces for this Pen object. | |
virtual void | setLineWidth (const int &width)=0 |
Sets pen width (in pixels) used to draw line geometries . | |
virtual void | setPolygonColor (const int &r, const int &g, const int &b)=0 |
Sets the color used to fill the draw of polygon geometries. | |
virtual void | setPolygonColor (const int &r, const int &g, const int &b, const int &alpha)=0 |
Sets the color used to fill the draw of polygon geometries. | |
virtual void | setPolygonColor (const TeColor &color, const int &alpha)=0 |
virtual void | setPolygonAlpha (const int &alpha)=0 |
Sets the alpha channel used to fill the draw of polygon geometries. | |
virtual void | setPolygonBorderColor (const int &r, const int &g, const int &b)=0 |
Sets the pen color used to draw the boundary of polygon geometries. | |
virtual void | setPolygonBorderColor (const int &r, const int &g, const int &b, const int &alpha)=0 |
Sets the pen color used to draw the boundary of polygon geometries. | |
virtual void | setPolygonBorderColor (const TeColor &color, const int &alpha)=0 |
virtual void | setPolygonBorderAlpha (const int &alpha)=0 |
Sets the alpha channel used to draw the boundary of polygon geometries. | |
virtual void | setPolygonType (const int &type)=0 |
Sets the style for draw line geometries. | |
virtual void | setPolygonTypeStipple (const int &width, const int &height, unsigned char *fgbg, const int &br, const int &bg, const int &bb)=0 |
Fills the polygon with foreground color or a background color (r, g, b) having a mask matrix fgbg (of '0's and '1's). | |
virtual void | setPolygonTypePattern (const int &width, const int &height, unsigned char *r, unsigned char *g, unsigned char *b)=0 |
Sets the pattern style used to fill the draw of polygon geometries. | |
virtual void | setPolygonBorderType (const int &type)=0 |
Sets the style used to draw the boundary of polygon geometries. | |
virtual void | setPolygonBorderWidth (const int &width)=0 |
Sets pen width (in pixels) used to draw the boundary of polygon geometries . | |
virtual void | setTextColor (const int &r, const int &g, const int &b)=0 |
Sets the color of the text. | |
virtual void | setTextColor (const int &r, const int &g, const int &b, const int &alpha)=0 |
Sets the color of the text. | |
virtual void | setTextColor (const TeColor &color, const int &alpha)=0 |
virtual void | setTextAlpha (const int &alpha)=0 |
Sets the alpha channel used to draw texts. | |
virtual void | setTextBackgroundColor (const int &r, const int &g, const int &b)=0 |
Sets the background color of the text. | |
virtual void | setTextBackgroundColor (const int &r, const int &g, const int &b, const int &alpha)=0 |
Sets the background color of the text. | |
virtual void | setTextBackgroundColor (const TeColor &color, const int &alpha)=0 |
virtual void | setTextBackgroundAlpha (const int &alpha)=0 |
Sets the alpha channel used to fill the background of texts. | |
virtual void | setTextBackgroundType (const int &type)=0 |
virtual void | setTextBorderColor (const int &r, const int &g, const int &b)=0 |
virtual void | setTextBorderColor (const int &r, const int &g, const int &b, const int &alpha)=0 |
virtual void | setTextBorderColor (const TeColor &color, const int &alpha)=0 |
virtual void | setTextBorderAlpha (const int &alpha)=0 |
virtual void | setTextBorderType (const int &type)=0 |
virtual void | setTextBorderWidth (const int &width)=0 |
virtual void | setTextFont (const string &fontName)=0 |
Sets the font family of the text. | |
virtual void | setTextSize (const int &size)=0 |
Sets the size of the text. | |
virtual void | setTextAngle (const double &angle)=0 |
Adjusts the angle used to draw texts. | |
virtual void | setTextBold (const bool &bold=true)=0 |
Sets the bold style for text. | |
virtual void | setTextItalic (const bool &italic=true)=0 |
Sets the italic style for text. | |
virtual void | setTextAlign (const double &alignmentHoriz, const double &alignmentVert)=0 |
Sets the alignment of the text. | |
virtual void | getTextAlign (double &alignmentHoriz, double &alignmentVert)=0 |
Utilities methods. | |
Utilitarian methods. | |
virtual void | getTextBoundsW (const string &text, const double &x, const double &y, const double &angle, TdkTextBounds &bounds)=0 |
Returns the bounding box of a text in world coordinates. | |
virtual void | getTextBounds (const string &text, const double &x, const double &y, const double &angle, TdkTextBounds &bounds)=0 |
Returns the bounding box of a text in device coordinates. | |
virtual void | getTextBoundsW (const TeText &text, TdkTextBounds &bounds)=0 |
virtual void | getTextBounds (const TeText &text, TdkTextBounds &bounds)=0 |
Clipping methods. | |
These methods can be used to set a sub-region . | |
virtual void | setClipArea (const TeBox &box)=0 |
Establishes a clipping rectangle. Once setClipArea has been called, all future drawing operations will remain within the specified clipping area, until a new setClipArea call takes place. For instance, if a clipping rectangle of 25, 25, 75, 75 has been set within a 100x100 device area, a diagonal line from 0,0 to 99,99 will appear only between 25,25 and 75,75. | |
virtual void | setClipArea (const double &llx, const double &lly, const double &urx, const double &ury)=0 |
Establishes a clipping rectangle. Once setClipArea has been called, all future drawing operations will remain within the specified clipping area, until a new setClipArea call takes place. For instance, if a clipping rectangle of 25, 25, 75, 75 has been set within a 100x100 device area, a diagonal line from 0,0 to 99,99 will appear only between 25,25 and 75,75. | |
virtual void | getClipArea (double &llx, double &lly, double &urx, double &ury)=0 |
Returns the clipping area. | |
virtual void | setClipArea (const TePolygon &poly)=0 |
Establishes a clipping polygon. Once setClipArea has been called, all future drawing operations will remain within the specified polygon clipping area, until a new setClipArea call takes place. | |
virtual void | setClipArea (const TePolygonSet &polys, const TdkClipAreaType &clipType)=0 |
virtual void | getClipArea (TePolygon &poly)=0 |
Returns the clipping polygon. | |
virtual void | activateClip ()=0 |
Activate clipping mode. | |
virtual void | deactivateClip ()=0 |
Deactivate clipping mode. | |
Protected Attributes | |
int | paintMode_ |
Current Canvas paint mode. | |
int | currentBufferId_ |
Indicates what is the active current buffer. If this value is set to -1, so there is not a current buffer. | |
TeColor | backgroundColor_ |
Indicates the current canvas background color. | |
TdkCoordTransformer | transformer_ |
This instance can be used to transform coordinates from world to device and device to world. | |
TeGeomRepVisualMap | visualMap_ |
A map with the visual of all geometry types. | |
TeProjection * | dataProjection_ |
TeProjection * | viewProjection_ |
bool | useProjection_ |
The TdkCanvas abstract class is an abstraction of a Canvas for drawing porpouses. It has drawing primitives for Terralib geometries (example: TePoint, TeLine, TePolygon). All coordinates must be in cartesian system. Even the device coordinates must be specified in a cartesian system. Each subclass will, at least, implement the methods related to device drawing.
TODO: 1) 2) 3)
TdkCanvas::TdkCanvas | ( | ) |
Constructor.
virtual TdkCanvas::~TdkCanvas | ( | ) | [inline, virtual] |
Virtual destructor.
void TdkCanvas::setWindow | ( | const double & | llx, | |
const double & | lly, | |||
const double & | urx, | |||
const double & | ury | |||
) | [inline, virtual] |
Adjusts world (or window) coordinates area (supposing a cartesian reference system).
llx | Lower left abscissa. (Input) | |
lly | Lower left ordinate. (Input) | |
urx | Upper left abscissa. (Input) | |
ury | Upper left ordinate. (Input) |
Reimplemented in TdkJNICanvas, and TdkCDCanvas.
void TdkCanvas::setWindow | ( | const TeBox & | box | ) | [inline, virtual] |
Adjusts world (window) coordinates area (supposing a cartesian reference system).
box | Bounding box of world. (Input) |
Reimplemented in TdkJNICanvas, and TdkCDCanvas.
void TdkCanvas::getWindow | ( | double & | llx, | |
double & | lly, | |||
double & | urx, | |||
double & | ury | |||
) | [inline, virtual] |
Returns the world (window) coordinates area (supposing a cartesian reference system).
llx | Lower left abscissa. (Output) | |
lly | Lower left ordinate. (Output) | |
urx | Upper left abscissa. (Output) | |
ury | Upper left ordinate. (Output) |
Reimplemented in TdkJNICanvas, and TdkCDCanvas.
void TdkCanvas::getWindow | ( | TeBox & | window | ) | [inline, virtual] |
Reimplemented in TdkJNICanvas, and TdkCDCanvas.
void TdkCanvas::setViewport | ( | const double & | llx, | |
const double & | lly, | |||
const double & | urx, | |||
const double & | ury | |||
) | [inline, virtual] |
Adjusts device coordinates area (supposing a cartesian reference system).
llx | Lower left abscissa. (Input) | |
lly | Lower left ordinate. (Input) | |
urx | Upper left abscissa. (Input) | |
ury | Upper left ordinate. (Input) |
Reimplemented in TdkJNICanvas, and TdkCDCanvas.
void TdkCanvas::setViewport | ( | const TeBox & | box | ) | [inline, virtual] |
Adjusts device coordinates area (supposing a cartesian reference system).
box | Device bounding box. (Input) |
Reimplemented in TdkJNICanvas, and TdkCDCanvas.
void TdkCanvas::getViewport | ( | double & | llx, | |
double & | lly, | |||
double & | urx, | |||
double & | ury | |||
) | [inline, virtual] |
Returns the device coordinates area.
llx | Lower left abscissa. (Output) | |
lly | Lower left ordinate. (Output) | |
urx | Upper left abscissa. (Output) | |
ury | Upper left ordinate. (Output) |
Reimplemented in TdkJNICanvas, and TdkCDCanvas.
void TdkCanvas::getViewport | ( | TeBox & | viewport | ) | [inline, virtual] |
Reimplemented in TdkJNICanvas, and TdkCDCanvas.
void TdkCanvas::window2Viewport | ( | const double & | wx, | |
const double & | wy, | |||
double & | vx, | |||
double & | vy | |||
) | [inline, virtual] |
Transform world (or window) coordinates to device (or viewport) coordinates.
wx | World (or window) abscissa. (Input) | |
wy | World (or window) ordinate. (Input) | |
vx | Viewport (or device) abscissa. (Output) | |
vy | Viewport (or device) ordinate. (Output) |
Reimplemented in TdkJNICanvas.
void TdkCanvas::window2Viewport | ( | const double & | w, | |
double & | v, | |||
const bool & | xdirection = true | |||
) | [inline, virtual] |
Transform world (or window) value to device (or viewport) value according to one axis.
w | World (or window) value. (Input) | |
v | Viewport (or device) value. (Output) | |
xdirection | If world and device don't keep aspect ratio you should specify what axis to consider. (Input) |
Reimplemented in TdkJNICanvas.
void TdkCanvas::window2Viewport | ( | const TePolygon & | pIn, | |
TePolygon & | pOut | |||
) | [inline, virtual] |
Transform world (or window) value to device (or viewport) value according to one axis.
pIn | Polygon in World coordinates. (Input) | |
pOut | Polygon in device coordinates. (Output) | |
xdirection | If world and device don't keep aspect ratio you should specify what axis to consider. (Input) |
Reimplemented in TdkJNICanvas.
void TdkCanvas::viewport2Window | ( | const TePolygon & | pIn, | |
TePolygon & | pOut | |||
) | [inline, virtual] |
Transform viewport (or device) coordinates to world (or window) coordinates.
pIn | Viewport (or device) coordinates. (Input) | |
pOut | window (or world) coordinates. (Output) |
void TdkCanvas::viewport2Window | ( | const double & | vx, | |
const double & | vy, | |||
double & | wx, | |||
double & | wy | |||
) | [inline, virtual] |
Transform viewport (or device) coordinates to world (or window) coordinates.
vx | Viewport (or device) abscissa. (Input) | |
vy | Viewport (or device) ordinate. (Input) | |
wx | World (or window) abscissa. (Output) | |
wy | World (or window) ordinate. (Output) |
Reimplemented in TdkJNICanvas, and TdkCDCanvas.
void TdkCanvas::viewport2Window | ( | const double & | v, | |
double & | w, | |||
const bool & | xdirection = true | |||
) | [inline, virtual] |
Transform device (or viewpoort) value to world (or window) value according to one axis.
v | Viewport (or device) value. (Input) | |
w | World (or window) value. (Output) | |
xdirection | If world and device don't keep aspect ratio you should specify what axis to consider. |
Reimplemented in TdkJNICanvas, and TdkCDCanvas.
void TdkCanvas::setBackgroundColor | ( | const TeColor & | c | ) | [inline, virtual] |
Sets the background color of the canvas to c. This will affect all buffers in use, painting all them with the specified color.
c | Background color that must be applied to canvas. (Input) |
Reimplemented in TdkCDCanvas.
const TeColor & TdkCanvas::getBackgroundColor | ( | ) | const [inline, virtual] |
Returns the current canvas background color.
virtual void TdkCanvas::mm2Pixel | ( | const double & | mmDx, | |
const double & | mmDy, | |||
double & | pDx, | |||
double & | pDy | |||
) | [pure virtual] |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::pixel2MM | ( | const double & | pDx, | |
const double & | pDy, | |||
double & | mmDx, | |||
double & | mmDy | |||
) | [pure virtual] |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::getDimension | ( | double & | width, | |
double & | height | |||
) | [pure virtual] |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::getDimensionMM | ( | double & | width, | |
double & | height | |||
) | [pure virtual] |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::clear | ( | ) | [pure virtual] |
Implemented in TdkJNICanvas, and TdkCDCanvas.
double TdkCanvas::getPixelSize | ( | ) | [virtual] |
double TdkCanvas::getScale | ( | ) | [virtual] |
TeProjection * TdkCanvas::setDataProjection | ( | TeProjection * | dataProjection = NULL |
) | [inline, virtual] |
TeProjection * TdkCanvas::getDataProjection | ( | ) | [inline, virtual] |
TeProjection * TdkCanvas::setViewProjection | ( | TeProjection * | viewProjection = NULL |
) | [inline, virtual] |
Reimplemented in TdkCDCanvas.
TeProjection * TdkCanvas::getViewProjection | ( | ) | [inline, virtual] |
void TdkCanvas::useProjection | ( | const bool & | useProjection = true |
) | [inline, virtual] |
bool TdkCanvas::usingProjection | ( | ) | [inline, virtual] |
void TdkCanvas::toViewProjection | ( | double & | x, | |
double & | y | |||
) | [virtual] |
void TdkCanvas::toViewProjection | ( | TeCoord2D & | coord | ) | [virtual] |
void TdkCanvas::toViewProjection | ( | TePoint & | point | ) | [virtual] |
void TdkCanvas::toViewProjection | ( | TeLine2D & | line | ) | [virtual] |
void TdkCanvas::toViewProjection | ( | TePolygon & | poly | ) | [virtual] |
void TdkCanvas::toViewProjection | ( | TeCell & | cell | ) | [virtual] |
void TdkCanvas::toViewProjection | ( | TeText & | text | ) | [virtual] |
void TdkCanvas::toViewProjection | ( | TeBox & | box | ) | [virtual] |
virtual void TdkCanvas::repaint | ( | ) | [pure virtual] |
int TdkCanvas::setPaintMode | ( | const int & | mode | ) | [inline, virtual] |
Adjusts canvas drawing mode: ....
mode | The mode can be one of the following: ..... (Input) |
Reimplemented in TdkJNICanvas, and TdkCDCanvas.
int TdkCanvas::getPaintMode | ( | ) | const [inline, virtual] |
int TdkCanvas::setActiveBuffer | ( | const int & | bufferId | ) | [inline, virtual] |
Sets the current buffer used to draw. This method changes the current buffer used to draw, you should specify a valid identifier, otherwise it will be raised an exception.
bufferId | Buffer identification: it is a key for identify a given buffer. (Input) |
Reimplemented in TdkJNICanvas, and TdkCDCanvas.
const int & TdkCanvas::getActiveBuffer | ( | ) | const [inline, virtual] |
Gets the current buffer identifier or -1 if there is not a current one.
virtual void TdkCanvas::addBuffer | ( | const int & | bufferId | ) | [pure virtual] |
Adds a new buffer identified by bufferId. If you try to create another one identified by the same id, it will raise an exception.
bufferId | The buffer identification associated to the new buffer. Must be a value greater than -1. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::removeBuffer | ( | const int & | bufferId | ) | [pure virtual] |
Removes the buffer identified by bufferId. If you specify an invalid id, it will be raised an exception.
bufferId | The identification of the buffer to be removed. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::writeBuffer | ( | const int & | sourceBuff, | |
const int & | destinationBuff, | |||
const bool & | transparent = false , |
|||
const int & | r = 0 , |
|||
const int & | g = 0 , |
|||
const int & | b = 0 , |
|||
const int & | a = 0 | |||
) | [pure virtual] |
Copies the content of source buffer to a destination buffer (its a pixel a pixel copy). When transparent is set to true, the pixels specified by (r, g, b, a) color will not be copied to the destination buffer.
sourceBuff | Source buffer, from wich the pixels will be copied to a destination buffer. (Input) | |
destinationBuff | Destination buffer, to wich the pixels will be copied. (Input) | |
transparent | Indicates if we will have a transparent color during copy, i. e., the pixels with the specified color that will not be copied from the source buffer to the destination. (Input) | |
r | Red component color. (Input) | |
g | Green component color. (Input) | |
b | Blue component color. (Input) | |
a | Alpha component. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
void TdkCanvas::drawPointW | ( | const TePoint & | pt | ) | [virtual] |
Draws a point specified in window (world) coordinates.
pt | TerraLib point instance. (Input) |
void TdkCanvas::drawPointsW | ( | TePointSet & | points | ) | [virtual] |
Draws a set of points specified in window (world) coordinates.
points | TerraLib pointset instance. (Input) |
void TdkCanvas::drawLineW | ( | const TeLine2D & | line, | |
const bool & | showPoint = false | |||
) | [virtual] |
Draws a line with vertexes specified in window (world) coordinates.
line | TerraLib line instance. (Input) | |
showPoint | If true the line vertexes will be drawn. (Input) |
void TdkCanvas::drawLinesW | ( | TeLineSet & | lines, | |
const bool & | showPoint = false | |||
) | [virtual] |
Draws a set of lines with vertexes specified in window (world) coordinates.
lines | TerraLib lineset instance. (Input) | |
showPoint | If true the line vertexes will be drawn. (Input) |
void TdkCanvas::drawPolygonW | ( | const TePolygon & | poly, | |
const bool & | showPoint = false | |||
) | [virtual] |
Draws a polygon with vertexes specified in window (world) coordinates.
poly | TerraLib polygon instance. (Input) | |
showPoint | If true the polygon vertexes will be drawn. (Input) |
void TdkCanvas::drawPolygonsW | ( | TePolygonSet & | polys, | |
const bool & | showPoint = false | |||
) | [virtual] |
Draws a set of polygons with vetexes specified in window (world) coordinates.
polys | TerraLib polygonset instance. (Input) | |
showPoint | If true the polygon vertexes will be drawn. (Input) |
void TdkCanvas::drawCellW | ( | const TeCell & | cell, | |
const bool & | showPoint = false | |||
) | [virtual] |
Draws a cell with vetexes specified in window (world) coordinates.
cell | TerraLib cell instance. (Input) | |
showPoint | If true the cell vertexes will be drawn. (Input) |
void TdkCanvas::drawCellsW | ( | TeCellSet & | cells, | |
const bool & | showPoint = false | |||
) | [virtual] |
Draws a set of cells with vetexes specified in window (world) coordinates..
cells | TerraLib cellset instance. (Input) | |
showPoint | If true the cell vertexes will be drawn. (Input) |
void TdkCanvas::drawTextW | ( | const TeText & | text | ) | [virtual] |
Draws a text with baseline coordinates specified in window (world) coordinates.
text | TerraLib text instance. (Input) |
void TdkCanvas::drawTextsW | ( | TeTextSet & | texts | ) | [virtual] |
Draws a set of texts with baseline coordinates specified in window (world) coordinates.
texts | TerraLib textset instance. (Input) |
void TdkCanvas::drawRasterW | ( | TeRaster * | raster, | |
TeRasterTransform * | transf, | |||
const double & | angle = 0.0 , |
|||
TdkMathMatrix * | matrix = NULL | |||
) | [virtual] |
Draws the raster.
raster | A pointer to a TerraLib raster instance. (Input) | |
transf | A pointer to the raster transform function. (Input) | |
angle | The XXXXX. (Input) | |
matrix | The XXXX. (Input) |
void TdkCanvas::drawPointW | ( | const TeCoord2D & | coord | ) | [virtual] |
Draws a point specified in window (world) coordinates.
coord | TerraLib coordinate instance. (Input) |
Reimplemented in TdkCDCanvas.
void TdkCanvas::drawBoxW | ( | TeBox & | box, | |
const bool & | showPoint = false | |||
) | [virtual] |
Draws a box specified in window (world) coordinates.
box | TerraLib box instance. (Input) | |
showPoint | True if the box vertex will be drawn. (Input) |
void TdkCanvas::drawPointW | ( | const double & | x, | |
const double & | y | |||
) | [virtual] |
Draws a point specified in window (world) coordinates.
x | Abscissa: horizontal coordinate (x). (Input) | |
y | Ordinate: vertical coordinate (y). (Input) |
Reimplemented in TdkCDCanvas.
void TdkCanvas::drawLineSegmentW | ( | const double & | x0, | |
const double & | y0, | |||
const double & | x1, | |||
const double & | y1 | |||
) | [virtual] |
Draws a line segment from (x0, y0) to (x1, y1), specified in window (world) coordinates.
x0 | Abscissa value indicating the segment begin. (Input) | |
y0 | Ordinate value indicating the segment begin. (Input) | |
x1 | Abscissa value indicating the segment end. (Input) | |
y1 | Ordinate value indicating the segment end. (Input) |
void TdkCanvas::drawLineSegmentW | ( | const TeCoord2D & | c1, | |
const TeCoord2D & | c2 | |||
) | [virtual] |
void TdkCanvas::drawRectW | ( | const double & | llx, | |
const double & | lly, | |||
const double & | urx, | |||
const double & | ury | |||
) | [virtual] |
Draws a rectangle with lower left corner at (llx, lly) and upper right corner at (urx, ury), specified in window (world) coordinates.
llx | Lower left abscissa. (Input) | |
lly | Lower left ordinate. (Input) | |
urx | Upper right abscissa. (Input) | |
ury | Upper right ordinate. (Input) |
void TdkCanvas::drawRectW | ( | const TeBox & | rect | ) | [virtual] |
void TdkCanvas::fillRectW | ( | const double & | llx, | |
const double & | lly, | |||
const double & | urx, | |||
const double & | ury | |||
) | [virtual] |
Fills the rectangle with lower left corner at (llx, lly) and upper right corner at (urx, ury), specified in window (world) coordinates.
llx | Lower left abscissa. (Input) | |
lly | Lower left ordinate. (Input) | |
urx | Upper right abscissa. (Input) | |
ury | Upper right ordinate. (Input) |
void TdkCanvas::fillRectW | ( | const TeBox & | rect | ) | [virtual] |
void TdkCanvas::drawLineW | ( | TdkPrimitiveCoord * | line, | |
const int & | lineSize | |||
) | [virtual] |
Draws a line with vertexes specified in window (world) coordinates.
line | A pointer to line vertexes. (Input) | |
lineSize | Number of line vertexes. (Input) |
void TdkCanvas::drawPolygonW | ( | TdkPrimitiveCoord * | poly, | |
int * | ringSize, | |||
const int & | nRings | |||
) | [virtual] |
Draws a polygon with vertexes specified in window (world) coordinates.
poly | A pointer to polygon vertexes. (Input) | |
ringSize | A pointer to an array with each polygon ring size. (Input) | |
nRings | The number of rings in the specified polygon. (Input) |
void TdkCanvas::drawEllipseW | ( | const double & | xc, | |
const double & | yc, | |||
const double & | rx, | |||
const double & | ry, | |||
const double & | angle | |||
) | [virtual] |
Draws an ellipse with center at (xc, yc), specified in window (world) coordinates, x axis width r1 and y axis width r2, especified in the same window (world) unit.
xc | Center abscissa. (Input) | |
yc | Center ordinate. (Input) | |
rx | X axis width (in the same window unit). (Input) | |
ry | Y axis width (in the same window unit). (Input) | |
angle | Angle to rotate the ellipse round "x" axis. (Input) |
void TdkCanvas::drawEllipseW | ( | const double & | xc, | |
const double & | yc, | |||
const double & | rx1, | |||
const double & | ry1, | |||
const double & | rx2, | |||
const double & | ry2 | |||
) | [virtual] |
Draws an ellipse with center at (xc, yc), specified in window (world) coordinates, x axis width r1 and y axis width r2, especified in the same window (world) unit.
xc | Center abscissa. (Input) | |
yc | Center ordinate. (Input) | |
rx1 | First conjugate radius (in the same window unit). (Input) | |
ry1 | First conjugate radius (in the same window unit). (Input) | |
rx2 | Second conjugate radius (in the same window unit). (Input) | |
ry2 | Second conjugate radius (in the same window unit). (Input) |
void TdkCanvas::fillEllipseW | ( | const double & | xc, | |
const double & | yc, | |||
const double & | rx, | |||
const double & | ry, | |||
const double & | angle | |||
) | [virtual] |
Fills the ellipse with center at (xc, yc), specified in window (world) coordinates, x axis width r1 and y axis width r2, especified in the same window (world) unit.
xc | Center abscissa. (Input) | |
yc | Center ordinate. (Input) | |
rx | X axis width (in the same window unit). (Input) | |
ry | Y axis width (in the same window unit). (Input) | |
angle | Angle to rotate the ellipse round "x" axis. (Input) |
void TdkCanvas::fillEllipseW | ( | const double & | xc, | |
const double & | yc, | |||
const double & | rx1, | |||
const double & | ry1, | |||
const double & | rx2, | |||
const double & | ry2 | |||
) | [virtual] |
Fills the ellipse with center at (xc, yc), specified in window (world) coordinates, x axis width r1 and y axis width r2, especified in the same window (world) unit.
xc | Center abscissa. (Input) | |
yc | Center ordinate. (Input) | |
rx1 | First conjugate radius (in the same window unit). (Input) | |
ry1 | First conjugate radius (in the same window unit). (Input) | |
rx2 | Second conjugate radius (in the same window unit). (Input) | |
ry2 | Second conjugate radius (in the same window unit). (Input) |
void TdkCanvas::drawArcW | ( | const double & | xc, | |
const double & | yc, | |||
const double & | w, | |||
const double & | h, | |||
const double & | startAngle, | |||
const double & | finalAngle | |||
) | [virtual] |
Draws an arc defined by a center at (xc, yc), specified in window (world) coordinates, width (w), height (h), the start angle (startAngle) and the final angle (finalAngle).
xc | Center abscissa. (Input) | |
yc | Center ordinate. (Input) | |
w | Width (in the same window unit). (Input) | |
h | Height (in the same window unit). (Input) | |
startAngle | Start angle in decimal degrees. (Input) | |
finalAngle | Final angle in decimal degrees. (Input) |
void TdkCanvas::drawSectorW | ( | const double & | xc, | |
const double & | yc, | |||
const double & | w, | |||
const double & | h, | |||
const double & | startAngle, | |||
const double & | finalAngle | |||
) | [virtual] |
Draws a sector defined by a center coordinate (xc, yc), specified in window (world) coordinates, width (w), height (h), the start angle (startAngle) and the final angle (finalAngle).
xc | Center abscissa. (Input) | |
yc | Center ordinate. (Input) | |
w | Width (in the same window unit). (Input) | |
h | Height (in the same window unit). (Input) | |
startAngle | Start angle in decimal degrees. (Input) | |
finalAngle | Final angle in decimal degrees. (Input) |
void TdkCanvas::fillSectorW | ( | const double & | xc, | |
const double & | yc, | |||
const double & | w, | |||
const double & | h, | |||
const double & | startAngle, | |||
const double & | finalAngle | |||
) | [virtual] |
Fills the sector defined by a center coordinate (xc, yc), specified in window (world) coordinates, width (w), height (h), the start angle (startANgle) and the final angle (finalAngle).
xc | Center abscissa. (Input) | |
yc | Center ordinate. (Input) | |
w | Width (in the same window unit). (Input) | |
h | Height (in the same window unit). (Input) | |
startAngle | Start angle in decimal degrees. (Input) | |
finalAngle | Final angle in decimal degrees. (Input) |
void TdkCanvas::drawTextW | ( | const double & | x, | |
const double & | y, | |||
const string & | text | |||
) | [virtual] |
Draws the text with baseline at (x, y), specified in winodw (world) coordinates.
x | Baseline abscissa. (Input) | |
y | Baseline ordinate. (Input) | |
text | Text to write over canvas. (Input) |
void TdkCanvas::drawPoint | ( | const TePoint & | pt | ) | [virtual] |
Draws a point specified in device coordinates.
pt | TerraLib point instance. (Input) |
void TdkCanvas::drawPoints | ( | TePointSet & | points | ) | [virtual] |
Draws a set of points specified in device coordinates.
points | TerraLib pointset instance. (Input) |
virtual void TdkCanvas::drawLine | ( | const TeLine2D & | line, | |
const bool & | showPoint = false | |||
) | [pure virtual] |
Draws a line with vertexes specified in device coordinates.
line | TerraLib line instance. (Input) | |
showPoint | If true the line vertexes will be drawn. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
void TdkCanvas::drawLines | ( | TeLineSet & | lines, | |
const bool & | showPoint = false | |||
) | [virtual] |
Draws a set of lines with vertexes specified in device coordinates.
lines | TerraLib lineset instance. (Input) | |
showPoint | If true the line vertexes will be drawn. (Input) |
virtual void TdkCanvas::drawPolygon | ( | const TePolygon & | poly, | |
const bool & | showPoint = false | |||
) | [pure virtual] |
Draws a polygon with vertexes specified in device coordinates.
poly | TerraLib polygon instance. (Input) | |
showPoint | If true the polygon vertexes will be drawn. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
void TdkCanvas::drawPolygons | ( | TePolygonSet & | polys, | |
const bool & | showPoint = false | |||
) | [virtual] |
Draws a set of polygons with vertexes specified in device coordinates.
polys | TerraLib polygonset instance. (Input) | |
showPoint | If true the polygon vertexes will be drawn. (Input) |
virtual void TdkCanvas::drawCell | ( | const TeCell & | cell, | |
const bool & | showPoint = false | |||
) | [pure virtual] |
Draws a cell with vertexes specified in device coordinates.
cell | TerraLib cell instance. (Input) | |
showPoint | If true the cell vertexes will be drawn. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
void TdkCanvas::drawCells | ( | TeCellSet & | cells, | |
const bool & | showPoint = false | |||
) | [virtual] |
Draws a set of cells with vertexes specified in device coordinates.
cells | TerraLib cellset instance. (Input) | |
showPoint | If true the cell vertexes will be drawn. (Input) |
void TdkCanvas::drawText | ( | const TeText & | text | ) | [virtual] |
Draws a text with baseline coordinates specified in device coordinates.
text | TerraLib text instance. (Input) |
void TdkCanvas::drawTexts | ( | TeTextSet & | texts | ) | [virtual] |
Draws a set of texts with baseline coordinates specified in device coordinates.
texts | TerraLib textset instance. (Input) |
void TdkCanvas::drawRaster | ( | TeRaster * | raster, | |
TeRasterTransform * | transf, | |||
const double & | angle = 0.0 , |
|||
TdkMathMatrix * | matrix = NULL | |||
) | [pure virtual] |
Draws the raster.
raster | A pointer to a TerraLib raster instance. (Input) | |
transf | A pointer to the raster transform function. (Input) | |
angle | ???? | |
matrix | ???? |
Implemented in TdkJNICanvas, and TdkCDCanvas.
void TdkCanvas::drawPoint | ( | const TeCoord2D & | coord | ) | [virtual] |
Draws a point specified in device coordinates.
coord | TerraLib coordinate instance. (Input) |
Reimplemented in TdkCDCanvas.
void TdkCanvas::drawBox | ( | const TeBox & | box, | |
const bool & | showPoint = false | |||
) | [virtual] |
Draws a box specified in device coordinates.
box | TerraLib box instance. (Input) | |
showPoint | True if the box vertex will be drawn. (Input) |
virtual void TdkCanvas::drawPoint | ( | const double & | x, | |
const double & | y | |||
) | [pure virtual] |
Draws a point specified in device coordinates.
x | Abscissa: horizontal coordinate (x). (Input) | |
y | Ordinate: vertical coordinate (y). (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::drawLineSegment | ( | const double & | x0, | |
const double & | y0, | |||
const double & | x1, | |||
const double & | y1 | |||
) | [pure virtual] |
Draws a line segment from (x0, y0) to (x1, y1), specified in device coordinates.
x0 | Abscissa value indicating the segment begin. (Input) | |
y0 | Ordinate value indicating the segment begin. (Input) | |
x1 | Abscissa value indicating the segment end. (Input) | |
y1 | Ordinate value indicating the segment end. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::drawLineSegment | ( | const TeCoord2D & | c1, | |
const TeCoord2D & | c2 | |||
) | [pure virtual] |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::drawRect | ( | const double & | llx, | |
const double & | lly, | |||
const double & | urx, | |||
const double & | ury | |||
) | [pure virtual] |
Draws a rectangle with lower left corner at (llx, lly) and uper right corner at (urx, ury), specified in device coordinates.
llx | Lower left abscissa. (Input) | |
lly | Lower left ordinate. (Input) | |
urx | Upper right abscissa. (Input) | |
ury | Upper right ordinate. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
void TdkCanvas::drawRect | ( | const TeBox & | rect | ) | [virtual] |
virtual void TdkCanvas::fillRect | ( | const double & | llx, | |
const double & | lly, | |||
const double & | urx, | |||
const double & | ury | |||
) | [pure virtual] |
Fills the rectangle with lower left corner at (llx, lly) and uper right corner at (urx, ury), specified in device coordinates.
llx | Lower left abscissa. (Input) | |
lly | Lower left ordinate. (Input) | |
urx | Upper right abscissa. (Input) | |
ury | Upper right ordinate. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
void TdkCanvas::fillRect | ( | const TeBox & | rect | ) | [virtual] |
virtual void TdkCanvas::drawLine | ( | TdkPrimitiveCoord * | line, | |
const int & | lineSize | |||
) | [pure virtual] |
Draws a line with vertexes specified in device coordinates.
line | A pointer to line vertexes. (Input) | |
lineSize | Number of line vertexes. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::drawPolygon | ( | TdkPrimitiveCoord * | poly, | |
int * | ringSize, | |||
const int & | nRings | |||
) | [pure virtual] |
Draws a polygon with vertexes specified in device coordinates.
poly | A pointer to polygon vertexes. (Input) | |
ringSize | A pointer to an array with each polygon ring size. (Input) | |
nRings | The number of rings in the specified polygon. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::drawEllipse | ( | const double & | xc, | |
const double & | yc, | |||
const double & | rx, | |||
const double & | ry, | |||
const double & | angle | |||
) | [pure virtual] |
Draws an ellipse with center at (xc, yc), specified in device coordinates, x axis width r1 and y axis width r2, especified in the same device unit.
xc | Center abscissa. (Input) | |
yc | Center ordinate. (Input) | |
rx | X axis width (in the same device unit). (Input) | |
ry | Y axis width (in the same device unit). (Input) | |
angle | Angle to rotate the ellipse round "x" axis. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::drawEllipse | ( | const double & | xc, | |
const double & | yc, | |||
const double & | rx1, | |||
const double & | ry1, | |||
const double & | rx2, | |||
const double & | ry2 | |||
) | [pure virtual] |
Draws an ellipse with center at (xc, yc), specified in device coordinates, x axis width r1 and y axis width r2, especified in the same device unit.
xc | Center abscissa. (Input) | |
yc | Center ordinate. (Input) | |
rx1 | First conjugate radius (in the same device unit). (Input) | |
ry1 | First conjugate radius (in the same device unit). (Input) | |
rx2 | Second conjugate radius (in the same device unit). (Input) | |
ry2 | Second conjugate radius (in the same device unit). (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::fillEllipse | ( | const double & | xc, | |
const double & | yc, | |||
const double & | rx, | |||
const double & | ry, | |||
const double & | angle | |||
) | [pure virtual] |
Fills the ellipse with center at (xc, yc), specified in device coordinates, x axis width r1 and y axis width r2, especified in the same device unit.
xc | Center abscissa. (Input) | |
yc | Center ordinate. (Input) | |
rx | X axis width (in the same device unit). (Input) | |
ry | Y axis width (in the same device unit). (Input) | |
angle | Angle to rotate the ellipse round "x" axis. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::fillEllipse | ( | const double & | xc, | |
const double & | yc, | |||
const double & | rx1, | |||
const double & | ry1, | |||
const double & | rx2, | |||
const double & | ry2 | |||
) | [pure virtual] |
Fills the ellipse with center at (xc, yc), specified in device coordinates, x axis width r1 and y axis width r2, especified in the same device unit.
xc | Center abscissa. (Input) | |
yc | Center ordinate. (Input) | |
rx1 | First conjugate radius (in the same device unit). (Input) | |
ry1 | First conjugate radius (in the same device unit). (Input) | |
rx2 | Second conjugate radius (in the same device unit). (Input) | |
ry2 | Second conjugate radius (in the same device unit). (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::drawArc | ( | const double & | xc, | |
const double & | yc, | |||
const double & | w, | |||
const double & | h, | |||
const double & | startAngle, | |||
const double & | finalAngle | |||
) | [pure virtual] |
Draws an arc defined by a center at (xc, yc), specified in device coordinates, width (w), height (h), the start angle (startAngle) and the final angle (finalAngle).
xc | Center abscissa. (Input) | |
yc | Center ordinate. (Input) | |
w | Width (in the same device unit). (Input) | |
h | Height (in the same device unit). (Input) | |
startAngle | Start angle in decimal degrees. (Input) | |
finalAngle | Final angle in decimal degrees. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::drawSector | ( | const double & | xc, | |
const double & | yc, | |||
const double & | w, | |||
const double & | h, | |||
const double & | startAngle, | |||
const double & | finalAngle | |||
) | [pure virtual] |
Draws a sector defined by a center coordinate (xc, yc), specified in device coordinates, width (w), height (h), the start angle (startANgle) and the final angle (finalAngle).
xc | Center abscissa. (Input) | |
yc | Center ordinate. (Input) | |
w | Width (in the same device unit). (Input) | |
h | Height (in the same device unit). (Input) | |
startAngle | Start angle in decimal degrees. (Input) | |
finalAngle | Final angle in decimal degrees. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::fillSector | ( | const double & | xc, | |
const double & | yc, | |||
const double & | w, | |||
const double & | h, | |||
const double & | startAngle, | |||
const double & | finalAngle | |||
) | [pure virtual] |
Fills the sector defined by a center coordinate (xc, yc), specified in device coordinates, width (w), height (h), the start angle (startANgle) and the final angle (finalAngle).
xc | Center abscissa. (Input) | |
yc | Center ordinate. (Input) | |
w | Width (in the same device unit). (Input) | |
h | Height (in the same device unit). (Input) | |
startAngle | Start angle in decimal degrees. (Input) | |
finalAngle | Final angle in decimal degrees. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::drawText | ( | const double & | x, | |
const double & | y, | |||
const string & | text | |||
) | [pure virtual] |
Draws the text with baseline at (x, y), specified in device coordinates.
x | Baseline abscissa. (Input) | |
y | Baseline ordinate. (Input) | |
text | Text to write over canvas. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::drawImageRGB | ( | const unsigned int & | imgW, | |
const unsigned int & | imgH, | |||
unsigned char * | red, | |||
unsigned char * | green, | |||
unsigned char * | blue, | |||
const double & | dstX, | |||
const double & | dstY, | |||
const unsigned int & | dstW, | |||
const unsigned int & | dstH | |||
) | [pure virtual] |
Draws at (dstX, dstY) the pixels of a RGB image.
imgW | Source image width. (Input) | |
imgH | Source image height. (Input) | |
red | Pointer to red pixel component array. (Input) | |
green | Pointer to green pixel component array. (Input) | |
blue | Pointer to blue pixel component array. (Input) | |
dstX | Baseline abscissa on canvas. (Input) | |
dstY | Baseline ordinate on canvas. (Input) | |
dstW | Bounding width for drawing on canvas from the abscissa (dstX). (Input) | |
dstH | Bounding height for drawing on canvas from the ordinate (dstY). (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::drawImageRGB | ( | const unsigned int & | imgW, | |
const unsigned int & | imgH, | |||
unsigned char * | red, | |||
unsigned char * | green, | |||
unsigned char * | blue, | |||
const double & | dstX, | |||
const double & | dstY, | |||
const unsigned int & | dstW, | |||
const unsigned int & | dstH, | |||
const double & | srcX, | |||
const double & | srcY, | |||
const unsigned int & | srcW = 0 , |
|||
const unsigned int & | srcH = 0 | |||
) | [pure virtual] |
Draws at (dstX, dstY) the pixels of a RGB image.
imgW | Source image width. (Input) | |
imgH | Source image height. (Input) | |
red | Pointer to red pixel component array. (Input) | |
green | Pointer to green pixel component array. (Input) | |
blue | Pointer to blue pixel component array. (Input) | |
dstX | Baseline abscissa on canvas. (Input) | |
dstY | Baseline ordinate on canvas. (Input) | |
dstW | Bounding width for drawing on canvas from the abscissa (dstX). (Input) | |
dstH | Bounding height for drawing on canvas from the ordinate (dstY). (Input) | |
srcX | Initial abscissa position of the pixel on the image to copy to canvas. (Input) | |
srcY | Initial ordinate position of the pixel on the image to copy to canvas. (Input) | |
srcW | Number of columns (width) to copy from srcX position. (Input) | |
srcH | Number of lines (height) to copy from srcY position. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::drawImageRGB | ( | const double & | angle, | |
const unsigned int & | imgW, | |||
const unsigned int & | imgH, | |||
unsigned char * | red, | |||
unsigned char * | green, | |||
unsigned char * | blue, | |||
const double & | dstX, | |||
const double & | dstY, | |||
const unsigned int & | dstW, | |||
const unsigned int & | dstH, | |||
const double & | srcX, | |||
const double & | srcY, | |||
const unsigned int & | srcW = 0 , |
|||
const unsigned int & | srcH = 0 | |||
) | [pure virtual] |
Draws at (dstX, dstY) the pixels of a RGB image.
angle | Angle in decimal degrees to rotate the image. (Input) | |
imgW | Source image width. (Input) | |
imgH | Source image height. (Input) | |
red | Pointer to red pixel component array. (Input) | |
green | Pointer to green pixel component array. (Input) | |
blue | Pointer to blue pixel component array. (Input) | |
dstX | Baseline abscissa on canvas. (Input) | |
dstY | Baseline ordinate on canvas. (Input) | |
dstW | Bounding width for drawing on canvas from the abscissa (dstX). (Input) | |
dstH | Bounding height for drawing on canvas from the ordinate (dstY). (Input) | |
srcX | Initial abscissa position of the pixel on the image to copy to canvas. (Input) | |
srcY | Initial ordinate position of the pixel on the image to copy to canvas. (Input) | |
srcW | Number of columns (width) to copy from srcX position. (Input) | |
srcH | Number of lines (height) to copy from srcY position. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::drawImageRGBA | ( | const unsigned int & | imgW, | |
const unsigned int & | imgH, | |||
unsigned char * | red, | |||
unsigned char * | green, | |||
unsigned char * | blue, | |||
unsigned char * | alpha, | |||
const double & | dstX, | |||
const double & | dstY, | |||
const unsigned int & | dstW, | |||
const unsigned int & | dstH | |||
) | [pure virtual] |
Draws at (dstX, dstY) the pixels of a RGB-Alpha image.
imgW | Source image width. (Input) | |
imgH | Source image height. (Input) | |
red | Pointer to red pixel component array. (Input) | |
green | Pointer to green pixel component array. (Input) | |
blue | Pointer to blue pixel component array. (Input) | |
alpha | Pointer to alpha channel pixel component array. (Input) | |
dstX | Baseline abscissa on canvas. (Input) | |
dstY | Baseline ordinate on canvas. (Input) | |
dstW | Bounding width for drawing on canvas from the abscissa (dstX). (Input) | |
dstH | Bounding height for drawing on canvas from the ordinate (dstY). (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::drawImageRGBA | ( | const unsigned int & | imgW, | |
const unsigned int & | imgH, | |||
unsigned char * | red, | |||
unsigned char * | green, | |||
unsigned char * | blue, | |||
unsigned char * | alpha, | |||
const double & | dstX, | |||
const double & | dstY, | |||
const unsigned int & | dstW, | |||
const unsigned int & | dstH, | |||
const double & | srcX, | |||
const double & | srcY, | |||
const unsigned int & | srcW = 0 , |
|||
const unsigned int & | srcH = 0 | |||
) | [pure virtual] |
Draws at (dstX, dstY) the pixels of a RGB-Alpha image.
imgW | Source image width. (Input) | |
imgH | Source image height. (Input) | |
red | Pointer to red pixel component array. (Input) | |
green | Pointer to green pixel component array. (Input) | |
blue | Pointer to blue pixel component array. (Input) | |
alpha | Pointer to alpha channel pixel component array. (Input) | |
dstX | Baseline abscissa on canvas. (Input) | |
dstY | Baseline ordinate on canvas. (Input) | |
dstW | Bounding width for drawing on canvas from the abscissa (dstX). (Input) | |
dstH | Bounding height for drawing on canvas from the ordinate (dstY). (Input) | |
srcX | Initial abscissa position of the pixel on the image to copy to canvas. (Input) | |
srcY | Initial ordinate position of the pixel on the image to copy to canvas. (Input) | |
srcW | Number of columns (width) to copy from srcX position. (Input) | |
srcH | Number of lines (height) to copy from srcY position. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::drawImageRGBA | ( | const double & | angle, | |
const unsigned int & | imgW, | |||
const unsigned int & | imgH, | |||
unsigned char * | red, | |||
unsigned char * | green, | |||
unsigned char * | blue, | |||
unsigned char * | alpha, | |||
const double & | dstX, | |||
const double & | dstY, | |||
const unsigned int & | dstW, | |||
const unsigned int & | dstH, | |||
const double & | srcX, | |||
const double & | srcY, | |||
const unsigned int & | srcW = 0 , |
|||
const unsigned int & | srcH = 0 | |||
) | [pure virtual] |
Draws at (dstX, dstY) the pixels of a RGB-Alpha image.
angle | Angle in decimal degrees to rotate the image. (Input) | |
imgW | Source image width. (Input) | |
imgH | Source image height. (Input) | |
red | Pointer to red pixel component array. (Input) | |
green | Pointer to green pixel component array. (Input) | |
blue | Pointer to blue pixel component array. (Input) | |
alpha | Pointer to alpha channel pixel component array. (Input) | |
dstX | Baseline abscissa on canvas. (Input) | |
dstY | Baseline ordinate on canvas. (Input) | |
dstW | Bounding width for drawing on canvas from the abscissa (dstX). (Input) | |
dstH | Bounding height for drawing on canvas from the ordinate (dstY). (Input) | |
srcX | Initial abscissa position of the pixel on the image to copy to canvas. (Input) | |
srcY | Initial ordinate position of the pixel on the image to copy to canvas. (Input) | |
srcW | Number of columns (width) to copy from srcX position. (Input) | |
srcH | Number of lines (height) to copy from srcY position. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::drawImageMap | ( | const unsigned int & | imgW, | |
const unsigned int & | imgH, | |||
unsigned char * | index, | |||
long int * | colors, | |||
const double & | dstX, | |||
const double & | dstY, | |||
const unsigned int & | dstW, | |||
const unsigned int & | dstH | |||
) | [pure virtual] |
Draws at (dstX, dstY) the pixels of a palette image.
imgW | Source image width. (Input) | |
imgH | Source image height. (Input) | |
index | Pointer to the pixel component. (Input) | |
colors | Pointer to the color palette. (Input) | |
dstX | Baseline abscissa on canvas. (Input) | |
dstY | Baseline ordinate on canvas. (Input) | |
dstW | Bounding width for drawing on canvas from the abscissa (dstX). (Input) | |
dstH | Bounding height for drawing on canvas from the ordinate (dstY). (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::drawImageMap | ( | const unsigned int & | imgW, | |
const unsigned int & | imgH, | |||
unsigned char * | index, | |||
long int * | colors, | |||
const double & | dstX, | |||
const double & | dstY, | |||
const unsigned int & | dstW, | |||
const unsigned int & | dstH, | |||
const double & | srcX, | |||
const double & | srcY, | |||
const unsigned int & | srcW = 0 , |
|||
const unsigned int & | srcH = 0 | |||
) | [pure virtual] |
Draws at (dstX, dstY) the pixels of a palette image.
imgW | Source image width. (Input) | |
imgH | Source image height. (Input) | |
index | Pointer to the pixel component. (Input) | |
colors | Pointer to the color palette. (Input) | |
dstX | Baseline abscissa on canvas. (Input) | |
dstY | Baseline ordinate on canvas. (Input) | |
dstW | Bounding width for drawing on canvas from the abscissa (dstX). (Input) | |
dstH | Bounding height for drawing on canvas from the ordinate (dstY). (Input) | |
srcX | Initial abscissa position of the pixel on the image to copy to canvas. (Input) | |
srcY | Initial ordinate position of the pixel on the image to copy to canvas. (Input) | |
srcW | Number of columns (width) to copy from srcX position. (Input) | |
srcH | Number of lines (height) to copy from srcY position. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::drawImageMap | ( | const double & | angle, | |
const unsigned int & | imgW, | |||
const unsigned int & | imgH, | |||
unsigned char * | index, | |||
long int * | colors, | |||
const double & | dstX, | |||
const double & | dstY, | |||
const unsigned int & | dstW, | |||
const unsigned int & | dstH, | |||
const double & | srcX, | |||
const double & | srcY, | |||
const unsigned int & | srcW = 0 , |
|||
const unsigned int & | srcH = 0 | |||
) | [pure virtual] |
Draws at (dstX, dstY) the pixels of a palette image.
angle | Angle in decimal degrees to rotate the image. (Input) | |
imgW | Source image width. (Input) | |
imgH | Source image height. (Input) | |
index | Pointer to the pixel component. (Input) | |
colors | Pointer to the color palette. (Input) | |
dstX | Baseline abscissa on canvas. (Input) | |
dstY | Baseline ordinate on canvas. (Input) | |
dstW | Bounding width for drawing on canvas from the abscissa (dstX). (Input) | |
dstH | Bounding height for drawing on canvas from the ordinate (dstY). (Input) | |
srcX | Initial abscissa position of the pixel on the image to copy to canvas. (Input) | |
srcY | Initial ordinate position of the pixel on the image to copy to canvas. (Input) | |
srcW | Number of columns (width) to copy from srcX position. (Input) | |
srcH | Number of lines (height) to copy from srcY position. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::drawImageGray | ( | const unsigned int & | imgW, | |
const unsigned int & | imgH, | |||
unsigned char * | data, | |||
const double & | dstX, | |||
const double & | dstY, | |||
const unsigned int & | dstW, | |||
const unsigned int & | dstH | |||
) | [pure virtual] |
Draws at (dstX, dstY) the pixels of a gray image.
imgW | Source image width. (Input) | |
imgH | Source image height. (Input) | |
data | Pointer to the pixel component. (Input) | |
dstX | Baseline abscissa on canvas. (Input) | |
dstY | Baseline ordinate on canvas. (Input) | |
dstW | Bounding width for drawing on canvas from the abscissa (dstX). (Input) | |
dstH | Bounding height for drawing on canvas from the ordinate (dstY). (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::drawImageGray | ( | const unsigned int & | imgW, | |
const unsigned int & | imgH, | |||
unsigned char * | data, | |||
const double & | dstX, | |||
const double & | dstY, | |||
const unsigned int & | dstW, | |||
const unsigned int & | dstH, | |||
const double & | srcX, | |||
const double & | srcY, | |||
const unsigned int & | srcW = 0 , |
|||
const unsigned int & | srcH = 0 | |||
) | [pure virtual] |
Draws at (dstX, dstY) the pixels of a gray image.
imgW | Source image width. (Input) | |
imgH | Source image height. (Input) | |
data | Pointer to the pixel component. (Input) | |
dstX | Baseline abscissa on canvas. (Input) | |
dstY | Baseline ordinate on canvas. (Input) | |
dstW | Bounding width for drawing on canvas from the abscissa (dstX). (Input) | |
dstH | Bounding height for drawing on canvas from the ordinate (dstY). (Input) | |
srcX | Initial abscissa position of the pixel on the image to copy to canvas. (Input) | |
srcY | Initial ordinate position of the pixel on the image to copy to canvas. (Input) | |
srcW | Number of columns (width) to copy from srcX position. (Input) | |
srcH | Number of lines (height) to copy from srcY position. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::drawImageGray | ( | const double & | angle, | |
const unsigned int & | imgW, | |||
const unsigned int & | imgH, | |||
unsigned char * | data, | |||
const double & | dstX, | |||
const double & | dstY, | |||
const unsigned int & | dstW, | |||
const unsigned int & | dstH, | |||
const double & | srcX, | |||
const double & | srcY, | |||
const unsigned int & | srcW = 0 , |
|||
const unsigned int & | srcH = 0 | |||
) | [pure virtual] |
Draws at (dstX, dstY) the pixels of a gray image.
angle | Angle in decimal degrees to rotate the image. (Input) | |
imgW | Source image width. (Input) | |
imgH | Source image height. (Input) | |
data | Pointer to the pixel component. (Input) | |
dstX | Baseline abscissa on canvas. (Input) | |
dstY | Baseline ordinate on canvas. (Input) | |
dstW | Bounding width for drawing on canvas from the abscissa (dstX). (Input) | |
dstH | Bounding height for drawing on canvas from the ordinate (dstY). (Input) | |
srcX | Initial abscissa position of the pixel on the image to copy to canvas. (Input) | |
srcY | Initial ordinate position of the pixel on the image to copy to canvas. (Input) | |
srcW | Number of columns (width) to copy from srcX position. (Input) | |
srcH | Number of lines (height) to copy from srcY position. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::drawImage | ( | char * | image, | |
const double & | srcX, | |||
const double & | srcY, | |||
const unsigned int & | srcW, | |||
const unsigned int & | srcH, | |||
const double & | dstX, | |||
const double & | dstY, | |||
const TdkImageType & | imageType | |||
) | [pure virtual] |
Draws at (dstX, dstY) the srcW by srcH area of pixels from (srcX, srcY) in image of type (imageType).
image | A pointer to an image (PNG, JPEG or other). (Input) | |
srcX | Initial abscissa position of the pixel on the image to copy to canvas. (Input) | |
srcY | Initial ordinate position of the pixel on the image to copy to canvas. (Input) | |
srcW | Number of columns (width) to copy from srcX position. (Input) | |
srcH | Number of lines (height) to copy from srcY position. (Input) | |
dstX | Baseline abscissa on canvas. (Input) | |
dstY | Baseline ordinate on canvas. (Input) | |
imageType | Image type: TePNG, TeJPEG, TeGIF, TeBITMAP or others. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::drawImage | ( | char * | image, | |
const double & | srcX, | |||
const double & | srcY, | |||
const unsigned int & | srcW, | |||
const unsigned int & | srcH, | |||
const double & | dstX, | |||
const double & | dstY, | |||
const unsigned int & | dstW, | |||
const unsigned int & | dstH, | |||
const TdkImageType & | imageType | |||
) | [pure virtual] |
Draws at (dstX, dstY) the srcW by srcH area of pixels from (srcX, srcY) in image of type (imageType).
image | A pointer to an image (PNG, JPEG or other). (Input) | |
srcX | Initial abscissa position of the pixel on the image to copy to canvas. (Input) | |
srcY | Initial ordinate position of the pixel on the image to copy to canvas. (Input) | |
srcW | Number of columns (width) to copy from srcX position. (Input) | |
srcH | Number of lines (height) to copy from srcY position. (Input) | |
dstX | Baseline abscissa on canvas. (Input) | |
dstY | Baseline ordinate on canvas. (Input) | |
dstW | Bounding width for drawing on canvas from the abscissa (dstX). (Input) | |
dstH | Bounding width for drawing on canvas from the ordinate (dstY). (Input) | |
imageType | Image type: TePNG, TeJPEG, TeGIF, TeBITMAP or others. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::drawImage | ( | const double & | angle, | |
char * | image, | |||
const double & | srcX, | |||
const double & | srcY, | |||
const unsigned int & | srcW, | |||
const unsigned int & | srcH, | |||
const double & | dstX, | |||
const double & | dstY, | |||
const unsigned int & | dstW, | |||
const unsigned int & | dstH, | |||
const TdkImageType & | imageType | |||
) | [pure virtual] |
Draws at (dstX, dstY) the srcW by srcH area of pixels from (srcX, srcY) in image of type (imageType).
angle | Angle in decimal degrees to rotate the image. (Input) | |
image | A pointer to an image (PNG, JPEG or other). (Input) | |
srcX | Initial abscissa position of the pixel on the image to copy to canvas. (Input) | |
srcY | Initial ordinate position of the pixel on the image to copy to canvas. (Input) | |
srcW | Number of columns (width) to copy from srcX position. (Input) | |
srcH | Number of lines (height) to copy from srcY position. (Input) | |
dstX | Baseline abscissa on canvas. (Input) | |
dstY | Baseline ordinate on canvas. (Input) | |
dstW | Bounding width for drawing on canvas from the abscissa (dstX). (Input) | |
dstH | Bounding width for drawing on canvas from the ordinate (dstY). (Input) | |
imageType | Image type: TePNG, TeJPEG, TeGIF, TeBITMAP or others. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::getImageRGB | ( | const double & | x, | |
const double & | y, | |||
const int & | w, | |||
const int & | h, | |||
unsigned char * | r, | |||
unsigned char * | g, | |||
unsigned char * | b | |||
) | [pure virtual] |
Returns an RGB array from the current canvas buffer content.
x | Initial canvas abscissa position to copy pixels from. (Input) | |
y | Initial canvas ordinate position to copy pixels from. (Input) | |
w | Number of columns (width) to copy from canvas. (Input) | |
h | Number of lines (height) to copy from canvas. (Input) | |
r | Pointer to a red array component to be writen from canvas. (Output) | |
g | Pointer to a green array component to be written from canvas. (Output) | |
b | Pointer to a blue array component to be written from canvas. (Output) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::getImageRGBA | ( | const double & | x, | |
const double & | y, | |||
const int & | w, | |||
const int & | h, | |||
unsigned char * | r, | |||
unsigned char * | g, | |||
unsigned char * | b, | |||
unsigned char * | a | |||
) | [pure virtual] |
Returns an RGB-Alpha array from the current canvas buffer content.
x | Initial canvas abscissa position to copy pixels from. (Input) | |
y | Initial canvas ordinate position to copy pixels from. (Input) | |
w | Number of columns (width) to copy from canvas. (Input) | |
h | Number of lines (height) to copy from canvas. (Input) | |
r | Pointer to a red array component to write from canvas. (Output) | |
g | Pointer to a green array component to be written from canvas. (Output) | |
b | Pointer to a blue array component to be written from canvas. (Output) | |
a | Pointer to an alpha array component to be written from canvas. (Output) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::getImageMap | ( | const double & | x, | |
const double & | y, | |||
const int & | w, | |||
const int & | h, | |||
unsigned char * | index, | |||
long int * | colors | |||
) | [pure virtual] |
Returns a Palette Image from the current canvas buffer content.
x | Initial canvas abscissa position to copy pixels from. (Input) | |
y | Initial canvas ordinate position to copy pixels from. (Input) | |
w | Number of columns (width) to copy from canvas. (Input) | |
h | Number of lines (height) to copy from canvas. (Input) | |
index | Pointer to a red array component to be written from canvas. (Output) | |
colors | Pointer to a green array component to be written from canvas. (Output) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::getImageGray | ( | const double & | x, | |
const double & | y, | |||
const int & | w, | |||
const int & | h, | |||
unsigned char * | data | |||
) | [pure virtual] |
Returns a Gray Image from the current canvas buffer content.
x | Initial canvas abscissa position to copy pixels from. (Input) | |
y | Initial canvas ordinate position to copy pixels from. (Input) | |
w | Number of columns (width) to copy from canvas. (Input) | |
h | Number of lines (height) to copy from canvas. (Input) | |
data | Pointer to the pixel array to be written from canvas. (Output) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual char* TdkCanvas::getImage | ( | const double & | x, | |
const double & | y, | |||
const int & | w, | |||
const int & | h, | |||
TdkImageType | imageType, | |||
int & | size, | |||
const int & | quality = 75 | |||
) | [pure virtual] |
Returns an image from the current canvas buffer content in a specified format (PNG, JPEG, GIF or other).
x | Initial canvas abscissa position to copy pixels from. (Input) | |
y | Initial canvas ordinate position to copy pixels from. (Input) | |
w | Number of columns (width) to copy from canvas. (Input) | |
h | Number of lines (height) to copy from canvas. (Input) | |
imageType | The desired output format. (Input) | |
size | The size of returned image in bytes. (Output) | |
quality | Defines the quality desired. It applies to JPEG image. (Output) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setVisual | ( | TdkVisual * | v, | |
const TeGeomRep & | rep | |||
) | [pure virtual] |
Sets the visual for a given geometry type.
v | Visual that must be applied to a given geometry type. (Input) | |
rep | Geometry type that the visual will be applied (may be: TePOLYGON for polygon geometry, TeLINES for line geometry, TePOINTS for point geometry, TeTEXT = 128 for text geometry, TeCELLS for cell geometry). (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setPointColor | ( | const int & | r, | |
const int & | g, | |||
const int & | b | |||
) | [pure virtual] |
Sets the pen color used to draw point geometries.
r | Red component color value. (Input) | |
g | Green component color value. (Input) | |
b | Blue component color value. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setPointColor | ( | const int & | r, | |
const int & | g, | |||
const int & | b, | |||
const int & | alpha | |||
) | [pure virtual] |
Sets the pen color used to draw point geometries.
r | Red component color value. (Input) | |
g | Green component color value. (Input) | |
b | Blue component color value. (Input) | |
alpha | Must be a value between 0 and 255, where 0 is opaque and 255 is completely transparent. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setPointColor | ( | const TeColor & | color, | |
const int & | alpha | |||
) | [pure virtual] |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setPointAlpha | ( | const int & | alpha | ) | [pure virtual] |
Sets the alpha channel used to draw point geometries.
alpha | Must be a value between 0 and 255, where 0 is opaque and 255 is completely transparent. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setPointType | ( | const int & | type | ) | [pure virtual] |
Sets the style for draw point geometries.
style | Point style that will be used to draw points. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setPointSize | ( | const int & | s | ) | [pure virtual] |
Sets pen size (in pixels) used to draw point geometries.
s | Pen size (in pixels). (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setPointChar | ( | const char & | c | ) | [pure virtual] |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setLineColor | ( | const int & | r, | |
const int & | g, | |||
const int & | b | |||
) | [pure virtual] |
Sets the pen color used to draw line geometries.
r | Red component color value. (Input) | |
g | Green component color value. (Input) | |
b | Blue component color value. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setLineColor | ( | const int & | r, | |
const int & | g, | |||
const int & | b, | |||
const int & | alpha | |||
) | [pure virtual] |
Sets the pen color used to draw line geometries.
r | Red component color value. (Input) | |
g | Green component color value. (Input) | |
b | Blue component color value. (Input) | |
alpha | Must be a value between 0 and 255, where 0 is opaque and 255 is completely transparent. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setLineColor | ( | const TeColor & | color, | |
const int & | alpha | |||
) | [pure virtual] |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setLineAlpha | ( | const int & | alpha | ) | [pure virtual] |
Sets the alpha channel used to draw line geometries.
alpha | Must be a value between 0 and 255, where 0 is opaque and 255 is completely transparent. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setLineType | ( | const int & | type | ) | [pure virtual] |
Sets the style for draw line geometries.
style | Line style that will be used to draw lines. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setLineStyleDashes | ( | double * | dashArray, | |
const int & | size | |||
) | [pure virtual] |
Sets an array of custom dashes and spaces for this Pen object.
dashArray | Pointer to an array of real numbers that specifies the length of the custom dashes and spaces. All elements in the array must be positive. | |
size | Integer that specifies the number of elements in the dashArray array. The integer must be greater than 0 and not greater than the total number of elements in the array |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setLineWidth | ( | const int & | width | ) | [pure virtual] |
Sets pen width (in pixels) used to draw line geometries .
width | Pen size (in pixels). (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setPolygonColor | ( | const int & | r, | |
const int & | g, | |||
const int & | b | |||
) | [pure virtual] |
Sets the color used to fill the draw of polygon geometries.
r | Red component color value. (Input) | |
g | Green component color value. (Input) | |
b | Blue component color value. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setPolygonColor | ( | const int & | r, | |
const int & | g, | |||
const int & | b, | |||
const int & | alpha | |||
) | [pure virtual] |
Sets the color used to fill the draw of polygon geometries.
r | Red component color value. (Input) | |
g | Green component color value. (Input) | |
b | Blue component color value. (Input) | |
alpha | Must be a value between 0 and 255, where 0 is opaque and 255 is completely transparent. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setPolygonColor | ( | const TeColor & | color, | |
const int & | alpha | |||
) | [pure virtual] |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setPolygonAlpha | ( | const int & | alpha | ) | [pure virtual] |
Sets the alpha channel used to fill the draw of polygon geometries.
alpha | Must be a value between 0 and 255, where 0 is opaque and 255 is completely transparent. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setPolygonBorderColor | ( | const int & | r, | |
const int & | g, | |||
const int & | b | |||
) | [pure virtual] |
Sets the pen color used to draw the boundary of polygon geometries.
r | Red component color value. (Input) | |
g | Green component color value. (Input) | |
b | Blue component color value. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setPolygonBorderColor | ( | const int & | r, | |
const int & | g, | |||
const int & | b, | |||
const int & | alpha | |||
) | [pure virtual] |
Sets the pen color used to draw the boundary of polygon geometries.
r | Red component color value. (Input) | |
g | Green component color value. (Input) | |
b | Blue component color value. (Input) | |
alpha | Must be a value between 0 and 255, where 0 is opaque and 255 is completely transparent. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setPolygonBorderColor | ( | const TeColor & | color, | |
const int & | alpha | |||
) | [pure virtual] |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setPolygonBorderAlpha | ( | const int & | alpha | ) | [pure virtual] |
Sets the alpha channel used to draw the boundary of polygon geometries.
alpha | Must be a value between 0 and 255, where 0 is opaque and 255 is completely transparent. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setPolygonType | ( | const int & | type | ) | [pure virtual] |
Sets the style for draw line geometries.
style | Line style that will be used to draw lines. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setPolygonTypeStipple | ( | const int & | width, | |
const int & | height, | |||
unsigned char * | fgbg, | |||
const int & | br, | |||
const int & | bg, | |||
const int & | bb | |||
) | [pure virtual] |
Fills the polygon with foreground color or a background color (r, g, b) having a mask matrix fgbg (of '0's and '1's).
width | Number o columns. (Input) | |
height | Number o lines. (Input) | |
fgbg | Mask matrix, when '0' we must use the background color (r,g,b) and when the value is '1' we must use the foreground color set in setPolygonColor. (Input) | |
br | Red background color. (Input) | |
bg | Green background color. (Input) | |
bb | Blue background color. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setPolygonTypePattern | ( | const int & | width, | |
const int & | height, | |||
unsigned char * | r, | |||
unsigned char * | g, | |||
unsigned char * | b | |||
) | [pure virtual] |
Sets the pattern style used to fill the draw of polygon geometries.
width | The width of the pattern (number of columns of RGB array). (Input) | |
height | The height of the pattern (number of lines of RGB array). (Input) | |
r | Pointer to red pixel component array. (Input) | |
g | Pointer to green pixel component array. (Input) | |
b | Pointer to blue pixel component array. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setPolygonBorderType | ( | const int & | type | ) | [pure virtual] |
Sets the style used to draw the boundary of polygon geometries.
style | Line style used to draw a polygon boundary. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setPolygonBorderWidth | ( | const int & | width | ) | [pure virtual] |
Sets pen width (in pixels) used to draw the boundary of polygon geometries .
width | Pen size (in pixels). (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setTextColor | ( | const int & | r, | |
const int & | g, | |||
const int & | b | |||
) | [pure virtual] |
Sets the color of the text.
r | Red component color value. (Input) | |
g | Green component color value. (Input) | |
b | Blue component color value. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setTextColor | ( | const int & | r, | |
const int & | g, | |||
const int & | b, | |||
const int & | alpha | |||
) | [pure virtual] |
Sets the color of the text.
r | Red component color value. (Input) | |
g | Green component color value. (Input) | |
b | Blue component color value. (Input) | |
alpha | Must be a value between 0 and 255, where 0 is opaque and 255 is completely transparent. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setTextColor | ( | const TeColor & | color, | |
const int & | alpha | |||
) | [pure virtual] |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setTextAlpha | ( | const int & | alpha | ) | [pure virtual] |
Sets the alpha channel used to draw texts.
alpha | Must be a value between 0 and 255, where 0 is opaque and 255 is completely transparent. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setTextBackgroundColor | ( | const int & | r, | |
const int & | g, | |||
const int & | b | |||
) | [pure virtual] |
Sets the background color of the text.
r | Red component color value. (Input) | |
g | Green component color value. (Input) | |
b | Blue component color value. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setTextBackgroundColor | ( | const int & | r, | |
const int & | g, | |||
const int & | b, | |||
const int & | alpha | |||
) | [pure virtual] |
Sets the background color of the text.
r | Red component color value. (Input) | |
g | Green component color value. (Input) | |
b | Blue component color value. (Input) | |
alpha | Must be a value between 0 and 255, where 0 is opaque and 255 is completely transparent. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setTextBackgroundColor | ( | const TeColor & | color, | |
const int & | alpha | |||
) | [pure virtual] |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setTextBackgroundAlpha | ( | const int & | alpha | ) | [pure virtual] |
Sets the alpha channel used to fill the background of texts.
alpha | Must be a value between 0 and 255, where 0 is opaque and 255 is completely transparent. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setTextBackgroundType | ( | const int & | type | ) | [pure virtual] |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setTextBorderColor | ( | const int & | r, | |
const int & | g, | |||
const int & | b | |||
) | [pure virtual] |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setTextBorderColor | ( | const int & | r, | |
const int & | g, | |||
const int & | b, | |||
const int & | alpha | |||
) | [pure virtual] |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setTextBorderColor | ( | const TeColor & | color, | |
const int & | alpha | |||
) | [pure virtual] |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setTextBorderAlpha | ( | const int & | alpha | ) | [pure virtual] |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setTextBorderType | ( | const int & | type | ) | [pure virtual] |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setTextBorderWidth | ( | const int & | width | ) | [pure virtual] |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setTextFont | ( | const string & | fontName | ) | [pure virtual] |
Sets the font family of the text.
fontName | Font name. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setTextSize | ( | const int & | size | ) | [pure virtual] |
Sets the size of the text.
size | Font size. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setTextAngle | ( | const double & | angle | ) | [pure virtual] |
Adjusts the angle used to draw texts.
angle | Angle in decimal degrees. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setTextBold | ( | const bool & | bold = true |
) | [pure virtual] |
Sets the bold style for text.
bold | If true, the text will be draw in bold face otherwise not. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setTextItalic | ( | const bool & | italic = true |
) | [pure virtual] |
Sets the italic style for text.
italic | If true, the text will be draw in italic otherwise not. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setTextAlign | ( | const double & | alignmentHoriz, | |
const double & | alignmentVert | |||
) | [pure virtual] |
Sets the alignment of the text.
alignmentVert | Vertical alignment. (Input) | |
alignmentHoriz | Horizontal alignment. (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::getTextAlign | ( | double & | alignmentHoriz, | |
double & | alignmentVert | |||
) | [pure virtual] |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::getTextBoundsW | ( | const string & | text, | |
const double & | x, | |||
const double & | y, | |||
const double & | angle, | |||
TdkTextBounds & | bounds | |||
) | [pure virtual] |
Returns the bounding box of a text in world coordinates.
text | The text to retrieve the bounding box. | |
box | A polygon with all text box coordinates (the box may not be parallel to xy axis). (Output) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::getTextBounds | ( | const string & | text, | |
const double & | x, | |||
const double & | y, | |||
const double & | angle, | |||
TdkTextBounds & | bounds | |||
) | [pure virtual] |
Returns the bounding box of a text in device coordinates.
text | The text to retrieve the bounding box. | |
box | A polygon with all text box coordinates (the box may not be parallel to xy axis). (Output) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::getTextBoundsW | ( | const TeText & | text, | |
TdkTextBounds & | bounds | |||
) | [pure virtual] |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::getTextBounds | ( | const TeText & | text, | |
TdkTextBounds & | bounds | |||
) | [pure virtual] |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setClipArea | ( | const TeBox & | box | ) | [pure virtual] |
Establishes a clipping rectangle. Once setClipArea has been called, all future drawing operations will remain within the specified clipping area, until a new setClipArea call takes place. For instance, if a clipping rectangle of 25, 25, 75, 75 has been set within a 100x100 device area, a diagonal line from 0,0 to 99,99 will appear only between 25,25 and 75,75.
box | The box that will delimit the drawing area (in device coordinates). (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setClipArea | ( | const double & | llx, | |
const double & | lly, | |||
const double & | urx, | |||
const double & | ury | |||
) | [pure virtual] |
Establishes a clipping rectangle. Once setClipArea has been called, all future drawing operations will remain within the specified clipping area, until a new setClipArea call takes place. For instance, if a clipping rectangle of 25, 25, 75, 75 has been set within a 100x100 device area, a diagonal line from 0,0 to 99,99 will appear only between 25,25 and 75,75.
llx | Lower left abscissa (in device coordinates). (Input) | |
lly | Lower left ordinate (in device coordinates). (Input) | |
urx | Upper left abscissa (in device coordinates). (Input) | |
ury | Upper left ordinate (in device coordinates). (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::getClipArea | ( | double & | llx, | |
double & | lly, | |||
double & | urx, | |||
double & | ury | |||
) | [pure virtual] |
Returns the clipping area.
llx | Lower left abscissa (in device coordinates). (Output) | |
lly | Lower left ordinate (in device coordinates). (Output) | |
urx | Upper left abscissa (in device coordinates). (Output) | |
ury | Upper left ordinate (in device coordinates). (Output) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setClipArea | ( | const TePolygon & | poly | ) | [pure virtual] |
Establishes a clipping polygon. Once setClipArea has been called, all future drawing operations will remain within the specified polygon clipping area, until a new setClipArea call takes place.
poly | The polygon that will delimit the drawing area (in device coordinates). (Input) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::setClipArea | ( | const TePolygonSet & | polys, | |
const TdkClipAreaType & | clipType | |||
) | [pure virtual] |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::getClipArea | ( | TePolygon & | poly | ) | [pure virtual] |
Returns the clipping polygon.
poly | The current clipping polygon (in device coordinates). (Output) |
Implemented in TdkJNICanvas, and TdkCDCanvas.
virtual void TdkCanvas::activateClip | ( | ) | [pure virtual] |
virtual void TdkCanvas::deactivateClip | ( | ) | [pure virtual] |
int TdkCanvas::paintMode_ [protected] |
Current Canvas paint mode.
int TdkCanvas::currentBufferId_ [protected] |
Indicates what is the active current buffer. If this value is set to -1, so there is not a current buffer.
TeColor TdkCanvas::backgroundColor_ [protected] |
Indicates the current canvas background color.
TdkCoordTransformer TdkCanvas::transformer_ [protected] |
This instance can be used to transform coordinates from world to device and device to world.
TeGeomRepVisualMap TdkCanvas::visualMap_ [protected] |
A map with the visual of all geometry types.
TeProjection* TdkCanvas::dataProjection_ [protected] |
TeProjection* TdkCanvas::viewProjection_ [protected] |
bool TdkCanvas::useProjection_ [protected] |