Rev | Line | |
---|
[807] | 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/userAction -100 100 -100 100 -100 100 m |
---|
| 12 | /vis/scene/add/axes 0 0 0 1 m |
---|
| 13 | #/vis/scene/add/scale 10 m |
---|
| 14 | /vis/sceneHandler/attach |
---|
| 15 | |
---|
| 16 | /vis/viewer/set/background white |
---|
| 17 | /vis/viewer/set/viewpointVector 1 0 0 |
---|
| 18 | /vis/viewer/set/upVector 0 0 1 |
---|
| 19 | /vis/viewer/set/hiddenMarker true |
---|
| 20 | /vis/viewer/set/projection perspective 45 deg |
---|
| 21 | /vis/viewer/pan 0 50 cm |
---|
| 22 | /vis/viewer/dollyTo 241.5 m |
---|
| 23 | |
---|
| 24 | # At this point, pull down the rotation and panning control panels and |
---|
| 25 | # exit to G4vis... |
---|
| 26 | /vis/viewer/update |
---|
| 27 | |
---|
| 28 | /vis/oglxm/set/dolly-high 244 m |
---|
| 29 | /vis/oglxm/set/dolly-low 240 m |
---|
| 30 | /vis/oglxm/set/pan-high 1 cm |
---|
| 31 | /vis/oglxm/set/rotation-high 2 deg |
---|
| 32 | /perspectiveDemo/optionString x |
---|
| 33 | |
---|
| 34 | # To get good behaviour, click on the sliders first. Then try rotating, |
---|
| 35 | # panning etc... |
---|
| 36 | /vis/viewer/update |
---|
Note: See
TracBrowser
for help on using the repository browser.