[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]
The graPHIGS Programming Interface: ISO PHIGS Subroutine Reference
INQUIRE ELEMENT TYPE AND SIZE (PHOP,*,*,*)
Purpose
Use
Inquire Element Type and Size
to inquire the type and size of the specified structure
element.
This subroutine returns the element type of the specified element.
If elements
of this type have no associated values, then the graPHIGS API returns
a value of zero in the element size parameter.
If the element pointer is currently zero,
then the graPHIGS API returns a value of NIL in the
element type parameter.
To retrieve the element contents, use
the Inquire Element Content subroutine
If the information is available, then the graPHIGS API sets
the error indicator to zero and returns the values
in the output parameters.
If the information is unavailable,
then the values returned in the output parameters
are unpredictable and the graPHIGS API sets the error indicator
to one of the following errors:
- 2
- Function Requires State (PHOP,*,*,*)
- 201
- Specified Structure Does Not Exist
- 202
- Specified Element Does Not Exist
Language Bindings
C
pinq_elem_type_size
(struct_id,
elem_num, err_ind, elem_type, elem_size) |
Pint struct_idStructure identifier.
Pint elem_numElement number (>=0).
Pint *err_indError indicator.
Pelem_type *elem_typeElement type
(1=PELEM_NIL,
2=PELEM_POLYLINE3,
3=PELEM_POLYLINE,
4=PELEM_POLYMARKER3,
5=PELEM_POLYMARKER,
6=PELEM_TEXT3,
7=PELEM_TEXT,
8=PELEM_ANNO_TEXT_REL3,
9=PELEM_ANNO_TEXT_REL,
10=PELEM_FILL_AREA3,
11=PELEM_FILL_AREA,
12=PELEM_FILL_AREA_SET3,
13=PELEM_FILL_AREA_SET,
14=PELEM_CELL_ARRAY3,
15=PELEM_CELL_ARRAY,
16=PELEM_GDP3,
17=PELEM_GDP,
18=PELEM_LINE_IND,
19=PELEM_MARKER_IND,
20=PELEM_TEXT_IND,
21=PELEM_INT_IND,
22=PELEM_EDGE_IND,
23=PELEM_LINETYPE,
24=PELEM_LINEWIDTH,
25=PELEM_LINE_COLR_IND,
26=PELEM_MARKER_TYPE,
27=PELEM_MARKER_SIZE,
28=PELEM_MARKER_COLR_IND,
29=PELEM_TEXT_FONT,
30=PELEM_TEXT_PREC,
31=PELEM_CHAR_EXPAN,
32=PELEM_CHAR_SPACE,
33=PELEM_TEXT_COLR_IND,
34=PELEM_CHAR_HT,
35=PELEM_CHAR_UP_VEC,
36=PELEM_TEXT_PATH,
37=PELEM_TEXT_ALIGN,
38=PELEM_ANNO_CHAR_HT,
39=PELEM_ANNO_CHAR_UP_VEC,
40=PELEM_ANNO_PATH,
41=PELEM_ANNO_ALIGN,
42=PELEM_ANNO_STYLE,
43=PELEM_INT_STYLE,
44=PELEM_INT_STYLE_IND,
45=PELEM_INT_COLR_IND,
46=PELEM_EDGE_FLAG,
47=PELEM_EDGETYPE,
48=PELEM_EDGEWIDTH,
49=PELEM_EDGE_COLR_IND,
50=PELEM_PAT_SIZE,
51=PELEM_PAT_REF_POINT_VECS,
52=PELEM_PAT_REF_POINT,
53=PELEM_ADD_NAMES_SET,
54=PELEM_REMOVE_NAMES_SET,
55=PELEM_INDIV_ASF,
56=PELEM_HLHSR_ID,
57=PELEM_LOCAL_MODEL_TRAN3,
58=PELEM_LOCAL_MODEL_TRAN,
59=PELEM_GLOBAL_MODEL_TRAN3,
60=PELEM_GLOBAL_MODEL_TRAN,
61=PELEM_MODEL_CLIP_VOL3,
62=PELEM_MODEL_CLIP_VOL,
63=PELEM_MODEL_CLIP_IND,
64=PELEM_RESTORE_MODEL_CLIP_VOL,
65=PELEM_VIEW_IND,
66=PELEM_EXEC_STRUCT,
67=PELEM_LABEL,
68=PELEM_APPL_DATA,
69=PELEM_GSE,
70=PELEM_PICK_ID).
size_t *elem_sizeElement size.
FORTRAN
PQETS
(strid, elenum, errind,
eltype, il, rl,
sl) |
integer stridStructure identifier.
integer elenumElement position (>=0).
integer errindError indicator.
integer eltypeElement type
(1=PENIL, 2=PEPL3, 3=PEPL,
4=PEPM3, 5=PEPM, 6=PETX3,
7=PETX, 8=PEATR3, 9=PEATR, 10=PEFA3,
11=PEFA, 12=PEFAS3, 13=PEFAS, 14=PECA3, 15=PECA,
16=PEGDP3, 17=PEGDP, 18=PEPLI, 19=PEPMI, 20=PETXI,
21=PEII, 22=PEEDI, 23=PELN, 24=PELWSC,
25=PEPLCI, 26=PEMK, 27=PEMKSC, 28=PEPMCI, 29=PETXFN,
30=PETXPR, 31=PECHXP, 32=PECHSP, 33=PETXCI, 34=PECHH,
35=PECHUP, 36=PETXP, 37=PETXAL, 38=PEATCH, 39=PEATCU,
40=PEATP, 41=PEATAL, 42=PEANST, 43=PEIS, 44=PEISI,
45=PEICI, 46=PEEDFG, 47=PEEDT, 48=PEEWSC, 49=PEEDCI,
50=PEPA, 51=PEPRPV, 52=PEPARF, 53=PEADS, 54=PERES,
55=PEIASF, 56=PEHRID, 57=PELMT3, 58=PELMT, 59=PEGMT3,
60=PEGMT, 61=PEMCV3, 62=PEMCV, 63=PEMCLI, 64=PERMCV,
65=PEVWI, 66=PEEXST, 67=PELB, 68=PEAP, 69=PEGSE,
70=PEPKID).
integer ilDimension of integer array.
integer rlDimension of real array.
integer slDimension of character array.
Errors
None
Related Subroutines
Inquire Element Content
[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]