Exemplo n.º 1
0
void wdCanvasRect(cdCanvas* canvas, double xmin, double xmax, double ymin, double ymax)
{
  double xminr, xmaxr, yminr, ymaxr;
  _wfWorld2Canvas(canvas, xmin, ymin, xminr, yminr);
  _wfWorld2Canvas(canvas, xmax, ymax, xmaxr, ymaxr);
  cdfCanvasRect(canvas, xminr, xmaxr, yminr, ymaxr);
}
Exemplo n.º 2
0
void wdCanvasLine(cdCanvas* canvas, double x1, double y1, double x2, double y2)
{
  double xr1, xr2, yr1, yr2;
  _wfWorld2Canvas(canvas, x1, y1, xr1, yr1);
  _wfWorld2Canvas(canvas, x2, y2, xr2, yr2);
  cdfCanvasLine(canvas, xr1, yr1, xr2, yr2);
}
Exemplo n.º 3
0
Arquivo: wd.c Projeto: LuaDist/cd
void wdCanvasRect(cdCanvas* canvas, double xmin, double xmax, double ymin, double ymax)
{
  double xminr, xmaxr, yminr, ymaxr;
  assert(canvas);
  if (!_cdCheckCanvas(canvas)) return;

  _wfWorld2Canvas(canvas, xmin, ymin, xminr, yminr);
  _wfWorld2Canvas(canvas, xmax, ymax, xmaxr, ymaxr);
  cdfCanvasRect(canvas, xminr, xmaxr, yminr, ymaxr);
}
Exemplo n.º 4
0
Arquivo: wd.c Projeto: LuaDist/cd
void wdCanvasLine(cdCanvas* canvas, double x1, double y1, double x2, double y2)
{
  double xr1, xr2, yr1, yr2;
  assert(canvas);
  if (!_cdCheckCanvas(canvas)) return;

  _wfWorld2Canvas(canvas, x1, y1, xr1, yr1);
  _wfWorld2Canvas(canvas, x2, y2, xr2, yr2);
  cdfCanvasLine(canvas, xr1, yr1, xr2, yr2);
}
Exemplo n.º 5
0
void wdCanvasChord(cdCanvas* canvas, double xc, double yc, double w, double h, double angle1, double angle2)
{
  double xcr, ycr, wr, hr;
  _wfWorld2Canvas(canvas, xc, yc, xcr, ycr);
  _wfWorld2CanvasSize(canvas, w, h, wr, hr);
  cdfCanvasChord(canvas, xcr, ycr, wr, hr, angle1, angle2);
}
Exemplo n.º 6
0
Arquivo: wd.c Projeto: LuaDist/cd
void wdCanvasVertex(cdCanvas* canvas, double x, double y)
{
  double xr, yr;
  assert(canvas);
  if (!_cdCheckCanvas(canvas)) return;

  _wfWorld2Canvas(canvas, x, y, xr, yr);
  cdfCanvasVertex(canvas, xr, yr);
}
Exemplo n.º 7
0
Arquivo: wd.c Projeto: LuaDist/cd
void wdCanvasText(cdCanvas* canvas, double x, double y, const char *s)
{
  double xr, yr;
  assert(canvas);
  if (!_cdCheckCanvas(canvas)) return;

  _wfWorld2Canvas(canvas, x, y, xr, yr);
  cdfCanvasText(canvas, xr, yr, s);
}
Exemplo n.º 8
0
Arquivo: wd.c Projeto: LuaDist/cd
void wdCanvasChord(cdCanvas* canvas, double xc, double yc, double w, double h, double angle1, double angle2)
{
  double xcr, ycr, wr, hr;
  assert(canvas);
  if (!_cdCheckCanvas(canvas)) return;

  _wfWorld2Canvas(canvas, xc, yc, xcr, ycr);
  _wfWorld2CanvasSize(canvas, w, h, wr, hr);
  cdfCanvasChord(canvas, xcr, ycr, wr, hr, angle1, angle2);
}
Exemplo n.º 9
0
void wdCanvasVertex(cdCanvas* canvas, double x, double y)
{
  double xr, yr;
  _wfWorld2Canvas(canvas, x, y, xr, yr);
  cdfCanvasVertex(canvas, xr, yr);
}
Exemplo n.º 10
0
void wdCanvasText(cdCanvas* canvas, double x, double y, const char *s)
{
  double xr, yr;
  _wfWorld2Canvas(canvas, x, y, xr, yr);
  cdfCanvasText(canvas, xr, yr, s);
}