DEFINITION OF A SPHERICAL 3D VIEW AROUND Z
CALL SEQUENCE
void tview3_perspect_z_vert (wkid, view_ind, pointc, phi, teta, d, zoom, viewport)
INPUT PARAMETERS
Pint wkid;
Pint view_ind;
Ppoint3 *pointc;
Pfloat phi;
Pfloat teta;
Pfloat d;
Pfloat zoom;
Plimit3 *viewport;
ARGUMENTS
- wkid
- Identifier of the workstation on which the view is defined.
- view_ind
- Index of the view to be defined.
- pointc
- Coordinates (in normalized space [0-1] × [0-1] × [0-1]) of the
point of the scene concerned.
- phi
- Angle phi around the Z-axis, expressed in degrees.
- teta
- Angle teta expressed in degrees.
- d
- Distance of the observer at the point concerned defined in normalized
space
[0-1] × [0-1] × [0-1].
- zoom
- Zoom factor applied to the image.
- 1: the image is normal
- 2: the image is magnified by two
- 0.5: the image is reduced by 2
- etc...
- viewport
- Viewport (see tview_config).
EFFECT
This function defines the view identified by the integer view_ind. The
observer looks toward the point pointc and his position is given in
spherical coordinates in relation to the same point pointc. The
projections used by the view thus defined are in perspective: the distance
d of the observer to the point pointc has a direct effect on
the appearance in perspective (the smaller is d, the larger are the
parallax errors) unlike the zoom factor, which has no effect on the distortion
of the image.
