source: trunk/documents/UserDoc/UsersGuides/ForApplicationDeveloper/html/Control/UIcommands/_vis_viewer_set_.html @ 1287

Last change on this file since 1287 was 1208, checked in by garnier, 15 years ago

CVS update

File size: 10.2 KB
Line 
1<html><head><title>Commands in /vis/viewer/set/</title></head>
2<body bgcolor="#ffffff"><h2>/vis/viewer/set/</h2><p>
3Set view parameters of current viewer.<br>
4<p><hr><p>
5<h2>Sub-directories : </h2><dl>
6</dl><p><hr><p>
7<h2>Commands : </h2><dl>
8<p><br><p><dt><b>all [<i>from-viewer-name</i>]</b>
9<p><dd>
10Copies view parameters.<br>
11Copies view parameters (except the autoRefresh status) from
12from-viewer to current viewer.<br>
13<p><dd>Available at all Geant4 states.
14<p><dd>Parameters<table border=1>
15<tr><td>from-viewer-name
16<td>type s
17<td><td></table>
18<p><br><p><dt><b>autoRefresh [<i>auto-refresh</i>]</b>
19<p><dd>
20Sets auto-refresh.<br>
21If true, view is automatically refreshed after a change of
22view parameters.<br>
23<p><dd>Available at all Geant4 states.
24<p><dd>Parameters<table border=1>
25<tr><td>auto-refresh
26<td>type b
27<td>Omittable : default value = 0
28<td></table>
29<p><br><p><dt><b>auxiliaryEdge [<i>edge</i>]</b>
30<p><dd>
31Sets visibility of auxiliary edges<br>
32Auxiliary edges, i.e., those that are part of a curved surface,
33sometimes called soft edges, become visible/invisible.<br>
34<p><dd>Available at all Geant4 states.
35<p><dd>Parameters<table border=1>
36<tr><td>edge
37<td>type b
38<td>Omittable : default value = 0
39<td></table>
40<p><br><p><dt><b>background [<i>red_or_string</i>] [<i>green</i>] [<i>blue</i>] [<i>opacity</i>]</b>
41<p><dd>
42Set background colour and transparency (default black and opaque).<br>
43Accepts (a) RGB triplet. e.g., ".3 .4 .5", or
44(b) string such as "white", "black", "grey", "red"...
45(c) an additional number for opacity, e.g., ".3 .4 .5 .6"
46    or "grey ! ! .6" (note "!"'s for unused green and blue parameters),
47    e.g. "! ! ! 0." for a transparent background.<br>
48<p><dd>Available at all Geant4 states.
49<p><dd>Parameters<table border=1>
50<tr><td>red_or_string
51<td>type s
52<td>Omittable : default value = 0.
53<td><tr><td>green
54<td>type d
55<td>Omittable : default value = 0
56<td><tr><td>blue
57<td>type d
58<td>Omittable : default value = 0
59<td><tr><td>opacity
60<td>type d
61<td>Omittable : default value = 1
62<td></table>
63<p><br><p><dt><b>culling [<i>culling-option</i>] [<i>action</i>] [<i>density-threshold</i>] [<i>unit</i>]</b>
64<p><dd>
65Set culling options.<br>
66"global": enables/disables all other culling options.<br>
67"coveredDaughters": culls, i.e., eliminates, volumes that would not
68be seen because covered by ancester volumes in surface drawing mode,
69and then only if the ancesters are visible and opaque, and then only
70if no sections or cutaways are in operation.  Intended solely to
71improve the speed of rendering visible volumes.<br>
72"invisible": culls objects with the invisible attribute set.<br>
73"density": culls volumes with density lower than threshold.  Useful
74for eliminating "container volumes" with no physical correspondence,
75whose material is usually air.  If this is selected, provide threshold
76density and unit (g/cm3 mg/cm3 or kg/m3).<br>
77<p><dd>Available at all Geant4 states.
78<p><dd>Parameters<table border=1>
79<tr><td>culling-option
80<td>type s
81<td><td>Parameter candidates : global coveredDaughters invisible density
82<tr><td>action
83<td>type b
84<td>Omittable : default value = 1
85<td><tr><td>density-threshold
86<td>type d
87<td>Omittable : default value = 0.01
88<td><tr><td>unit
89<td>type s
90<td>Omittable : default value = g/cm3
91<td>Parameter candidates : g/cm3, mg/cm3 kg/m3
92</table>
93<p><br><p><dt><b>cutawayMode [<i>cutaway-mode</i>]</b>
94<p><dd>
95Sets cutaway mode - add (union) or multiply (intersection).<br>
96<p><dd>Available at all Geant4 states.
97<p><dd>Parameters<table border=1>
98<tr><td>cutaway-mode
99<td>type s
100<td><td>Parameter candidates : add union multiply intersection
101</table>
102<p><br><p><dt><b>edge [<i>edge</i>]</b>
103<p><dd>
104Edges become visible/invisible in surface mode.<br>
105<p><dd>Available at all Geant4 states.
106<p><dd>Parameters<table border=1>
107<tr><td>edge
108<td>type b
109<td>Omittable : default value = 1
110<td></table>
111<p><br><p><dt><b>explodeFactor [<i>explodeFactor</i>] [<i>x</i>] [<i>y</i>] [<i>z</i>] [<i>unit</i>]</b>
112<p><dd>
113Moves top-level drawn volumes by this factor from this centre.<br>
114<p><dd>Available at all Geant4 states.
115<p><dd>Parameters<table border=1>
116<tr><td>explodeFactor
117<td>type d
118<td>Omittable : default value = 1
119<td>Parameter range : explodeFactor&gt;=1.
120<tr><td>x
121<td>type d
122<td>Omittable : default value = 0
123<td><tr><td>y
124<td>type d
125<td>Omittable : default value = 0
126<td><tr><td>z
127<td>type d
128<td>Omittable : default value = 0
129<td><tr><td>unit
130<td>type s
131<td>Omittable : default value = m
132<td></table>
133<p><br><p><dt><b>globalLineWidthScale [<i>scale-factor</i>]</b>
134<p><dd>
135Multiplies line widths by this factor.<br>
136<p><dd>Available at all Geant4 states.
137<p><dd>Parameters<table border=1>
138<tr><td>scale-factor
139<td>type d
140<td>Omittable : default value = 1
141<td></table>
142<p><br><p><dt><b>globalMarkerScale [<i>scale-factor</i>]</b>
143<p><dd>
144Multiplies marker sizes by this factor.<br>
145<p><dd>Available at all Geant4 states.
146<p><dd>Parameters<table border=1>
147<tr><td>scale-factor
148<td>type d
149<td>Omittable : default value = 1
150<td></table>
151<p><br><p><dt><b>hiddenEdge [<i>hidden-edge</i>]</b>
152<p><dd>
153Edges become hidden/seen in wireframe or surface mode.<br>
154<p><dd>Available at all Geant4 states.
155<p><dd>Parameters<table border=1>
156<tr><td>hidden-edge
157<td>type b
158<td>Omittable : default value = 1
159<td></table>
160<p><br><p><dt><b>hiddenMarker [<i>hidden-marker</i>]</b>
161<p><dd>
162If true, closer objects hide markers. Otherwise, markers always show.<br>
163<p><dd>Available at all Geant4 states.
164<p><dd>Parameters<table border=1>
165<tr><td>hidden-marker
166<td>type b
167<td>Omittable : default value = 1
168<td></table>
169<p><br><p><dt><b>lightsMove [<i>lightsMove</i>]</b>
170<p><dd>
171Lights move with camera or with object<br>
172<p><dd>Available at all Geant4 states.
173<p><dd>Parameters<table border=1>
174<tr><td>lightsMove
175<td>type s
176<td><td>Parameter candidates : cam camera with-camera obj object with-object
177</table>
178<p><br><p><dt><b>lightsThetaPhi [<i>theta</i>] [<i>phi</i>] [<i>unit</i>]</b>
179<p><dd>
180Set direction from target to lights.<br>
181<p><dd>Available at all Geant4 states.
182<p><dd>Parameters<table border=1>
183<tr><td>theta
184<td>type d
185<td>Omittable : default value = 60
186<td><tr><td>phi
187<td>type d
188<td>Omittable : default value = 45
189<td><tr><td>unit
190<td>type s
191<td>Omittable : default value = deg
192<td></table>
193<p><br><p><dt><b>lightsVector [<i>x</i>] [<i>y</i>] [<i>z</i>]</b>
194<p><dd>
195Set direction from target to lights.<br>
196<p><dd>Available at all Geant4 states.
197<p><dd>Parameters<table border=1>
198<tr><td>x
199<td>type d
200<td>Omittable : default value = 1
201<td><tr><td>y
202<td>type d
203<td>Omittable : default value = 1
204<td><tr><td>z
205<td>type d
206<td>Omittable : default value = 1
207<td></table>
208<p><br><p><dt><b>lineSegmentsPerCircle [<i>line-segments</i>]</b>
209<p><dd>
210Set number of sides per circle for polygon/polyhedron drawing.<br>
211Refers to graphical representation of objects with curved lines/surfaces.<br>
212<p><dd>Available at all Geant4 states.
213<p><dd>Parameters<table border=1>
214<tr><td>line-segments
215<td>type i
216<td>Omittable : default value = 24
217<td></table>
218<p><br><p><dt><b>projection [<i>projection</i>] [<i>field-half-angle</i>] [<i>unit</i>]</b>
219<p><dd>
220Orthogonal or perspective projection.<br>
221<p><dd>Available at all Geant4 states.
222<p><dd>Parameters<table border=1>
223<tr><td>projection
224<td>type s
225<td>Omittable : default value = orthogonal
226<td>Parameter candidates : o orthogonal p perspective
227<tr><td>field-half-angle
228<td>type d
229<td>Omittable : default value = 30
230<td><tr><td>unit
231<td>type s
232<td>Omittable : default value = deg
233<td></table>
234<p><br><p><dt><b>sectionPlane [<i>Selector</i>] [<i>x</i>] [<i>y</i>] [<i>z</i>] [<i>unit</i>] [<i>nx</i>] [<i>ny</i>] [<i>nz</i>]</b>
235<p><dd>
236Set plane for drawing section (DCUT).<br>
237E.g., for a y-z plane at x = 1 cm:
238"/vis/viewer/set/sectionPlane on 1 0 0 cm 1 0 0".
239To turn off: /vis/viewer/set/sectionPlane off<br>
240<p><dd>Available at all Geant4 states.
241<p><dd>Parameters<table border=1>
242<tr><td>Selector
243<td>type c
244<td>Omittable : default value = on
245<td><tr><td>x
246<td>type d
247<td>Omittable : default value = 0
248<td><tr><td>y
249<td>type d
250<td>Omittable : default value = 0
251<td><tr><td>z
252<td>type d
253<td>Omittable : default value = 0
254<td><tr><td>unit
255<td>type s
256<td>Omittable : default value = m
257<td><tr><td>nx
258<td>type d
259<td>Omittable : default value = 1
260<td><tr><td>ny
261<td>type d
262<td>Omittable : default value = 0
263<td><tr><td>nz
264<td>type d
265<td>Omittable : default value = 0
266<td></table>
267<p><br><p><dt><b>style [<i>style</i>]</b>
268<p><dd>
269Set style of drawing - w[ireframe] or s[urface].<br>
270(Hidden line drawing is controlled by "/vis/viewer/set/hiddenEdge".)<br>
271<p><dd>Available at all Geant4 states.
272<p><dd>Parameters<table border=1>
273<tr><td>style
274<td>type s
275<td><td></table>
276<p><br><p><dt><b>upThetaPhi [<i>theta</i>] [<i>phi</i>] [<i>unit</i>]</b>
277<p><dd>
278Set up vector.<br>
279Viewer will attempt always to show this direction upwards.<br>
280<p><dd>Available at all Geant4 states.
281<p><dd>Parameters<table border=1>
282<tr><td>theta
283<td>type d
284<td>Omittable : default value = 90
285<td><tr><td>phi
286<td>type d
287<td>Omittable : default value = 90
288<td><tr><td>unit
289<td>type s
290<td>Omittable : default value = deg
291<td></table>
292<p><br><p><dt><b>upVector [<i>x</i>] [<i>y</i>] [<i>z</i>]</b>
293<p><dd>
294Set up vector.<br>
295Viewer will attempt always to show this direction upwards.<br>
296<p><dd>Available at all Geant4 states.
297<p><dd>Parameters<table border=1>
298<tr><td>x
299<td>type d
300<td>Omittable : default value = 0
301<td><tr><td>y
302<td>type d
303<td>Omittable : default value = 1
304<td><tr><td>z
305<td>type d
306<td>Omittable : default value = 0
307<td></table>
308<p><br><p><dt><b>viewpointThetaPhi [<i>theta</i>] [<i>phi</i>] [<i>unit</i>]</b>
309<p><dd>
310Set direction from target to camera.<br>
311Also changes lightpoint direction if lights are set to move with camera.<br>
312<p><dd>Available at all Geant4 states.
313<p><dd>Parameters<table border=1>
314<tr><td>theta
315<td>type d
316<td>Omittable : default value = 60
317<td><tr><td>phi
318<td>type d
319<td>Omittable : default value = 45
320<td><tr><td>unit
321<td>type s
322<td>Omittable : default value = deg
323<td></table>
324<p><br><p><dt><b>viewpointVector [<i>x</i>] [<i>y</i>] [<i>z</i>]</b>
325<p><dd>
326Set direction from target to camera.<br>
327Also changes lightpoint direction if lights are set to move with camera.<br>
328<p><dd>Available at all Geant4 states.
329<p><dd>Parameters<table border=1>
330<tr><td>x
331<td>type d
332<td>Omittable : default value = 1
333<td><tr><td>y
334<td>type d
335<td>Omittable : default value = 1
336<td><tr><td>z
337<td>type d
338<td>Omittable : default value = 1
339<td></table>
340</dl></body></html>
Note: See TracBrowser for help on using the repository browser.