File: refgu106.htm

package info (click to toggle)
dx 1%3A4.4.4-12
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 55,880 kB
  • sloc: ansic: 365,466; cpp: 156,582; sh: 10,872; java: 10,641; makefile: 2,297; awk: 444; yacc: 327
file content (145 lines) | stat: -rw-r--r-- 7,125 bytes parent folder | download | duplicates (7)
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
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3//EN">
<HTML><HEAD>
		<TITLE>User's Reference - Print</TITLE>
		<META HTTP-EQUIV="keywords" CONTENT="GRAPHICS VISUALIZATION VISUAL PROGRAM DATA
MINING">
	<meta http-equiv="content-type" content="text/html;charset=ISO-8859-1">
</HEAD><BODY BGCOLOR="#FFFFFF" link="#00004b" vlink="#4b004b">
		<TABLE width=510 border=0 cellpadding=0 cellspacing=0>
			<TR>
				<TD><IMG src="../images/spacer.gif" width=80 height=1></TD>
				<TD><IMG src="../images/spacer.gif" width=49 height=1></TD>
				<TD><IMG src="../images/spacer.gif" width=24 height=1></TD>
				<TD><IMG src="../images/spacer.gif" width=100 height=1></TD>
				<TD><IMG src="../images/spacer.gif" width=3 height=1></TD>
				<TD><IMG src="../images/spacer.gif" width=127 height=1></TD>
				<TD><IMG src="../images/spacer.gif" width=6 height=1></TD>
				<TD><IMG src="../images/spacer.gif" width=50 height=1></TD>
				<TD><IMG src="../images/spacer.gif" width=71 height=1></TD>
			</TR>
			<TR>
				<TD colspan=9><IMG src="../images/flcgh_01.gif" width=510 height=24 alt="OpenDX - Documentation"></TD>
			</TR>
			<TR>
				<TD colspan=2><A href="../allguide.htm"><IMG src="../images/flcgh_02.gif" width=129 height=25 border="0" alt="Full Contents"></A></TD>
				<TD colspan=3><A href="../qikguide.htm"><IMG src="../images/flcgh_03.gif" width=127 height=25 border="0" alt="QuickStart Guide"></A></TD>
				<TD><A href="../usrguide.htm"><IMG src="../images/flcgh_04.gif" width=127 height=25 border="0" alt="User's Guide"></A></TD>
				<TD colspan=3><B><A href="../refguide.htm"><IMG src="../images/flcgh_05d.gif" width=127 height=25 border="0" alt="User's Reference"></A></B></TD>
			</TR>
			<TR>
				<TD><A href="refgu105.htm"><IMG src="../images/flcgh_06.gif" width=80 height=17 border="0" alt="Previous Page"></A></TD>
				<TD colspan=2><A href="refgu107.htm"><IMG src="../images/flcgh_07.gif" width=73 height=17 border="0" alt="Next Page"></A></TD>
				<TD><A href="../refguide.htm"><IMG src="../images/flcgh_08.gif" width=100 height=17 border="0" alt="Table of Contents"></A></TD>
				<TD colspan=3><A href="refgu009.htm"><IMG src="../images/flcgh_09.gif" width=136 height=17 border="0" alt="Partial Table of Contents"></A></TD>
				<TD><A href="refgu175.htm"><IMG src="../images/flcgh_10.gif" width=50 height=17 border="0" alt="Index"></A></TD>
				<TD><A href="../srchindx.htm"><IMG src="../images/flcgh_11.gif" width=71 height=17 border="0" alt="Search"></A></TD>
			</TR>
		</TABLE>
		<H3><A name="HDRPRINT" ></A>Print</H3>
		<A NAME="IDX627"></A><A NAME="IDX628"></A>
<P><STRONG>Category</STRONG>
<P>
<A HREF="refgu008.htm#HDRCATDBG">Debugging</A>
<P><STRONG>Function</STRONG>
<P>
Prints an object.
<P><STRONG>Syntax</STRONG>
<PRE>
Print(<STRONG>object, options, component</STRONG>);
</PRE>
<P><STRONG>Inputs</STRONG>
<BR>
<TABLE BORDER>
<TR>
<TH ALIGN="LEFT" VALIGN="TOP" WIDTH="20%">Name
</TH><TH ALIGN="LEFT" VALIGN="TOP" WIDTH="20%">Type
</TH><TH ALIGN="LEFT" VALIGN="TOP" WIDTH="20%">Default
</TH><TH ALIGN="LEFT" VALIGN="TOP" WIDTH="40%">Description
</TH></TR><TR>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH="20%"><TT><STRONG>object</STRONG></TT>
</TD><TD ALIGN="LEFT" VALIGN="TOP" WIDTH="20%">object
</TD><TD ALIGN="LEFT" VALIGN="TOP" WIDTH="20%">none
</TD><TD ALIGN="LEFT" VALIGN="TOP" WIDTH="40%">object to print
</TD></TR><TR>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH="20%"><TT><STRONG>options</STRONG></TT>
</TD><TD ALIGN="LEFT" VALIGN="TOP" WIDTH="20%">string
</TD><TD ALIGN="LEFT" VALIGN="TOP" WIDTH="20%">&quot;o&quot;
</TD><TD ALIGN="LEFT" VALIGN="TOP" WIDTH="40%">printing options
</TD></TR><TR>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH="20%"><TT><STRONG>component</STRONG></TT>
</TD><TD ALIGN="LEFT" VALIGN="TOP" WIDTH="20%">string or string list
</TD><TD ALIGN="LEFT" VALIGN="TOP" WIDTH="20%">all components
</TD><TD ALIGN="LEFT" VALIGN="TOP" WIDTH="40%">component or components to print
</TD></TR></TABLE>
<P><STRONG>Functional Details</STRONG>
<P>
This module prints <TT><STRONG>object</STRONG></TT> according to the
specifications in <TT><STRONG>options</STRONG></TT>.
Each character in the options string specifies printing a particular
portion of the information about the object&#58;
<TABLE CELLPADDING="3">
<TR VALIGN="TOP"><TD><P><B>r
</B></TD><TD><P>recursively traverse the object
</TD></TR><TR VALIGN="TOP"><TD><P><B>o
</B></TD><TD><P>print only the top level of the object
</TD></TR><TR VALIGN="TOP"><TD><P><B>d
</B></TD><TD><P>print first and last 25 items in arrays, as well as headers
</TD></TR><TR VALIGN="TOP"><TD><P><B>D
</B></TD><TD><P>print all the items in arrays as well as headers
</TD></TR><TR VALIGN="TOP"><TD><P><B>x
</B></TD><TD><P>for debugging, print in expanded form (lists the object address,
the object tab, &nbsp;and the reference counts of the
object)
</TD></TR><TR VALIGN="TOP"><TD><P><B><B><I>n</I></B>
</B></TD><TD><P>print object to <B><I>n</I></B> levels.
</TD></TR></TABLE>
<P>
The <TT><STRONG>component</STRONG></TT> parameter controls which components
of <TT><STRONG>object</STRONG></TT>
are printed.
By default, all components are printed.
All values are printed in decimal format except for byte array data,
which are printed in hexadecimal.
<P>
In the user interface, the output of the Print module appears in the Message
window.
<P><STRONG>Script Language Example</STRONG>
<P>
In the following example, the first call to Print does not recurse
through the structure but simply reports (prints) that
<TT><STRONG>both</STRONG></TT> is a group with two members.
The second call recurses through the group and reports that each
member of the group has six components, what those components
are, and how many items there are in each.
The third call provides this information and, in addition,
the first and last 25 items in the "data"
component of each field.
The final call prints out all of the items in both the
"positions" and "box" components.
<PRE>
electrondensity = Import("/usr/share/dx/samples/data/watermolecule");
electrondensity = Partition(electrondensity);
iso1 = Isosurface(electrondensity,0.1);
iso2 = Isosurface(electrondensity,0.3);
both = Collect(iso1,iso2);
Print(both);
Print(both,"r");
Print(both,"d", "data");
Print(both,"D", {"positions", "box"});
</PRE>
<P><STRONG>See Also</STRONG>
<P>
&nbsp;<A HREF="refgu051.htm#HDRECHO">Echo</A>,

&nbsp;<A HREF="refgu046.htm#HDRDESCRIB">Describe</A>
		<P>
		<HR>
		<DIV align="center">
			<P><A href="../allguide.htm"><IMG src="../images/foot-fc.gif" width="94" height="18" border="0" alt="Full Contents"></A> <A href="../qikguide.htm"><IMG src="../images/foot-qs.gif" width="94" height="18" border="0" alt="QuickStart Guide"></A> <A href="../usrguide.htm"><IMG src="../images/foot-ug.gif" width="94" height="18" border="0" alt="User's Guide"></A> <A href="../refguide.htm"><IMG src="../images/foot-ur.gif" width="94" height="18" border="0" alt="User's Reference"></A></P>
		</DIV>
		<DIV align="center">
			<P><FONT size="-1">[ <A href="http://www.research.ibm.com/dx">OpenDX Home at IBM</A>&nbsp;|&nbsp;<A href="http://www.opendx.org/">OpenDX.org</A>&nbsp;] </FONT></P>
			<P></P>
		</DIV>
		<P></P>
	</BODY></HTML>