22.05.2014 Views

CERN Program Library Long Writeup W5013 - CERNLIB ...

CERN Program Library Long Writeup W5013 - CERNLIB ...

CERN Program Library Long Writeup W5013 - CERNLIB ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Geant 3.16 GEANT User’s Guide DRAW120<br />

Origin : P.Zanarini Submitted: 15.05.84<br />

Revision : Revised: 10.12.93<br />

Documentation : P.Zanarini<br />

Draw a volume cut view<br />

CALL GDRAWX<br />

(CHNAME,CUTTHE,CUTPHI,CUTVAL,THETA,PHI,U0,V0,SU,SV)<br />

CHNAME (CHARECTER*4) name of volume;<br />

CUTTHE (REAL) θ angle of the line normal to the cut plane;<br />

CUTPHI (REAL) φ angle of the line normal to the cut plane;<br />

TETHA (REAL) viewing angle θ;<br />

PHI (REAL) viewing angle φ;<br />

U0 (REAL) u coordinate on the screen of the volume origin;<br />

V0 (REAL) v coordinate on the screen of the volume origin;<br />

SU (REAL) scale factor for u coordinates;<br />

SV (REAL) scale factor for v coordinates.<br />

Draws a cut view of the volume CHNAME with all its visible descendants, i.e. draws their intersection with<br />

the cut plane normal to the axis given by the angles CUTTHE, CUTPHI at the distance CUTVAL from the<br />

origin. The view point is defined by the angles THETA, PHI. U0, V0, SU, SV have the same meaning as<br />

in GDRAW. These view parameters, as well as zoom parameters set by GDZOOM are copied in /GCDRAW/.<br />

Attributes like colour, surface fill, line width, line style, visibility, etc. can be set by the GSATT routine for<br />

CHNAME and its descendants [GEOM500].<br />

CALL GDRAWC<br />

(CHNAME,IAX,CUTVAL,U0,V0,SU,SV)<br />

CHNAME<br />

IAX<br />

U0<br />

V0<br />

SU<br />

SV<br />

(CHARECTER*4) name of volume;<br />

(INTEGER) axis of the cut (1=X, 2=Y, 3=Z);<br />

(REAL) u coordinate on the screen of the volume origin;<br />

(REAL) v coordinate on the screen of the volume origin;<br />

(REAL) scale factor for u coordinates;<br />

(REAL) scale factor for v coordinates.<br />

This routine is a special case of the previous GDRAWX. Here the cut plane is normal to one of the main axes<br />

(IAX) and placed at a distance CUTVAL from the origin. The view-point is along the same axis.<br />

Fig. 11 gives an example of utilisation of GDAXIS, GDRAW and GDRAWX. Fig. 12 gives an example of use of<br />

GDRAWC.<br />

79 DRAW120 – 1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!