#include <TdkJNICanvas.h>
Inheritance diagram for TdkJNICanvas:
Public Member Functions | |
TdkJNICanvas (JNIEnv *env, jobject *jThis) | |
TdkJNICanvas (JavaVM *jvm_, jobject *jThis, TeProjection *dataProj, TeProjection *viewProj) | |
~TdkJNICanvas () | |
TdkJNICanvas destructor. | |
virtual TdkCanvas * | copy () |
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 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 | mm2Pixel (const double &mmDx, const double &mmDy, double &pDx, double &pDy) |
virtual void | pixel2MM (const double &pDx, const double &pDy, double &mmDx, double &mmDy) |
virtual void | getDimension (double &width, double &height) |
virtual void | getDimensionMM (double &width, double &height) |
virtual void | clear () |
virtual void | repaint () |
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 void | addBuffer (const int &bufferId) |
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) |
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) |
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. | |
virtual void | drawLine (const TeLine2D &line, const bool &showPoint=false) |
Draws a line with vertexes specified in device coordinates. | |
virtual void | drawPolygon (const TePolygon &poly, const bool &showPoint=false) |
Draws a polygon with vertexes specified in device coordinates. | |
virtual void | drawCell (const TeCell &cell, const bool &showPoint=false) |
Draws a cell with vertexes specified in device coordinates. | |
virtual void | drawRaster (TeRaster *raster, TeRasterTransform *transf, const double &angle=0.0, TdkMathMatrix *matrix=NULL) |
Draws the raster. | |
virtual void | drawPoint (const double &x, const double &y) |
Draws a point specified in device coordinates. | |
virtual void | drawLineSegment (const double &x0, const double &y0, const double &x1, const double &y1) |
Draws a line segment from (x0, y0) to (x1, y1), specified in device coordinates. | |
virtual void | drawLineSegment (const TeCoord2D &c1, const TeCoord2D &c2) |
virtual void | drawRect (const double &llx, const double &lly, const double &urx, const double &ury) |
Draws a rectangle with lower left corner at (llx, lly) and uper right corner at (urx, ury), specified in device coordinates. | |
virtual void | fillRect (const double &llx, const double &lly, const double &urx, const double &ury) |
Fills the rectangle with lower left corner at (llx, lly) and uper right corner at (urx, ury), specified in device coordinates. | |
virtual void | drawLine (TdkPrimitiveCoord *line, const int &lineSize) |
Draws a line with vertexes specified in device coordinates. | |
virtual void | drawPolygon (TdkPrimitiveCoord *poly, int *ringSize, const int &nRings) |
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) |
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) |
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) |
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) |
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) |
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) |
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) |
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) |
Draws the text with baseline at (x, y), specified in 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) |
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) |
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) |
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) |
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) |
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) |
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) |
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) |
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) |
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) |
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) |
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) |
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) |
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) |
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) |
Draws at (dstX, dstY) the srcW by srcH area of pixels from (srcX, srcY) in image of type (imageType). | |
virtual void | getImageRGB (const double &x, const double &y, const int &w, const int &h, unsigned char *r, unsigned char *g, unsigned char *b) |
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) |
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) |
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) |
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) |
Returns an image from the current canvas buffer content in a specified format (PNG, JPEG, GIF or other). | |
virtual void | setVisual (TdkVisual *v, const TeGeomRep &rep) |
Sets the visual for a given geometry type. | |
virtual void | setPointColor (const int &r, const int &g, const int &b) |
Sets the pen color used to draw point geometries. | |
virtual void | setPointColor (const int &r, const int &g, const int &b, const int &alpha) |
Sets the pen color used to draw point geometries. | |
virtual void | setPointColor (const TeColor &color, const int &alpha) |
virtual void | setPointAlpha (const int &alpha) |
Sets the alpha channel used to draw point geometries. | |
virtual void | setPointType (const int &type) |
Sets the style for draw point geometries. | |
virtual void | setPointSize (const int &s) |
Sets pen size (in pixels) used to draw point geometries. | |
virtual void | setPointChar (const char &c) |
virtual void | setLineColor (const int &r, const int &g, const int &b) |
Sets the pen color used to draw line geometries. | |
virtual void | setLineColor (const int &r, const int &g, const int &b, const int &alpha) |
Sets the pen color used to draw line geometries. | |
virtual void | setLineColor (const TeColor &color, const int &alpha) |
virtual void | setLineAlpha (const int &alpha) |
Sets the alpha channel used to draw line geometries. | |
virtual void | setLineType (const int &type) |
Sets the style for draw line geometries. | |
virtual void | setLineStyleDashes (double *dashArray, const int &size) |
Sets an array of custom dashes and spaces for this Pen object. | |
virtual void | setLineWidth (const int &width) |
Sets pen width (in pixels) used to draw line geometries . | |
virtual void | setPolygonColor (const int &r, const int &g, const int &b) |
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) |
Sets the color used to fill the draw of polygon geometries. | |
virtual void | setPolygonColor (const TeColor &color, const int &alpha) |
virtual void | setPolygonAlpha (const int &alpha) |
Sets the alpha channel used to fill the draw of polygon geometries. | |
virtual void | setPolygonBorderColor (const int &r, const int &g, const int &b) |
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) |
Sets the pen color used to draw the boundary of polygon geometries. | |
virtual void | setPolygonBorderColor (const TeColor &color, const int &alpha) |
virtual void | setPolygonBorderAlpha (const int &alpha) |
Sets the alpha channel used to draw the boundary of polygon geometries. | |
virtual void | setPolygonType (const int &type) |
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) |
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) |
Sets the pattern style used to fill the draw of polygon geometries. | |
virtual void | setPolygonBorderType (const int &type) |
Sets the style used to draw the boundary of polygon geometries. | |
virtual void | setPolygonBorderWidth (const int &width) |
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) |
Sets the color of the text. | |
virtual void | setTextColor (const int &r, const int &g, const int &b, const int &alpha) |
Sets the color of the text. | |
virtual void | setTextColor (const TeColor &color, const int &alpha) |
virtual void | setTextAlpha (const int &alpha) |
Sets the alpha channel used to draw texts. | |
virtual void | setTextBackgroundColor (const int &r, const int &g, const int &b) |
Sets the background color of the text. | |
virtual void | setTextBackgroundColor (const int &r, const int &g, const int &b, const int &alpha) |
Sets the background color of the text. | |
virtual void | setTextBackgroundColor (const TeColor &color, const int &alpha) |
virtual void | setTextBackgroundAlpha (const int &alpha) |
Sets the alpha channel used to fill the background of texts. | |
virtual void | setTextBackgroundType (const int &type) |
virtual void | setTextBorderColor (const int &r, const int &g, const int &b) |
virtual void | setTextBorderColor (const int &r, const int &g, const int &b, const int &alpha) |
virtual void | setTextBorderColor (const TeColor &color, const int &alpha) |
virtual void | setTextBorderAlpha (const int &alpha) |
virtual void | setTextBorderType (const int &type) |
virtual void | setTextBorderWidth (const int &width) |
virtual void | setTextFont (const string &fontName) |
Sets the font family of the text. | |
virtual void | setTextSize (const int &size) |
Sets the size of the text. | |
virtual void | setTextAngle (const double &angle) |
Adjusts the angle used to draw texts. | |
virtual void | setTextBold (const bool &bold=true) |
Sets the bold style for text. | |
virtual void | setTextItalic (const bool &italic=true) |
Sets the italic style for text. | |
virtual void | setTextAlign (const double &alignmentHoriz, const double &alignmentVert) |
Sets the alignment of the text. | |
virtual void | getTextAlign (double &alignmentHoriz, double &alignmentVert) |
virtual void | getTextBoundsW (const string &text, const double &x, const double &y, const double &angle, TdkTextBounds &bounds) |
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) |
Returns the bounding box of a text in device coordinates. | |
virtual void | getTextBoundsW (const TeText &text, TdkTextBounds &bounds) |
virtual void | getTextBounds (const TeText &text, TdkTextBounds &bounds) |
virtual void | setClipArea (const TeBox &box) |
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) |
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) |
Returns the clipping area. | |
virtual void | setClipArea (const TePolygon &poly) |
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) |
virtual void | getClipArea (TePolygon &poly) |
Returns the clipping polygon. | |
virtual void | activateClip () |
Activate clipping mode. | |
virtual void | deactivateClip () |
Deactivate clipping mode. | |
Protected Member Functions | |
virtual void | getTextLineBox (char *lineText, int &xmin, int &ymin, int &xmax, int &ymax) |
Stores the Java ThkSwingCanvas instance. | |
virtual void | getTextLineBox (char *lineText, double angle, double &xmin, double &ymin, double &xmax, double &ymax) |
virtual void | getTextLineBox (char *lineText, double &xmin, double &ymin, double &xmax, double &ymax) |
Protected Attributes | |
JavaVM * | jvm_ |
jobject | objCanvas_ |
Stores the Java virtual machine. |
The TdkCanvas interface is an abstraction of a Canvas for drawing porpouses. It has drawing primitives for Terralib objects.
TdkJNICanvas::TdkJNICanvas | ( | JNIEnv * | env, | |
jobject * | jThis | |||
) |
TdkJNICanvas::TdkJNICanvas | ( | JavaVM * | jvm_, | |
jobject * | jThis, | |||
TeProjection * | dataProj, | |||
TeProjection * | viewProj | |||
) |
TdkJNICanvas::~TdkJNICanvas | ( | ) |
TdkJNICanvas destructor.
TdkCanvas * TdkJNICanvas::copy | ( | ) | [virtual] |
void TdkJNICanvas::setWindow | ( | const double & | llx, | |
const double & | lly, | |||
const double & | urx, | |||
const double & | ury | |||
) | [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 from TdkCanvas.
void TdkJNICanvas::setWindow | ( | const TeBox & | box | ) | [virtual] |
Adjusts world (window) coordinates area (supposing a cartesian reference system).
box | Bounding box of world. (Input) |
Reimplemented from TdkCanvas.
void TdkJNICanvas::getWindow | ( | double & | llx, | |
double & | lly, | |||
double & | urx, | |||
double & | ury | |||
) | [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 from TdkCanvas.
void TdkJNICanvas::getWindow | ( | TeBox & | window | ) | [virtual] |
Reimplemented from TdkCanvas.
void TdkJNICanvas::setViewport | ( | const double & | llx, | |
const double & | lly, | |||
const double & | urx, | |||
const double & | ury | |||
) | [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 from TdkCanvas.
void TdkJNICanvas::setViewport | ( | const TeBox & | box | ) | [virtual] |
Adjusts device coordinates area (supposing a cartesian reference system).
box | Device bounding box. (Input) |
Reimplemented from TdkCanvas.
void TdkJNICanvas::getViewport | ( | double & | llx, | |
double & | lly, | |||
double & | urx, | |||
double & | ury | |||
) | [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 from TdkCanvas.
void TdkJNICanvas::getViewport | ( | TeBox & | viewport | ) | [virtual] |
Reimplemented from TdkCanvas.
void TdkJNICanvas::window2Viewport | ( | const double & | wx, | |
const double & | wy, | |||
double & | vx, | |||
double & | vy | |||
) | [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 from TdkCanvas.
void TdkJNICanvas::window2Viewport | ( | const double & | w, | |
double & | v, | |||
const bool & | xdirection = true | |||
) | [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 from TdkCanvas.
void TdkJNICanvas::window2Viewport | ( | const TePolygon & | pIn, | |
TePolygon & | pOut | |||
) | [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 from TdkCanvas.
void TdkJNICanvas::viewport2Window | ( | const double & | vx, | |
const double & | vy, | |||
double & | wx, | |||
double & | wy | |||
) | [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 from TdkCanvas.
void TdkJNICanvas::viewport2Window | ( | const double & | v, | |
double & | w, | |||
const bool & | xdirection = true | |||
) | [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 from TdkCanvas.
void TdkJNICanvas::mm2Pixel | ( | const double & | mmDx, | |
const double & | mmDy, | |||
double & | pDx, | |||
double & | pDy | |||
) | [virtual] |
Implements TdkCanvas.
void TdkJNICanvas::pixel2MM | ( | const double & | pDx, | |
const double & | pDy, | |||
double & | mmDx, | |||
double & | mmDy | |||
) | [virtual] |
Implements TdkCanvas.
void TdkJNICanvas::getDimension | ( | double & | width, | |
double & | height | |||
) | [virtual] |
Implements TdkCanvas.
void TdkJNICanvas::getDimensionMM | ( | double & | width, | |
double & | height | |||
) | [virtual] |
Implements TdkCanvas.
void TdkJNICanvas::clear | ( | ) | [virtual] |
Implements TdkCanvas.
void TdkJNICanvas::repaint | ( | ) | [virtual] |
int TdkJNICanvas::setPaintMode | ( | const int & | mode | ) | [virtual] |
Adjusts canvas drawing mode: ....
mode | The mode can be one of the following: ..... (Input) |
Reimplemented from TdkCanvas.
int TdkJNICanvas::getPaintMode | ( | ) | const [virtual] |
int TdkJNICanvas::setActiveBuffer | ( | const int & | bufferId | ) | [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 from TdkCanvas.
void TdkJNICanvas::addBuffer | ( | const int & | bufferId | ) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::removeBuffer | ( | const int & | bufferId | ) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::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 | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::drawLine | ( | const TeLine2D & | line, | |
const bool & | showPoint = false | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::drawPolygon | ( | const TePolygon & | poly, | |
const bool & | showPoint = false | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::drawCell | ( | const TeCell & | cell, | |
const bool & | showPoint = false | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::drawRaster | ( | 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 | ???? | |
matrix | ???? |
Implements TdkCanvas.
void TdkJNICanvas::drawPoint | ( | const double & | x, | |
const double & | y | |||
) | [virtual] |
Draws a point specified in device coordinates.
x | Abscissa: horizontal coordinate (x). (Input) | |
y | Ordinate: vertical coordinate (y). (Input) |
Implements TdkCanvas.
void TdkJNICanvas::drawLineSegment | ( | 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 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) |
Implements TdkCanvas.
void TdkJNICanvas::drawLineSegment | ( | const TeCoord2D & | c1, | |
const TeCoord2D & | c2 | |||
) | [virtual] |
Implements TdkCanvas.
void TdkJNICanvas::drawRect | ( | const double & | llx, | |
const double & | lly, | |||
const double & | urx, | |||
const double & | ury | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::fillRect | ( | const double & | llx, | |
const double & | lly, | |||
const double & | urx, | |||
const double & | ury | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::drawLine | ( | TdkPrimitiveCoord * | line, | |
const int & | lineSize | |||
) | [virtual] |
Draws a line with vertexes specified in device coordinates.
line | A pointer to line vertexes. (Input) | |
lineSize | Number of line vertexes. (Input) |
Implements TdkCanvas.
void TdkJNICanvas::drawPolygon | ( | TdkPrimitiveCoord * | poly, | |
int * | ringSize, | |||
const int & | nRings | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::drawEllipse | ( | 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 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) |
Implements TdkCanvas.
void TdkJNICanvas::drawEllipse | ( | 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 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) |
Implements TdkCanvas.
void TdkJNICanvas::fillEllipse | ( | 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 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) |
Implements TdkCanvas.
void TdkJNICanvas::fillEllipse | ( | 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 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) |
Implements TdkCanvas.
void TdkJNICanvas::drawArc | ( | 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 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) |
Implements TdkCanvas.
void TdkJNICanvas::drawSector | ( | 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 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) |
Implements TdkCanvas.
void TdkJNICanvas::fillSector | ( | 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 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) |
Implements TdkCanvas.
void TdkJNICanvas::drawText | ( | const double & | x, | |
const double & | y, | |||
const string & | text | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::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 | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::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 | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::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 | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::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 | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::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 | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::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 | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::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 | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::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 | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::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 | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::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 | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::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 | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::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 | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::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 | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::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 | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::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 | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::getImageRGB | ( | const double & | x, | |
const double & | y, | |||
const int & | w, | |||
const int & | h, | |||
unsigned char * | r, | |||
unsigned char * | g, | |||
unsigned char * | b | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::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 | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::getImageMap | ( | const double & | x, | |
const double & | y, | |||
const int & | w, | |||
const int & | h, | |||
unsigned char * | index, | |||
long int * | colors | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::getImageGray | ( | const double & | x, | |
const double & | y, | |||
const int & | w, | |||
const int & | h, | |||
unsigned char * | data | |||
) | [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) |
Implements TdkCanvas.
char * TdkJNICanvas::getImage | ( | const double & | x, | |
const double & | y, | |||
const int & | w, | |||
const int & | h, | |||
TdkImageType | imageType, | |||
int & | size, | |||
const int & | quality = 75 | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::setVisual | ( | TdkVisual * | v, | |
const TeGeomRep & | rep | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::setPointColor | ( | const int & | r, | |
const int & | g, | |||
const int & | b | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::setPointColor | ( | const int & | r, | |
const int & | g, | |||
const int & | b, | |||
const int & | alpha | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::setPointColor | ( | const TeColor & | color, | |
const int & | alpha | |||
) | [virtual] |
Implements TdkCanvas.
void TdkJNICanvas::setPointAlpha | ( | const int & | alpha | ) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::setPointType | ( | const int & | type | ) | [virtual] |
Sets the style for draw point geometries.
style | Point style that will be used to draw points. (Input) |
Implements TdkCanvas.
void TdkJNICanvas::setPointSize | ( | const int & | s | ) | [virtual] |
Sets pen size (in pixels) used to draw point geometries.
s | Pen size (in pixels). (Input) |
Implements TdkCanvas.
void TdkJNICanvas::setPointChar | ( | const char & | c | ) | [virtual] |
Implements TdkCanvas.
void TdkJNICanvas::setLineColor | ( | const int & | r, | |
const int & | g, | |||
const int & | b | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::setLineColor | ( | const int & | r, | |
const int & | g, | |||
const int & | b, | |||
const int & | alpha | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::setLineColor | ( | const TeColor & | color, | |
const int & | alpha | |||
) | [virtual] |
Implements TdkCanvas.
void TdkJNICanvas::setLineAlpha | ( | const int & | alpha | ) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::setLineType | ( | const int & | type | ) | [virtual] |
Sets the style for draw line geometries.
style | Line style that will be used to draw lines. (Input) |
Implements TdkCanvas.
virtual void TdkJNICanvas::setLineStyleDashes | ( | double * | dashArray, | |
const int & | size | |||
) | [inline, 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 |
Implements TdkCanvas.
void TdkJNICanvas::setLineWidth | ( | const int & | width | ) | [virtual] |
Sets pen width (in pixels) used to draw line geometries .
width | Pen size (in pixels). (Input) |
Implements TdkCanvas.
void TdkJNICanvas::setPolygonColor | ( | const int & | r, | |
const int & | g, | |||
const int & | b | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::setPolygonColor | ( | const int & | r, | |
const int & | g, | |||
const int & | b, | |||
const int & | alpha | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::setPolygonColor | ( | const TeColor & | color, | |
const int & | alpha | |||
) | [virtual] |
Implements TdkCanvas.
void TdkJNICanvas::setPolygonAlpha | ( | const int & | alpha | ) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::setPolygonBorderColor | ( | const int & | r, | |
const int & | g, | |||
const int & | b | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::setPolygonBorderColor | ( | const int & | r, | |
const int & | g, | |||
const int & | b, | |||
const int & | alpha | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::setPolygonBorderColor | ( | const TeColor & | color, | |
const int & | alpha | |||
) | [virtual] |
Implements TdkCanvas.
void TdkJNICanvas::setPolygonBorderAlpha | ( | const int & | alpha | ) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::setPolygonType | ( | const int & | type | ) | [virtual] |
Sets the style for draw line geometries.
style | Line style that will be used to draw lines. (Input) |
Implements TdkCanvas.
void TdkJNICanvas::setPolygonTypeStipple | ( | const int & | width, | |
const int & | height, | |||
unsigned char * | fgbg, | |||
const int & | br, | |||
const int & | bg, | |||
const int & | bb | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::setPolygonTypePattern | ( | const int & | width, | |
const int & | height, | |||
unsigned char * | r, | |||
unsigned char * | g, | |||
unsigned char * | b | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::setPolygonBorderType | ( | const int & | type | ) | [virtual] |
Sets the style used to draw the boundary of polygon geometries.
style | Line style used to draw a polygon boundary. (Input) |
Implements TdkCanvas.
void TdkJNICanvas::setPolygonBorderWidth | ( | const int & | width | ) | [virtual] |
Sets pen width (in pixels) used to draw the boundary of polygon geometries .
width | Pen size (in pixels). (Input) |
Implements TdkCanvas.
void TdkJNICanvas::setTextColor | ( | const int & | r, | |
const int & | g, | |||
const int & | b | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::setTextColor | ( | const int & | r, | |
const int & | g, | |||
const int & | b, | |||
const int & | alpha | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::setTextColor | ( | const TeColor & | color, | |
const int & | alpha | |||
) | [virtual] |
Implements TdkCanvas.
void TdkJNICanvas::setTextAlpha | ( | const int & | alpha | ) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::setTextBackgroundColor | ( | const int & | r, | |
const int & | g, | |||
const int & | b | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::setTextBackgroundColor | ( | const int & | r, | |
const int & | g, | |||
const int & | b, | |||
const int & | alpha | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::setTextBackgroundColor | ( | const TeColor & | color, | |
const int & | alpha | |||
) | [virtual] |
Implements TdkCanvas.
void TdkJNICanvas::setTextBackgroundAlpha | ( | const int & | alpha | ) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::setTextBackgroundType | ( | const int & | type | ) | [virtual] |
Implements TdkCanvas.
void TdkJNICanvas::setTextBorderColor | ( | const int & | r, | |
const int & | g, | |||
const int & | b | |||
) | [virtual] |
Implements TdkCanvas.
void TdkJNICanvas::setTextBorderColor | ( | const int & | r, | |
const int & | g, | |||
const int & | b, | |||
const int & | alpha | |||
) | [virtual] |
Implements TdkCanvas.
void TdkJNICanvas::setTextBorderColor | ( | const TeColor & | color, | |
const int & | alpha | |||
) | [virtual] |
Implements TdkCanvas.
void TdkJNICanvas::setTextBorderAlpha | ( | const int & | alpha | ) | [virtual] |
Implements TdkCanvas.
void TdkJNICanvas::setTextBorderType | ( | const int & | type | ) | [virtual] |
Implements TdkCanvas.
void TdkJNICanvas::setTextBorderWidth | ( | const int & | width | ) | [virtual] |
Implements TdkCanvas.
void TdkJNICanvas::setTextFont | ( | const string & | fontName | ) | [virtual] |
void TdkJNICanvas::setTextSize | ( | const int & | size | ) | [virtual] |
void TdkJNICanvas::setTextAngle | ( | const double & | angle | ) | [virtual] |
Adjusts the angle used to draw texts.
angle | Angle in decimal degrees. (Input) |
Implements TdkCanvas.
void TdkJNICanvas::setTextBold | ( | const bool & | bold = true |
) | [virtual] |
Sets the bold style for text.
bold | If true, the text will be draw in bold face otherwise not. (Input) |
Implements TdkCanvas.
void TdkJNICanvas::setTextItalic | ( | const bool & | italic = true |
) | [virtual] |
Sets the italic style for text.
italic | If true, the text will be draw in italic otherwise not. (Input) |
Implements TdkCanvas.
void TdkJNICanvas::setTextAlign | ( | const double & | alignmentHoriz, | |
const double & | alignmentVert | |||
) | [virtual] |
Sets the alignment of the text.
alignmentVert | Vertical alignment. (Input) | |
alignmentHoriz | Horizontal alignment. (Input) |
Implements TdkCanvas.
void TdkJNICanvas::getTextAlign | ( | double & | alignmentHoriz, | |
double & | alignmentVert | |||
) | [virtual] |
Implements TdkCanvas.
void TdkJNICanvas::getTextBoundsW | ( | const string & | text, | |
const double & | x, | |||
const double & | y, | |||
const double & | angle, | |||
TdkTextBounds & | bounds | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::getTextBounds | ( | const string & | text, | |
const double & | x, | |||
const double & | y, | |||
const double & | angle, | |||
TdkTextBounds & | bounds | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::getTextBoundsW | ( | const TeText & | text, | |
TdkTextBounds & | bounds | |||
) | [virtual] |
Implements TdkCanvas.
void TdkJNICanvas::getTextBounds | ( | const TeText & | text, | |
TdkTextBounds & | bounds | |||
) | [virtual] |
Implements TdkCanvas.
void TdkJNICanvas::setClipArea | ( | const TeBox & | box | ) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::setClipArea | ( | const double & | llx, | |
const double & | lly, | |||
const double & | urx, | |||
const double & | ury | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::getClipArea | ( | double & | llx, | |
double & | lly, | |||
double & | urx, | |||
double & | ury | |||
) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::setClipArea | ( | const TePolygon & | poly | ) | [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) |
Implements TdkCanvas.
void TdkJNICanvas::setClipArea | ( | const TePolygonSet & | polys, | |
const TdkClipAreaType & | clipType | |||
) | [virtual] |
Implements TdkCanvas.
void TdkJNICanvas::getClipArea | ( | TePolygon & | poly | ) | [virtual] |
Returns the clipping polygon.
poly | The current clipping polygon (in device coordinates). (Output) |
Implements TdkCanvas.
void TdkJNICanvas::activateClip | ( | ) | [virtual] |
void TdkJNICanvas::deactivateClip | ( | ) | [virtual] |
void TdkJNICanvas::getTextLineBox | ( | char * | lineText, | |
int & | xmin, | |||
int & | ymin, | |||
int & | xmax, | |||
int & | ymax | |||
) | [protected, virtual] |
Stores the Java ThkSwingCanvas instance.
void TdkJNICanvas::getTextLineBox | ( | char * | lineText, | |
double | angle, | |||
double & | xmin, | |||
double & | ymin, | |||
double & | xmax, | |||
double & | ymax | |||
) | [protected, virtual] |
void TdkJNICanvas::getTextLineBox | ( | char * | lineText, | |
double & | xmin, | |||
double & | ymin, | |||
double & | xmax, | |||
double & | ymax | |||
) | [protected, virtual] |
JavaVM* TdkJNICanvas::jvm_ [protected] |
jobject TdkJNICanvas::objCanvas_ [protected] |
Stores the Java virtual machine.