0032886: Visualization, V3d_View - introduce interface for creating a subview
[occt.git] / tests / opengl / data / general / multiview2
1 puts "========"
2 puts "0032886: Visualization, V3d_View - introduce interface for creating a subview"
3 puts "V1/RootView + V2/ViewLeft + V2/ViewRightTop + V2/ViewRightBottom"
4 puts "========"
5
6 pload MODELING VISUALIZATION
7 vinit V1/RootView -width 768 -height 512 -composer 1
8 vbackground GRAY20
9
10 vinit V2/ViewLeft -parent V1/RootView -width 0.5  -height 1.0
11 vbackground GRAY30
12 vaxo
13 vcamera -persp
14 box b 1 2 3
15 vdisplay -dispMode 1 b
16 vaspects b -faceBoundaryDraw 1
17 vfit
18 vzbufftrihedron
19
20 vinit V2/ViewRightTop -parent V1/RootView -width 0.5 -height 0.5 -corner topRight
21 vbackground GRAY40
22 vaxo
23 vfit
24
25 vinit V2/ViewRightBottom -parent V1/RootView -width 0.5 -height 0.5 -corner bottomRight
26 vbackground GRAY50
27 vaxo
28 vfit
29
30 vactivate V1/RootView
31 vdump $::imagedir/${::casename}.png
32
33 vactivate V2/ViewLeft
34 vdump $::imagedir/${::casename}_left.png
35
36 vactivate V2/ViewRightTop
37 vdump $::imagedir/${::casename}_righttop.png
38
39 vactivate V2/ViewRightBottom
40 vdump $::imagedir/${::casename}_rightbottom.png