GEMLIB  0.44.0
Functions
VDI output functions

output functions More...

Functions

void v_arc (VdiHdl, short x, short y, short radius, short begang, short endang)
 
void v_bar (VdiHdl, short pxy[])
 
void v_cellarray (VdiHdl, short pxy[], short row_length, short elements, short nrows, short write_mode, short colarray[])
 
void v_circle (VdiHdl, short x, short y, short radius)
 
void v_contourfill (VdiHdl, short x, short y, short color_idx)
 
void v_ellarc (VdiHdl, short x, short y, short xrad, short yrad, short begang, short endang)
 
void v_ellipse (VdiHdl, short x, short y, short xrad, short yrad)
 
void v_ellpie (VdiHdl, short x, short y, short xrad, short yrad, short begang, short endang)
 
void v_fillarea (VdiHdl, short count, short pxy[])
 
void v_gtext (VdiHdl, short x, short y, const char *str)
 
void v_gtext16 (VdiHdl, short x, short y, const short *wstr)
 
void v_gtext16n (VdiHdl, PXY pos, const short *wstr, short num)
 
void v_justified (VdiHdl, short x, short y, const char *str, short len, short word_space, short char_space)
 
void v_justified16n (VdiHdl, short x, short y, const short *wstr, short num, short len, short word_space, short char_space)
 
void v_pieslice (VdiHdl, short x, short y, short radius, short begang, short endang)
 
void v_pline (VdiHdl, short count, short pxy[])
 
void v_pmarker (VdiHdl, short count, short pxy[])
 
void v_rbox (VdiHdl, short pxy[])
 
void v_rfbox (VdiHdl, short pxy[])
 
void vr_recfl (VdiHdl, short pxy[])
 

Detailed Description

output functions

todo: add description here

Function Documentation

void v_arc ( short  handle,
short  x,
short  y,
short  radius,
short  begang,
short  endang 
)

draws an arc, whose start and end angle can be set in tenths of degrees from 0 to 3600.

Parameters
handleDevice handle
xx-coordinate of center point of arc
yy-coordinate of center point of arc
radiusradius
begangstart angle (in tenths of degrees 0-3600)
endangend angle (in tenths of degrees 0-3600)
Since
all VDI versions

References VDI_CNTRLMAX.

void v_bar ( short  handle,
short  pxy[] 
)

draws a filled rectangle. In contrast to "FILLED RECTANGLE" a border is drawn.

Parameters
handleDevice handle
pxycoordinates of the rectangle
Since
all VDI versions

References VDI_CNTRLMAX.

void v_cellarray ( short  handle,
short  pxy[],
short  row_length,
short  elements,
short  nrows,
short  write_mode,
short  colarray[] 
)

With the Cell Array function, the device draws a rectangular array defined by the input parameter (x,y) coordinates and the color index array. The lower left and upper right coordinates define the extent of the rectangle. GEM VDI divides the rectangle into cells based on the number of rows and columns specified as input parameters. The color index array specifies the color for each cell.

Parameters
handleDevice handle
pxy
row_lengthLength of each row in color index array(size as declared in a high-level language).
elementsNumber of elements used in each row of color index array
nrowsNumber of rows in color index array.
write_modePixel operation to be performed
colarrayColor index array, stored by row.
Since
all VDI versions

Each cell of the rectangle is mapped to pixels on the display surface. The pixel takes the color of the cell that covers its center.

If the device does not support cell arrays, the device outlines the area with a solid line in the current line color and line width.

Note: This function is not required and may not be available on all devices.

References VDI_CNTRLMAX.

void v_circle ( short  handle,
short  x,
short  y,
short  radius 
)

draws a filled circle

Parameters
handleDevice handle
xx-coordinate of center point of circle
yy-coordinate of center point of circle
radiusradius
Since
all VDI versions

References VDI_CNTRLMAX.

void v_contourfill ( short  handle,
short  x,
short  y,
short  index 
)

fills an area which is limited by another color or the edges of the display. Use this function on the screen only!

Parameters
handleDevice handle
x
y
indexcolor index
Since
all VDI versions

References VDI_CNTRLMAX.

void v_ellarc ( short  handle,
short  x,
short  y,
short  xrad,
short  yrad,
short  begang,
short  endang 
)

draw an elliptical arc, whose start and end angle can be set in tenths of degrees from 0 to 3600.

Parameters
handleDevice handle
xx-coordinate of center point of arc
yy-coordinate of center point of arc
xradRadius of X-axis
yradRadius of Y-axis
begangstart angle (in tenths of degrees 0-3600), counterclockwise.
endangend angle(in tenths of degrees 0-3600).
Since
all VDI versions

References VDI_CNTRLMAX.

void v_ellipse ( short  handle,
short  x,
short  y,
short  xrad,
short  yrad 
)
Parameters
handleDevice handle
x
y
xrad
yrad
Since
all VDI versions

References VDI_CNTRLMAX.

void v_ellpie ( short  handle,
short  x,
short  y,
short  xrad,
short  yrad,
short  begang,
short  endang 
)

draws a filled elliptical arc, whose start and end angle can be selected in tenths of degrees from 0 to 3600.

Parameters
handleDevice handle
x
y
xradhorizontal radius
yradvertical radius
begangstart angle
endangend angle
Since
all VDI versions

References VDI_CNTRLMAX.

void v_fillarea ( short  handle,
short  count,
short  pxy[] 
)

draws a filled area, for example a complex polygon.

Parameters
handleDevice handle
count
pxycoordinates
Since
all VDI versions

The area is filled using the following current attributes:

  • fill area color
  • interior style (hollow, solid, pattern, hatch or user-defined)
  • writing mode
  • style index

The area is outlined with a solid line of the current fill area color if the fill area perimeter visibility is on, which is the default at Open Workstation. *

References VDI_CNTRLMAX.

void v_gtext ( short  handle,
short  x,
short  y,
const char *  str 
)

draws a string with the selected text attributes.

Parameters
handleDevice handle
x
y
strstring
Since
all VDI versions

If you have selected a vector font, neither pair nor track kerning are used and the character widths are non-fractional (that means the widths returned by vqt_width()).

References VDI_CNTRLMAX, VDI_INTINMAX, and vdi_str2array_n().

void v_gtext16 ( short  handle,
short  x,
short  y,
const short *  wstr 
)

same as v_gtext()

Parameters
handleDevice handle
x
y
wstrstring, with 16 bits per character.
Since
all VDI versions

References VDI_CNTRLMAX, and vdi_wstrlen().

void v_gtext16n ( short  handle,
PXY  pos,
const short *  wstr,
short  num 
)

same as v_gtext()

Parameters
handleDevice handle
pos
wstrstring, with 16 bits per character.
numlen of the string
Since
all VDI versions

References VDI_CNTRLMAX.

void v_justified ( short  handle,
short  x,
short  y,
const char *  str,
short  len,
short  word_space,
short  char_space 
)

outputs graphic text and lengthens or shortens the string by modifying the interword or intercharacter spacing

Parameters
handleDevice handle
x
y
strstring
lenlength in pixels
word_space<> 0: Wortzwischenr„ume dehnen
char_space<> 0: Zeichenzwischenr„ume dehnen
Since
all VDI versions

If you use a vector font, the requested width of the string refers to the sum of the character widths - characters extending beyond the left or right edge of the em square are ot taken into account.

References VDI_CNTRLMAX, VDI_INTINMAX, and vdi_str2array_n().

void v_justified16n ( short  handle,
short  x,
short  y,
const short *  wstr,
short  num,
short  len,
short  word_space,
short  char_space 
)

outputs graphic text and lengthens or shortens the string by modifying the interword or intercharacter spacing

Parameters
handleDevice handle
x
y
wstrstring
numstring len
lenlength in pixels
word_space<> 0: Wortzwischenr„ume dehnen
char_space<> 0: Zeichenzwischenr„ume dehnen
Since
all VDI versions

If you use a vector font, the requested width of the string refers to the sum of the character widths - characters extending beyond the left or right edge of the em square are ot taken into account.

References VDI_CNTRLMAX, and VDI_INTINMAX.

void v_pieslice ( short  handle,
short  x,
short  y,
short  radius,
short  begang,
short  endang 
)

draws a filled arc, whose start and end angle can be set in tenths of degrees from 0 to 3600.

Parameters
handleDevice handle
x
y
radiusradius
begangstart angle
endangend angle
Since
all VDI versions

References VDI_CNTRLMAX.

void v_pline ( short  handle,
short  count,
short  pxy[] 
)

connects all points in pxy with lines

Parameters
handleDevice handle
count
pxycoordinates
Since
all VDI versions

References VDI_CNTRLMAX.

void v_pmarker ( short  handle,
short  count,
short  pxy[] 
)

draws markers

Parameters
handleDevice handle
count
pxycoordinates
Since
all VDI versions

References VDI_CNTRLMAX.

void v_rbox ( short  handle,
short  pxy[] 
)

draws an unfilled rectangle with rounded corners

Parameters
handleDevice handle
pxycoordinates
Since
all VDI versions

References VDI_CNTRLMAX.

void v_rfbox ( short  handle,
short  pxy[] 
)

A filled rectangle with rounded corners is drawn by this function.

Parameters
handleDevice handle
pxyKoordinaten
Since
all VDI versions

References VDI_CNTRLMAX.

void vr_recfl ( short  handle,
short  pxy[] 
)

draw a filled rectangle (without outline).

Parameters
handleDevice handle
pxycoordinates
Since
all VDI versions

References VDI_CNTRLMAX.