occt-gltf-addon-linux-x64 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE_LGPL_21.txt +502 -0
- package/OCCT_LGPL_EXCEPTION.txt +10 -0
- package/README.md +2 -2
- package/index.js +63 -1
- package/lib/libTKBO.so.8.0.0 +0 -0
- package/lib/libTKBRep.so.8.0.0 +0 -0
- package/lib/libTKBin.so.8.0.0 +0 -0
- package/lib/libTKBinL.so.8.0.0 +0 -0
- package/lib/libTKBinTObj.so.8.0.0 +0 -0
- package/lib/libTKBinXCAF.so.8.0.0 +0 -0
- package/lib/libTKBool.so.8.0.0 +0 -0
- package/lib/libTKCAF.so.8.0.0 +0 -0
- package/lib/libTKCDF.so.8.0.0 +0 -0
- package/lib/libTKDE.so.8.0.0 +0 -0
- package/lib/libTKDECascade.so.8.0.0 +0 -0
- package/lib/libTKDEIGES.so.8.0.0 +0 -0
- package/lib/libTKDEOBJ.so.8.0.0 +0 -0
- package/lib/libTKDEPLY.so.8.0.0 +0 -0
- package/lib/libTKDESTEP.so.8.0.0 +0 -0
- package/lib/libTKDESTL.so.8.0.0 +0 -0
- package/lib/libTKDEVRML.so.8.0.0 +0 -0
- package/lib/libTKExpress.so.8.0.0 +0 -0
- package/lib/libTKFeat.so.8.0.0 +0 -0
- package/lib/libTKFillet.so.8.0.0 +0 -0
- package/lib/libTKG2d.so.8.0.0 +0 -0
- package/lib/libTKG3d.so.8.0.0 +0 -0
- package/lib/libTKGeomAlgo.so.8.0.0 +0 -0
- package/lib/libTKGeomBase.so.8.0.0 +0 -0
- package/lib/libTKHLR.so.8.0.0 +0 -0
- package/lib/libTKHelix.so.8.0.0 +0 -0
- package/lib/libTKLCAF.so.8.0.0 +0 -0
- package/lib/libTKMath.so.8.0.0 +0 -0
- package/lib/libTKMesh.so.8.0.0 +0 -0
- package/lib/libTKOffset.so.8.0.0 +0 -0
- package/lib/libTKPrim.so.8.0.0 +0 -0
- package/lib/libTKRWMesh.so.8.0.0 +0 -0
- package/lib/libTKService.so.8.0.0 +0 -0
- package/lib/libTKShHealing.so.8.0.0 +0 -0
- package/lib/libTKStd.so.8.0.0 +0 -0
- package/lib/libTKStdL.so.8.0.0 +0 -0
- package/lib/libTKTObj.so.8.0.0 +0 -0
- package/lib/libTKTopAlgo.so.8.0.0 +0 -0
- package/lib/libTKV3d.so.8.0.0 +0 -0
- package/lib/libTKVCAF.so.8.0.0 +0 -0
- package/lib/libTKXCAF.so.8.0.0 +0 -0
- package/lib/libTKXMesh.so.8.0.0 +0 -0
- package/lib/libTKXSBase.so.8.0.0 +0 -0
- package/lib/libTKXml.so.8.0.0 +0 -0
- package/lib/libTKXmlL.so.8.0.0 +0 -0
- package/lib/libTKXmlTObj.so.8.0.0 +0 -0
- package/lib/libTKXmlXCAF.so.8.0.0 +0 -0
- package/lib/libTKernel.so.8.0.0 +0 -0
- package/lib/libdraco.so.1 +0 -0
- package/lib/libtbb.so.2 +0 -0
- package/lib/libtbbmalloc.so.2 +0 -0
- package/lib/libtbbmalloc_proxy.so.2 +0 -0
- package/occt_gltf_addon.node +0 -0
- package/package.json +6 -2
- package/resources/BOPAlgo/BOPAlgo.msg +129 -0
- package/resources/BOPAlgo/FILES +1 -0
- package/resources/DrawResources/CURVES.tcl +38 -0
- package/resources/DrawResources/CheckCommands.tcl +1206 -0
- package/resources/DrawResources/DrawDefault +130 -0
- package/resources/DrawResources/DrawPlugin +64 -0
- package/resources/DrawResources/DrawTK.tcl +623 -0
- package/resources/DrawResources/FILES +16 -0
- package/resources/DrawResources/Geometry.tcl +96 -0
- package/resources/DrawResources/InitEnvironment.tcl +50 -0
- package/resources/DrawResources/Move.tcl +85 -0
- package/resources/DrawResources/OCC_logo.png +0 -0
- package/resources/DrawResources/PROFIL.tcl +726 -0
- package/resources/DrawResources/SCAN.tcl +192 -0
- package/resources/DrawResources/SURFACES.tcl +35 -0
- package/resources/DrawResources/StandardCommands.tcl +451 -0
- package/resources/DrawResources/StandardViews.tcl +284 -0
- package/resources/DrawResources/TKTopTest.tcl +27 -0
- package/resources/DrawResources/TestCommands.tcl +2969 -0
- package/resources/DrawResources/Vector.tcl +402 -0
- package/resources/DrawResources/dfb_attribns.gif +0 -0
- package/resources/DrawResources/dfb_attribute.gif +0 -0
- package/resources/DrawResources/dfb_folder.gif +0 -0
- package/resources/DrawResources/dftree.tcl +381 -0
- package/resources/DrawResources/lamp.ico +0 -0
- package/resources/SHMessage/FILES +2 -0
- package/resources/SHMessage/SHAPE.fr +267 -0
- package/resources/SHMessage/SHAPE.us +267 -0
- package/resources/Shaders/Declarations.glsl +276 -0
- package/resources/Shaders/DeclarationsImpl.glsl +121 -0
- package/resources/Shaders/Display.fs +157 -0
- package/resources/Shaders/FILES +27 -0
- package/resources/Shaders/LightShadow.glsl +48 -0
- package/resources/Shaders/PBRCookTorrance.glsl +20 -0
- package/resources/Shaders/PBRDirectionalLight.glsl +20 -0
- package/resources/Shaders/PBRDistribution.glsl +9 -0
- package/resources/Shaders/PBREnvBaking.fs +226 -0
- package/resources/Shaders/PBREnvBaking.vs +55 -0
- package/resources/Shaders/PBRFresnel.glsl +36 -0
- package/resources/Shaders/PBRGeometry.glsl +13 -0
- package/resources/Shaders/PBRIllumination.glsl +28 -0
- package/resources/Shaders/PBRPointLight.glsl +27 -0
- package/resources/Shaders/PBRSpotLight.glsl +45 -0
- package/resources/Shaders/PathtraceBase.fs +993 -0
- package/resources/Shaders/PhongDirectionalLight.glsl +29 -0
- package/resources/Shaders/PhongPointLight.glsl +36 -0
- package/resources/Shaders/PhongShading.fs +191 -0
- package/resources/Shaders/PhongShading.vs +43 -0
- package/resources/Shaders/PhongSpotLight.glsl +52 -0
- package/resources/Shaders/PointLightAttenuation.glsl +35 -0
- package/resources/Shaders/RaytraceBase.fs +1236 -0
- package/resources/Shaders/RaytraceBase.vs +12 -0
- package/resources/Shaders/RaytraceRender.fs +134 -0
- package/resources/Shaders/RaytraceSmooth.fs +80 -0
- package/resources/Shaders/SkydomBackground.fs +300 -0
- package/resources/Shaders/TangentSpaceNormal.glsl +17 -0
- package/resources/StdResource/FILES +6 -0
- package/resources/StdResource/MigrationSheet.txt +21 -0
- package/resources/StdResource/Plugin +52 -0
- package/resources/StdResource/Standard +25 -0
- package/resources/StdResource/StandardLite +22 -0
- package/resources/StdResource/TObj +17 -0
- package/resources/StdResource/XCAF +50 -0
- package/resources/TObj/FILES +1 -0
- package/resources/TObj/TObj.msg +85 -0
- package/resources/Textures/1d_elevation.rgb +0 -0
- package/resources/Textures/2d_MatraDatavision.rgb +0 -0
- package/resources/Textures/2d_alienskin.rgb +0 -0
- package/resources/Textures/2d_aluminum.rgb +0 -0
- package/resources/Textures/2d_blue_rock.rgb +0 -0
- package/resources/Textures/2d_bluewhite_paper.rgb +0 -0
- package/resources/Textures/2d_brushed.rgb +0 -0
- package/resources/Textures/2d_bubbles.rgb +0 -0
- package/resources/Textures/2d_bumps.rgb +0 -0
- package/resources/Textures/2d_cast.rgb +0 -0
- package/resources/Textures/2d_chess.rgba +0 -0
- package/resources/Textures/2d_chipbd.rgb +0 -0
- package/resources/Textures/2d_clouds.rgb +0 -0
- package/resources/Textures/2d_flesh.rgb +0 -0
- package/resources/Textures/2d_floor.rgb +0 -0
- package/resources/Textures/2d_galvnisd.rgb +0 -0
- package/resources/Textures/2d_grass.rgb +0 -0
- package/resources/Textures/2d_knurl.rgb +0 -0
- package/resources/Textures/2d_maple.rgb +0 -0
- package/resources/Textures/2d_marble.rgb +0 -0
- package/resources/Textures/2d_mottled.rgb +0 -0
- package/resources/Textures/2d_rain.rgb +0 -0
- package/resources/Textures/2d_rock.rgb +0 -0
- package/resources/Textures/FILES +31 -0
- package/resources/Textures/env_clouds.rgb +0 -0
- package/resources/Textures/env_cv.rgb +0 -0
- package/resources/Textures/env_lines.rgb +0 -0
- package/resources/Textures/env_medit.rgb +0 -0
- package/resources/Textures/env_pearl.rgb +0 -0
- package/resources/Textures/env_road.rgb +0 -0
- package/resources/Textures/env_sky1.rgb +0 -0
- package/resources/Textures/env_sky2.rgb +0 -0
- package/resources/UnitsAPI/CurrentUnits +74 -0
- package/resources/UnitsAPI/FILES +4 -0
- package/resources/UnitsAPI/MDTVBaseUnits +70 -0
- package/resources/UnitsAPI/MDTVCurrentUnits +74 -0
- package/resources/UnitsAPI/Units.dat +481 -0
- package/resources/XRResources/FILES +10 -0
- package/resources/XRResources/occtvr_actions.json +225 -0
- package/resources/XRResources/occtvr_bindings_generic.json +87 -0
- package/resources/XRResources/occtvr_bindings_holographic_hmd.json +18 -0
- package/resources/XRResources/occtvr_bindings_index_hmd.json +18 -0
- package/resources/XRResources/occtvr_bindings_rift.json +18 -0
- package/resources/XRResources/occtvr_bindings_touch.json +160 -0
- package/resources/XRResources/occtvr_bindings_vive.json +18 -0
- package/resources/XRResources/occtvr_bindings_vive_controller.json +139 -0
- package/resources/XRResources/occtvr_bindings_vive_cosmos.json +18 -0
- package/resources/XRResources/occtvr_bindings_vive_pro.json +18 -0
- package/resources/XSMessage/FILES +2 -0
- package/resources/XSMessage/XSTEP.fr +1026 -0
- package/resources/XSMessage/XSTEP.us +1023 -0
- package/resources/XSTEPResource/FILES +2 -0
- package/resources/XSTEPResource/IGES +65 -0
- package/resources/XSTEPResource/STEP +68 -0
- package/resources/XmlOcafResource/FILES +11 -0
- package/resources/XmlOcafResource/XmlOcaf.xsd +131 -0
- package/resources/XmlOcafResource/XmlOcaf_SmallTypes.xsd +217 -0
- package/resources/XmlOcafResource/XmlOcaf_TDF.xsd +33 -0
- package/resources/XmlOcafResource/XmlOcaf_TDataStd.xsd +230 -0
- package/resources/XmlOcafResource/XmlOcaf_TDataStd_Name.xsd +37 -0
- package/resources/XmlOcafResource/XmlOcaf_TDocStd.xsd +37 -0
- package/resources/XmlOcafResource/XmlOcaf_TFunction.xsd +38 -0
- package/resources/XmlOcafResource/XmlOcaf_TNaming.xsd +128 -0
- package/resources/XmlOcafResource/XmlOcaf_TNaming_NamedShape.xsd +97 -0
- package/resources/XmlOcafResource/XmlOcaf_TPrsStd.xsd +42 -0
- package/resources/XmlOcafResource/XmlXcaf.xsd +109 -0
- package/resources/samples/tcl/ANC101.tcl +282 -0
- package/resources/samples/tcl/DataExchangeDemo.tcl +85 -0
- package/resources/samples/tcl/MBBGehauseRohteil.tcl +268 -0
- package/resources/samples/tcl/ModelingDemo.tcl +120 -0
- package/resources/samples/tcl/Penrose.tcl +87 -0
- package/resources/samples/tcl/Readme.txt +4 -0
- package/resources/samples/tcl/VisualizationDemo.tcl +162 -0
- package/resources/samples/tcl/bottle.tcl +115 -0
- package/resources/samples/tcl/cad.tcl +63 -0
- package/resources/samples/tcl/cpu.tcl +327 -0
- package/resources/samples/tcl/cutter.tcl +91 -0
- package/resources/samples/tcl/dimensions.tcl +83 -0
- package/resources/samples/tcl/drill.tcl +147 -0
- package/resources/samples/tcl/logo2019.tcl +89 -0
- package/resources/samples/tcl/markers.tcl +76 -0
- package/resources/samples/tcl/materials.tcl +75 -0
- package/resources/samples/tcl/pathtrace_ball.tcl +79 -0
- package/resources/samples/tcl/pathtrace_cube.tcl +85 -0
- package/resources/samples/tcl/pathtrace_materials.tcl +229 -0
- package/resources/samples/tcl/pencil.tcl +64 -0
- package/resources/samples/tcl/raytrace.tcl +44 -0
- package/resources/samples/tcl/snowflake.tcl +161 -0
- package/resources/samples/tcl/spheres.tcl +148 -0
- package/resources/samples/tcl/vis_pbr_spheres.tcl +94 -0
- package/resources/samples/tcl/xde.tcl +47 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# Copyright (c) 1999-2014 OPEN CASCADE SAS
|
|
2
|
+
#
|
|
3
|
+
# This file is part of Open CASCADE Technology software library.
|
|
4
|
+
#
|
|
5
|
+
# This library is free software; you can redistribute it and/or modify it under
|
|
6
|
+
# the terms of the GNU Lesser General Public License version 2.1 as published
|
|
7
|
+
# by the Free Software Foundation, with special exception defined in the file
|
|
8
|
+
# OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
|
9
|
+
# distribution for complete text of the license and disclaimer of any warranty.
|
|
10
|
+
#
|
|
11
|
+
# Alternatively, this file may be used under the terms of Open CASCADE
|
|
12
|
+
# commercial license or contractual agreement.
|
|
13
|
+
|
|
14
|
+
proc cmp {} {
|
|
15
|
+
dtyp .
|
|
16
|
+
set name [lastrep id x y b]
|
|
17
|
+
global $name
|
|
18
|
+
lastrep id x1 y1 z1 b
|
|
19
|
+
cfindp $name id x y pole
|
|
20
|
+
if {[dval pole] == 0} return
|
|
21
|
+
dset x0 x1 y0 y1 z0 z1 b 0
|
|
22
|
+
draw id 6 $name
|
|
23
|
+
while {[dval b] == 0} {
|
|
24
|
+
pick id x2 y2 z2 b nowait
|
|
25
|
+
dset dx x2-x1 dy y2-y1 dz z2-z1 x1 x2 y1 y2 z1 z2
|
|
26
|
+
draw id 6 $name
|
|
27
|
+
cmovep $name pole dx dy dz
|
|
28
|
+
draw id 6 $name
|
|
29
|
+
}
|
|
30
|
+
draw id 6 $name
|
|
31
|
+
if {[dval b] == 1} return;
|
|
32
|
+
dset dx x0-x2 dy y0-y2 dz z0-z2
|
|
33
|
+
cmovep $name pole dx dy dz
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
proc smp {} {
|
|
37
|
+
dtyp .
|
|
38
|
+
set name [lastrep id x y b]
|
|
39
|
+
global $name
|
|
40
|
+
lastrep id x1 y1 z1 b
|
|
41
|
+
sfindp $name id x y upole vpole
|
|
42
|
+
if {[dval upole] == 0} return
|
|
43
|
+
dset x0 x1 y0 y1 z0 z1 b 0
|
|
44
|
+
draw id 6 $name
|
|
45
|
+
while { [dval b] == 0} {
|
|
46
|
+
pick id x2 y2 z2 b nowait
|
|
47
|
+
dset dx x2-x1 dy y2-y1 dz z2-z1 x1 x2 y1 y2 z1 z2
|
|
48
|
+
draw id 6 $name
|
|
49
|
+
movep $name upole vpole dx dy dz
|
|
50
|
+
draw id 6 $name
|
|
51
|
+
}
|
|
52
|
+
draw id 6 $name
|
|
53
|
+
if {[dval b] == 1} return
|
|
54
|
+
dset dx x0-x2 dy y0-y2 dz z0-z2
|
|
55
|
+
movep $name upole vpole dx dy dz
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
#################################################
|
|
59
|
+
# smooth
|
|
60
|
+
#################################################
|
|
61
|
+
|
|
62
|
+
help smooth {smooth cname tol [filename] } "DRAW Variables management"
|
|
63
|
+
|
|
64
|
+
proc smooth {name tol {file ""}} {
|
|
65
|
+
if {$file == ""} {
|
|
66
|
+
uplevel #0 "bsmooth $name $tol"
|
|
67
|
+
} else {
|
|
68
|
+
global Draw_DataDir
|
|
69
|
+
uplevel #0 "bsmooth $name $tol $Draw_DataDir/$file"
|
|
70
|
+
}
|
|
71
|
+
return $name
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
#################################################
|
|
75
|
+
# beziersmooth
|
|
76
|
+
#################################################
|
|
77
|
+
|
|
78
|
+
help beziersmooth { beziersmooth cname tol deg [-GR -VA -PR] [filename] } "DRAW Variables management"
|
|
79
|
+
|
|
80
|
+
proc beziersmooth {name tol deg option {file ""}} {
|
|
81
|
+
if {$file == ""} {
|
|
82
|
+
uplevel #0 "bzsmooth $name $tol $deg $option"
|
|
83
|
+
} else {
|
|
84
|
+
global Draw_DataDir
|
|
85
|
+
uplevel #0 "bzsmooth $name $tol $deg $option $Draw_DataDir/$file"
|
|
86
|
+
}
|
|
87
|
+
return $name
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
help pickf {name : extract picked with mouse face as a new variable\
|
|
91
|
+
} {DRAW Variables management}
|
|
92
|
+
|
|
93
|
+
proc pickf {name} {
|
|
94
|
+
global $name
|
|
95
|
+
eval renamevar "[pickface]" $name
|
|
96
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Copyright (c) 1999-2014 OPEN CASCADE SAS
|
|
2
|
+
#
|
|
3
|
+
# This file is part of Open CASCADE Technology software library.
|
|
4
|
+
#
|
|
5
|
+
# This library is free software; you can redistribute it and/or modify it under
|
|
6
|
+
# the terms of the GNU Lesser General Public License version 2.1 as published
|
|
7
|
+
# by the Free Software Foundation, with special exception defined in the file
|
|
8
|
+
# OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
|
9
|
+
# distribution for complete text of the license and disclaimer of any warranty.
|
|
10
|
+
#
|
|
11
|
+
# Alternatively, this file may be used under the terms of Open CASCADE
|
|
12
|
+
# commercial license or contractual agreement.
|
|
13
|
+
|
|
14
|
+
################################################
|
|
15
|
+
#
|
|
16
|
+
# find the name of the station
|
|
17
|
+
#
|
|
18
|
+
################################################
|
|
19
|
+
proc wokstation {} {
|
|
20
|
+
set LINE_FROM_UNAME [ exec uname -a ] ;
|
|
21
|
+
if { [ regexp SunOS $LINE_FROM_UNAME ] } {
|
|
22
|
+
return "sun"
|
|
23
|
+
} elseif { [ regexp IRIX $LINE_FROM_UNAME ] } {
|
|
24
|
+
return "sil"
|
|
25
|
+
} elseif { [ regexp OSF $LINE_FROM_UNAME ] } {
|
|
26
|
+
return "ao1"
|
|
27
|
+
} elseif { [ regexp HP-UX $LINE_FROM_UNAME ] } {
|
|
28
|
+
return "hp"
|
|
29
|
+
} elseif { [ regexp Linux $LINE_FROM_UNAME ] } {
|
|
30
|
+
return "lin"
|
|
31
|
+
} elseif { [ regexp FreeBSD $LINE_FROM_UNAME ] } {
|
|
32
|
+
return "bsd"
|
|
33
|
+
} elseif { [ regexp Darwin $LINE_FROM_UNAME ] } {
|
|
34
|
+
return "mac"
|
|
35
|
+
} elseif { [ regexp AIX $LINE_FROM_UNAME ] } {
|
|
36
|
+
return "aix"
|
|
37
|
+
} else {
|
|
38
|
+
return "wnt"
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
set env(STATION) [ wokstation ]
|
|
44
|
+
|
|
45
|
+
# PMN LE 6/06/1997
|
|
46
|
+
# Ce type d'environnement n'a rien n'a faire dans les sources
|
|
47
|
+
# On doit le faire dans des ilots.tcl ou des ud.tcl ou bien
|
|
48
|
+
# dans les procedures de test externes a WOK
|
|
49
|
+
#set env(WBCONTAINER) /adv_20/BAG
|
|
50
|
+
#set env(WBROOT) "/adv_21/MDL/k1deb/ref"
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# Copyright (c) 1999-2014 OPEN CASCADE SAS
|
|
2
|
+
#
|
|
3
|
+
# This file is part of Open CASCADE Technology software library.
|
|
4
|
+
#
|
|
5
|
+
# This library is free software; you can redistribute it and/or modify it under
|
|
6
|
+
# the terms of the GNU Lesser General Public License version 2.1 as published
|
|
7
|
+
# by the Free Software Foundation, with special exception defined in the file
|
|
8
|
+
# OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
|
9
|
+
# distribution for complete text of the license and disclaimer of any warranty.
|
|
10
|
+
#
|
|
11
|
+
# Alternatively, this file may be used under the terms of Open CASCADE
|
|
12
|
+
# commercial license or contractual agreement.
|
|
13
|
+
|
|
14
|
+
#
|
|
15
|
+
# 02/02/1996 : pbo : creation
|
|
16
|
+
# 25/10/1996 : pbo : add 2d view
|
|
17
|
+
#
|
|
18
|
+
# rotation/panning/zoom with buttons
|
|
19
|
+
#
|
|
20
|
+
|
|
21
|
+
frame .move -relief groove -borderwidth 1
|
|
22
|
+
#toplevel .move
|
|
23
|
+
|
|
24
|
+
frame .move.rotate -borderwidth 1
|
|
25
|
+
label .move.rotate.title -text " Rotation "
|
|
26
|
+
button .move.rotate.l -text " < " -command {l ; repaint}
|
|
27
|
+
button .move.rotate.r -text " > " -command {r ; repaint}
|
|
28
|
+
button .move.rotate.u -text " ^ " -command {u ; repaint}
|
|
29
|
+
button .move.rotate.d -text " v " -command {d ; repaint}
|
|
30
|
+
pack .move.rotate.title -side top
|
|
31
|
+
pack .move.rotate.l -side left
|
|
32
|
+
pack .move.rotate.r -side right
|
|
33
|
+
pack .move.rotate.u -side top
|
|
34
|
+
pack .move.rotate.d -side bottom
|
|
35
|
+
pack .move.rotate
|
|
36
|
+
|
|
37
|
+
frame .move.panning -borderwidth 1
|
|
38
|
+
label .move.panning.title -text " Panning "
|
|
39
|
+
button .move.panning.l -text " < " -command {pl ; 2dpl ; repaint}
|
|
40
|
+
button .move.panning.r -text " > " -command {pr ; 2dpr ; repaint}
|
|
41
|
+
button .move.panning.u -text " ^ " -command {pu ; 2dpu ; repaint}
|
|
42
|
+
button .move.panning.d -text " v " -command {pd ; 2dpd ; repaint}
|
|
43
|
+
pack .move.panning.title -side top
|
|
44
|
+
pack .move.panning.l -side left
|
|
45
|
+
pack .move.panning.r -side right
|
|
46
|
+
pack .move.panning.u -side top
|
|
47
|
+
pack .move.panning.d -side bottom
|
|
48
|
+
pack .move.panning
|
|
49
|
+
|
|
50
|
+
frame .move.zoom -borderwidth 1
|
|
51
|
+
label .move.zoom.title -text " Zoom "
|
|
52
|
+
button .move.zoom.mu -text " + " -command {mu ; 2dmu ; repaint}
|
|
53
|
+
button .move.zoom.md -text " - " -command {md ; 2dmd ; repaint}
|
|
54
|
+
button .move.zoom.fit -text "max" -command {fit ; 2dfit; repaint}
|
|
55
|
+
button .move.zoom.w -text "win" -command {wzoom ; repaint}
|
|
56
|
+
pack .move.zoom.title -side top
|
|
57
|
+
pack .move.zoom.w -side left
|
|
58
|
+
pack .move.zoom.fit -side right
|
|
59
|
+
pack .move.zoom.mu -side top
|
|
60
|
+
pack .move.zoom.md -side bottom
|
|
61
|
+
pack .move.zoom
|
|
62
|
+
|
|
63
|
+
frame .pick -borderwidth 1
|
|
64
|
+
label .pick.title -text " Pick "
|
|
65
|
+
button .pick.coords -text "Coords" -command {catch {puts [mpick]}}
|
|
66
|
+
button .pick.dist -text "Dist" -command {catch {puts [mdist]}}
|
|
67
|
+
button .pick.whatis -text "What is" -command {catch {puts [whatis .]}}
|
|
68
|
+
button .pick.erase -text "Erase" -command {catch {puts [erase .]}}
|
|
69
|
+
pack .pick.title
|
|
70
|
+
pack .pick.coords -pady 2 -padx 10
|
|
71
|
+
pack .pick.dist -pady 2 -padx 10
|
|
72
|
+
pack .pick.whatis -pady 2 -padx 10
|
|
73
|
+
pack .pick.erase -pady 2 -padx 10
|
|
74
|
+
|
|
75
|
+
set ShowExtCommands 0
|
|
76
|
+
|
|
77
|
+
proc ShowHideExtCommands {} {
|
|
78
|
+
global ShowExtCommands
|
|
79
|
+
if $ShowExtCommands {
|
|
80
|
+
pack .move -pady 1 -padx 1 -side left
|
|
81
|
+
pack .pick -pady 1 -padx 1
|
|
82
|
+
} else {
|
|
83
|
+
pack forget .move .pick
|
|
84
|
+
}
|
|
85
|
+
}
|
|
Binary file
|