⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 node84.html

📁 htmdoc for html coding
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.2 Final//FR"><!-- Converted with LaTeX2HTML 95.1 (Fri Jan 20 1995) --><!-- by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds --><!-- Modified Simulog 03/97 --><HTML><HEAD><TITLE>4.6 Texts</TITLE><LINK REL=STYLESHEET TYPE="text/css"	HREF="./Modulef.css" TITLE="Modulef CSS"><meta name="description" value="4.6 Texts"><meta name="keywords" value="Guide6"><meta name="resource-type" value="document"><meta name="distribution" value="global"></HEAD><BODY BGCOLOR="#FFFFFF"><P> <IMG SRC="../icons/smallmod.gif" WIDTH=211 HEIGHT=50 ALIGN=BOTTOM	ALT="Modulef"><A NAME=tex2html1459 HREF="node83.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/previous_motif.gif"	ALT="previous"></A><A NAME=tex2html1463 HREF="node78.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/up_motif.gif"	ALT="up"></A><A NAME=tex2html1465 HREF="node85.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/next_motif.gif"	ALT="next"></A><A NAME=tex2html1467 HREF="node2.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/contents_motif.gif"	ALT="contents"></A><A HREF="../Guide6-18/node84.html"><IMG BORDER=0 SRC="../icons/zoom18.gif" ALIGN=BOTTOM	ALT="[BIG]"></A><A HREF="../Guide6-14/node84.html"><IMG BORDER=0 SRC="../icons/zoom14.gif" ALIGN=BOTTOM	ALT="[Normal]"></A><A HREF="../Guide6-10/node84.html"><IMG BORDER=0 SRC="../icons/zoom10.gif" ALIGN=BOTTOM	ALT="[small]"></A><BR><B> Next: </B> <A NAME=tex2html1466 HREF="node85.html">5 Graphics</A><B>Up: </B> <A NAME=tex2html1464 HREF="node78.html">4 Creating a 3D image</A><B> Prev: </B> <A NAME=tex2html1460 HREF="node83.html">4.5 3D graphics instructions</A><B><A HREF="node2.html"	>Contents</A></B><HR SIZE=3 WIDTH="75&#37;"><H1><A NAME=SECTION05460000000000000000>4.6 Texts</A></H1><P><P><P>The notion of text within the 3D space needs to be clarified. In this context, we can distinguish between two types of texts:  the graphics text  and description text.The  graphics text is the text which forms part of the picture and which is <em> painted</em> onto the surface. This text must therefore undergo all the transformations applied to the surface. The description text is the text whose origin  (lower left corner of the first character)corresponds to a point in the space, but which is defined on the  visualization  surfacein order to describe the object's graphical representation.<P><UL><LI><P><PRE>      SUBROUTINE TXT3D(STRING, NB, X, Y, Z)      CHARACTER*(*) STRING      INTEGER NB      REAL X, Y, Z</PRE><P>plots the text<A NAME=3215>&#160;</A> <A NAME=3216>&#160;</A> consisting of NB characters contained in array STRING (description text), beginning at the projection of point with coordinates (X, Y, Z) onto the  visualization surfaceThe current cursor position becomes position (X, Y, Z).<P><LI><P><PRE>      SUBROUTINE STRSFT(TEXT,NBCHAR,POSIT,DIRECR,DIRBAS,ANGSHR,L,H,                        SEG,POL)      CHARACTER*(*) TEXT      REAL POSIT(3), DIRECR(3), DIRBAS(3), ANGSHR, L, H      EXTERNAL SEG, POL</PRE><P>plots <A NAME=3217>&#160;</A> text (graphics) TEXT of NBCHAR characters positioned at POSIT, where:<P><UL><LI> DIRECR: Directional vector for the text and also the inter-character spacing. <LI>  DIRBAS:  Directional vector for the bottom of the characters.<LI> ANGSHR:  Character shearing angle with respect to the normal to DIRBAS.  <LI> L: Character length.<LI>  H: Character height.<LI>  SEG: Subroutine plotting a segment, with the form:<P><PRE>                 SUBROUTINE SEG(X1, Y1, X2, Y2)                 REAL X1, Y1, X2, Y2</PRE>             This subroutine must be supplied by the user. The simplest case corresponds to, for the 2D case:<P><PRE>                 CALL MOV2TO(X1, Y1)                 CALL LIN2TO(X2, Y2)</PRE><P>                and, for the 3D case:<P><PRE>                 CALL MOV3TO(X1, Y1, 0. )                 CALL LIN3TO(X2, Y2, 0. )</PRE><P>However, the subroutine can be defined  to plot other types of lines               (dotted, cylindrical volume, waves, ...).              The characters will then be plotted with this line definition.<P><P><P> <LI>  POL: Subroutine plotting a typeface, a choice between:  POLIC1, POLIC2, POLIC3:<P><UL><LI>   The alphabet of  POLIC1 is: <PRE>             #$%`()*+, -./0123456789=?              ABCDEFGHIJKLMNOPQRSTUVWXYZ</PRE><P><LI>   The alphabet of             POLIC2 is:<PRE>              `()*+, -./0123456789=?              ABCDEFGHIJKLMNOPQRSTUVWXYZ</PRE><P> <LI>  The alphabet of              POLIC3 is:<PRE>              !&quot;#$%&amp;`~()*+, -./0123456789:;&lt;=&gt;?              ABCDEFGHIJKLMNOPQRSTUVWXYZ^@              abcdefghijklmnopqrstuvwxyz</PRE><P></UL></UL><P> Subroutine STRSFT is common to libraries  2D and 3D.<P></UL><P><P><P><HR SIZE=3 WIDTH="75&#37;"><IMG SRC="../icons/smallmod.gif" WIDTH=211 HEIGHT=50 ALIGN=BOTTOM	ALT="Modulef"><A NAME=tex2html1459 HREF="node83.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/previous_motif.gif"	ALT="previous"></A><A NAME=tex2html1463 HREF="node78.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/up_motif.gif"	ALT="up"></A><A NAME=tex2html1465 HREF="node85.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/next_motif.gif"	ALT="next"></A><A NAME=tex2html1467 HREF="node2.html"><IMG BORDER=0 ALIGN=BOTTOM SRC="../icons/contents_motif.gif"	ALT="contents"></A><A HREF="../Guide6-18/node84.html"><IMG BORDER=0 SRC="../icons/zoom18.gif" ALIGN=BOTTOM	ALT="[BIG]"></A><A HREF="../Guide6-14/node84.html"><IMG BORDER=0 SRC="../icons/zoom14.gif" ALIGN=BOTTOM	ALT="[Normal]"></A><A HREF="../Guide6-10/node84.html"><IMG BORDER=0 SRC="../icons/zoom10.gif" ALIGN=BOTTOM	ALT="[small]"></A><BR><B> Next: </B> <A NAME=tex2html1466 HREF="node85.html">5 Graphics</A><B>Up: </B> <A NAME=tex2html1464 HREF="node78.html">4 Creating a 3D image</A><B> Prev: </B> <A NAME=tex2html1460 HREF="node83.html">4.5 3D graphics instructions</A><B><A HREF="node2.html"	>Contents</A></B><BR> <HR><P><ADDRESS></ADDRESS></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -