Test for 0022778: Bug in BRepMesh
[occt.git] / src / DrawResources / Move.tcl
CommitLineData
b311480e 1# Copyright (c) 1999-2012 OPEN CASCADE SAS
2#
3# The content of this file is subject to the Open CASCADE Technology Public
4# License Version 6.5 (the "License"). You may not use the content of this file
5# except in compliance with the License. Please obtain a copy of the License
6# at http://www.opencascade.org and read it completely before using this file.
7#
8# The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
9# main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
10#
11# The Original Code and all software distributed under the License is
12# distributed on an "AS IS" basis, without warranty of any kind, and the
13# Initial Developer hereby disclaims all such warranties, including without
14# limitation, any warranties of merchantability, fitness for a particular
15# purpose or non-infringement. Please see the License for the specific terms
16# and conditions governing the rights and limitations under the License.
17
7fd59977 18#
19# 02/02/1996 : pbo : creation
20# 25/10/1996 : pbo : add 2d view
21#
22# rotation/panning/zoom with buttons
23#
24
25frame .move -relief groove -borderwidth 1
26pack .move -pady 1 -padx 1 -anchor w -side left
27#toplevel .move
28
29frame .move.rotate -borderwidth 1
30label .move.rotate.title -text " Rotation "
31button .move.rotate.l -text " < " -command {l ; repaint}
32button .move.rotate.r -text " > " -command {r ; repaint}
33button .move.rotate.u -text " ^ " -command {u ; repaint}
34button .move.rotate.d -text " v " -command {d ; repaint}
35pack .move.rotate.title -side top
36pack .move.rotate.l -side left
37pack .move.rotate.r -side right
38pack .move.rotate.u -side top
39pack .move.rotate.d -side bottom
40pack .move.rotate
41
42frame .move.panning -borderwidth 1
43label .move.panning.title -text " Panning "
44button .move.panning.l -text " < " -command {pl ; 2dpl ; repaint}
45button .move.panning.r -text " > " -command {pr ; 2dpr ; repaint}
46button .move.panning.u -text " ^ " -command {pu ; 2dpu ; repaint}
47button .move.panning.d -text " v " -command {pd ; 2dpd ; repaint}
48pack .move.panning.title -side top
49pack .move.panning.l -side left
50pack .move.panning.r -side right
51pack .move.panning.u -side top
52pack .move.panning.d -side bottom
53pack .move.panning
54
55frame .move.zoom -borderwidth 1
56label .move.zoom.title -text " Zoom "
57button .move.zoom.mu -text " + " -command {mu ; 2dmu ; repaint}
58button .move.zoom.md -text " - " -command {md ; 2dmd ; repaint}
59button .move.zoom.fit -text "max" -command {fit ; 2dfit; repaint}
60button .move.zoom.w -text "win" -command {wzoom ; repaint}
61pack .move.zoom.title -side top
62pack .move.zoom.w -side left
63pack .move.zoom.fit -side right
64pack .move.zoom.mu -side top
65pack .move.zoom.md -side bottom
66pack .move.zoom
67