summaryrefslogtreecommitdiff
path: root/xc/unsupported/doc/PHIGS/man3/p067
blob: dac76f6b142ae11853a10f9f59b50d4139785ba0 (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
.\"
.\" $XConsortium: p067,v 5.2 94/04/17 20:55:02 rws Exp $
.\"
.\" 
$XMCOPY
.\" Copyright (c) 1990, 1991 by Sun Microsystems, Inc. and the X Consortium.
.\" 
.\"                         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 names of Sun Microsystems,
.\" and the X Consortium 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 "GET LOCATOR 3" 3P "29 February 1991"
.SH NAME
GET LOCATOR 3 \- retrieve the \s-2LOCATOR\s+2
event in the \s-2PHIGS\s+2 current event report.
.IX "Locator Input Devices" "GET LOCATOR 3"
.SH SYNOPSIS
.SS C Syntax
.ft B
.ta 1.25i 3i
.nf
void
pget_loc3 ( view_ind, loc_pos )
Pint	*view_ind;	\fI\s-2OUT\s+2 view index\fP
Ppoint3	*loc_pos;	\fI\s-2OUT\s+2 locator position\fP
.fi
.ft R
.SS Required PHIGS Operating States
(PHOP, WSOP, *, *)
.SH DESCRIPTION
.SS Purpose
\s-2GET LOCATOR 3\s+2 retrieves the current event report from the
\s-2PHIGS\s+2 state list when the event report contains a Locator event.
A \s-2LOCATOR\s+2 event consists of a position and a view index.
The position is the World Coordinate (\s-2WC\s+2) point corresponding to the
position on the workstation selected by the operator.
The view index is the index of the view representation used to
transform the selected position from Normalized Projection Coordinates
(\s-2NPC\s+2) to \s-2WC\s+2.
.LP
.SS C Output Parameters
.IP \fIview_ind\fP
\s-2PHIGS\s+2 sets the variable pointed to by \fIview_ind\fP to 
the index of the view representation used to transform
the \s-2NPC\s+2 locator position to a \s-2WC\s+2 position.
.IP \fIloc_pos\fP
\s-2PHIGS\s+2 sets the variable pointed to by \fIloc_pos\fP to 
the \s-2\&3D\s+2 world coordinate locator position corresponding to the
device coordinate position selected by the operator.
Ppoint3 is defined in phigs.h as follows:
.sp .4
.ta .5i +\w'Pfloat     'u +\w'x;     'u
.nf
typedef struct {
.sp .2
	Pfloat	x;	/* x coordinate */
	Pfloat	y;	/* y coordinate */
	Pfloat	z;	/* z coordinate */
.sp .2
} Ppoint3;
.fi
.SS Execution
When an input device in Event mode is triggered by the operator,
an event report is added to the input event queue.
The event report contains the identity and current measure of the device.
\s-2AWAIT EVENT\s+2 moves the measure of the oldest event in the input queue
to the current event report in the \s-2PHIGS\s+2 state list.
If the event is a Locator event, \s-2GET LOCATOR\s+2 or \s-2GET LOCATOR 3\s+2
is used to retrieve the contents of the event from the current event report.
.LP
The \s-2LOCATOR\s+2 position is computed by mapping the \s-2DC\s+2
workstation position selected by the operator to a \s-2WC\s+2 point.
The workstation transform is used to transform the \s-2DC\s+2
position to a \s-2NPC\s+2 position prior to transforming it to
\s-2WC\s+2.
See \s-2INITIALIZE LOCATOR\s+2 and
\s-2SET VIEW TRANSFORMATION INPUT PRIORITY\s+2 for a
description of how \s-2PHIGS\s+2 determines the view representation to use
to map the \s-2NPC\s+2 position to \s-2WC\s+2.
.LP
See \s-2INITIALIZE LOCATOR 3\s+2 for a description of the available
\s-2LOCATOR\s+2 devices and how their measure values are determined.
.SH ERRORS
.IP 003
Ignoring function, function requires state (\s-2PHOP, WSOP, *, *\s+2)
.IP 259
Ignoring function, the input device class of the current input report
does not match the class being requested
.SH SEE ALSO
.nf
.IP
.ta 0.5i
.SM "INITIALIZE LOCATOR 3 (3P)"
.SM "AWAIT EVENT (3P)"
.SM "GET LOCATOR (3P)"
.SM "SET VIEW TRANSFORMATION INPUT PRIORITY (3P)"
.fi