summaryrefslogtreecommitdiff
path: root/xc/unsupported/doc/PHIGS/man3/p352
blob: c2c6d9795d5426b8b28b3bfc4565b785af25f34f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
.\"##
.\" $XConsortium: p352,v 5.1 91/02/16 09:43:54 rws Exp $
.\"##
.\"## 
$XMCOPY
.\"## Copyright (c) 1990, 1991 by Sun Microsystems, Inc. 
.\"## 
.\"##                         All Rights Reserved
.\"## 
.\"## Permission to use, copy, modify, and distribute this software and its 
.\"## documentation for any purpose and without fee is hereby granted, 
.\"## provided that the above copyright notice appear in all copies and that
.\"## both that copyright notice and this permission notice appear in 
.\"## supporting documentation, and that the name of Sun Microsystems,
.\"## not be used in advertising or publicity 
.\"## pertaining to distribution of the software without specific, written 
.\"## prior permission.  
.\"## 
.\"## SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 
.\"## INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
.\"## EVENT SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
.\"## CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
.\"## USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
.\"## OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
.\"## PERFORMANCE OF THIS SOFTWARE.
.TH "SET PATTERN REPRESENTATION" 3P "29 February 1991"
.SH NAME
SET PATTERN REPRESENTATION \- set a pattern attribute bundle on a specified workstation
.IX "Attribute Representations" "SET PATTERN REPRESENTATION"
.IX "Pattern Fill" "SET PATTERN REPRESENTATION"
.SH SYNOPSIS
.SS C Syntax
.ft B
.ta 1.25i 3i
.nf
void
pset_pat_rep ( ws, index, rep )
Pint	ws;		\fIworkstation identifier\fP
Pint	index;	\fIpattern bundle index\fP
Ppat_rep	*rep;	\fIpattern representation pointer\fP
.fi
.ft R
.SS Required PHIGS Operating States
(PHOP, WSOP, *, *)
.SH DESCRIPTION
\s-1SET PATTERN REPRESENTATION\s+2 sets a pattern attribute bundle on a workstation.
.\" END FORTRAN IF-ELSE
.SS Purpose
\s-2SET PATTERN REPRESENTATION\s+2 sets a
pattern attribute bundle on a workstation.
.SS C Input Parameters
.IP \fIws\fP
The identifier of the workstation.
.IP \fIindex\fP
This is an index to the workstation pattern bundle table.
.IP \fIrep\fP
A pointer to a Ppat_rep structure.  Ppat_rep is defined as:
.sp .2
.nf
.ta .5i +1i  +1.25i   +1.25i
.sp .2
typedef struct {
.sp .2
	Pint_size	dims;	/* pattern's dimensions */
	Pint	*colr_array;	/* array of colours */
.sp .2
} Ppat_rep;
.fi
.IP
Pint_size is defined as:
.sp .2
.nf
.ta .5i +1i +1i
.sp .2
typedef struct {
.sp .2
	Pint	size_x;	/* dimension (number of divisions) along X */
	Pint	size_y;	/* dimension (number of divisions) along Y */
.sp .2
} Pint_size;
.fi
.SS Execution
In the pattern table of the workstation state list, the given
index is associated with the specified parameters.
.LP
A grid of \fI\s-2DX\s+2\fP by  \fI\s-2DY\s+2\fP cells is specified with 
\fI\s-2DX\s+2\fP
being horizontal and \fI\s-2DY\s+2\fP being vertical. 
The colour is given individually for each cell
by the colour index, which is an index into the colour table of 
the workstation. 
.LP
If the workstation supports interior style \s-2PATTERN\s+2, the pattern
table in the workstation state list has predefined entries taken from
the workstation description table. A number of these entries are predefined
for every workstation of category \s-2OUTPUT\s+2 and \s-2OUTIN\s+2
supporting interior style \s-2PATTERN\s+2. Any table entry, including
the predefined entries, may be redefined with this function.
.LP
When area-defining primitives are displayed during structure traversal,
if the currently selected interior style is \s-2PATTERN\s+2, the current
or back interior style index in the \s-2PHIGS\s+2
state list
refers to an entry in the pattern table.
The selection is made either via the interior bundle
or individually, depending on the
corresponding Aspect Source Flags(\s-2ASF\s+2s). If the
current or back interior style index is not present in the 
pattern table, then interior style index one is used. If interior style
index one is not present, the result is workstation dependent and the
interior style \s-2PATTERN\s+2 is not supported for this workstation.
The setting of the corresponding \s-2ASF\s+2s determines which 
aspects in the entry are used.
.LP
During structure traversal, if a pattern colour index specified
in the pattern colour array is not available on the workstation,
then colour index one is used.
.RE
.SH ERRORS
.IP 003
Ignoring function, function requires state (\s-2PHOP, WSOP, *, *\s+2)
.IP 054
Ignoring function, the specified workstation is not open
.IP 059
Ignoring function, the specified workstation does not have output capability
(in other words, the workstation category is neither 
\s-2OUTPUT\s+2, \s-2OUTIN\s+2, nor \s-2MO\s+2)
.IP 103
Ignoring function, setting this bundle table entry would exceed
the maximum number of entries allowed in the workstation bundle table
.IP 112
Ignoring function, the pattern index value is less than one
.IP 113
Ignoring function, the colour index value is less than zero
.IP 116
Ignoring function, one of the dimensions of pattern colour array
is less than one
.SH SEE ALSO
.nf
.IP
.ta 0.5i
.SM "INQUIRE LIST OF PATTERN INDICES (3P)"
.SM "INQUIRE PATTERN FACILITIES (3P)"
.SM "INQUIRE PATTERN REPRESENTATION (3P)"
.SM "SET INDIVIDUAL ASF (3P)"
.SM "SET PATTERN REFERENCE POINT AND VECTORS (3P)"
.SM "SET PATTERN SIZE (3P)"
.fi