Previous Next Up Title Contents General Index Functions Index Bookshelf

TEXTE D'ANNOTATION 3D FIXÉ

tannot_text_fixed3


SEQUENCE D'APPEL

void tannot_text_fixed3 (strid, string, ref_point, anno_point, char_height, alignment)

PARAMETRES EN ENTREE

Pint	strid;
char	*string;
Ppoint3	*ref_point;
Ppoint3	*anno_point;
Pfloat	char_height;
Ptext_align	*alignment;

ARGUMENTS

strid
Identificateur de structure
string
Chaine de caractère à afficher
ref_point
Point de référence à annoter
anno_point
Point où le texte est affiché
char_height
Hauteur des caractères
alignment
Type d'alignement de la chaine

TYPES

typedef enum {
	PHOR_NORM,
	PHOR_LEFT,
	PHOR_CTR,
	PHOR_RIGHT
} Phor_text_align;

typedef enum {
	PVERT_NORM,
	PVERT_TOP,
	PVERT_CAP,
	PVERT_HALF,
	PVERT_BASE,
	PVERT_BOTTOM
} Pvert_text_align;

typedef struct {
	Phor_text_align	hor;
	Pvert_text_align	vert;
} Ptext_align;

EFFET

Cette fonction construit une structure représentant un texte annotant le point ref_point du domaine courant. Le texte est toujours dans un plan parallèle à la surface d'affichage, quelque soit la vue courante. Il est toujours affiché au point anno_point qui est défini dans l'espace [0-1] ×× [0-1] ×× [0-1] relatif à la surface d'affichage. La hauteur des caractères est aussi exprimée entre 0 et 1 par rapport à la surface d'affichage.

Un trait joignant le point ref_point au point anno_point peut être materialisé en appelant la fonction tset_anno_style. L'angle d'écriture du texte peut être paramétré en appelant la fonction tset_anno_char_up_vec. Le sens d'écriture du texte peut être paramétré en appelant la fonction tset_anno_path.


Previous Next Up Title Contents General Index Functions Index Bookshelf