Next: 3 Creating a 2D image
Up: 2 General tools
Prev: 2.3 Association of names with elementary
Contents
The following subroutines are used to write directly on the visualization surface. The coordinates are given in centimeters. These subroutines can be used during the the object's description, as it does not influence the cursor's current position. Graphics and aspects (thickness, color,...) are determined by the current values. Similarly, is a segment is currently open, the graphics components generated by these subroutines are added to it. No clipping (mask,...) is performed on the graphics components defined by these subroutines.
SUBROUTINE LINSRN(X1, Y1, X2, Y2) REAL X1, Y1, X2, Y2
plots a line segment with origin (X1, Y1) and extremity (X2, Y2) in centimeters.
SUBROUTINE TXTSRN(STRING, NB, X, Y) CHARACTER*(*) STRING INTEGER NB REAL X, Y
plots a string of NB characters contained in array STRING starting at position (X, Y). When the string contains only a single character belonging to the set:
O o 0 x X . + *
it is considered as a marking character whose center is the point (X, Y).
SUBROUTINE DRECT(X,Y,DX,DY) REAL X,Y,DX,DY
plots a rectangle whose 4 vertices are (X, Y), (X+DX, Y), (X, Y+DY) and (X+DX, Y+DY) (coordinates in cm.).
SUBROUTINE RECT(X,Y,X2,Y2) REAL X,Y,X2,Y2
plots a rectangle defined by 2 points (X, Y) and (X2, Y2) (coordinates in cm.).