Purpose
Use Annotation Text Relative 3 to insert an Annotation Text Relative 3 structure element into the open structure following the element pointer or replace the element pointed at by the element pointer with an Annotation Text Relative 3 structure element, depending on the current edit mode.
During structure traversal, this element annotates the specified reference point according to the annotation style in the traversal state list. The specified annotation offset determines the position of the annotation string. The annotation string defines the origin of a local text coordinate system relative to the specified reference point after transformation to Normalized Projection Coordinates (NPC). The text plane is always parallel to the x., y plane in NPC. If the resulting text position is outside the usable NPC space [0,1][0,1][0,1], then the graPHIGS API may clip part or all of the string.
The graPHIGS API positions and renders the text string in the local coordinate system according to the annotation text attributes in the traversal state list. If the graPHIGS API clips the specified reference point to NPC during structure traversal, then no representation for this primitive is displayed. If the graPHIGS API does not clip the specified reference point, then the graPHIGS API clips the displayed representation according to the rules for the corresponding primitive type (e.g., text, polyline, etc.).
The graPHIGS API treats control characters in a character string as undefined characters and displays the default for the character set. This default for the character set is the default character in the graPHIGS API character set file. For U.S. English, this is the hyphen character (EBCDIC X'60', ASCII X'2D').
If the annotation style attribute entry in the PHIGS traversal state list is set to LEAD LINE, then after transformation the graPHIGS API draws a single line segment from the specified reference point to the origin of the local text coordinate system using the polyline attributes in the PHIGS traversal state list.
Language Bindings
panno_text_rel3 (ref_pt, offset, char_string) |
PATR3 (rpx, rpy, rpz, apx, apy, apz, chars) |
PATR3S (rpx, rpy, rpz, apx, apy, apz, lstr, chars) |
Errors
Related Subroutines