From 49792ab64739f965c36f15fb8d92dfc6f618da35 Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 8 Nov 2010 13:35:20 +0000 Subject: [PATCH] 0020885: EDF 607 SMESH: Measure tools --- resources/Makefile.am | 4 +++- resources/mesh_bounding_box.png | Bin 0 -> 3449 bytes resources/mesh_min_dist.png | Bin 0 -> 3360 bytes src/SMESHGUI/SMESHGUI.cxx | 4 ++-- src/SMESHGUI/SMESHGUI_Measurements.cxx | 6 ++++-- src/SMESHGUI/SMESH_images.ts | 8 ++++++++ 6 files changed, 17 insertions(+), 5 deletions(-) create mode 100755 resources/mesh_bounding_box.png create mode 100755 resources/mesh_min_dist.png diff --git a/resources/Makefile.am b/resources/Makefile.am index 338af7a15..da21b6088 100644 --- a/resources/Makefile.am +++ b/resources/Makefile.am @@ -178,7 +178,9 @@ dist_salomeres_DATA = \ scale_along_axes.png \ split_into_tetra.png \ mesh_duplicate_nodes.png \ - mesh_duplicate_nodes_with_elem.png + mesh_duplicate_nodes_with_elem.png \ + mesh_bounding_box.png \ + mesh_min_dist.png # VSR: little trick to avoid putting if SMESHCatalog.xml to the distribution archive nodist_salomeres_SCRIPTS = SMESHCatalog.xml diff --git a/resources/mesh_bounding_box.png b/resources/mesh_bounding_box.png new file mode 100755 index 0000000000000000000000000000000000000000..f01bae8b052c7fbd0df470b9395abffc43ec5287 GIT binary patch literal 3449 zcmV-<4TkcGP)KLZ*U+5Lu!Sk^o_Z5E4Meg@_7P6crJiNL9pw)e1;Xm069{HJUZAPk55R%$-RIA z6-eL&AQ0xu!e<4=008gy@A0LT~suv4>S3ILP<0Bm`DLLvaF4FK%)Nj?Pt*r}7;7Xa9z9H|HZjR63e zC`Tj$K)V27Re@400>HumpsYY5E(E}?0f1SyGDiY{y#)Yvj#!WnKwtoXnL;eg03bL5 z07D)V%>y7z1E4U{zu>7~aD})?0RX_umCct+(lZpemCzb@^6=o|A>zVpu|i=NDG+7} zl4`aK{0#b-!z=TL9Wt0BGO&T{GJWpj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did@ad{6Z2j28sFPQsdA6sh?VQ5BW zx2|lAG0P~0ri!oa!rB5?^bnt~YxylRF$%d1+!%Gq_i3}Xm+|rWTJ}FRA5tlkk-4fI z_3EGwE2=zW!f*mM8S;;A!5D+qx(+me)5B>4ungQcVR&;q%;~_5$WLHDayZ5K%M<%| b%C`XkOU=6O=JF+100000NkvXXu0mjfKW>gN literal 0 HcmV?d00001 diff --git a/resources/mesh_min_dist.png b/resources/mesh_min_dist.png new file mode 100755 index 0000000000000000000000000000000000000000..6713caf0ae83217fe99fb810ec5d3778cbe84470 GIT binary patch literal 3360 zcmV+*4d3#KP)KLZ*U+5Lu!Sk^o_Z5E4Meg@_7P6crJiNL9pw)e1;Xm069{HJUZAPk55R%$-RIA z6-eL&AQ0xu!e<4=008gy@A0LT~suv4>S3ILP<0Bm`DLLvaF4FK%)Nj?Pt*r}7;7Xa9z9H|HZjR63e zC`Tj$K)V27Re@400>HumpsYY5E(E}?0f1SyGDiY{y#)Yvj#!WnKwtoXnL;eg03bL5 z07D)V%>y7z1E4U{zu>7~aD})?0RX_umCct+(lZpemCzb@^6=o|A>zVpu|i=NDG+7} zl4`aK{0#b-!z=TL9Wt0BGO&T{GJWpjryhdijfaIQ&2!o}p04JRKYg3k&Tf zVxhe-O!X z{f;To;xw^bEES6JSc$k$B2CA6xl)ltA<32E66t?3@gJ7`36pmX0IY^jz)rRYwaaY4 ze(nJRiw;=Qb^t(r^DT@T3y}a2XEZW-_W%Hszxj_qD**t_m!#tW0KDiJT&R>6OvVTR z07RgHDzHHZ48atvzz&?j9lXF70$~P3Knx_nJP<+#`N z#-MZ2bTkiLfR>_b(HgWKJ%F~Nr_oF3b#wrIijHG|(J>BYjM-sajE6;FiC7vY#};Gd zST$CUHDeuEH+B^pz@B062qXfFfD`NpUW5?BY=V%GM_5c)L#QR}BeW8_2v-S%gfYS= zB9o|3v?Y2H`NVi)In3rTB8+ej^> zQ=~r95NVuDChL%G$=>7$vVg20myx%S50Foi`^m%Pw-h?X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&XeJ%vZoWz%6?Y=dFykl=imL}`%BMQ{Mhgd`HRoLu6e2R za__6DuR6yg#~-}Tc|Gx_{H@O0eebyMy5GmWADJlpK>kqk(fVV@r_fLLKIeS?{4e)} z^ZO;zpECde00d`2O+f$vv5tKEQIh}w03c&XQcVB=dL;k=fP(-4`Tqa_faw4Lbua(` z>RI+y?e7jKeZ#YO-C0zFAYK~#9!tkl0x6hRaR@b9o}1(n1?Os=5B-~|&yq9!C1 z5DKw?P*|#sv9L7$1$K05XK7<+Lu+ZFgbRNGiBS-^y_ucgJ2THhk9h3vN#P{h?0fm_ zd-G<85fT39nrI8Gt*teFX=!O`Yz6FMh3o6<6k~)j22x5Wr4T{@V+>iAAJ3KsO05Cm0 zeg1A{W`^9Y2)$`FXl_XJ_m*^E}7G!U8Qn`2?+X zJ1B%e=iVz+A&muLe5Mx3WVk@?}xk+~)zDE@Z#-(O(dwZL% z-h2k*0=V>um2SmuJ$M7>3CbjRQ`EtYjSaeT<0+)BFc1#BG>Bf-u$7e+>fV11Z4-o! zC{+co`y)A%0AP%PGQY9Yfkkv2v8sc{7-&n-Hi63st4`pWK&2Ff^yqU7B_)F6jTI`T zAWcN66Qq=I>ZI24T{nf;~g91yZzVIsrl@@Y2JG@37@DycyI%&N)(H5p03V z7KmQp=-?fQXyjkzoI|JpQy#&}V>o?={oR)%c@qH8@ApwTf#3#+zHG#Xpi^gX>L;8o zYS=lbwMO&;$xHm$f7^%+FA{GGcr(D)kIx(P&d*`2G`@Y=X~l-CvI3t!JZ{ZnLaddTab( myMinDist, tr( "MIN_DIST" ) ); + myTabWidget->addTab( myMinDist, resMgr->loadPixmap( "SMESH", tr( "ICON_MEASURE_MIN_DIST" ) ), tr( "MIN_DIST" ) ); // bounding box myBndBox = new SMESHGUI_BoundingBox( myTabWidget ); - myTabWidget->addTab( myBndBox, tr( "BND_BOX" ) ); + myTabWidget->addTab( myBndBox, resMgr->loadPixmap( "SMESH", tr( "ICON_MEASURE_BND_BOX" ) ), tr( "BND_BOX" ) ); // buttons QPushButton* okBtn = new QPushButton( tr( "SMESH_BUT_OK" ), this ); diff --git a/src/SMESHGUI/SMESH_images.ts b/src/SMESHGUI/SMESH_images.ts index b25d5a457..856e88f32 100644 --- a/src/SMESHGUI/SMESH_images.ts +++ b/src/SMESHGUI/SMESH_images.ts @@ -485,5 +485,13 @@ ICON_SPLIT_TO_TETRA split_into_tetra.png + + ICON_MEASURE_MIN_DIST + mesh_min_dist.png + + + ICON_MEASURE_BND_BOX + mesh_bounding_box.png + -- 2.39.2