Syntax
[C/C++:]
void gMoveSegBy2D(int nseg, float dx, float dy);
void gMoveSegTo2D(int nseg, float x, float y);
[F90:]
subroutine gMoveSegBy2D(nseg, dx, dy)
subroutine gMoveSegTo2D(nseg, x, y)
integer, intent(in) :: nseg
real, intent(in) :: dx,dy
real, intent(in) :: x,y
Arguments
nseg
Picture segment or segment group number
|
> 0, |
Reposition segment(s) specified by segment nseg |
|
= -1, |
Reposition all segments |
|
< -1, |
Reposition all segments except those specified by nseg |
dx,dy
Increment by which picture segment is repositioned
Description
The routines gMoveSegBy2D() and gMoveSegTo2D() are used to reposition and redraw the specified picture segment(s). The new position, specified in terms of relative or absolute coordinates, represents the new position of the anchor of the specified segment (or the first segment of the group if
nseg is negative).
When the software emulation of picture segments is used and
nseg does not exist an error message is generated. When using this routine in the default hardware segmentation mode, gSetSegMode(GHARDWARE), no error message is generated. However, the device may output a local error message.
Some displays do not permit this segment operation on the currently opened segment.
See Also
gMoveSegBy2D UsagegSetSegMode