Loading...
Searching...
No Matches
visXm.mac
Go to the documentation of this file.
1# Macro for perspective demonstration.
2
3/control/verbose 2
4#/vis/verbose p
5
6#/vis/open OGLSXm 600x600-0+0
7/vis/open OGLSXm
8
9/vis/scene/create
10/vis/scene/add/userAction
11/vis/scene/add/axes 0 0 0 1 m
12#/vis/scene/add/scale 10 m
13/vis/sceneHandler/attach
14
15/vis/viewer/set/background white
16/vis/viewer/set/viewpointVector 1 0 0
17/vis/viewer/set/upVector 0 0 1
18/vis/viewer/set/hiddenMarker true
19/vis/viewer/set/projection perspective 45 deg
20/vis/viewer/pan 0 50 cm
21/vis/viewer/dollyTo 241.5 m
22
23# At this point, pull down the rotation and panning control panels and
24# exit to G4vis...
25/vis/viewer/update
26
27/vis/oglxm/set/dolly-high 244 m
28/vis/oglxm/set/dolly-low 240 m
29/vis/oglxm/set/pan-high 1 cm
30/vis/oglxm/set/rotation-high 2 deg
31/perspectiveDemo/optionString x
32
33# To get good behaviour, click on the sliders first. Then try rotating,
34# panning etc...
35/vis/viewer/update

Applications | User Support | Publications | Collaboration