Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ pe_alt_text(3g) — PHIGS 5.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

pe_alt_text(3g)  —  Subroutines

Name

pe_alt_text − Specifies text formats other than 8-bit formats. 

Operating States: PHOP, ∗, STOP, ∗
Digital PHIGS extension function
Creates a structure element

Syntax

void pe_alt_text (
  const Ppoint     ∗text_pos,   /∗ (I) Text position, in modeling
                                       coordinate units ∗/
  const Palt_text  ∗alt_text    /∗ (I) Character string ∗/
)

Data Structures

typedef struct {
    Pfloat     x;    /∗ x coordinate ∗/
    Pfloat     y;    /∗ y coordinate ∗/
} Ppoint;
typedef struct {
    Palt_text_type   text_type;   /∗ alternative text format type ∗/
    Palt_text_ptr    text_ptr;    /∗ pointer to alternative text string ∗/
} Palt_text;
    typedef enum {
        PALT_TEXT_8_BIT,               /∗ 8-bit text ∗/
        PALT_TEXT_16_BIT_LOW_FIRST,    /∗ 16-bit text with low byte
                                          first ∗/
        PALT_TEXT_16_BIT_HIGH_FIRST,   /∗ 16-bit text with high byte
                                          first ∗/
        PALT_TEXT_DEC_KANJI            /∗ DEC KANJI (not supported on PEX
                                          workstations) ∗/
    } Palt_text_type;
    typedef union {
        Puchar    ∗one_byte;
        Pushort   ∗two_bytes;
        Puchar    ∗kanji;
    } Palt_text_ptr;

Description

pe_alt_text allows you to specify text formats other than 8-bit formats.  Digital PHIGS supports alternative text only in STROKE precision. 

Depending on the current edit mode, this function either inserts the new structure element directly after the element indicated by the pointer or replaces the element indicated by the pointer.  The pointer then points to the new alternative text element. 

The pe_alt_text function specifies the two-dimensional (x and y) form of the text primitive.  Its z-coordinate is set to 0.  A call to this function has the following effects during structure traversal:

•Digital PHIGS generates a character string in the text position on a text plane. 

The text plane and the local coordinate system, in which all geometric text attributes are measured on that plane, are defined by a point and two vectors contained in the definition of the primitive.  This point is the text position.  The two vectors are the first direction vector and the second direction vector.  To illustrate the use of the local coordinate system, assume the following:

•P is the text position. 

•U and V are the first and second text direction vectors. 

•T is a vector perpendicular to U and in the text plane. 

The text plane is the plane that contains P and is perpendicular to UxV.  The origin of the local coordinate system is at the point P.  The positive x-axis of the local coordinate system is parallel to U.  If the dot product of TxV is positive, the positive y-axis is parallel to T.  Otherwise, the positive y-axis is opposite T. 

•Digital PHIGS binds the current values of the text attributes, as defined in the PHIGS traversal state list, to the text primitive. 

The text precision attribute affects text clipping. 

If Digital PHIGS is in immediate mode, it performs this function immediately, but the function does not create a structure element. 

See Also

padd_names_set
pe_alt_text3
pinq_text_extent
pinq_text_facs
premove_names_set
pset_char_expan
pset_char_ht
pset_char_space
pset_char_up_vec
pset_depth_cue_ind
pset_hlhsr_id
pset_indiv_asf
pset_pick_id
pset_text_align
pset_text_colr
pset_text_colr_ind
pset_text_font
pset_text_ind
pset_text_path
pset_text_prec
pset_view_ind

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026