-This is the version 2.2.0 of GEOM
+This is the version 3.0.0 of GEOM
Compatible with :
- - KERNEL 2.2.0
+ - KERNEL 3.0.0 only!
LIBS=@LIBS@
-LDFLAGS=@LDFLAGS@ -L$(top_builddir)/lib/salome -Xlinker -rpath-link -Xlinker $(top_builddir)/lib/salome
+LDFLAGS=@LDFLAGS@ -L$(top_builddir)/lib/salome -Xlinker -rpath-link -Xlinker -L$(top_builddir)/lib/salome
# add libstdc++ to link c++ library with libtool !
LDFLAGS+= -lstdc++
CXXFLAGS = @CXXFLAGS@
CXX_DEPEND_FLAG = @CXX_DEPEND_FLAG@
+# BOOST Library
+
+BOOST_CPPFLAGS = @BOOST_CPPFLAGS@
+
# JAVA
JAVA_INCLUDES = @JAVA_INCLUDES@
MOC = @MOC@
UIC = @UIC@
+MSG2QM = @MSG2QM@
#QWT
-THIS IS SALOME - GEOM VERSION: 2.2.0
+THIS IS SALOME - GEOM VERSION: 2.2.2
CHECK_QT
+echo
+echo ---------------------------------------------
+echo testing MSG2QM
+echo ---------------------------------------------
+echo
+
+CHECK_MSG2QM
+
echo
echo ---------------------------------------------
echo testing VTK
CHECK_MED2
+echo
+echo ---------------------------------------------
+echo BOOST Library
+echo ---------------------------------------------
+echo
+
+CHECK_BOOST
+
echo
echo ---------------------------------------------
echo Testing OpenCascade
echo
echo Configure
-variables="cc_ok lex_yacc_ok python_ok swig_ok threads_ok OpenGL_ok qt_ok vtk_ok hdf5_ok med2_ok omniORB_ok occ_ok doxygen_ok graphviz_ok Kernel_ok"
+variables="cc_ok lex_yacc_ok python_ok swig_ok threads_ok OpenGL_ok qt_ok vtk_ok hdf5_ok med2_ok omniORB_ok boost_ok occ_ok doxygen_ok graphviz_ok Kernel_ok"
for var in $variables
do
<style type="text/css">\r
<!--\r
p.whs1 { font-family:'Times New Roman' , serif; font-size:12pt; font-weight:normal; }\r
-img_whs2 { border-style:none; border:none; float:none; width:30px; height:30px; }\r
+img_whs2 { border:none; float:none; width:30px; height:30px; border-style:none; }\r
p.whs3 { font-family:'Times New Roman' , serif; font-size:12pt; }\r
p.whs4 { margin-left:40px; }\r
p.whs5 { font-family:'Times New Roman' , serif; font-size:14pt; }\r
-img_whs6 { border-style:none; width:20px; height:20px; }\r
+img_whs6 { width:20px; height:20px; border-style:none; }\r
p.whs7 { font-size:12pt; margin-left:40px; }\r
-img_whs8 { border-style:none; border:none; width:150px; height:121px; }\r
+img_whs8 { border:none; width:150px; height:121px; border-style:none; }\r
p.whs9 { font-size:12pt; font-family:'Times New Roman' , serif; }\r
p.whs10 { font-size:12pt; }\r
p.whs11 { font-size:14pt; }\r
-img_whs12 { border-style:none; border:none; width:200px; height:100px; }\r
+img_whs12 { border:none; width:200px; height:100px; border-style:none; }\r
p.whs13 { margin-left:40px; font-size:12pt; }\r
-img_whs14 { border-style:none; border:none; width:150px; height:126px; }\r
-img_whs15 { border-style:none; border:none; width:200px; height:111px; }\r
+img_whs14 { border:none; width:150px; height:126px; border-style:none; }\r
+img_whs15 { border:none; width:200px; height:111px; border-style:none; }\r
-->\r
</style><script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">\r
<!--\r
<ul>\r
\r
<li class=kadov-p><p class="whs3"><a \r
- href="#W/S">Wireframe/Shading</a></p></li>\r
+ href="#W_S">Wireframe/Shading</a></p></li>\r
\r
<li class=kadov-p><p class="whs3"><a \r
href="#Color">Color</a></p></li>\r
\r
<p> </p>\r
\r
-<p class="whs5"><b style="font-weight: bold;"><a NAME="W_S"><span style="font-size: 14pt;"><font size=4 style="font-size:14pt;"><img src="files/salome2_sp3_displaygui_functions_salome2_sp3_displaygui_functions_image51.gif" width="20px" height="20px" border="0" class="img_whs6"> Wireframe/Shading</a></b> \r
- </font></span></p>\r
+<p class="whs5"><b><a \r
+ NAME=W_S><img src="files/salome2_sp3_displaygui_functions_salome2_sp3_displaygui_functions_image51.gif" width="20px" height="20px" border="0" class="img_whs6">Wireframe/Shading</a></b> </p>\r
\r
<p class="whs3"> </p>\r
\r
// eHelp® Corporation Dynamic HTML JavaScript \r
// Copyright© 1998-2003 eHelp® Corporation.All rights reserved.\r
-// Version=4.81\r
+// Version=4.82\r
\r
// Warning:Do not modify this file.It is generated by RoboHELP® and changes will be overwritten.\r
\r
\r
// does the commented object tag contain a items parameters \r
var strRTItemsOpen = '<param name="Items" value="';\r
- var strRTItemsClose = '$$**$$">';\r
+ var strRTItemsClose = '$$**$$" >';\r
+ var strRTItemsClose2 = '$$**$$">';\r
+\r
var nRTItemsOpen = strRawHTML.indexOf(strRTItemsOpen, nDTCTagOpen);\r
if( nRTItemsOpen < nDTCTagOpen )\r
return strRawHTML;\r
var nRTItemsClose = strRawHTML.indexOf(strRTItemsClose, nRTItemsOpen);\r
+ if (nRTItemsClose == -1)\r
+ nRTItemsClose = strRawHTML.indexOf(strRTItemsClose2, nRTItemsOpen);\r
if( nRTItemsClose < nRTItemsOpen )\r
return strRawHTML;\r
\r
<style type="text/css">\r
<!--\r
p.whs1 { font-size:12pt; }\r
-img_whs2 { border-style:none; border:none; float:none; width:30px; height:30px; }\r
+img_whs2 { border:none; float:none; width:30px; height:30px; border-style:none; }\r
p.whs3 { margin-left:40px; }\r
-img_whs4 { border-style:none; border:none; width:250px; height:136px; }\r
-p.whs5 { font-size:12pt; font-family:'Times New Roman' , serif; }\r
+img_whs4 { border:none; width:517px; height:342px; border-style:none; }\r
+img_whs5 { border:none; width:519px; height:339px; }\r
+p.whs6 { font-size:12pt; font-family:'Times New Roman' , serif; }\r
-->\r
</style><script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">\r
<!--\r
\r
<p class="whs3"> </p>\r
\r
-<p class="whs3"><img src="../image134.jpg" width="250px" height="136px" border="0" class="img_whs4"></p>\r
+<p class="whs3"><img src="../image1.gif" width="517px" height="342px" border="0" class="img_whs4"></p>\r
\r
<p class="whs3"> </p>\r
\r
\r
<p class=TODO> </p>\r
\r
-<p class="whs3">From the <span style="font-weight: bold;"><B>File \r
- </B></span>menu choose <span style="font-weight: bold;"><B>Export </B></span>and \r
- select the required format of the file for exportation. Then you will \r
- see a standard dialog box allowing to enter the name and select the location \r
- for the file which will be exported:</p>\r
+<p class="whs3">Select the object you wish to export, then \r
+ from the <span style="font-weight: bold;"><B>File </B></span>menu choose <span \r
+ style="font-weight: bold;"><B>Export </B></span>and select the required format \r
+ of the file for exportation. You will see a standard dialog box allowing \r
+ to enter the name and select the location for the file which will be exported:</p>\r
\r
<p class="whs3"> </p>\r
\r
-<p class="whs3"><img src="../image134.jpg" width="250px" height="136px" border="0" class="img_whs4"></p>\r
+<p class="whs3"><img src="../image2.jpg" width="519px" height="339px" border="0" class="img_whs5"></p>\r
\r
<p class="whs3"> </p>\r
\r
which the shape is exported, FormatName is a string which describes the \r
file format.</p>\r
\r
-<p class="whs5"> </p>\r
+<p class="whs6"> </p>\r
\r
-<li class=kadov-p><p class="whs5"> </p></li>\r
+<li class=kadov-p><p class="whs6"> </p></li>\r
\r
-<p class="whs5"> </p>\r
+<p class="whs6"> </p>\r
\r
<script type="text/javascript" language="javascript1.2">\r
<!--\r
</style><style type="text/css">\r
<!--\r
p.whs1 { font-size:12pt; }\r
-img_whs2 { border-style:none; border:none; float:none; width:30px; height:30px; }\r
+img_whs2 { border:none; float:none; width:30px; height:30px; border-style:none; }\r
p.whs3 { margin-left:40px; }\r
-img_whs4 { border-style:none; border:none; width:21px; height:19px; }\r
+img_whs4 { border:none; width:21px; height:19px; border-style:none; }\r
p.whs5 { font-size:12pt; margin-left:40px; font-weight:bold; }\r
-img_whs6 { border:none; width:216px; height:250px; }\r
+img_whs6 { border:none; width:216px; height:250px; border-style:none; }\r
p.whs7 { font-family:'Times New Roman' , serif; font-size:14pt; }\r
-img_whs8 { border-style:none; width:20px; height:20px; }\r
+img_whs8 { width:20px; height:20px; border-style:none; }\r
p.whs9 { font-family:'Times New Roman' , serif; font-size:12pt; }\r
-img_whs10 { border:none; width:283px; height:250px; }\r
+img_whs10 { border:none; width:283px; height:250px; border-style:none; }\r
p.whs11 { font-size:12pt; margin-left:40px; }\r
-img_whs12 { border:none; width:199px; height:250px; }\r
+img_whs12 { border:none; width:199px; height:250px; border-style:none; }\r
p.whs13 { font-size:12pt; margin-left:400px; }\r
-img_whs14 { border:none; width:256px; height:250px; }\r
+img_whs14 { border:none; width:256px; height:250px; border-style:none; }\r
p.whs15 { font-size:12pt; font-weight:bold; }\r
-img_whs16 { border:none; width:263px; height:250px; }\r
+img_whs16 { border:none; width:263px; height:250px; border-style:none; }\r
p.whs17 { font-size:12pt; font-weight:normal; }\r
-img_whs18 { border:none; width:310px; height:250px; }\r
-img_whs19 { border:none; width:262px; height:250px; }\r
-img_whs20 { border:none; width:268px; height:250px; }\r
-img_whs21 { border:none; width:266px; height:250px; }\r
+img_whs18 { border:none; width:310px; height:250px; border-style:none; }\r
+img_whs19 { border:none; width:262px; height:250px; border-style:none; }\r
+img_whs20 { border:none; width:268px; height:250px; border-style:none; }\r
+img_whs21 { border:none; width:266px; height:250px; border-style:none; }\r
+p.whs22 { font-size:12pt; margin-left:40px; text-indent:-40px; }\r
+img_whs23 { border:none; width:25px; height:23px; border-style:none; }\r
+ul.whs24 { list-style:disc; }\r
+img_whs25 { border:none; width:300px; height:374px; border-style:none; }\r
-->\r
-</style><script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">\r
+</style><script type="text/javascript" language="JavaScript">\r
+<!--\r
+if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4))\r
+{\r
+ var strNSS = "<style type='text/css'>";\r
+ strNSS += "p.whs22 {text-indent:1pt; }";\r
+ strNSS +="</style>";\r
+ document.write(strNSS);\r
+}\r
+//-->\r
+</script>\r
+<script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">\r
<!--\r
function reDo() {\r
if (innerWidth != origWidth || innerHeight != origHeight)\r
<li class=kadov-p><p class="whs1"><a href="#Whatis">WhatIs</a></p></li>\r
\r
<li class=kadov-p><p class="whs1"><a href="#check">Check</a></p></li>\r
+ \r
+ <li class=kadov-p><p class="whs1"><a href="#Check_comp_blocks">Check \r
+ compound of blocks</a></p></li>\r
</ul>\r
\r
<p class="whs1"> </p>\r
<p class="whs7"> </p>\r
\r
<p class="whs1"><b style="font-weight: bold;">Description:</b> \r
- Return True if this geometrical object is valid.</p>\r
+ Returns True if this geometrical object is valid.</p>\r
\r
<p class="whs1"> </p>\r
\r
\r
<p class="whs11"> </p>\r
\r
+<p class="whs22"> </p>\r
+\r
+<p class="whs22"> </p>\r
+\r
+<p class="whs22"><a name=Check_comp_blocks><img src="../image27.gif" width="25px" height="23px" border="0" class="img_whs23"> <span style="font-size: 14pt; font-weight: bold;"><font size=4 style="font-size:14pt;"><B>Check compound \r
+ of blocks</B></font></span></a></p>\r
+\r
+<p class="whs22"> </p>\r
+\r
+<p class="whs1"><b style="font-weight: bold;">Description:</b> \r
+ Checks whether a shape is a compound of glued blocks. To be considered \r
+ as a compound of blocks, the given shape must satisfy the following conditions:</p>\r
+\r
+<ul type="disc" class="whs24">\r
+ \r
+ <li class=kadov-p><p class="whs1"> Each \r
+ element of the compound should be a Block (6 faces and 12 edges);</p></li>\r
+ \r
+ <li class=kadov-p><p class="whs1"> A \r
+ connection between two Blocks should be an entire quadrangle face or an \r
+ entire edge;</p></li>\r
+ \r
+ <li class=kadov-p><p class="whs1"> The \r
+ compound should be connected;</p></li>\r
+ \r
+ <li class=kadov-p><p class="whs1"> Two \r
+ quadrangle faces should be glued. </p></li>\r
+</ul>\r
+\r
+<p class="whs1"> </p>\r
+\r
+<p class="whs1">Informs of the following possible errors:</p>\r
+\r
+<ul type="disc" class="whs24">\r
+ \r
+ <li class=kadov-p><p class="whs1">not a block,</p></li>\r
+ \r
+ <li class=kadov-p><p class="whs1">not glued,</p></li>\r
+ \r
+ <li class=kadov-p><p class="whs1">not connected,</p></li>\r
+ \r
+ <li class=kadov-p><p class="whs1"><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">extra \r
+ or degenerated edge.</font></span></p></li>\r
+</ul>\r
+\r
+<p class="whs1"> </p>\r
+\r
+<p class="whs1"><b style="font-weight: bold;">Result:</b> Boolean; \r
+ highlight in the viewer.</p>\r
+\r
+<p class="whs1"> </p>\r
+\r
+<p class="whs1"><b>TUI Command:</b><i> </i><span style="font-style: italic;"><I>geompy.CheckCompoundOfBlocks(Compound)</I></span>, \r
+ where the Compound is a shape, investigated in order to see, if it is \r
+ a valid compound of blocks. Validity flag is returned, encountered errors \r
+ are printed in the python console.</p>\r
+\r
+<p class="whs1"> </p>\r
+\r
+<p class="whs1"><b style="font-weight: bold;">Arguments:</b> \r
+ 1 shape.</p>\r
+\r
+<p class="whs1"> </p>\r
+\r
+<p class="whs1"><b style="font-weight: bold;">Dialog Box:</b></p>\r
+\r
+<p class="whs11"> </p>\r
+\r
+<p class="whs11"><img src="../image13.jpg" width="300px" height="374px" border="0" class="img_whs25"></p>\r
+\r
+<p class="whs11"> </p>\r
+\r
<script type="text/javascript" language="javascript1.2">\r
<!--\r
if (window.writeIntopicBar)\r
img_whs11 { border:none; width:154px; height:250px; border-style:none; }\r
img_whs12 { border:none; width:202px; height:250px; border-style:none; }\r
img_whs13 { border:none; width:150px; height:135px; border-style:none; }\r
-img_whs14 { border:none; width:199px; height:250px; }\r
+img_whs14 { border:none; width:199px; height:250px; border-style:none; }\r
img_whs15 { border:none; width:150px; height:131px; border-style:none; }\r
-img_whs16 { border:none; width:215px; height:250px; }\r
-img_whs17 { border:none; width:213px; height:250px; }\r
-img_whs18 { border:none; width:214px; height:250px; }\r
+img_whs16 { border:none; width:215px; height:250px; border-style:none; }\r
+img_whs17 { border:none; width:213px; height:250px; border-style:none; }\r
+img_whs18 { border:none; width:214px; height:250px; border-style:none; }\r
img_whs19 { border:none; width:150px; height:99px; border-style:none; }\r
-img_whs20 { border:none; width:208px; height:250px; }\r
-img_whs21 { border:none; width:206px; height:250px; }\r
-img_whs22 { border:none; width:212px; height:250px; }\r
+img_whs20 { border:none; width:208px; height:250px; float:none; border-style:none; }\r
+img_whs21 { border:none; width:206px; height:250px; border-style:none; }\r
+img_whs22 { border:none; width:212px; height:250px; border-style:none; }\r
img_whs23 { border:none; width:150px; height:104px; border-style:none; }\r
img_whs24 { border:none; width:24px; height:22px; border-style:none; }\r
p.whs25 { font-size:12pt; font-weight:bold; }\r
ul.whs26 { list-style:circle; }\r
p.whs27 { font-size:12pt; font-weight:normal; }\r
-table.whs28 { x-cell-content-align:top; border-spacing:0px; width:37.774%; }\r
+table.whs28 { x-cell-content-align:top; width:37.774%; border-spacing:0px; }\r
col.whs29 { width:48.722%; }\r
col.whs30 { width:51.278%; }\r
tr.whs31 { x-cell-content-align:top; }\r
-td.whs32 { padding-right:10px; padding-left:10px; border-right-style:none; border-left-style:none; border-top-style:none; border-bottom-style:none; }\r
-img_whs33 { border:none; width:150px; height:250px; }\r
-td.whs34 { padding-right:10px; padding-left:10px; border-top-style:none; border-bottom-style:none; border-right-style:none; }\r
-img_whs35 { border:none; width:149px; height:250px; }\r
+td.whs32 { width:48.722%; padding-right:10px; padding-left:10px; border-right-style:none; border-left-style:none; border-top-style:none; border-bottom-style:none; }\r
+img_whs33 { border:none; width:150px; height:250px; border-style:none; }\r
+td.whs34 { width:51.278%; padding-right:10px; padding-left:10px; border-top-style:none; border-bottom-style:none; border-right-style:none; }\r
+img_whs35 { border:none; width:149px; height:250px; border-style:none; }\r
p.whs36 { font-weight:bold; }\r
img_whs37 { border:none; width:250px; height:284px; float:none; border-style:none; }\r
img_whs38 { border:none; width:271px; height:284px; border-style:none; }\r
img_whs39 { border:none; width:23px; height:22px; border-style:none; }\r
-img_whs40 { border:none; width:178px; height:250px; }\r
+img_whs40 { border:none; width:178px; height:250px; border-style:none; }\r
p.whs41 { font-size:12pt; margin-left:0px; }\r
p.whs42 { font-size:12pt; margin-left:0px; font-weight:bold; }\r
-img_whs43 { border:none; width:300px; height:311px; border-style:none; }\r
+p.whs43 { margin-left:40px; font-size:12pt; }\r
+img_whs44 { border:none; width:300px; height:311px; border-style:none; }\r
+p.whs45 { font-size:12pt; margin-left:36px; text-indent:-36px; }\r
+p.whs46 { font-size:12pt; text-indent:-36px; margin-left:40px; }\r
+img_whs47 { border:none; width:23px; height:21px; border-style:none; }\r
+img_whs48 { border:none; width:200px; height:139px; border-style:none; }\r
+p.whs49 { font-size:12pt; margin-left:40px; text-indent:-40px; }\r
+p.whs50 { font-size:12pt; margin-left:40px; text-indent:-40px; font-weight:bold; }\r
+p.whs51 { font-size:12pt; text-indent:-40px; font-weight:bold; margin-left:80px; }\r
+img_whs52 { border:none; width:250px; height:236px; border-style:none; }\r
+img_whs53 { border:none; width:250px; height:233px; border-style:none; }\r
-->\r
</style><script type="text/javascript" language="JavaScript">\r
<!--\r
var strNSS = "<style type='text/css'>";\r
strNSS += "p.whs41 {margin-left:1pt; }";\r
strNSS += "p.whs42 {margin-left:1pt; }";\r
+ strNSS += "p.whs45 {text-indent:1pt; }";\r
+ strNSS += "p.whs46 {text-indent:1pt; }";\r
+ strNSS += "p.whs49 {text-indent:1pt; }";\r
+ strNSS += "p.whs50 {text-indent:1pt; }";\r
+ strNSS += "p.whs51 {text-indent:1pt; }";\r
strNSS +="</style>";\r
document.write(strNSS);\r
}\r
href="#Multi-transformation">Multi-transformation</a></p></li>\r
\r
<li class=kadov-p><p class="whs3"><a \r
- href="#ExplodeOnBlocks">Explode on blocks</a><span style="font-family: 'Times New Roman', serif; font-size: 12pt;"><font size=3 style="font-size:12pt;"><a \r
- HREF="#_Toc57113146">	</a></font></span></p></li>\r
+ href="#ExplodeOnBlocks">Explode on blocks</a></p></li>\r
+ \r
+ <li class=kadov-p><p class="whs3"><a \r
+ href="#Propagate">Propagate</a><a HREF="#_Toc57113146">	</a></p></li>\r
</ul>\r
</ul>\r
\r
\r
<p class="whs5"> </p>\r
\r
-<p class="whs5"><b>Arguments:</b> Up to 4 shapes + reconstruction \r
- limit.</p>\r
+<p class="whs5"><b style="font-weight: bold;">Arguments:</b> \r
+ Up to 4 shapes + reconstruction limit.</p>\r
\r
<ul type="disc" class="whs4">\r
\r
- <li class=kadov-p><p class="whs5"><b>1st Constructor:</b> \r
- Name + 2 shapes (first shape will be intersected by the second shape) \r
- + reconstruction limit.</p></li>\r
+ <li class=kadov-p><p class="whs5"><b style="font-weight: bold;">1st \r
+ Constructor:</b> Name + 2 shapes (first shape will be intersected by the \r
+ second shape) + reconstruction limit.</p></li>\r
\r
- <li class=kadov-p><p class="whs5"><b>2nd Constructor:</b> \r
- Name + 1 shape which will be intersected + 1 cutting face.</p></li>\r
+ <li class=kadov-p><p class="whs5"><b style="font-weight: bold;">2nd \r
+ Constructor:</b> Name + 1 shape which will be intersected + 1 cutting \r
+ face.</p></li>\r
</ul>\r
\r
<p class="whs5"> </p>\r
\r
<ul type="disc" class="whs4">\r
\r
- <li class=kadov-p><p class="whs5"><b>1st Constructor:</b> \r
- Name + 1 shape + 1 value (fillet radius).</p></li>\r
+ <li class=kadov-p><p class="whs5"><b style="font-weight: bold;">1st \r
+ Constructor:</b> Name + 1 shape + 1 value (fillet radius).</p></li>\r
\r
- <li class=kadov-p><p class="whs5"><b>2nd Constructor:</b> \r
- Name + 1 shape + 1 Selection of edges + 1 value (Fillet radius).</p></li>\r
+ <li class=kadov-p><p class="whs5"><b style="font-weight: bold;">2nd \r
+ Constructor:</b> Name + 1 shape + 1 Selection of edges + 1 value (Fillet \r
+ radius).</p></li>\r
\r
- <li class=kadov-p><p class="whs5"><b>3rd Constructor:</b> \r
- Name + 1 shape + 1 Selection of faces + 1 value (Fillet radius).</p></li>\r
+ <li class=kadov-p><p class="whs5"><b style="font-weight: bold;">3rd \r
+ Constructor:</b> Name + 1 shape + 1 Selection of faces + 1 value (Fillet \r
+ radius).</p></li>\r
</ul>\r
\r
<p class="whs5"> </p>\r
\r
<ul type="disc" class="whs4">\r
\r
- <li class=kadov-p><p class="whs5"><b>1st Constructor :</b> \r
- Name + 1 SHAPE + 1 value (Chamfer dimension).</p></li>\r
+ <li class=kadov-p><p class="whs5"><b style="font-weight: bold;">1st \r
+ Constructor :</b> Name + 1 SHAPE + 1 value (Chamfer dimension).</p></li>\r
\r
- <li class=kadov-p><p class="whs5"><b>2nd Constructor :</b> \r
- Name + 1 SHAPE + 2 faces + 2 values (Chamfer dimensions).</p></li>\r
+ <li class=kadov-p><p class="whs5"><b style="font-weight: bold;">2nd \r
+ Constructor :</b> Name + 1 SHAPE + 2 faces + 2 values (Chamfer dimensions).</p></li>\r
\r
- <li class=kadov-p><p class="whs5"><b>3rd Constructor :</b> \r
- Name + 1 SHAPE + 1 Selection of faces + 2 values (Chamfer dimensions).</p></li>\r
+ <li class=kadov-p><p class="whs5"><b style="font-weight: bold;">3rd \r
+ Constructor :</b> Name + 1 SHAPE + 1 Selection of faces + 2 values (Chamfer \r
+ dimensions).</p></li>\r
</ul>\r
\r
<p class="whs5"> </p>\r
\r
<p class="whs5"> </p>\r
\r
-<p class="whs9"><img src="../image278.jpg" width="208px" height="250px" border="0" class="img_whs20"> <img src="../image279.jpg" width="206px" height="250px" border="0" class="img_whs21"> <img src="../image280.jpg" width="212px" height="250px" border="0" class="img_whs22"></p>\r
+<p class="whs9"><img src="../image278.jpg" x-maintain-ratio="FALSE" width="208px" height="250px" border="0" class="img_whs20"> <img src="../image279.jpg" width="206px" height="250px" border="0" class="img_whs21"> <img src="../image280.jpg" width="212px" height="250px" border="0" class="img_whs22"></p>\r
\r
<p class="whs5"> </p>\r
\r
\r
<p class="whs5"><b style="font-weight: bold;">Dialog Box:</b></p>\r
\r
-<table x-use-null-cells width="37.774%" cellspacing="0" class="whs28">\r
+<table x-use-null-cells cellspacing="0" width="37.774%" class="whs28">\r
<col class="whs29">\r
<col class="whs30">\r
\r
<p> </p>\r
\r
<p><a name=ExplodeOnBlocks><img src="../image53.gif" width="23px" height="22px" border="0" class="img_whs39"> <span style="font-weight: bold; font-size: 14pt;"><font size=4 style="font-size:14pt;"><B>Explode \r
- on blocks</B></font></span></a></p>\r
+ on Blocks</B></font></span></a></p>\r
\r
<p> </p>\r
\r
\r
<p class="whs41"> </p>\r
\r
-<p class="whs9"><img src="../image191.jpg" width="300px" height="311px" border="0" class="img_whs43"></p>\r
+<p class="whs43"><img src="../image191.jpg" width="300px" height="311px" border="0" class="img_whs44"></p>\r
+\r
+<p class="whs45"> </p>\r
+\r
+<p class="whs46"> </p>\r
+\r
+<p class="whs46"> </p>\r
+\r
+<p><a name=Propagate><img src="../image3.gif" width="23px" height="21px" border="0" class="img_whs47"> <span style="font-weight: bold; font-size: 14pt;"><font size=4 style="font-size:14pt;"><B>Propagate</B></font></span></a></p>\r
+\r
+<p> </p>\r
+\r
+<p class="whs5"><b style="font-weight: bold;">Description:</b> \r
+ Breaks a multitude of edges of a shape into groups (builds all possible \r
+ propagation groups).</p>\r
+\r
+<p class="whs5"> </p>\r
+\r
+<p class="whs5"><b style="font-weight: bold;">Result:</b> List \r
+ of GEOM_Objects. Each Geom Object will contain a group of edges.</p>\r
+\r
+<p class="whs5"> </p>\r
+\r
+<p class="whs5"><b>TUI Command:</b><i> </i><span style="font-style: italic;"><I>geompy.Propagate(Shape)</I></span>, \r
+ where Shape is a shape to build propagation groups on.</p>\r
+\r
+<p class="whs5"> </p>\r
+\r
+<p class="whs5"><b style="font-weight: bold;">Arguments: <span \r
+ style="font-weight: normal;">1 Shape.</span></b></p>\r
+\r
+<p class="whs5"> </p>\r
+\r
+<p class="whs5"> </p>\r
+\r
+<p class="whs5"><b style="font-weight: bold;">Dialog Box: </b></p>\r
+\r
+<p class="whs5"> </p>\r
+\r
+<p class="whs43"><img src="../image4.jpg" width="200px" height="139px" border="0" class="img_whs48"></p>\r
+\r
+<p class="whs49"> </p>\r
+\r
+<p class="whs50">Example:</p>\r
+\r
+<p class="whs50"> </p>\r
+\r
+<p class="whs51"><img src="../image15.jpg" width="250px" height="236px" border="0" class="img_whs52"> <img src="../image16.jpg" width="250px" height="233px" border="0" class="img_whs53"> </p>\r
\r
<script type="text/javascript" language="javascript1.2">\r
<!--\r
p.whs20 { font-family:'Times New Roman' , serif; font-size:14pt; }\r
img_whs21 { border:none; width:239px; height:214px; border-style:none; }\r
img_whs22 { width:20px; height:20px; border-style:none; }\r
-img_whs23 { border:none; width:263px; height:250px; }\r
+img_whs23 { border:none; width:263px; height:250px; border-style:none; }\r
img_whs24 { border:none; width:150px; height:131px; border-style:none; }\r
p.whs25 { font-size:14pt; font-weight:bold; }\r
p.whs26 { font-size:12pt; margin-left:40px; font-weight:bold; }\r
-img_whs27 { border:none; width:186px; height:250px; }\r
+img_whs27 { border:none; width:186px; height:250px; border-style:none; }\r
p.whs28 { font-size:12pt; font-weight:bold; }\r
-img_whs29 { border:none; width:214px; height:250px; }\r
+img_whs29 { border:none; width:214px; height:250px; border-style:none; }\r
img_whs30 { border:none; width:200px; height:214px; border-style:none; }\r
img_whs31 { border:none; width:176px; height:214px; border-style:none; }\r
-img_whs32 { border:none; width:348px; height:90px; }\r
+img_whs32 { border:none; width:348px; height:90px; border-style:none; }\r
img_whs33 { border:none; width:198px; height:250px; border-style:none; }\r
img_whs34 { border:none; width:150px; height:136px; border-style:none; }\r
-img_whs35 { border:none; width:216px; height:250px; }\r
+img_whs35 { border:none; width:216px; height:250px; border-style:none; }\r
img_whs36 { border:none; width:150px; height:132px; border-style:none; }\r
img_whs37 { border:none; width:22px; height:22px; border-style:none; }\r
p.whs38 { font-size:12pt; font-weight:normal; }\r
p.whs39 { margin-left:40px; font-size:12pt; font-weight:bold; }\r
-img_whs40 { border:none; width:191px; height:250px; }\r
+img_whs40 { border:none; width:191px; height:250px; border-style:none; }\r
p.whs41 { font-size:12pt; margin-left:40px; text-indent:-40px; }\r
p.whs42 { font-size:12pt; margin-left:40px; text-indent:-40px; font-weight:bold; }\r
p.whs43 { margin-left:80px; font-size:12pt; text-indent:-40px; }\r
img_whs45 { border:none; width:185px; height:231px; border-style:none; }\r
p.whs46 { font-size:12pt; text-indent:-68px; margin-left:72px; }\r
p.whs47 { font-size:12pt; text-indent:-68px; margin-left:112px; }\r
-img_whs48 { border:none; width:240px; height:250px; }\r
+img_whs48 { border:none; width:240px; height:250px; border-style:none; }\r
p.whs49 { font-size:12pt; margin-left:112px; text-indent:-112px; }\r
p.whs50 { font-size:12pt; text-indent:-112px; margin-left:152px; }\r
img_whs51 { border:none; width:200px; height:150px; float:none; border-style:none; }\r
p.whs53 { font-size:12pt; text-indent:-40px; margin-left:80px; }\r
p.whs54 { font-size:12pt; margin-left:80px; text-indent:-80px; }\r
p.whs55 { font-size:12pt; margin-left:80px; text-indent:-68px; }\r
-img_whs56 { border:none; width:276px; height:192px; }\r
+img_whs56 { border:none; width:276px; height:192px; border-style:none; }\r
p.whs57 { font-size:12pt; margin-left:0px; }\r
img_whs58 { border:none; width:209px; height:138px; border-style:none; }\r
img_whs59 { border:none; width:192px; height:138px; border-style:none; }\r
img_whs60 { border:none; width:191px; height:138px; border-style:none; }\r
+img_whs61 { border:none; width:23px; height:22px; border-style:none; }\r
+img_whs62 { border:none; width:320px; height:143px; border-style:none; }\r
-->\r
</style><script type="text/javascript" language="JavaScript">\r
<!--\r
point on edge</a></p></li>\r
\r
<li class=kadov-p><p class="whs1"> <a \r
- href="#CheckFreeBound">Check free boundaries</a><a \r
+ href="#CheckFreeBound">Check free boundaries</a></p></li>\r
+ \r
+ <li class=kadov-p><p class="whs1"> <a \r
+ href="#Check_free_faces">Check free faces</a><a \r
HREF="#_Toc57113183">	</a></p></li>\r
</ul>\r
\r
\r
<p class="whs4"> </p>\r
\r
-<p class="whs4"><b>Arguments: <span style="font-weight: normal;">Name \r
- + 1 shape + contour</span> <span style="font-weight: normal;">(</span></b>Wire, \r
+<p class="whs4"><b style="font-weight: bold;">Arguments: <span \r
+ style="font-weight: normal;">Name + 1 shape + contour</span> <span style="font-weight: normal;">(</span></b>Wire, \r
or a set of Edges) + mode of closure (by vertex or by edge)</p>\r
\r
<p class="whs4"> </p>\r
\r
<p class="whs4"> </p>\r
\r
-<p class="whs4"><b>Arguments:</b></p>\r
+<p class="whs4"><b style="font-weight: bold;">Arguments:</b></p>\r
\r
<ul type="disc" class="whs3">\r
\r
\r
<p class="whs4"> </p>\r
\r
-<p class="whs4"><b>Arguments: </b>Name + 1 shape + Wires which \r
- should be removed.</p>\r
+<p class="whs4"><b style="font-weight: bold;">Arguments: </b>Name \r
+ + 1 shape + Wires which should be removed.</p>\r
\r
<p class="whs4"><span style="font-weight: bold;"><B>Remove all \r
holes </B></span>checkbox allows to fill all holes of a definite shape.</p>\r
\r
<p class="whs4"> </p>\r
\r
-<p class="whs4"><b>Arguments:</b> Name + 1 or more shapes + \r
- 1 value (sew precision).</p>\r
+<p class="whs4"><b style="font-weight: bold;">Arguments:</b> \r
+ Name + 1 or more shapes + 1 value (sew precision).</p>\r
\r
<p class="whs4"><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;"><span style="font-weight: bold;"><B>Detect \r
</B></span>button allows to display the number of free boundaries in your \r
\r
<p class="whs46"><i><span style="font-style: italic;"><I> </I></span></i></p>\r
\r
-<p class="whs46"><b>Arguments: <span style="font-weight: normal;">Name \r
- +</span> </b>1 <i><span style="font-style: normal;">Compound + Tolerance \r
- value</span></i></p>\r
+<p class="whs46"><b style="font-weight: bold;">Arguments: \r
+ <span style="font-weight: normal;">Name +</span> </b>1 <i><span style="font-style: normal;">Compound \r
+ + Tolerance value</span></i></p>\r
\r
<p class="whs46"> </p>\r
\r
\r
<p class="whs4"> </p>\r
\r
-<p class="whs4"><b style="font-weight: bold;">Result:</b> GEOM_Object.</p>\r
+<p class="whs4"><b>Result:</b> GEOM_Object. </p>\r
\r
<p class="whs4"> </p>\r
\r
\r
<p class="whs57"> </p>\r
\r
+<p class="whs57"> </p>\r
+\r
+<p class="whs57"><a name=Check_free_faces><img src="../image10.gif" width="23px" height="22px" border="0" class="img_whs61"> <span style="font-size: 14pt; font-weight: bold;"><font size=4 style="font-size:14pt;"><B>Check free \r
+ faces</B></font></span></a></p>\r
+\r
+<p class="whs57"> </p>\r
+\r
+<p class="whs4"><b>Description: </b>Retrieves all free faces \r
+ from a given shape.<span> A free face is a face not shared between two \r
+ shells of the shape. </span></p>\r
+\r
+<p class="whs4"> </p>\r
+\r
+<p class="whs4"><b>Result:</b> GEOM_Object. Returns a list \r
+ of IDs of all free faces, contained in the shape.</p>\r
+\r
+<p class="whs4"> </p>\r
+\r
+<p class="whs4"><b>TUI Command :</b><i><span style="font-style: italic;"> \r
+ <I></i>GetFreeFacesIDs(Shape)</I></span>, where Shape is a shape to be checked.</p>\r
+\r
+<p class="whs4"> </p>\r
+\r
+<p class="whs4"><b style="font-weight: bold;">Arguments:</b> \r
+ Shape</p>\r
+\r
+<p class="whs4"> </p>\r
+\r
+<p class="whs38"><b style="font-weight: bold;">Dialog \r
+ Box:</b></p>\r
+\r
+<p class="whs38"> </p>\r
+\r
+<p class="whs16"><img src="../image26.gif" width="320px" height="143px" border="0" class="img_whs62"></p>\r
+\r
+<p class="whs41"> </p>\r
+\r
+<p class="whs41"> </p>\r
+\r
<script type="text/javascript" language="javascript1.2">\r
<!--\r
if (window.writeIntopicBar)\r
</style><style type="text/css">\r
<!--\r
p.whs1 { font-size:12pt; }\r
-img_whs2 { border-style:none; border:none; float:none; width:30px; height:30px; }\r
+img_whs2 { border:none; float:none; width:30px; height:30px; border-style:none; }\r
ul.whs3 { list-style:disc; }\r
p.whs4 { font-family:'Times New Roman' , serif; font-size:12pt; }\r
p.whs5 { font-family:'Times New Roman' , serif; font-size:14pt; }\r
-img_whs6 { border-style:none; width:20px; height:20px; }\r
+img_whs6 { width:20px; height:20px; border-style:none; }\r
p.whs7 { font-size:12pt; margin-left:40px; }\r
-img_whs8 { border:none; width:184px; height:250px; }\r
-img_whs9 { border:none; width:196px; height:250px; }\r
-img_whs10 { border:none; width:197px; height:250px; }\r
+img_whs8 { border:none; width:184px; height:250px; border-style:none; }\r
+img_whs9 { border:none; width:196px; height:250px; border-style:none; }\r
+img_whs10 { border:none; width:197px; height:250px; border-style:none; }\r
p.whs11 { margin-left:40px; }\r
-img_whs12 { border-style:none; border:none; width:150px; height:163px; }\r
-img_whs13 { border:none; width:218px; height:250px; }\r
-img_whs14 { border-style:none; border:none; width:150px; height:145px; }\r
+img_whs12 { border:none; width:150px; height:163px; border-style:none; }\r
+img_whs13 { border:none; width:218px; height:250px; border-style:none; }\r
+img_whs14 { border:none; width:150px; height:145px; border-style:none; }\r
p.whs15 { margin-left:48px; text-indent:-48px; }\r
p.whs16 { margin-left:48px; text-indent:-48px; font-size:14pt; font-weight:bold; }\r
-img_whs17 { border-style:none; border:none; width:25px; height:22px; }\r
-img_whs18 { border-style:none; border:none; width:209px; height:234px; }\r
-img_whs19 { border-style:none; border:none; width:200px; height:234px; }\r
+img_whs17 { border:none; width:25px; height:22px; border-style:none; }\r
+img_whs18 { border:none; width:209px; height:234px; border-style:none; }\r
+img_whs19 { border:none; width:200px; height:234px; border-style:none; }\r
p.whs20 { font-size:12pt; margin-left:40px; text-indent:-40px; }\r
p.whs21 { font-size:12pt; text-indent:-40px; margin-left:80px; }\r
-img_whs22 { border-style:none; border:none; width:200px; height:209px; }\r
-img_whs23 { border:none; width:214px; height:250px; }\r
-img_whs24 { border:none; width:215px; height:250px; }\r
-img_whs25 { border:none; width:216px; height:250px; }\r
-img_whs26 { border-style:none; border:none; width:150px; height:127px; }\r
-img_whs27 { border:none; width:205px; height:250px; }\r
+img_whs22 { border:none; width:200px; height:209px; border-style:none; }\r
+img_whs23 { border:none; width:214px; height:250px; border-style:none; }\r
+img_whs24 { border:none; width:215px; height:250px; border-style:none; }\r
+img_whs25 { border:none; width:216px; height:250px; border-style:none; }\r
+img_whs26 { border:none; width:150px; height:127px; border-style:none; }\r
+img_whs27 { border:none; width:205px; height:250px; border-style:none; }\r
p.whs28 { margin-left:40px; font-size:12pt; }\r
-img_whs29 { border-style:none; border:none; width:150px; height:153px; }\r
-img_whs30 { border-style:none; border:none; width:24px; height:22px; }\r
+img_whs29 { border:none; width:150px; height:153px; border-style:none; }\r
+img_whs30 { border:none; width:24px; height:22px; border-style:none; }\r
p.whs31 { font-size:12pt; margin-left:40px; font-weight:bold; }\r
-img_whs32 { border:none; width:225px; height:250px; }\r
+img_whs32 { border:none; width:225px; height:250px; border-style:none; }\r
p.whs33 { font-size:12pt; font-weight:bold; }\r
-img_whs34 { border-style:none; border:none; width:200px; height:191px; }\r
-img_whs35 { border:none; width:140px; height:250px; }\r
-img_whs36 { border:none; width:141px; height:250px; }\r
-img_whs37 { border-style:none; border:none; width:150px; height:123px; }\r
-img_whs38 { border:none; width:159px; height:250px; }\r
-img_whs39 { border:none; width:160px; height:250px; }\r
-img_whs40 { border-style:none; border:none; width:150px; height:128px; }\r
-img_whs41 { border-style:none; border:none; width:150px; height:113px; }\r
+img_whs34 { border:none; width:200px; height:191px; border-style:none; }\r
+img_whs35 { border:none; width:140px; height:250px; border-style:none; }\r
+img_whs36 { border:none; width:141px; height:250px; border-style:none; }\r
+img_whs37 { border:none; width:150px; height:123px; border-style:none; }\r
+img_whs38 { border:none; width:159px; height:250px; border-style:none; }\r
+img_whs39 { border:none; width:160px; height:250px; border-style:none; }\r
+img_whs40 { border:none; width:150px; height:128px; border-style:none; }\r
+img_whs41 { border:none; width:150px; height:113px; border-style:none; }\r
-->\r
</style><script type="text/javascript" language="JavaScript">\r
<!--\r
\r
<p class="whs1"> </p>\r
\r
+<p class="whs1">All these operations are accessible in the \r
+ main menu, via <span style="font-style: italic;"><I>Operations / Transformation.</I></span></p>\r
+\r
<p class="whs1"> </p>\r
\r
<p class="whs5"><b style="font-weight: bold;"><a \r
\r
<p class="whs1"> </p>\r
\r
-<p class="whs1"><b>Arguments:</b> </p>\r
+<p class="whs1"><b style="font-weight: bold;">Arguments:</b> \r
+ </p>\r
\r
<ul type="disc" class="whs3">\r
\r
- <li class=kadov-p><p class="whs1"><b>1st Constructor: <span \r
- style="font-weight: normal;">Name + </span></b>1 shape + 3 values (coordinates).</p></li>\r
+ <li class=kadov-p><p class="whs1"><b style="font-weight: bold;">1st \r
+ Constructor: <span style="font-weight: normal;">Name + </span></b>1 shape \r
+ + 3 values (coordinates).</p></li>\r
\r
- <li class=kadov-p><p class="whs1"><b>2st Constructor: <span \r
- style="font-weight: normal;">Name + </span></b>1 shape + 2 vertices.</p></li>\r
+ <li class=kadov-p><p class="whs1"><b style="font-weight: bold;">2st \r
+ Constructor: <span style="font-weight: normal;">Name + </span></b>1 shape \r
+ + 2 vertices.</p></li>\r
\r
- <li class=kadov-p><p class="whs1"><b>3st Constructor: <span \r
- style="font-weight: normal;">Name + </span></b>1 shape + 1 vector.</p></li>\r
+ <li class=kadov-p><p class="whs1"><b style="font-weight: bold;">3st \r
+ Constructor: <span style="font-weight: normal;">Name + </span></b>1 shape \r
+ + 1 vector.</p></li>\r
</ul>\r
\r
<p class="whs1"> </p>\r
\r
<p class="whs1"> </p>\r
\r
-<p class="whs1"><b>Arguments:</b> 1 shape + 1 vector for direction \r
- of rotation + 1 angle.</p>\r
+<p class="whs1"><b style="font-weight: bold;">Arguments:</b> \r
+ 1 shape + 1 vector for direction of rotation + 1 angle.</p>\r
\r
<p class="whs1"><span style="font-weight: bold;"><B>Reverse </B></span>checkbox \r
allows to specify the direction of rotation.</p>\r
\r
<p class="whs1"> </p>\r
\r
-<p class="whs1"><b>Arguments:</b> Name + 1 GEOM_Object + [Starting \r
- Coordinate System] + End Coordinate System.</p>\r
+<p class="whs1"><b style="font-weight: bold;">Arguments:</b> \r
+ Name + 1 GEOM_Object + [Starting Coordinate System] + End Coordinate System.</p>\r
\r
<p class="whs1"><span style="font-weight: bold;"><B>Create a copy \r
</B></span>checkbox allows to keep the initial object, otherwise it will be \r
\r
<p class="whs1"> </p>\r
\r
-<p class="whs1"><b>Arguments:</b> </p>\r
+<p class="whs1"><b style="font-weight: bold;">Arguments:</b> \r
+ </p>\r
\r
<ul type="disc" class="whs3">\r
\r
- <li class=kadov-p><p class="whs1"><b>1st Constructor: <span \r
- style="font-weight: normal;">Name + </span></b>1 shape + 1 vertex.</p></li>\r
+ <li class=kadov-p><p class="whs1"><b style="font-weight: bold;">1st \r
+ Constructor: <span style="font-weight: normal;">Name + </span></b>1 shape \r
+ + 1 vertex.</p></li>\r
\r
- <li class=kadov-p><p class="whs1"><b>2st Constructor: <span \r
- style="font-weight: normal;">Name + </span></b>1 shape + 1 vector.</p></li>\r
+ <li class=kadov-p><p class="whs1"><b style="font-weight: bold;">2st \r
+ Constructor: <span style="font-weight: normal;">Name + </span></b>1 shape \r
+ + 1 vector.</p></li>\r
\r
- <li class=kadov-p><p class="whs1"><b>3st Constructor: <span \r
- style="font-weight: normal;">Name + </span></b>1 shape + 1 plane.</p></li>\r
+ <li class=kadov-p><p class="whs1"><b style="font-weight: bold;">3st \r
+ Constructor: <span style="font-weight: normal;">Name + </span></b>1 shape \r
+ + 1 plane.</p></li>\r
</ul>\r
\r
<p class="whs1"><span style="font-weight: bold;"><B>Create a copy \r
\r
<p class="whs1"> </p>\r
\r
-<p class="whs1"><b>Arguments:</b></p>\r
+<p class="whs1"><b style="font-weight: bold;">Arguments:</b></p>\r
\r
<ul type="disc" class="whs3">\r
\r
Constructor <span style="font-weight: normal;">(in one direction):</span></b> \r
Name + 1 shape + 1 vector for direction + 1 value (repetition).</p></li>\r
\r
- <li class=kadov-p><p class="whs1"><b>2nd Constructor <span \r
- style="font-weight: normal;">(in two directions):</span></b> Name + 1 \r
- shape + 1 vector for direction + 1 angle + 1 value (repetition) + 1 step \r
- value + 1 value (repetition); <span style="font-weight: bold;"><B>Reverse \r
+ <li class=kadov-p><p class="whs1"><b style="font-weight: bold;">2nd \r
+ Constructor <span style="font-weight: normal;">(in two directions):</span></b> \r
+ Name + 1 shape + 1 vector for direction + 1 angle + 1 value (repetition) \r
+ + 1 step value + 1 value (repetition); <span style="font-weight: bold;"><B>Reverse \r
</B></span><span>checkbox allows to set the direction of rotation</span>.</p></li>\r
</ul>\r
\r
<style type="text/css">\r
<!--\r
p.whs1 { font-size:14pt; font-weight:bold; }\r
-img_whs2 { border-style:none; border:none; float:none; width:30px; height:30px; }\r
+img_whs2 { border:none; float:none; width:30px; height:30px; border-style:none; }\r
ul.whs3 { list-style:disc; }\r
-img_whs4 { border-style:none; border:none; width:23px; height:22px; }\r
+img_whs4 { border:none; width:23px; height:22px; border-style:none; }\r
p.whs5 { font-size:12pt; }\r
p.whs6 { font-size:12pt; font-style:italic; font-weight:normal; }\r
table.whs7 { x-cell-content-align:top; border-spacing:0px; width:66.515%; }\r
col.whs9 { width:33.052%; }\r
col.whs10 { width:33.952%; }\r
tr.whs11 { x-cell-content-align:top; }\r
-td.whs12 { padding-right:10px; padding-left:10px; border-right-style:none; border-left-style:none; border-top-style:none; border-bottom-style:none; }\r
-img_whs13 { border:none; width:183px; height:250px; }\r
-td.whs14 { padding-right:10px; padding-left:10px; border-right-style:none; border-top-style:none; border-bottom-style:none; }\r
-td.whs15 { padding-right:10px; padding-left:10px; border-top-style:none; border-bottom-style:none; border-right-style:none; }\r
-img_whs16 { border:none; width:184px; height:250px; }\r
+td.whs12 { width:32.996%; padding-right:10px; padding-left:10px; border-right-style:none; border-left-style:none; border-top-style:none; border-bottom-style:none; }\r
+img_whs13 { border:none; width:183px; height:250px; border-style:none; }\r
+td.whs14 { width:33.052%; padding-right:10px; padding-left:10px; border-right-style:none; border-top-style:none; border-bottom-style:none; }\r
+td.whs15 { width:33.952%; padding-right:10px; padding-left:10px; border-top-style:none; border-bottom-style:none; border-right-style:none; }\r
+img_whs16 { border:none; width:184px; height:250px; border-style:none; }\r
p.whs17 { font-weight:bold; }\r
-img_whs18 { border-style:none; border:none; width:250px; height:195px; }\r
-img_whs19 { border-style:none; border:none; width:24px; height:22px; }\r
+img_whs18 { border:none; width:250px; height:195px; border-style:none; }\r
+img_whs19 { border:none; width:24px; height:22px; border-style:none; }\r
table.whs20 { x-cell-content-align:top; border-spacing:0px; width:40.406%; }\r
col.whs21 { width:49.761%; }\r
col.whs22 { width:50.239%; }\r
-img_whs23 { border:none; width:162px; height:250px; }\r
-img_whs24 { border:none; width:164px; height:250px; }\r
-p.whs25 { font-size:12pt; font-weight:bold; }\r
-p.whs26 { font-size:12pt; font-weight:bold; margin-left:0px; }\r
-img_whs27 { border-style:none; border:none; width:300px; height:234px; float:none; }\r
-img_whs28 { border-style:none; border:none; width:251px; height:234px; }\r
-p.whs29 { font-size:12pt; margin-left:40px; }\r
+td.whs23 { width:49.761%; padding-right:10px; padding-left:10px; border-right-style:none; border-left-style:none; border-top-style:none; border-bottom-style:none; }\r
+img_whs24 { border:none; width:162px; height:250px; border-style:none; }\r
+td.whs25 { width:50.239%; padding-right:10px; padding-left:10px; border-top-style:none; border-bottom-style:none; border-right-style:none; }\r
+img_whs26 { border:none; width:164px; height:250px; border-style:none; }\r
+p.whs27 { font-size:12pt; font-weight:bold; }\r
+p.whs28 { font-size:12pt; font-weight:bold; margin-left:0px; }\r
+img_whs29 { border:none; width:300px; height:234px; float:none; border-style:none; }\r
+img_whs30 { border:none; width:251px; height:234px; border-style:none; }\r
+p.whs31 { font-size:12pt; margin-left:40px; }\r
-->\r
</style><script type="text/javascript" language="JavaScript">\r
<!--\r
if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4))\r
{\r
var strNSS = "<style type='text/css'>";\r
- strNSS += "p.whs26 {margin-left:1pt; }";\r
+ strNSS += "p.whs28 {margin-left:1pt; }";\r
strNSS +="</style>";\r
document.write(strNSS);\r
}\r
\r
<p> </p>\r
\r
-<p>To build a compound the user may take the following steps:</p>\r
+<p>These functionalities are available from the main menu via <span style="font-style: italic;"><I>New \r
+ Entity / Blocks.</I></span></p>\r
\r
<p> </p>\r
\r
\r
<p class="whs5"><b style="font-weight: bold;">Dialog Box:</b></p>\r
\r
-<table x-use-null-cells width="66.515%" cellspacing="0" class="whs7">\r
+<table x-use-null-cells cellspacing="0" width="66.515%" class="whs7">\r
<col class="whs8">\r
<col class="whs9">\r
<col class="whs10">\r
\r
<p class="whs5"> </p>\r
\r
-<table x-use-null-cells width="40.406%" cellspacing="0" class="whs20">\r
+<table x-use-null-cells cellspacing="0" width="40.406%" class="whs20">\r
<col class="whs21">\r
<col class="whs22">\r
\r
<tr valign="top" class="whs11">\r
-<td width="49.761%" class="whs12">\r
-<p class="whs5"><b> </b><img src="image242.jpg" width="162px" height="250px" border="0" class="img_whs23"></td>\r
-<td width="50.239%" class="whs15">\r
-<p><img src="image243.jpg" width="164px" height="250px" border="0" class="img_whs24"></td></tr>\r
+<td width="49.761%" class="whs23">\r
+<p class="whs5"><b style="font-weight: bold;"> </b><img src="image242.jpg" width="162px" height="250px" border="0" class="img_whs24"></td>\r
+<td width="50.239%" class="whs25">\r
+<p><img src="image243.jpg" width="164px" height="250px" border="0" class="img_whs26"></td></tr>\r
</table>\r
\r
<p class="whs5"> </p>\r
\r
-<p class="whs25">Example:</p>\r
+<p class="whs27">Example:</p>\r
\r
-<p class="whs25"> </p>\r
+<p class="whs27"> </p>\r
\r
-<p class="whs26"><img src="image180.jpg" x-maintain-ratio="TRUE" width="300px" height="234px" border="0" class="img_whs27"> <img src="image181.jpg" width="251px" height="234px" border="0" class="img_whs28"> </p>\r
+<p class="whs28"><img src="image180.jpg" x-maintain-ratio="TRUE" width="300px" height="234px" border="0" class="img_whs29"> <img src="image181.jpg" width="251px" height="234px" border="0" class="img_whs30"> </p>\r
\r
-<p class="whs29"><b style="font-weight: bold;"> </b> </p>\r
+<p class="whs31"><b style="font-weight: bold;"> </b> </p>\r
\r
<p class="whs1"> </p>\r
\r
p.whs2 { font-size:12pt; }\r
ul.whs3 { list-style:disc; }\r
p.whs4 { margin-left:40px; font-size:12pt; }\r
-img_whs5 { border:none; width:200px; height:277px; }\r
-img_whs6 { border:none; width:200px; height:276px; }\r
+img_whs5 { border:none; width:200px; height:277px; border-style:none; }\r
+img_whs6 { border:none; width:200px; height:276px; border-style:none; }\r
p.whs7 { font-size:12pt; margin-left:40px; text-indent:-40px; }\r
p.whs8 { font-size:12pt; margin-left:40px; text-indent:-40px; font-weight:bold; }\r
p.whs9 { font-size:12pt; text-indent:-40px; font-weight:bold; margin-left:80px; }\r
-img_whs10 { border:none; width:200px; height:200px; }\r
-img_whs11 { border:none; width:200px; height:195px; }\r
+img_whs10 { border:none; width:200px; height:200px; border-style:none; }\r
+img_whs11 { border:none; width:200px; height:195px; border-style:none; }\r
-->\r
</style><script type="text/javascript" language="JavaScript">\r
<!--\r
\r
<p> </p>\r
\r
+<p>This functionality is available from the main menu via <span style="font-style: italic;"><I>New \r
+ Entity / Sketch.</I></span></p>\r
+\r
+<p> </p>\r
+\r
<p class="whs2"><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;"><b style="font-weight: bold;">Description:</b> \r
Creates curves (line segment and arc).</font></span></p>\r
\r
\r
<p class="whs2"> </p>\r
\r
-<p class="whs2"><b>Arguments:</b> </p>\r
+<p class="whs2"><b style="font-weight: bold;">Arguments:</b> \r
+ </p>\r
\r
<p class="whs2"><span><font size=3 style="font-size:12pt;">1. Element type (segment or arc).</font></span></p>\r
\r
\r
<p class="whs2"> </p>\r
\r
-<p class="whs2"><b>Dialog Box:</b></p>\r
+<p class="whs2"><b style="font-weight: bold;">Dialog Box:</b></p>\r
\r
<p class="whs2"> </p>\r
\r
<script language="javascript" src="whfts.js"></script>\r
<script language="javascript">\r
<!--\r
-iWM("0","geometry","whfwdata0.htm");\r
-iWM("geompy","radiu","whfwdata1.htm");\r
-iWM("radius","zmin","whfwdata2.htm");\r
+iWM("0","zmin","whfwdata0.htm");\r
\r
iTM(0,16,"whftdata0.htm");\r
\r
<!--\r
aWE("0",1,12);\r
aWE("1",1,15,3,4,7,5,11,12,13,10,9,16);\r
+aWE("12",9);\r
aWE("1d",3,10);\r
aWE("1st",3,11,12,13,10);\r
aWE("2",14,1,15,3,4,5,11,12,13,10,9);\r
aWE("3st",13);\r
aWE("4",14,15,4,12,10);\r
aWE("5",15,7,12);\r
-aWE("6",14,12);\r
+aWE("6",14,12,9);\r
aWE("7",12);\r
aWE("8",12);\r
aWE("9",15,12);\r
aWE("90",15);\r
aWE("abl",15);\r
aWE("absolut",15);\r
+aWE("accessibl",13);\r
aWE("accord",3,12);\r
aWE("accordanc",12);\r
aWE("achiev",12);\r
aWE("associat",6);\r
aWE("attribut",6);\r
aWE("automatical",14,3);\r
-aWE("availabl",6,12);\r
+aWE("availabl",14,15,6,12,16);\r
aWE("ax",3);\r
aWE("axi",3,7,11,13,9);\r
aWE("b",3);\r
+aWE("background",16);\r
aWE("bas",7,11,12,13);\r
aWE("baseshap",7);\r
aWE("basi",7);\r
aWE("befor",15,12);\r
aWE("below",14);\r
aWE("bezi",3,12);\r
-aWE("block",14,0,10);\r
+aWE("block",14,0,10,9);\r
aWE("boolean",2,4,5,9);\r
aWE("both",6);\r
aWE("bound",9);\r
aWE("boundary",12);\r
aWE("boundingbox",9);\r
aWE("box",14,1,15,3,4,8,7,5,11,12,13,10,9,16);\r
+aWE("break",10);\r
aWE("brep",2,8);\r
aWE("brows",3,6,8);\r
aWE("bsplin",12);\r
aWE("chang",1);\r
aWE("check",12,10,9);\r
aWE("checkbox",12,13);\r
+aWE("checkcompoundofblock",9);\r
aWE("checkshap",9);\r
aWE("choos",6,8,10);\r
aWE("circl",3);\r
aWE("complex",2,4,7,10);\r
aWE("component",15,3,13);\r
aWE("compos",14,9);\r
-aWE("compound",14,4,5,12,13,10);\r
+aWE("compound",14,4,5,12,13,10,9);\r
aWE("compsolid",7);\r
aWE("comput",10,9);\r
aWE("con",11);\r
aWE("concern",9);\r
+aWE("condition",9);\r
aWE("confirm",8);\r
aWE("conical",12);\r
-aWE("connect",5,10);\r
-aWE("consider",12);\r
+aWE("connect",5,10,9);\r
+aWE("connection",9);\r
+aWE("consider",12,9);\r
+aWE("consol",9);\r
aWE("constraint",14);\r
aWE("construct",14,5,11);\r
aWE("construction",2,4);\r
aWE("constructor",3,11,12,13,10);\r
-aWE("contain",15,8,12);\r
+aWE("contain",15,8,12,10);\r
aWE("content",8);\r
aWE("continuiti",12);\r
aWE("continuity",12);\r
aWE("coupl",15);\r
aWE("creat",14,15,3,6,7,5,11,12,13,10,9,16);\r
aWE("creategroup",16);\r
-aWE("creation",2,7,12,10);\r
+aWE("creation",2,7,12,10,16);\r
aWE("current",15,6);\r
aWE("curv",15,3,7,12);\r
aWE("curve2dmod",12);\r
aWE("d1",10);\r
aWE("d2",10);\r
aWE("data",9);\r
-aWE("default",15);\r
+aWE("default",15,16);\r
aWE("defin",15,3,11,12,13,10);\r
aWE("definit",12,9);\r
aWE("definition",7,12);\r
aWE("deflection",10);\r
+aWE("degenerat",9);\r
aWE("degre",15,7,12);\r
aWE("delet",10);\r
aWE("density",10);\r
aWE("e2",14);\r
aWE("e3",14);\r
aWE("e4",14);\r
-aWE("edg",14,3,7,5,12,10);\r
+aWE("easi",16);\r
+aWE("edg",14,3,7,5,12,10,9);\r
aWE("edgeid",12);\r
aWE("edit",16);\r
aWE("egdemaxtol",9);\r
aWE("elementary",14);\r
aWE("ellips",3);\r
aWE("empty",12);\r
+aWE("encounter",9);\r
aWE("end",15,3,12,13);\r
aWE("ent",3,8);\r
-aWE("entity",15,3,7,5,11,16);\r
+aWE("entir",9);\r
+aWE("entity",14,15,3,7,5,11,16);\r
aWE("equal",15);\r
aWE("eras",6);\r
aWE("eraseall",6);\r
aWE("eraseon",6);\r
-aWE("error",12);\r
+aWE("error",12,9);\r
aWE("etc",5,12);\r
aWE("exampl",14,1,15,3,4,7,5,11,12,13,10,16);\r
aWE("except",12);\r
aWE("explod",0,5,10);\r
aWE("export",2,8);\r
aWE("exportation",8);\r
+aWE("extra",9);\r
aWE("extract",10);\r
aWE("extrud",7);\r
aWE("extrusion",7);\r
aWE("f4",14);\r
aWE("f5",14);\r
aWE("f6",14);\r
-aWE("fac",14,3,7,5,12,13,10);\r
+aWE("fac",14,3,7,5,12,13,10,9);\r
aWE("face1",10);\r
aWE("face2",10);\r
aWE("facemaxtol",9);\r
aWE("fix",12);\r
aWE("fixfacesiz",12);\r
aWE("fixshap",12);\r
-aWE("follow",14,4,6,5);\r
+aWE("flag",9);\r
+aWE("follow",4,6,5,9);\r
aWE("format",2,8);\r
aWE("formatnam",8);\r
aWE("four",14);\r
aWE("fre",12);\r
aWE("function",2,5);\r
+aWE("functionaliti",14);\r
+aWE("functionality",15,16);\r
aWE("fus",4);\r
aWE("gap",12);\r
aWE("general",14);\r
aWE("geometric",14);\r
aWE("geometrical",1,2,3,4,6,8,7,5,11,12,13,10,9,16);\r
aWE("geometry",12);\r
+aWE("geompy",14,15,3,4,8,7,5,11,12,13,10,9,16);\r
+aWE("get",4,5,9);\r
+aWE("getfreeboundary",12);\r
+aWE("getfreefacesid",12);\r
+aWE("getobjectid",16);\r
+aWE("getsubshapeid",5);\r
+aWE("gg",1);\r
+aWE("giv",3);\r
+aWE("given",3,5,12,13,10,9);\r
+aWE("glu",12,10,9);\r
+aWE("graphic",6);\r
+aWE("gravity",9);\r
+aWE("group",10,16);\r
+aWE("gui",10);\r
+aWE("half",3);\r
+aWE("handl",16);\r
+aWE("hav",5,12);\r
+aWE("height",7,11);\r
+aWE("hexahedral",14,10);\r
+aWE("hexahedron",14);\r
+aWE("hid",6);\r
+aWE("highlight",12,9);\r
+aWE("hol",12);\r
+aWE("i",6);\r
+aWE("i11",9);\r
+aWE("i12",9);\r
+aWE("i13",9);\r
+aWE("i21",9);\r
+aWE("i22",9);\r
+aWE("i23",9);\r
+aWE("i31",9);\r
+aWE("i32",9);\r
+aWE("i33",9);\r
+aWE("id",1,6,5,12,10,16);\r
+aWE("if",5,12,10,9,16);\r
+aWE("ig",2,8);\r
+aWE("imag",13);\r
+aWE("import",2,6,8,9);\r
+aWE("importation",8);\r
+aWE("in",13);\r
+aWE("increas",12);\r
+aWE("independent",4,6);\r
+aWE("indic",10);\r
+aWE("inertia",9);\r
+aWE("inform",9);\r
+aWE("initial",13);\r
+aWE("inquir",9);\r
+aWE("inretia",9);\r
+aWE("insert",12);\r
+aWE("insid",10);\r
+aWE("integ",10);\r
+aWE("integer",10);\r
+aWE("intend",12);\r
+aWE("interactive",10);\r
+aWE("intermediat",14);\r
+aWE("internal",12);\r
+aWE("intersect",10);\r
+aWE("intersection",10);\r
+aWE("introduction",14,2);\r
+aWE("invalid",12);\r
+aWE("investigat",9);\r
+aWE("isbyparamet",12);\r
+aWE("iscommonvertex",12);\r
+aWE("iso",1);\r
+aWE("isolin",1);\r
+aWE("iteration",7);\r
+aWE("itself",12);\r
+aWE("ix",9);\r
+aWE("iy",9);\r
+aWE("iz",9);\r
+aWE("just",14);\r
+aWE("keep",13);\r
+aWE("last",3,5);\r
+aWE("lc",3);\r
+aWE("least",3);\r
+aWE("length",15,12,9);\r
+aWE("les",12);\r
+aWE("limit",10);\r
+aWE("lin",15,3,10);\r
+aWE("list",15,3,7,5,12,10,16);\r
+aWE("listoffaceid",10);\r
+aWE("listofgeomshap",12);\r
+aWE("listofid",5,12);\r
+aWE("listofkeepinsid",10);\r
+aWE("listofmaterial",10);\r
+aWE("listofremoveinsid",10);\r
+aWE("listofshap",3,5,12,10);\r
+aWE("listofshapeid",10);\r
+aWE("listoftool",10);\r
+aWE("listofwireid",12);\r
+aWE("local",15,3,13);\r
+aWE("locat",3);\r
+aWE("location",3,8,13);\r
+aWE("lwp",15);\r
+aWE("ly",15,12);\r
+aWE("main",14,0,15,3,4,6,7,5,11,12,13,10,9,16);\r
+aWE("mainshap",16);\r
+aWE("major",3,11);\r
+aWE("mak",13,10,16);\r
+aWE("makearc",3);\r
+aWE("makebezi",3);\r
+aWE("makeblockexplod",10);\r
+aWE("makeboolean",4);\r
+aWE("makebox",11);\r
+aWE("makecdg",9);\r
+aWE("makechamferedg",10);\r
+aWE("makechamferfac",10);\r
+aWE("makecircl",3);\r
+aWE("makecompound",5);\r
+aWE("makecon",11);\r
+aWE("makecylind",11);\r
+aWE("makeedg",5);\r
+aWE("makeellips",3);\r
+aWE("makefac",5);\r
+aWE("makefil",7);\r
+aWE("makefillet",10);\r
+aWE("makegluefac",12);\r
+aWE("makehexasolid",14);\r
+aWE("makehexasolidtwofac",14);\r
+aWE("makeinterpol",3);\r
+aWE("makelin",3);\r
+aWE("makemark",3);\r
+aWE("makemirrorbyplan",13);\r
+aWE("makemultirotation1d",13);\r
+aWE("makemultirotation2d",13);\r
+aWE("makemultitransformation1d",10);\r
+aWE("makemultitransformation2d",10);\r
+aWE("makemultitranslation1d",13);\r
+aWE("makemultitranslation2d",13);\r
+aWE("makeoffset",13);\r
+aWE("makepartition",10);\r
+aWE("makepip",7);\r
+aWE("makeplan",3);\r
+aWE("makepolylin",3);\r
+aWE("makeposition",13);\r
+aWE("makeprism",7);\r
+aWE("makequadfac",14);\r
+aWE("makequadfaceedg",14);\r
+aWE("makequadfacevertic",14);\r
+aWE("makerevolution",7);\r
+aWE("makerotation",13);\r
+aWE("makescaletransform",13);\r
+aWE("makesew",12);\r
+aWE("makeshell",5);\r
+aWE("makesketch",15);\r
+aWE("makesolid",5);\r
+aWE("makespher",11);\r
+aWE("maketoru",11);\r
+aWE("maketranslation",13);\r
+aWE("makevector",3);\r
+aWE("makevertex",3);\r
+aWE("makewir",5);\r
+aWE("manual",3);\r
+aWE("mas",9);\r
+aWE("material",10);\r
+aWE("matrix",9);\r
+aWE("max",7,12,10);\r
+aWE("maxdegre",7);\r
+aWE("maximal",7,12,10,9);\r
+aWE("maximum",12,10);\r
+aWE("maxnbfac",10);\r
+aWE("maxtoleranc",12);\r
+aWE("maxtolerance3d",12);\r
+aWE("mean",15,13);\r
+aWE("measur",9);\r
+aWE("measurement",9);\r
+aWE("mention",14);\r
+aWE("menu",14,0,1,15,3,4,6,8,7,5,11,12,13,10,9,16);\r
+aWE("merg",12);\r
+aWE("mesh",14,10);\r
+aWE("meshingdeflection",10);\r
+aWE("method",5);\r
+aWE("middl",3);\r
+aWE("min",7,10,9);\r
+aWE("mindegre",7);\r
+aWE("mindistanc",9);\r
+aWE("minimal",7,10,9);\r
+aWE("minimum",10);\r
+aWE("minnbfac",10);\r
+aWE("minor",3,11);\r
+aWE("mirror",13);\r
+aWE("mod",1,12);\r
+aWE("model",2,10);\r
+aWE("modifi",3,12,13);\r
+aWE("modification",12,13);\r
+aWE("modify",13);\r
+aWE("modul",2,6);\r
+aWE("moment",9);\r
+aWE("mov",13);\r
+aWE("much",16);\r
+aWE("multi",0,13,10);\r
+aWE("multitud",10);\r
+aWE("must",12,13,9);\r
+aWE("nam",14,3,4,8,7,5,11,12,13,10);\r
+aWE("nbit",7);\r
+aWE("nbsplitpoint",12);\r
+aWE("nbtim",13,10);\r
+aWE("nbtimes1",13);\r
+aWE("nbtimes2",13);\r
+aWE("nbtimesu",10);\r
+aWE("nbtimesv",10);\r
+aWE("necessary",15,6,12,9);\r
+aWE("need",12);\r
+aWE("negativ",13);\r
+aWE("neigbour",12);\r
+aWE("new",14,15,3,7,5,11,12,16);\r
+aWE("nod",3);\r
+aWE("noerror",12);\r
+aWE("normal",3,7,13);\r
+aWE("notion",14);\r
+aWE("numb",1,7,12,13,10);\r
+aWE("number",10);\r
+aWE("numeb",10);\r
+aWE("object",1,2,3,4,6,8,7,5,11,12,13,10,9,16);\r
+aWE("occ",1,6,12,16);\r
+aWE("occur",12);\r
+aWE("offer",16);\r
+aWE("offset",13);\r
+aWE("ok",3,8);\r
+aWE("on",15,3,4,6,12,13,10);\r
+aWE("open",12);\r
+aWE("openwir",12);\r
+aWE("operation",14,2,4,6,7,12,13,10,16);\r
+aWE("operator",12);\r
+aWE("opposit",11);\r
+aWE("optimization",2);\r
+aWE("option",0);\r
+aWE("ord",12,9);\r
+aWE("orient",14,3);\r
+aWE("origin",3,11);\r
+aWE("otherwis",12,13);\r
+aWE("outsid",10);\r
+aWE("ox",15,3);\r
+aWE("oy",3);\r
+aWE("oz",15,3);\r
+aWE("paramet",3,5,12);\r
+aWE("parameter",1,15,3,7,12);\r
+aWE("paramt",12);\r
+aWE("part",4,11);\r
+aWE("partition",10);\r
+aWE("pas",3);\r
+aWE("path",7);\r
+aWE("pathshap",7);\r
+aWE("pattern",13);\r
+aWE("perform",10,16);\r
+aWE("perpendicular",15);\r
+aWE("pip",7);\r
+aWE("plan",15,3,13,10);\r
+aWE("planar",15,3,5);\r
+aWE("platform",16);\r
+aWE("plung",10);\r
+aWE("point",14,15,3,11,12,13,9);\r
+aWE("point1",3);\r
+aWE("point2",3);\r
+aWE("point3",3);\r
+aWE("pointcoordinat",9);\r
+aWE("polylin",3);\r
+aWE("pop",1,6);\r
+aWE("position",3,12);\r
+aWE("possibility",12);\r
+aWE("possibl",6,12,10,9);\r
+aWE("precision",12);\r
+aWE("predefin",15);\r
+aWE("preferenc",16);\r
+aWE("pres",3);\r
+aWE("preview",3);\r
+aWE("previou",15);\r
+aWE("primitiv",2,11);\r
+aWE("print",9);\r
+aWE("prism",7);\r
+aWE("problem",12);\r
+aWE("proces",12,10);\r
+aWE("processshap",12);\r
+aWE("project",16);\r
+aWE("propagat",10);\r
+aWE("propagation",10);\r
+aWE("properti",1,9);\r
+aWE("put",10);\r
+aWE("python",9);\r
+aWE("quadrangl",14,3,9);\r
+aWE("radian",12);\r
+aWE("radiu",15,3,11,10);\r
+aWE("radius",3,11);\r
+aWE("radius1",11);\r
+aWE("radius2",11);\r
+aWE("radiusmajor",3,11);\r
+aWE("radiusminor",3,11);\r
+aWE("rang",2,12);\r
+aWE("re",12);\r
+aWE("reasonabl",6);\r
+aWE("reconstruction",10);\r
+aWE("referenc",3);\r
+aWE("regard",3);\r
+aWE("relativ",15);\r
+aWE("remov",12,13,16);\r
+aWE("removeobject",16);\r
+aWE("removeweb",10);\r
+aWE("repair",2,12);\r
+aWE("repetition",13);\r
+aWE("represent",3);\r
+aWE("request",5);\r
+aWE("requir",6,8,12);\r
+aWE("requireddegre",12);\r
+aWE("requirednbsegment",12);\r
+aWE("respect",15,12);\r
+aWE("restriction",12);\r
+aWE("result",14,15,3,4,7,5,11,12,13,10,9,16);\r
+aWE("resultant",12);\r
+aWE("retriev",5,12);\r
+aWE("return",5,12,10,9,16);\r
+aWE("revers",13);\r
+aWE("revolution",7,12);\r
+aWE("right",1,6);\r
+aWE("rotat",7,13);\r
+aWE("rotation",13);\r
+aWE("s",3,5,12,13,10,16);\r
+aWE("salom",2,16);\r
+aWE("sam",15,12);\r
+aWE("sameparamet",12);\r
+aWE("satisfy",9);\r
+aWE("scal",13);\r
+aWE("se",8,9);\r
+aWE("search",8);\r
+aWE("second",4,11,13,10);\r
+aWE("section",4,10);\r
+aWE("segment",15,12);\r
+aWE("select",0,1,15,3,4,6,8,7,5,11,12,10,9,16);\r
+aWE("selection",15,3,10);\r
+aWE("sens",10);\r
+aWE("serv",3,7);\r
+aWE("set",1,3,12,13,10);\r
+aWE("setcolor",1);\r
+aWE("setdisplaymod",1);\r
+aWE("settransparency",1);\r
+aWE("sew",12);\r
+aWE("sg",6);\r
+aWE("shad",1);\r
+aWE("shap",1,2,4,6,8,7,5,12,13,10,9,16);\r
+aWE("shape1",4,9);\r
+aWE("shape2",4,9);\r
+aWE("shapesto",12);\r
+aWE("shapetyp",10,16);\r
+aWE("shar",12);\r
+aWE("shel",5,12,13);\r
+aWE("shell",14,7,5,13);\r
+aWE("short",1);\r
+aWE("should",12,9);\r
+aWE("shown",3);\r
+aWE("sid",3);\r
+aWE("sign",13);\r
+aWE("six",14);\r
+aWE("siz",3,12,10);\r
+aWE("sketch",15);\r
+aWE("small",3,12);\r
+aWE("solid",14,7,5,11,13,10);\r
+aWE("soon",3);\r
+aWE("spac",3,9);\r
+aWE("specifi",3,12,10);\r
+aWE("specific",14);\r
+aWE("specify",12,13);\r
+aWE("spher",11);\r
+aWE("splin",3);\r
+aWE("split",12);\r
+aWE("splitangl",12);\r
+aWE("splitclosedfac",12);\r
+aWE("splitcontinuity",12);\r
+aWE("spot",12);\r
+aWE("stag",14);\r
+aWE("standard",8);\r
+aWE("start",15,3,13);\r
+aWE("step",2,8,13);\r
+aWE("step1",13);\r
+aWE("step2",13);\r
+aWE("str",15,8);\r
+aWE("strip",12);\r
+aWE("study",6);\r
+aWE("sub",5,12,16);\r
+aWE("submenu",0,5,12,9);\r
+aWE("subshap",5,10,16);\r
+aWE("subshapeall",5);\r
+aWE("subshapeid",16);\r
+aWE("suppres",12);\r
+aWE("suppressfac",12);\r
+aWE("suppresshol",12);\r
+aWE("suppressinternalwir",12);\r
+aWE("surfac",12,13,9);\r
+aWE("surfacecontinuity",12);\r
+aWE("surfacemod",12);\r
+aWE("symmetrical",13);\r
+aWE("symmetry",11,13);\r
+aWE("system",3,13);\r
+aWE("tangent",15);\r
+aWE("target",15,10);\r
+aWE("tetrahedral",14);\r
+aWE("theendlc",13);\r
+aWE("them",12);\r
+aWE("theobject",13);\r
+aWE("therefor",15);\r
+aWE("theshap",12);\r
+aWE("thestartlc",13);\r
+aWE("thetoleranc",12);\r
+aWE("tim",13);\r
+aWE("tobezi",12);\r
+aWE("toggl",16);\r
+aWE("tol2d",7);\r
+aWE("tol3d",7);\r
+aWE("toleranc",7,12,9);\r
+aWE("tolerance2d",12);\r
+aWE("tolerance3d",12);\r
+aWE("tool",9);\r
+aWE("toru",11);\r
+aWE("transform",4,13,10);\r
+aWE("transformation",0,2,13,10);\r
+aWE("translat",13);\r
+aWE("translation",13,10);\r
+aWE("transparency",1);\r
+aWE("trihedron",3);\r
+aWE("trimsiz",3);\r
+aWE("tru",12,10,9);\r
+aWE("tui",14,1,15,3,4,6,8,7,5,11,12,13,10,9,16);\r
+aWE("tupl",9);\r
+aWE("two",14,4,11,12,13,10,9);\r
+aWE("typ",15,4,5,11,12,10,9,16);\r
+aWE("typeofshap",5);\r
+aWE("underly",12);\r
+aWE("up",1,6,11,10);\r
+aWE("updat",3);\r
+aWE("us",14,2,15,3,4,6,7,5,12,13,10,9,16);\r
+aWE("useful",16);\r
+aWE("v1",14);\r
+aWE("v2",14);\r
+aWE("v3",14);\r
+aWE("v4",14);\r
+aWE("val",12);\r
+aWE("valid",9);\r
+aWE("validity",9);\r
+aWE("valu",1,15,3,7,11,12,13,10,9);\r
+aWE("variou",12);\r
+aWE("vector",15,3,7,11,13);\r
+aWE("vertex",3,7,5,11,12,13,9);\r
+aWE("vertex1",5);\r
+aWE("vertex2",5);\r
+aWE("vertexmaxtol",9);\r
+aWE("vertexmintol",9);\r
+aWE("vertic",14,3,5,11,12,13);\r
+aWE("via",14,15,13,16);\r
+aWE("view",1,3,6,12,9,16);\r
+aWE("viewer",6);\r
+aWE("visibility",6);\r
+aWE("visualization",1,6);\r
+aWE("volum",9);\r
+aWE("vtk",6);\r
+aWE("vx",15);\r
+aWE("wantplanarfac",5);\r
+aWE("wat",10);\r
+aWE("waterdensity",10);\r
+aWE("weight",10);\r
+aWE("whati",9);\r
+aWE("wheth",9);\r
+aWE("whil",12);\r
+aWE("whos",5,9);\r
+aWE("wid",2);\r
+aWE("will",3,8,12,13,10);\r
+aWE("wir",14,7,5,12);\r
+aWE("wirefram",1);\r
+aWE("wish",8);\r
+aWE("within",1,12);\r
+aWE("work",15,3,6,12,16);\r
+aWE("x",15,3,9);\r
+aWE("x1",11);\r
+aWE("x2",11);\r
+aWE("xdx",3);\r
+aWE("xdy",3);\r
+aWE("xdz",3);\r
+aWE("xmax",9);\r
+aWE("xmin",9);\r
+aWE("xoy",15);\r
+aWE("xyz",3);\r
+aWE("y",15,3,9);\r
+aWE("y1",11);\r
+aWE("y2",11);\r
+aWE("ydx",3);\r
+aWE("ydy",3);\r
+aWE("ydz",3);\r
+aWE("ymax",9);\r
+aWE("ymin",9);\r
+aWE("your",8,12,9,16);\r
+aWE("z",3,10,9);\r
+aWE("z1",11);\r
+aWE("z2",11);\r
+aWE("zmax",9);\r
+aWE("zmin",9);\r
\r
//-->\r
</script>\r
\r
<nobr><a name="bm_{"></a><a name="subkey_{D"></a>1d <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><nobr><a name="bms_{S"></a><a name="subkey_{S"></a>1st <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>5</b></a> </nobr><br><nobr><a name="bms_{D"></a><a name="subkey_{D"></a>2d <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>6</b></a> </nobr><br><nobr><a name="bms_{N"></a><a name="subkey_{N"></a>2nd <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>5</b></a> </nobr><br><a name="bms_{S"></a><a name="subkey_{S"></a><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2st</b></a> <br><nobr><a name="bms_{D"></a><a name="subkey_{D"></a>3d <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>9</b></a> </nobr><br><nobr><a name="bms_{R"></a><a name="subkey_{R"></a>3rd <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><a name="bms_{S"></a><a name="subkey_{S"></a><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>3st</b></a> <br>\r
<br><br>\r
-<a name="bm_A"></a><a name="subkey_AB"></a><a href="../sketcher.htm"><b>able</b></a> <br><a href="../sketcher.htm"><b>absolute</b></a> <br><a name="bms_AC"></a><a name="subkey_AC"></a><a href="../files/salome2_sp3_repairgui_functions.htm"><b>accordance</b></a> <br><nobr>according <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>achieve</b></a> <br><a name="bms_AD"></a><a name="subkey_AD"></a><a href="../files/salome2_sp3_repairgui_functions.htm"><b>add</b></a> <br><nobr>added <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../working_with_groups.htm"><b>2</b></a> </nobr><br><a href="../working_with_groups.htm"><b>addobject</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>adjustment</b></a> <br><nobr>advanced <a href="../files/salome2_sp3_generationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>2</b></a> </nobr><br><a name="bms_AI"></a><a name="subkey_AI"></a><a href="../files/salome2_sp3_operationgui_functions.htm"><b>aimed</b></a> <br><a name="bms_AL"></a><a name="subkey_AL"></a><a href="../files/salome2_sp3_operationgui_functions.htm"><b>algorithm</b></a> <br><nobr>allowing <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>2</b></a> </nobr><br><nobr>allows <a href="../sketcher.htm"><b>1</b></a> <a href="../newentity_blocks.htm"><b>2</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>4</b></a> <a href="../working_with_groups.htm"><b>5</b></a> </nobr><br><nobr>along <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>3</b></a> </nobr><br><nobr><a name="bms_AN"></a><a name="subkey_AN"></a>angle <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>4</b></a> </nobr><br><a href="../files/salome2_sp3_booleangui_functions.htm"><b>another</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>any</b></a> <br><a name="bms_AP"></a><a name="subkey_AP"></a><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>applicable</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>applied</b></a> <br><nobr>apply <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>applying</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>approximation</b></a> <br><nobr><a name="bms_AR"></a><a name="subkey_AR"></a>arc <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>archimede</b></a> <br><a href="../files/salome2_sp3_booleangui_functions.htm"><b>argument</b></a> <br><nobr>arguments <a href="../sketcher.htm"><b>1</b></a> <a href="../newentity_blocks.htm"><b>2</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>9</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>10</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>11</b></a> <a href="../changing_displaying_parameters.htm"><b>12</b></a> <a href="../working_with_groups.htm"><b>13</b></a> </nobr><br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>around</b></a> <br><a name="bms_AS"></a><a name="subkey_AS"></a><a href="../files/salome2_sp3_displaygui_functions.htm"><b>associated</b></a> <br><a name="bms_AT"></a><a name="subkey_AT"></a><a href="../files/salome2_sp3_displaygui_functions.htm"><b>attributes</b></a> <br><nobr><a name="bms_AU"></a><a name="subkey_AU"></a>automatically <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><nobr><a name="bms_AV"></a><a name="subkey_AV"></a>available <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>2</b></a> </nobr><br><a name="bms_AX"></a><a name="subkey_AX"></a><a href="../files/salome2_sp3_basicgui_functions.htm"><b>axes</b></a> <br><nobr>axis <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>5</b></a> </nobr><br>\r
+<a name="bm_A"></a><a name="subkey_AB"></a><a href="../sketcher.htm"><b>able</b></a> <br><a href="../sketcher.htm"><b>absolute</b></a> <br><a name="bms_AC"></a><a name="subkey_AC"></a><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>accessible</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>accordance</b></a> <br><nobr>according <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>achieve</b></a> <br><a name="bms_AD"></a><a name="subkey_AD"></a><a href="../files/salome2_sp3_repairgui_functions.htm"><b>add</b></a> <br><nobr>added <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../working_with_groups.htm"><b>2</b></a> </nobr><br><a href="../working_with_groups.htm"><b>addobject</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>adjustment</b></a> <br><nobr>advanced <a href="../files/salome2_sp3_generationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>2</b></a> </nobr><br><a name="bms_AI"></a><a name="subkey_AI"></a><a href="../files/salome2_sp3_operationgui_functions.htm"><b>aimed</b></a> <br><a name="bms_AL"></a><a name="subkey_AL"></a><a href="../files/salome2_sp3_operationgui_functions.htm"><b>algorithm</b></a> <br><nobr>allowing <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>2</b></a> </nobr><br><nobr>allows <a href="../sketcher.htm"><b>1</b></a> <a href="../newentity_blocks.htm"><b>2</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>4</b></a> <a href="../working_with_groups.htm"><b>5</b></a> </nobr><br><nobr>along <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>3</b></a> </nobr><br><nobr><a name="bms_AN"></a><a name="subkey_AN"></a>angle <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>4</b></a> </nobr><br><a href="../files/salome2_sp3_booleangui_functions.htm"><b>another</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>any</b></a> <br><a name="bms_AP"></a><a name="subkey_AP"></a><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>applicable</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>applied</b></a> <br><nobr>apply <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>applying</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>approximation</b></a> <br><nobr><a name="bms_AR"></a><a name="subkey_AR"></a>arc <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>archimede</b></a> <br><a href="../files/salome2_sp3_booleangui_functions.htm"><b>argument</b></a> <br><nobr>arguments <a href="../sketcher.htm"><b>1</b></a> <a href="../newentity_blocks.htm"><b>2</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>9</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>10</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>11</b></a> <a href="../changing_displaying_parameters.htm"><b>12</b></a> <a href="../working_with_groups.htm"><b>13</b></a> </nobr><br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>around</b></a> <br><a name="bms_AS"></a><a name="subkey_AS"></a><a href="../files/salome2_sp3_displaygui_functions.htm"><b>associated</b></a> <br><a name="bms_AT"></a><a name="subkey_AT"></a><a href="../files/salome2_sp3_displaygui_functions.htm"><b>attributes</b></a> <br><nobr><a name="bms_AU"></a><a name="subkey_AU"></a>automatically <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><nobr><a name="bms_AV"></a><a name="subkey_AV"></a>available <a href="../sketcher.htm"><b>1</b></a> <a href="../newentity_blocks.htm"><b>2</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>4</b></a> <a href="../working_with_groups.htm"><b>5</b></a> </nobr><br><a name="bms_AX"></a><a name="subkey_AX"></a><a href="../files/salome2_sp3_basicgui_functions.htm"><b>axes</b></a> <br><nobr>axis <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>5</b></a> </nobr><br>\r
<br><br>\r
-<a name="bm_B"></a><a name="subkey_B{"></a><a href="../files/salome2_sp3_basicgui_functions.htm"><b>b</b></a> <br><nobr><a name="bms_BA"></a><a name="subkey_BA"></a>base <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>based</b></a> <br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>baseshape</b></a> <br><nobr>basic <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>5</b></a> <a href="../files/introduction_to_geom.htm"><b>6</b></a> </nobr><br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>basicproperties</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>basing</b></a> <br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>basis</b></a> <br><nobr><a name="bms_BE"></a><a name="subkey_BE"></a>before <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> </nobr><br><a href="../newentity_blocks.htm"><b>below</b></a> <br><nobr>bezier <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><nobr><a name="bms_BL"></a><a name="subkey_BL"></a>block <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> </nobr><br><nobr>blocks <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../blocks.htm"><b>3</b></a> </nobr><br><nobr><a name="bms_BO"></a><a name="subkey_BO"></a>boolean <a href="../files/salome2_sp3_measuregui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>3</b></a> <a href="../files/introduction_to_geom.htm"><b>4</b></a> </nobr><br><a href="../files/salome2_sp3_displaygui_functions.htm"><b>both</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>boundaries</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>boundary</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>bounding</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>boundingbox</b></a> <br><nobr>box <a href="../sketcher.htm"><b>1</b></a> <a href="../newentity_blocks.htm"><b>2</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>9</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>10</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>11</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>12</b></a> <a href="../changing_displaying_parameters.htm"><b>13</b></a> <a href="../working_with_groups.htm"><b>14</b></a> </nobr><br><nobr><a name="bms_BR"></a><a name="subkey_BR"></a>brep <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>1</b></a> <a href="../files/introduction_to_geom.htm"><b>2</b></a> </nobr><br><nobr>browser <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> </nobr><br><a name="bms_BS"></a><a name="subkey_BS"></a><a href="../files/salome2_sp3_repairgui_functions.htm"><b>bspline</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>bsplinerestriction</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>bsplines</b></a> <br><nobr><a name="bms_BU"></a><a name="subkey_BU"></a>build <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>2</b></a> </nobr><br><nobr>building <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>2</b></a> <a href="../files/introduction_to_geom.htm"><b>3</b></a> <a href="../blocks.htm"><b>4</b></a> </nobr><br><nobr>builds <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> </nobr><br><nobr>button <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><a name="bms_BY"></a><a name="subkey_BY"></a><a href="../newentity_blocks.htm"><b>bypassing</b></a> <br>\r
+<a name="bm_B"></a><a name="subkey_B{"></a><a href="../files/salome2_sp3_basicgui_functions.htm"><b>b</b></a> <br><a name="bms_BA"></a><a name="subkey_BA"></a><a href="../working_with_groups.htm"><b>background</b></a> <br><nobr>base <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>based</b></a> <br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>baseshape</b></a> <br><nobr>basic <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>5</b></a> <a href="../files/introduction_to_geom.htm"><b>6</b></a> </nobr><br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>basicproperties</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>basing</b></a> <br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>basis</b></a> <br><nobr><a name="bms_BE"></a><a name="subkey_BE"></a>before <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> </nobr><br><a href="../newentity_blocks.htm"><b>below</b></a> <br><nobr>bezier <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><nobr><a name="bms_BL"></a><a name="subkey_BL"></a>block <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>3</b></a> </nobr><br><nobr>blocks <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>3</b></a> <a href="../blocks.htm"><b>4</b></a> </nobr><br><nobr><a name="bms_BO"></a><a name="subkey_BO"></a>boolean <a href="../files/salome2_sp3_measuregui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>3</b></a> <a href="../files/introduction_to_geom.htm"><b>4</b></a> </nobr><br><a href="../files/salome2_sp3_displaygui_functions.htm"><b>both</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>boundaries</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>boundary</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>bounding</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>boundingbox</b></a> <br><nobr>box <a href="../sketcher.htm"><b>1</b></a> <a href="../newentity_blocks.htm"><b>2</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>9</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>10</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>11</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>12</b></a> <a href="../changing_displaying_parameters.htm"><b>13</b></a> <a href="../working_with_groups.htm"><b>14</b></a> </nobr><br><a name="bms_BR"></a><a name="subkey_BR"></a><a href="../files/salome2_sp3_operationgui_functions.htm"><b>breaks</b></a> <br><nobr>brep <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>1</b></a> <a href="../files/introduction_to_geom.htm"><b>2</b></a> </nobr><br><nobr>browser <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> </nobr><br><a name="bms_BS"></a><a name="subkey_BS"></a><a href="../files/salome2_sp3_repairgui_functions.htm"><b>bspline</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>bsplinerestriction</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>bsplines</b></a> <br><nobr><a name="bms_BU"></a><a name="subkey_BU"></a>build <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>3</b></a> </nobr><br><nobr>building <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>2</b></a> <a href="../files/introduction_to_geom.htm"><b>3</b></a> <a href="../blocks.htm"><b>4</b></a> </nobr><br><nobr>builds <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> </nobr><br><nobr>button <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><a name="bms_BY"></a><a name="subkey_BY"></a><a href="../newentity_blocks.htm"><b>bypassing</b></a> <br>\r
<br><br>\r
-<a name="bm_C"></a><a name="subkey_CA"></a><a href="../files/introduction_to_geom.htm"><b>cad</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>camera</b></a> <br><nobr>case <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> </nobr><br><nobr><a name="bms_CE"></a><a name="subkey_CE"></a>center <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>5</b></a> </nobr><br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>centerofscale</b></a> <br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>central</b></a> <br><a name="bms_CH"></a><a name="subkey_CH"></a><a href="../files/salome2_sp3_operationgui_functions.htm"><b>chamfer</b></a> <br><a href="../changing_displaying_parameters.htm"><b>change</b></a> <br><a href="../changing_displaying_parameters.htm"><b>changes</b></a> <br><a href="../changing_displaying_parameters.htm"><b>changing</b></a> <br><nobr>check <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>2</b></a> </nobr><br><nobr>checkbox <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> </nobr><br><nobr>checked <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>2</b></a> </nobr><br><nobr>checking <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>checkshape</b></a> <br><nobr>choose <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>3</b></a> </nobr><br><a name="bms_CI"></a><a name="subkey_CI"></a><a href="../files/salome2_sp3_basicgui_functions.htm"><b>circle</b></a> <br><nobr><a name="bms_CL"></a><a name="subkey_CL"></a>click <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>2</b></a> <a href="../changing_displaying_parameters.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>close</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>closecontour</b></a> <br><nobr>closed <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>closedwires</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>closes</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>closure</b></a> <br><a name="bms_CO"></a><a name="subkey_CO"></a><a href="../files/salome2_sp3_repairgui_functions.htm"><b>coincident</b></a> <br><a href="../changing_displaying_parameters.htm"><b>color</b></a> <br><nobr>command <a href="../sketcher.htm"><b>1</b></a> <a href="../newentity_blocks.htm"><b>2</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>9</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>10</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>11</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>12</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>13</b></a> <a href="../changing_displaying_parameters.htm"><b>14</b></a> <a href="../working_with_groups.htm"><b>15</b></a> </nobr><br><nobr>common <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>2</b></a> </nobr><br><nobr>complex <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>3</b></a> <a href="../files/introduction_to_geom.htm"><b>4</b></a> </nobr><br><nobr>components <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> </nobr><br><a href="../newentity_blocks.htm"><b>composed</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>composing</b></a> <br><nobr>compound <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>6</b></a> </nobr><br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>compsolid</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>compute</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>computed</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>concerning</b></a> <br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>cone</b></a> <br><a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>confirm</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>conical</b></a> <br><nobr>connected <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>considered</b></a> <br><a href="../newentity_blocks.htm"><b>constraints</b></a> <br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>construct</b></a> <br><nobr>constructed <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>constructing</b></a> <br><nobr>construction <a href="../files/salome2_sp3_booleangui_functions.htm"><b>1</b></a> <a href="../files/introduction_to_geom.htm"><b>2</b></a> </nobr><br><nobr>constructor <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>5</b></a> </nobr><br><a href="../sketcher.htm"><b>containing</b></a> <br><nobr>contains <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>contents</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>continuities</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>continuity</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>continuity2d</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>continuity3d</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>contour</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>conversion</b></a> <br><nobr>coordinate <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> </nobr><br><nobr>coordinates <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>5</b></a> </nobr><br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>copy</b></a> <br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>corners</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>correction</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>correspond</b></a> <br><nobr>corresponding <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><nobr>correspondingly <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>5</b></a> </nobr><br><a href="../sketcher.htm"><b>coupled</b></a> <br><br><br></p><p class="ftsbody" align="center"><a href="whlstf1.htm" target="_self" title="previous search group"><b>>></b></a>\r
+<a name="bm_C"></a><a name="subkey_CA"></a><a href="../files/introduction_to_geom.htm"><b>cad</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>camera</b></a> <br><nobr>case <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> </nobr><br><nobr><a name="bms_CE"></a><a name="subkey_CE"></a>center <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>5</b></a> </nobr><br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>centerofscale</b></a> <br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>central</b></a> <br><a name="bms_CH"></a><a name="subkey_CH"></a><a href="../files/salome2_sp3_operationgui_functions.htm"><b>chamfer</b></a> <br><a href="../changing_displaying_parameters.htm"><b>change</b></a> <br><a href="../changing_displaying_parameters.htm"><b>changes</b></a> <br><a href="../changing_displaying_parameters.htm"><b>changing</b></a> <br><nobr>check <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>2</b></a> </nobr><br><nobr>checkbox <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>checkcompoundofblocks</b></a> <br><nobr>checked <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>2</b></a> </nobr><br><nobr>checking <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>checks</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>checkshape</b></a> <br><nobr>choose <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>3</b></a> </nobr><br><a name="bms_CI"></a><a name="subkey_CI"></a><a href="../files/salome2_sp3_basicgui_functions.htm"><b>circle</b></a> <br><nobr><a name="bms_CL"></a><a name="subkey_CL"></a>click <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>2</b></a> <a href="../changing_displaying_parameters.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>close</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>closecontour</b></a> <br><nobr>closed <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>closedwires</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>closes</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>closure</b></a> <br><a name="bms_CO"></a><a name="subkey_CO"></a><a href="../files/salome2_sp3_repairgui_functions.htm"><b>coincident</b></a> <br><a href="../changing_displaying_parameters.htm"><b>color</b></a> <br><nobr>command <a href="../sketcher.htm"><b>1</b></a> <a href="../newentity_blocks.htm"><b>2</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>9</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>10</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>11</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>12</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>13</b></a> <a href="../changing_displaying_parameters.htm"><b>14</b></a> <a href="../working_with_groups.htm"><b>15</b></a> </nobr><br><nobr>common <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>2</b></a> </nobr><br><nobr>complex <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>3</b></a> <a href="../files/introduction_to_geom.htm"><b>4</b></a> </nobr><br><nobr>components <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> </nobr><br><a href="../newentity_blocks.htm"><b>composed</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>composing</b></a> <br><nobr>compound <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>7</b></a> </nobr><br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>compsolid</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>compute</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>computed</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>concerning</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>conditions</b></a> <br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>cone</b></a> <br><a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>confirm</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>conical</b></a> <br><nobr>connected <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>connection</b></a> <br><nobr>considered <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>console</b></a> <br><a href="../newentity_blocks.htm"><b>constraints</b></a> <br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>construct</b></a> <br><nobr>constructed <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>constructing</b></a> <br><nobr>construction <a href="../files/salome2_sp3_booleangui_functions.htm"><b>1</b></a> <a href="../files/introduction_to_geom.htm"><b>2</b></a> </nobr><br><nobr>constructor <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>5</b></a> </nobr><br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>contain</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>contained</b></a> <br><a href="../sketcher.htm"><b>containing</b></a> <br><nobr>contains <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>contents</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>continuities</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>continuity</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>continuity2d</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>continuity3d</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>contour</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>conversion</b></a> <br><nobr>coordinate <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> </nobr><br><nobr>coordinates <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>5</b></a> </nobr><br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>copy</b></a> <br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>corners</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>correction</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>correspond</b></a> <br><nobr>corresponding <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><nobr>correspondingly <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>5</b></a> </nobr><br><a href="../sketcher.htm"><b>coupled</b></a> <br><br><br></p><p class="ftsbody" align="center"><a href="whlstf1.htm" target="_self" title="previous search group"><b>>></b></a>\r
\r
</body>\r
\r
<body marginheight="0" marginwidth="0" bgproperties="fixed">\r
<p class="ftsbody" align="center"><a href="whlstf0.htm" target="_self" title="previous search group"><b><<</b></a><br><br></p>\r
<p class="ftsbody" >\r
-<nobr><a name="bms_CR"></a><a name="subkey_CR"></a>create <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>7</b></a> <a href="../working_with_groups.htm"><b>8</b></a> </nobr><br><nobr>created <a href="../sketcher.htm"><b>1</b></a> <a href="../newentity_blocks.htm"><b>2</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>6</b></a> <a href="../working_with_groups.htm"><b>7</b></a> </nobr><br><a href="../working_with_groups.htm"><b>creategroup</b></a> <br><nobr>creates <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>8</b></a> <a href="../working_with_groups.htm"><b>9</b></a> </nobr><br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>creating</b></a> <br><nobr>creation <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>3</b></a> <a href="../files/introduction_to_geom.htm"><b>4</b></a> </nobr><br><nobr><a name="bms_CU"></a><a name="subkey_CU"></a>current <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>2</b></a> </nobr><br><nobr>curve <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>curve2dmode</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>curve3dmode</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>curvecontinuity</b></a> <br><nobr>curves <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>curving</b></a> <br><a href="../files/salome2_sp3_booleangui_functions.htm"><b>cut</b></a> <br><a href="../files/salome2_sp3_booleangui_functions.htm"><b>cuts</b></a> <br><nobr>cutting <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> </nobr><br><a name="bms_CY"></a><a name="subkey_CY"></a><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>cylinder</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>cylindrical</b></a> <br>\r
+<nobr><a name="bms_CR"></a><a name="subkey_CR"></a>create <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>7</b></a> <a href="../working_with_groups.htm"><b>8</b></a> </nobr><br><nobr>created <a href="../sketcher.htm"><b>1</b></a> <a href="../newentity_blocks.htm"><b>2</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>6</b></a> <a href="../working_with_groups.htm"><b>7</b></a> </nobr><br><a href="../working_with_groups.htm"><b>creategroup</b></a> <br><nobr>creates <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>8</b></a> <a href="../working_with_groups.htm"><b>9</b></a> </nobr><br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>creating</b></a> <br><nobr>creation <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>3</b></a> <a href="../files/introduction_to_geom.htm"><b>4</b></a> <a href="../working_with_groups.htm"><b>5</b></a> </nobr><br><nobr><a name="bms_CU"></a><a name="subkey_CU"></a>current <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>2</b></a> </nobr><br><nobr>curve <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>curve2dmode</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>curve3dmode</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>curvecontinuity</b></a> <br><nobr>curves <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>curving</b></a> <br><a href="../files/salome2_sp3_booleangui_functions.htm"><b>cut</b></a> <br><a href="../files/salome2_sp3_booleangui_functions.htm"><b>cuts</b></a> <br><nobr>cutting <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> </nobr><br><a name="bms_CY"></a><a name="subkey_CY"></a><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>cylinder</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>cylindrical</b></a> <br>\r
<br><br>\r
-<a name="bm_D"></a><a name="subkey_D{"></a><a href="../files/salome2_sp3_operationgui_functions.htm"><b>d1</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>d2</b></a> <br><a name="bms_DA"></a><a name="subkey_DA"></a><a href="../files/salome2_sp3_measuregui_functions.htm"><b>data</b></a> <br><a name="bms_DE"></a><a name="subkey_DE"></a><a href="../sketcher.htm"><b>default</b></a> <br><nobr>define <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> </nobr><br><a href="../sketcher.htm"><b>defined</b></a> <br><nobr>defines <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><nobr>defining <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> </nobr><br><nobr>definite <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>2</b></a> </nobr><br><nobr>definition <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>deflection</b></a> <br><nobr>degree <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>2</b></a> </nobr><br><a href="../sketcher.htm"><b>degrees</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>deleted</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>density</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>depending</b></a> <br><a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>describes</b></a> <br><nobr>description <a href="../sketcher.htm"><b>1</b></a> <a href="../newentity_blocks.htm"><b>2</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>9</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>10</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>11</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>12</b></a> <a href="../changing_displaying_parameters.htm"><b>13</b></a> <a href="../working_with_groups.htm"><b>14</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>desired</b></a> <br><a href="../sketcher.htm"><b>destination</b></a> <br><a href="../files/introduction_to_geom.htm"><b>destined</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>detect</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>detection</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>detects</b></a> <br><a name="bms_DI"></a><a name="subkey_DI"></a><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>diagonal</b></a> <br><nobr>dialog <a href="../sketcher.htm"><b>1</b></a> <a href="../newentity_blocks.htm"><b>2</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>9</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>10</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>11</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>12</b></a> <a href="../changing_displaying_parameters.htm"><b>13</b></a> <a href="../working_with_groups.htm"><b>14</b></a> </nobr><br><a href="../files/salome2_sp3_displaygui_functions.htm"><b>differ</b></a> <br><nobr>different <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>3</b></a> <a href="../changing_displaying_parameters.htm"><b>4</b></a> </nobr><br><nobr>dimension <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>2</b></a> </nobr><br><nobr>dimensions <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>dir</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>dir1</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>dir2</b></a> <br><nobr>direction <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>6</b></a> </nobr><br><nobr>directions <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>dirface1v</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>dirfaceid1</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>dirfaceid1u</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>dirfaceid1v</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>dirfaceid2</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>dirfaceid2u</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>dirfaceid2v</b></a> <br><nobr>display <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>3</b></a> <a href="../changing_displaying_parameters.htm"><b>4</b></a> </nobr><br><a href="../files/salome2_sp3_displaygui_functions.htm"><b>displayall</b></a> <br><nobr>displayed <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> <a href="../changing_displaying_parameters.htm"><b>4</b></a> </nobr><br><nobr>displaying <a href="../files/salome2_sp3_displaygui_functions.htm"><b>1</b></a> <a href="../changing_displaying_parameters.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_displaygui_functions.htm"><b>displayonly</b></a> <br><nobr>displays <a href="../files/salome2_sp3_measuregui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>2</b></a> </nobr><br><nobr>distance <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>divided</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>divideedge</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>dividing</b></a> <br><nobr><a name="bms_DO"></a><a name="subkey_DO"></a>done <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> </nobr><br><a href="../changing_displaying_parameters.htm"><b>double</b></a> <br><a href="../sketcher.htm"><b>doubles</b></a> <br><a name="bms_DR"></a><a name="subkey_DR"></a><a href="../files/salome2_sp3_repairgui_functions.htm"><b>dropsmalledges</b></a> <br><nobr><a name="bms_DX"></a><a name="subkey_DX"></a>dx <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> </nobr><br><nobr><a name="bms_DY"></a><a name="subkey_DY"></a>dy <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> </nobr><br><a name="bms_DZ"></a><a name="subkey_DZ"></a><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>dz</b></a> <br>\r
+<a name="bm_D"></a><a name="subkey_D{"></a><a href="../files/salome2_sp3_operationgui_functions.htm"><b>d1</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>d2</b></a> <br><a name="bms_DA"></a><a name="subkey_DA"></a><a href="../files/salome2_sp3_measuregui_functions.htm"><b>data</b></a> <br><nobr><a name="bms_DE"></a><a name="subkey_DE"></a>default <a href="../sketcher.htm"><b>1</b></a> <a href="../working_with_groups.htm"><b>2</b></a> </nobr><br><nobr>define <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> </nobr><br><a href="../sketcher.htm"><b>defined</b></a> <br><nobr>defines <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><nobr>defining <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> </nobr><br><nobr>definite <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>2</b></a> </nobr><br><nobr>definition <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>deflection</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>degenerated</b></a> <br><nobr>degree <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>2</b></a> </nobr><br><a href="../sketcher.htm"><b>degrees</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>deleted</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>density</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>depending</b></a> <br><a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>describes</b></a> <br><nobr>description <a href="../sketcher.htm"><b>1</b></a> <a href="../newentity_blocks.htm"><b>2</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>9</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>10</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>11</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>12</b></a> <a href="../changing_displaying_parameters.htm"><b>13</b></a> <a href="../working_with_groups.htm"><b>14</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>desired</b></a> <br><a href="../sketcher.htm"><b>destination</b></a> <br><a href="../files/introduction_to_geom.htm"><b>destined</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>detect</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>detection</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>detects</b></a> <br><a name="bms_DI"></a><a name="subkey_DI"></a><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>diagonal</b></a> <br><nobr>dialog <a href="../sketcher.htm"><b>1</b></a> <a href="../newentity_blocks.htm"><b>2</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>9</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>10</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>11</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>12</b></a> <a href="../changing_displaying_parameters.htm"><b>13</b></a> <a href="../working_with_groups.htm"><b>14</b></a> </nobr><br><a href="../files/salome2_sp3_displaygui_functions.htm"><b>differ</b></a> <br><nobr>different <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>3</b></a> <a href="../changing_displaying_parameters.htm"><b>4</b></a> </nobr><br><nobr>dimension <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>2</b></a> </nobr><br><nobr>dimensions <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>dir</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>dir1</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>dir2</b></a> <br><nobr>direction <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>6</b></a> </nobr><br><nobr>directions <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>dirface1v</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>dirfaceid1</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>dirfaceid1u</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>dirfaceid1v</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>dirfaceid2</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>dirfaceid2u</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>dirfaceid2v</b></a> <br><nobr>display <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>3</b></a> <a href="../changing_displaying_parameters.htm"><b>4</b></a> </nobr><br><a href="../files/salome2_sp3_displaygui_functions.htm"><b>displayall</b></a> <br><nobr>displayed <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> <a href="../changing_displaying_parameters.htm"><b>4</b></a> </nobr><br><nobr>displaying <a href="../files/salome2_sp3_displaygui_functions.htm"><b>1</b></a> <a href="../changing_displaying_parameters.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_displaygui_functions.htm"><b>displayonly</b></a> <br><nobr>displays <a href="../files/salome2_sp3_measuregui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>2</b></a> </nobr><br><nobr>distance <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>divided</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>divideedge</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>dividing</b></a> <br><nobr><a name="bms_DO"></a><a name="subkey_DO"></a>done <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> </nobr><br><a href="../changing_displaying_parameters.htm"><b>double</b></a> <br><a href="../sketcher.htm"><b>doubles</b></a> <br><a name="bms_DR"></a><a name="subkey_DR"></a><a href="../files/salome2_sp3_repairgui_functions.htm"><b>dropsmalledges</b></a> <br><nobr><a name="bms_DX"></a><a name="subkey_DX"></a>dx <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> </nobr><br><nobr><a name="bms_DY"></a><a name="subkey_DY"></a>dy <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> </nobr><br><a name="bms_DZ"></a><a name="subkey_DZ"></a><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>dz</b></a> <br>\r
<br><br>\r
-<a name="bm_E"></a><a name="subkey_E{"></a><a href="../files/salome2_sp3_displaygui_functions.htm"><b>e</b></a> <br><a href="../newentity_blocks.htm"><b>e1</b></a> <br><a href="../newentity_blocks.htm"><b>e2</b></a> <br><a href="../newentity_blocks.htm"><b>e3</b></a> <br><a href="../newentity_blocks.htm"><b>e4</b></a> <br><nobr><a name="bms_ED"></a><a name="subkey_ED"></a>edge <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>5</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>edgeid</b></a> <br><nobr>edges <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>5</b></a> </nobr><br><a href="../working_with_groups.htm"><b>edit</b></a> <br><a name="bms_EG"></a><a name="subkey_EG"></a><a href="../files/salome2_sp3_measuregui_functions.htm"><b>egdemaxtol</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>egdemintol</b></a> <br><a name="bms_EI"></a><a name="subkey_EI"></a><a href="../newentity_blocks.htm"><b>either</b></a> <br><nobr><a name="bms_EL"></a><a name="subkey_EL"></a>element <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>4</b></a> </nobr><br><a href="../newentity_blocks.htm"><b>elementary</b></a> <br><nobr>elements <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>6</b></a> </nobr><br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>ellipse</b></a> <br><a name="bms_EM"></a><a name="subkey_EM"></a><a href="../files/salome2_sp3_repairgui_functions.htm"><b>empty</b></a> <br><nobr><a name="bms_EN"></a><a name="subkey_EN"></a>end <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>ending</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>ends</b></a> <br><nobr>enter <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><nobr>entity <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>5</b></a> <a href="../working_with_groups.htm"><b>6</b></a> </nobr><br><a name="bms_EQ"></a><a name="subkey_EQ"></a><a href="../sketcher.htm"><b>equal</b></a> <br><a name="bms_ER"></a><a name="subkey_ER"></a><a href="../files/salome2_sp3_displaygui_functions.htm"><b>erase</b></a> <br><a href="../files/salome2_sp3_displaygui_functions.htm"><b>eraseall</b></a> <br><a href="../files/salome2_sp3_displaygui_functions.htm"><b>eraseonly</b></a> <br><a href="../files/salome2_sp3_displaygui_functions.htm"><b>erases</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>error</b></a> <br><nobr><a name="bms_ET"></a><a name="subkey_ET"></a>etc <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>2</b></a> </nobr><br><nobr><a name="bms_EX"></a><a name="subkey_EX"></a>example <a href="../sketcher.htm"><b>1</b></a> <a href="../newentity_blocks.htm"><b>2</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>9</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>10</b></a> <a href="../changing_displaying_parameters.htm"><b>11</b></a> <a href="../working_with_groups.htm"><b>12</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>except</b></a> <br><nobr>existing <a href="../sketcher.htm"><b>1</b></a> <a href="../working_with_groups.htm"><b>2</b></a> </nobr><br><nobr>explode <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>2</b></a> <a href="../blocks.htm"><b>3</b></a> </nobr><br><nobr>exploded <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>2</b></a> </nobr><br><nobr>export <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>1</b></a> <a href="../files/introduction_to_geom.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>exportation</b></a> <br><a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>exported</b></a> <br><a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>exporting</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>extracted</b></a> <br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>extruded</b></a> <br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>extrusion</b></a> <br>\r
+<a name="bm_E"></a><a name="subkey_E{"></a><a href="../files/salome2_sp3_displaygui_functions.htm"><b>e</b></a> <br><a href="../newentity_blocks.htm"><b>e1</b></a> <br><a href="../newentity_blocks.htm"><b>e2</b></a> <br><a href="../newentity_blocks.htm"><b>e3</b></a> <br><a href="../newentity_blocks.htm"><b>e4</b></a> <br><a name="bms_EA"></a><a name="subkey_EA"></a><a href="../working_with_groups.htm"><b>easier</b></a> <br><nobr><a name="bms_ED"></a><a name="subkey_ED"></a>edge <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>6</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>edgeid</b></a> <br><nobr>edges <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>6</b></a> </nobr><br><a href="../working_with_groups.htm"><b>edit</b></a> <br><a href="../working_with_groups.htm"><b>editing</b></a> <br><a name="bms_EG"></a><a name="subkey_EG"></a><a href="../files/salome2_sp3_measuregui_functions.htm"><b>egdemaxtol</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>egdemintol</b></a> <br><a name="bms_EI"></a><a name="subkey_EI"></a><a href="../newentity_blocks.htm"><b>either</b></a> <br><nobr><a name="bms_EL"></a><a name="subkey_EL"></a>element <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>5</b></a> </nobr><br><a href="../newentity_blocks.htm"><b>elementary</b></a> <br><nobr>elements <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>6</b></a> </nobr><br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>ellipse</b></a> <br><a name="bms_EM"></a><a name="subkey_EM"></a><a href="../files/salome2_sp3_repairgui_functions.htm"><b>empty</b></a> <br><a name="bms_EN"></a><a name="subkey_EN"></a><a href="../files/salome2_sp3_measuregui_functions.htm"><b>encountered</b></a> <br><nobr>end <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>ending</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>ends</b></a> <br><nobr>enter <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>entire</b></a> <br><nobr>entity <a href="../sketcher.htm"><b>1</b></a> <a href="../newentity_blocks.htm"><b>2</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>6</b></a> <a href="../working_with_groups.htm"><b>7</b></a> </nobr><br><a name="bms_EQ"></a><a name="subkey_EQ"></a><a href="../sketcher.htm"><b>equal</b></a> <br><a name="bms_ER"></a><a name="subkey_ER"></a><a href="../files/salome2_sp3_displaygui_functions.htm"><b>erase</b></a> <br><a href="../files/salome2_sp3_displaygui_functions.htm"><b>eraseall</b></a> <br><a href="../files/salome2_sp3_displaygui_functions.htm"><b>eraseonly</b></a> <br><a href="../files/salome2_sp3_displaygui_functions.htm"><b>erases</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>error</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>errors</b></a> <br><nobr><a name="bms_ET"></a><a name="subkey_ET"></a>etc <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>2</b></a> </nobr><br><nobr><a name="bms_EX"></a><a name="subkey_EX"></a>example <a href="../sketcher.htm"><b>1</b></a> <a href="../newentity_blocks.htm"><b>2</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>9</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>10</b></a> <a href="../changing_displaying_parameters.htm"><b>11</b></a> <a href="../working_with_groups.htm"><b>12</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>except</b></a> <br><nobr>existing <a href="../sketcher.htm"><b>1</b></a> <a href="../working_with_groups.htm"><b>2</b></a> </nobr><br><nobr>explode <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>2</b></a> <a href="../blocks.htm"><b>3</b></a> </nobr><br><nobr>exploded <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>2</b></a> </nobr><br><nobr>export <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>1</b></a> <a href="../files/introduction_to_geom.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>exportation</b></a> <br><a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>exported</b></a> <br><a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>exporting</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>extra</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>extracted</b></a> <br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>extruded</b></a> <br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>extrusion</b></a> <br>\r
<br><br>\r
-<a name="bm_F"></a><a name="subkey_F{"></a><a href="../newentity_blocks.htm"><b>f1</b></a> <br><a href="../newentity_blocks.htm"><b>f2</b></a> <br><a href="../newentity_blocks.htm"><b>f3</b></a> <br><a href="../newentity_blocks.htm"><b>f4</b></a> <br><a href="../newentity_blocks.htm"><b>f5</b></a> <br><a href="../newentity_blocks.htm"><b>f6</b></a> <br><nobr><a name="bms_FA"></a><a name="subkey_FA"></a>face <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>7</b></a> </nobr><br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>face1</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>face2</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>facemaxtol</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>facemintol</b></a> <br><nobr>faces <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>5</b></a> </nobr><br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>factor</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>false</b></a> <br><a name="bms_FI"></a><a name="subkey_FI"></a><a href="../files/salome2_sp3_basicgui_functions.htm"><b>fields</b></a> <br><a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>file</b></a> <br><a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>filename</b></a> <br><a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>files</b></a> <br><nobr>fill <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>filled</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>fillet</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>fillets</b></a> <br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>filling</b></a> <br><nobr>first <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>6</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>fix</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>fixfacesize</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>fixing</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>fixshape</b></a> <br><br><br></p><p class="ftsbody" align="center"><a href="whlstf2.htm" target="_self" title="previous search group"><b>>></b></a>\r
+<a name="bm_F"></a><a name="subkey_F{"></a><a href="../newentity_blocks.htm"><b>f1</b></a> <br><a href="../newentity_blocks.htm"><b>f2</b></a> <br><a href="../newentity_blocks.htm"><b>f3</b></a> <br><a href="../newentity_blocks.htm"><b>f4</b></a> <br><a href="../newentity_blocks.htm"><b>f5</b></a> <br><a href="../newentity_blocks.htm"><b>f6</b></a> <br><nobr><a name="bms_FA"></a><a name="subkey_FA"></a>face <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>8</b></a> </nobr><br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>face1</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>face2</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>facemaxtol</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>facemintol</b></a> <br><nobr>faces <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>6</b></a> </nobr><br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>factor</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>false</b></a> <br><br><br></p><p class="ftsbody" align="center"><a href="whlstf2.htm" target="_self" title="previous search group"><b>>></b></a>\r
\r
</body>\r
\r
<body marginheight="0" marginwidth="0" bgproperties="fixed">\r
<p class="ftsbody" align="center"><a href="whlstf1.htm" target="_self" title="previous search group"><b><<</b></a><br><br></p>\r
<p class="ftsbody" >\r
-<nobr><a name="bms_FO"></a><a name="subkey_FO"></a>following <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>4</b></a> </nobr><br><a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>format</b></a> <br><a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>formatname</b></a> <br><a href="../files/introduction_to_geom.htm"><b>formats</b></a> <br><a href="../newentity_blocks.htm"><b>four</b></a> <br><a name="bms_FR"></a><a name="subkey_FR"></a><a href="../files/salome2_sp3_repairgui_functions.htm"><b>free</b></a> <br><nobr><a name="bms_FU"></a><a name="subkey_FU"></a>functions <a href="../files/salome2_sp3_buildgui_functions.htm"><b>1</b></a> <a href="../files/introduction_to_geom.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_booleangui_functions.htm"><b>fuse</b></a> <br><a href="../files/salome2_sp3_booleangui_functions.htm"><b>fuses</b></a> <br>\r
+<a name="bms_FI"></a><a name="subkey_FI"></a><a href="../files/salome2_sp3_basicgui_functions.htm"><b>fields</b></a> <br><a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>file</b></a> <br><a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>filename</b></a> <br><a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>files</b></a> <br><nobr>fill <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>filled</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>fillet</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>fillets</b></a> <br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>filling</b></a> <br><nobr>first <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>6</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>fix</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>fixfacesize</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>fixing</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>fixshape</b></a> <br><a name="bms_FL"></a><a name="subkey_FL"></a><a href="../files/salome2_sp3_measuregui_functions.htm"><b>flag</b></a> <br><nobr><a name="bms_FO"></a><a name="subkey_FO"></a>following <a href="../files/salome2_sp3_measuregui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>4</b></a> </nobr><br><a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>format</b></a> <br><a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>formatname</b></a> <br><a href="../files/introduction_to_geom.htm"><b>formats</b></a> <br><a href="../newentity_blocks.htm"><b>four</b></a> <br><a name="bms_FR"></a><a name="subkey_FR"></a><a href="../files/salome2_sp3_repairgui_functions.htm"><b>free</b></a> <br><a name="bms_FU"></a><a name="subkey_FU"></a><a href="../newentity_blocks.htm"><b>functionalities</b></a> <br><nobr>functionality <a href="../sketcher.htm"><b>1</b></a> <a href="../working_with_groups.htm"><b>2</b></a> </nobr><br><nobr>functions <a href="../files/salome2_sp3_buildgui_functions.htm"><b>1</b></a> <a href="../files/introduction_to_geom.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_booleangui_functions.htm"><b>fuse</b></a> <br><a href="../files/salome2_sp3_booleangui_functions.htm"><b>fuses</b></a> <br>\r
<br><br>\r
-<a name="bm_G"></a><a name="subkey_GA"></a><a href="../files/salome2_sp3_repairgui_functions.htm"><b>gap</b></a> <br><a name="bms_GE"></a><a name="subkey_GE"></a><a href="../newentity_blocks.htm"><b>general</b></a> <br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>generating</b></a> <br><nobr>generation <a href="../files/salome2_sp3_generationgui_functions.htm"><b>1</b></a> <a href="../files/introduction_to_geom.htm"><b>2</b></a> </nobr><br><nobr>geom <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>9</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>10</b></a> <a href="../files/introduction_to_geom.htm"><b>11</b></a> <a href="../changing_displaying_parameters.htm"><b>12</b></a> </nobr><br><nobr>geom_object <a href="../sketcher.htm"><b>1</b></a> <a href="../newentity_blocks.htm"><b>2</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>9</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>10</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>11</b></a> <a href="../working_with_groups.htm"><b>12</b></a> </nobr><br><a href="../files/salome2_sp3_buildgui_functions.htm"><b>geom_objects</b></a> <br><a href="../newentity_blocks.htm"><b>geometric</b></a> <br><nobr>geometrical <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>9</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>10</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>11</b></a> <a href="../files/introduction_to_geom.htm"><b>12</b></a> <a href="../changing_displaying_parameters.htm"><b>13</b></a> <a href="../working_with_groups.htm"><b>14</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>geometry</b></a> <br><nobr>geompy <a href="../sketcher.htm"><b>1</b></a> <a href="../newentity_blocks.htm"><b>2</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>9</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>10</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>11</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>12</b></a> <a href="../working_with_groups.htm"><b>13</b></a> </nobr><br><a href="../files/salome2_sp3_buildgui_functions.htm"><b>get</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>getfreeboundary</b></a> <br><a href="../working_with_groups.htm"><b>getobjectids</b></a> <br><a href="../files/salome2_sp3_booleangui_functions.htm"><b>gets</b></a> <br><a href="../files/salome2_sp3_buildgui_functions.htm"><b>getsubshapeid</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>getting</b></a> <br><a name="bms_GG"></a><a name="subkey_GG"></a><a href="../changing_displaying_parameters.htm"><b>gg</b></a> <br><nobr><a name="bms_GI"></a><a name="subkey_GI"></a>given <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>5</b></a> </nobr><br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>gives</b></a> <br><nobr><a name="bms_GL"></a><a name="subkey_GL"></a>glue <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>glued</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>glues</b></a> <br><a name="bms_GR"></a><a name="subkey_GR"></a><a href="../files/salome2_sp3_displaygui_functions.htm"><b>graphic</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>gravity</b></a> <br><a href="../working_with_groups.htm"><b>group</b></a> <br><a href="../working_with_groups.htm"><b>groups</b></a> <br><a name="bms_GU"></a><a name="subkey_GU"></a><a href="../files/salome2_sp3_operationgui_functions.htm"><b>gui</b></a> <br>\r
+<a name="bm_G"></a><a name="subkey_GA"></a><a href="../files/salome2_sp3_repairgui_functions.htm"><b>gap</b></a> <br><a name="bms_GE"></a><a name="subkey_GE"></a><a href="../newentity_blocks.htm"><b>general</b></a> <br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>generating</b></a> <br><nobr>generation <a href="../files/salome2_sp3_generationgui_functions.htm"><b>1</b></a> <a href="../files/introduction_to_geom.htm"><b>2</b></a> </nobr><br><nobr>geom <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>9</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>10</b></a> <a href="../files/introduction_to_geom.htm"><b>11</b></a> <a href="../changing_displaying_parameters.htm"><b>12</b></a> </nobr><br><nobr>geom_object <a href="../sketcher.htm"><b>1</b></a> <a href="../newentity_blocks.htm"><b>2</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>9</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>10</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>11</b></a> <a href="../working_with_groups.htm"><b>12</b></a> </nobr><br><nobr>geom_objects <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>2</b></a> </nobr><br><a href="../newentity_blocks.htm"><b>geometric</b></a> <br><nobr>geometrical <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>9</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>10</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>11</b></a> <a href="../files/introduction_to_geom.htm"><b>12</b></a> <a href="../changing_displaying_parameters.htm"><b>13</b></a> <a href="../working_with_groups.htm"><b>14</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>geometry</b></a> <br><nobr>geompy <a href="../sketcher.htm"><b>1</b></a> <a href="../newentity_blocks.htm"><b>2</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>9</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>10</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>11</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>12</b></a> <a href="../working_with_groups.htm"><b>13</b></a> </nobr><br><a href="../files/salome2_sp3_buildgui_functions.htm"><b>get</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>getfreeboundary</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>getfreefacesids</b></a> <br><a href="../working_with_groups.htm"><b>getobjectids</b></a> <br><a href="../files/salome2_sp3_booleangui_functions.htm"><b>gets</b></a> <br><a href="../files/salome2_sp3_buildgui_functions.htm"><b>getsubshapeid</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>getting</b></a> <br><a name="bms_GG"></a><a name="subkey_GG"></a><a href="../changing_displaying_parameters.htm"><b>gg</b></a> <br><nobr><a name="bms_GI"></a><a name="subkey_GI"></a>given <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>6</b></a> </nobr><br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>gives</b></a> <br><nobr><a name="bms_GL"></a><a name="subkey_GL"></a>glue <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> </nobr><br><nobr>glued <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>glues</b></a> <br><a name="bms_GR"></a><a name="subkey_GR"></a><a href="../files/salome2_sp3_displaygui_functions.htm"><b>graphic</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>gravity</b></a> <br><nobr>group <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../working_with_groups.htm"><b>2</b></a> </nobr><br><nobr>groups <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../working_with_groups.htm"><b>2</b></a> </nobr><br><a name="bms_GU"></a><a name="subkey_GU"></a><a href="../files/salome2_sp3_operationgui_functions.htm"><b>gui</b></a> <br>\r
<br><br>\r
-<a name="bm_H"></a><a name="subkey_HA"></a><a href="../files/salome2_sp3_basicgui_functions.htm"><b>half</b></a> <br><nobr>having <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>2</b></a> </nobr><br><nobr><a name="bms_HE"></a><a name="subkey_HE"></a>height <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>2</b></a> </nobr><br><nobr>hexahedral <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> </nobr><br><a href="../newentity_blocks.htm"><b>hexahedron</b></a> <br><a name="bms_HI"></a><a name="subkey_HI"></a><a href="../files/salome2_sp3_displaygui_functions.htm"><b>hide</b></a> <br><a href="../files/salome2_sp3_displaygui_functions.htm"><b>hiding</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>highlights</b></a> <br><a name="bms_HO"></a><a name="subkey_HO"></a><a href="../files/salome2_sp3_repairgui_functions.htm"><b>hole</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>holes</b></a> <br>\r
+<a name="bm_H"></a><a name="subkey_HA"></a><a href="../files/salome2_sp3_basicgui_functions.htm"><b>half</b></a> <br><a href="../working_with_groups.htm"><b>handling</b></a> <br><nobr>having <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>2</b></a> </nobr><br><nobr><a name="bms_HE"></a><a name="subkey_HE"></a>height <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>2</b></a> </nobr><br><nobr>hexahedral <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> </nobr><br><a href="../newentity_blocks.htm"><b>hexahedron</b></a> <br><a name="bms_HI"></a><a name="subkey_HI"></a><a href="../files/salome2_sp3_displaygui_functions.htm"><b>hide</b></a> <br><a href="../files/salome2_sp3_displaygui_functions.htm"><b>hiding</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>highlight</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>highlights</b></a> <br><a name="bms_HO"></a><a name="subkey_HO"></a><a href="../files/salome2_sp3_repairgui_functions.htm"><b>hole</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>holes</b></a> <br>\r
<br><br>\r
-<a name="bm_I"></a><a name="subkey_I{"></a><a href="../files/salome2_sp3_displaygui_functions.htm"><b>i</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>i11</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>i12</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>i13</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>i21</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>i22</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>i23</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>i31</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>i32</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>i33</b></a> <br><nobr><a name="bms_ID"></a><a name="subkey_ID"></a>id <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>4</b></a> <a href="../changing_displaying_parameters.htm"><b>5</b></a> <a href="../working_with_groups.htm"><b>6</b></a> </nobr><br><nobr>ids <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>2</b></a> <a href="../working_with_groups.htm"><b>3</b></a> </nobr><br><nobr><a name="bms_IF"></a><a name="subkey_IF"></a>if <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>4</b></a> </nobr><br><nobr><a name="bms_IG"></a><a name="subkey_IG"></a>iges <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>1</b></a> <a href="../files/introduction_to_geom.htm"><b>2</b></a> </nobr><br><a name="bms_IM"></a><a name="subkey_IM"></a><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>image</b></a> <br><nobr>import <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>1</b></a> <a href="../files/introduction_to_geom.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>importation</b></a> <br><nobr>imported <a href="../files/salome2_sp3_measuregui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>importing</b></a> <br><a name="bms_IN"></a><a name="subkey_IN"></a><a href="../files/salome2_sp3_repairgui_functions.htm"><b>increased</b></a> <br><a href="../files/salome2_sp3_booleangui_functions.htm"><b>independent</b></a> <br><a href="../files/salome2_sp3_displaygui_functions.htm"><b>independently</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>indices</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>inertia</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>initial</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>inner</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>inquired</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>inretia</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>inserted</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>inside</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>integer</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>integers</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>intended</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>interactively</b></a> <br><a href="../newentity_blocks.htm"><b>intermediate</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>internal</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>intersect</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>intersected</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>intersection</b></a> <br><nobr>introduction <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/introduction_to_geom.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>invalid</b></a> <br><a name="bms_IS"></a><a name="subkey_IS"></a><a href="../files/salome2_sp3_repairgui_functions.htm"><b>isbyparameter</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>iscommonvertex</b></a> <br><a href="../changing_displaying_parameters.htm"><b>isolines</b></a> <br><a href="../changing_displaying_parameters.htm"><b>isos</b></a> <br><a name="bms_IT"></a><a name="subkey_IT"></a><a href="../files/salome2_sp3_generationgui_functions.htm"><b>iterations</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>itself</b></a> <br><a name="bms_IX"></a><a name="subkey_IX"></a><a href="../files/salome2_sp3_measuregui_functions.htm"><b>ix</b></a> <br><a name="bms_IY"></a><a name="subkey_IY"></a><a href="../files/salome2_sp3_measuregui_functions.htm"><b>iy</b></a> <br><a name="bms_IZ"></a><a name="subkey_IZ"></a><a href="../files/salome2_sp3_measuregui_functions.htm"><b>iz</b></a> <br>\r
+<a name="bm_I"></a><a name="subkey_I{"></a><a href="../files/salome2_sp3_displaygui_functions.htm"><b>i</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>i11</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>i12</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>i13</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>i21</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>i22</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>i23</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>i31</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>i32</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>i33</b></a> <br><nobr><a name="bms_ID"></a><a name="subkey_ID"></a>id <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>4</b></a> <a href="../changing_displaying_parameters.htm"><b>5</b></a> <a href="../working_with_groups.htm"><b>6</b></a> </nobr><br><nobr>ids <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>3</b></a> <a href="../working_with_groups.htm"><b>4</b></a> </nobr><br><nobr><a name="bms_IF"></a><a name="subkey_IF"></a>if <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>4</b></a> <a href="../working_with_groups.htm"><b>5</b></a> </nobr><br><nobr><a name="bms_IG"></a><a name="subkey_IG"></a>iges <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>1</b></a> <a href="../files/introduction_to_geom.htm"><b>2</b></a> </nobr><br><a name="bms_IM"></a><a name="subkey_IM"></a><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>image</b></a> <br><nobr>import <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>1</b></a> <a href="../files/introduction_to_geom.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>importation</b></a> <br><nobr>imported <a href="../files/salome2_sp3_measuregui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>importing</b></a> <br><a name="bms_IN"></a><a name="subkey_IN"></a><a href="../files/salome2_sp3_repairgui_functions.htm"><b>increased</b></a> <br><a href="../files/salome2_sp3_booleangui_functions.htm"><b>independent</b></a> <br><a href="../files/salome2_sp3_displaygui_functions.htm"><b>independently</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>indices</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>inertia</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>informs</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>initial</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>inner</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>inquired</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>inretia</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>inserted</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>inside</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>integer</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>integers</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>intended</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>interactively</b></a> <br><a href="../newentity_blocks.htm"><b>intermediate</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>internal</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>intersect</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>intersected</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>intersection</b></a> <br><nobr>introduction <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/introduction_to_geom.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>invalid</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>investigated</b></a> <br><a name="bms_IS"></a><a name="subkey_IS"></a><a href="../files/salome2_sp3_repairgui_functions.htm"><b>isbyparameter</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>iscommonvertex</b></a> <br><a href="../changing_displaying_parameters.htm"><b>isolines</b></a> <br><a href="../changing_displaying_parameters.htm"><b>isos</b></a> <br><a name="bms_IT"></a><a name="subkey_IT"></a><a href="../files/salome2_sp3_generationgui_functions.htm"><b>iterations</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>itself</b></a> <br><a name="bms_IX"></a><a name="subkey_IX"></a><a href="../files/salome2_sp3_measuregui_functions.htm"><b>ix</b></a> <br><a name="bms_IY"></a><a name="subkey_IY"></a><a href="../files/salome2_sp3_measuregui_functions.htm"><b>iy</b></a> <br><a name="bms_IZ"></a><a name="subkey_IZ"></a><a href="../files/salome2_sp3_measuregui_functions.htm"><b>iz</b></a> <br>\r
<br><br>\r
<a name="bm_J"></a><a name="subkey_JU"></a><a href="../newentity_blocks.htm"><b>just</b></a> <br>\r
<br><br>\r
<br><br>\r
<nobr><a name="bm_L"></a><a name="subkey_LA"></a>last <a href="../files/salome2_sp3_buildgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><a name="bms_LC"></a><a name="subkey_LC"></a><a href="../files/salome2_sp3_basicgui_functions.htm"><b>lcs</b></a> <br><a name="bms_LE"></a><a name="subkey_LE"></a><a href="../files/salome2_sp3_basicgui_functions.htm"><b>least</b></a> <br><nobr>length <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>less</b></a> <br><a name="bms_LI"></a><a name="subkey_LI"></a><a href="../files/salome2_sp3_operationgui_functions.htm"><b>limit</b></a> <br><nobr>line <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> </nobr><br><nobr>list <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>6</b></a> <a href="../working_with_groups.htm"><b>7</b></a> </nobr><br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>listoffaceid</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>listofgeomshapes</b></a> <br><nobr>listofid <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>listofkeepinside</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>listofmaterials</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>listofremoveinside</b></a> <br><nobr>listofshape <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>listofshapeid</b></a> <br><nobr>listofshapes <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>listoftools</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>listofwireid</b></a> <br><nobr><a name="bms_LO"></a><a name="subkey_LO"></a>local <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>located</b></a> <br><nobr>location <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> </nobr><br><a name="bms_LW"></a><a name="subkey_LW"></a><a href="../sketcher.htm"><b>lwp</b></a> <br><nobr><a name="bms_LY"></a><a name="subkey_LY"></a>lying <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> </nobr><br>\r
<br><br>\r
-<nobr><a name="bm_M"></a><a name="subkey_MA"></a>main <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>9</b></a> <a href="../blocks.htm"><b>10</b></a> <a href="../working_with_groups.htm"><b>11</b></a> </nobr><br><a href="../working_with_groups.htm"><b>mainshape</b></a> <br><nobr>major <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>make</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>makearc</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>makebezier</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>makeblockexplode</b></a> <br><a href="../files/salome2_sp3_booleangui_functions.htm"><b>makeboolean</b></a> <br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>makebox</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>makecdg</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>makechamferedge</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>makechamferface</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>makecircle</b></a> <br><a href="../files/salome2_sp3_buildgui_functions.htm"><b>makecompound</b></a> <br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>makecone</b></a> <br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>makecylinder</b></a> <br><a href="../files/salome2_sp3_buildgui_functions.htm"><b>makeedge</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>makeellipse</b></a> <br><a href="../files/salome2_sp3_buildgui_functions.htm"><b>makeface</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>makefillet</b></a> <br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>makefilling</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>makegluefaces</b></a> <br><a href="../newentity_blocks.htm"><b>makehexasolid</b></a> <br><a href="../newentity_blocks.htm"><b>makehexasolidtwofaces</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>makeinterpol</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>makeline</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>makemarker</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>makemirrorbyplane</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>makemultirotation1d</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>makemultirotation2d</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>makemultitransformation1d</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>makemultitransformation2d</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>makemultitranslation1d</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>makemultitranslation2d</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>makeoffset</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>makepartition</b></a> <br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>makepipe</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>makeplane</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>makepolyline</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>makeposition</b></a> <br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>makeprism</b></a> <br><a href="../newentity_blocks.htm"><b>makequadface</b></a> <br><a href="../newentity_blocks.htm"><b>makequadfaceedges</b></a> <br><a href="../newentity_blocks.htm"><b>makequadfacevertices</b></a> <br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>makerevolution</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>makerotation</b></a> <br><nobr>makes <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>makescaletransform</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>makesewing</b></a> <br><a href="../files/salome2_sp3_buildgui_functions.htm"><b>makeshell</b></a> <br><a href="../sketcher.htm"><b>makesketcher</b></a> <br><a href="../files/salome2_sp3_buildgui_functions.htm"><b>makesolid</b></a> <br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>makesphere</b></a> <br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>maketorus</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>maketranslation</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>makevector</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>makevertex</b></a> <br><a href="../files/salome2_sp3_buildgui_functions.htm"><b>makewire</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>manually</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>mass</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>materials</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>matrix</b></a> <br><nobr>max <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>maxdegree</b></a> <br><nobr>maximal <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>4</b></a> </nobr><br><nobr>maximum <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>maxnbfaces</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>maxtolerance</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>maxtolerance3d</b></a> <br><br><br></p><p class="ftsbody" align="center"><a href="whlstf3.htm" target="_self" title="previous search group"><b>>></b></a>\r
+<nobr><a name="bm_M"></a><a name="subkey_MA"></a>main <a href="../sketcher.htm"><b>1</b></a> <a href="../newentity_blocks.htm"><b>2</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>9</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>10</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>11</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>12</b></a> <a href="../blocks.htm"><b>13</b></a> <a href="../working_with_groups.htm"><b>14</b></a> </nobr><br><a href="../working_with_groups.htm"><b>mainshape</b></a> <br><nobr>major <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>make</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>makearc</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>makebezier</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>makeblockexplode</b></a> <br><a href="../files/salome2_sp3_booleangui_functions.htm"><b>makeboolean</b></a> <br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>makebox</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>makecdg</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>makechamferedge</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>makechamferface</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>makecircle</b></a> <br><a href="../files/salome2_sp3_buildgui_functions.htm"><b>makecompound</b></a> <br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>makecone</b></a> <br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>makecylinder</b></a> <br><a href="../files/salome2_sp3_buildgui_functions.htm"><b>makeedge</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>makeellipse</b></a> <br><a href="../files/salome2_sp3_buildgui_functions.htm"><b>makeface</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>makefillet</b></a> <br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>makefilling</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>makegluefaces</b></a> <br><a href="../newentity_blocks.htm"><b>makehexasolid</b></a> <br><a href="../newentity_blocks.htm"><b>makehexasolidtwofaces</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>makeinterpol</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>makeline</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>makemarker</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>makemirrorbyplane</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>makemultirotation1d</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>makemultirotation2d</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>makemultitransformation1d</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>makemultitransformation2d</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>makemultitranslation1d</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>makemultitranslation2d</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>makeoffset</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>makepartition</b></a> <br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>makepipe</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>makeplane</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>makepolyline</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>makeposition</b></a> <br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>makeprism</b></a> <br><a href="../newentity_blocks.htm"><b>makequadface</b></a> <br><a href="../newentity_blocks.htm"><b>makequadfaceedges</b></a> <br><a href="../newentity_blocks.htm"><b>makequadfacevertices</b></a> <br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>makerevolution</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>makerotation</b></a> <br><nobr>makes <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../working_with_groups.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>makescaletransform</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>makesewing</b></a> <br><a href="../files/salome2_sp3_buildgui_functions.htm"><b>makeshell</b></a> <br><a href="../sketcher.htm"><b>makesketcher</b></a> <br><a href="../files/salome2_sp3_buildgui_functions.htm"><b>makesolid</b></a> <br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>makesphere</b></a> <br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>maketorus</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>maketranslation</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>makevector</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>makevertex</b></a> <br><a href="../files/salome2_sp3_buildgui_functions.htm"><b>makewire</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>manually</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>mass</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>materials</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>matrix</b></a> <br><nobr>max <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>maxdegree</b></a> <br><nobr>maximal <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>4</b></a> </nobr><br><nobr>maximum <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>maxnbfaces</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>maxtolerance</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>maxtolerance3d</b></a> <br><br><br></p><p class="ftsbody" align="center"><a href="whlstf3.htm" target="_self" title="previous search group"><b>>></b></a>\r
\r
</body>\r
\r
<body marginheight="0" marginwidth="0" bgproperties="fixed">\r
<p class="ftsbody" align="center"><a href="whlstf2.htm" target="_self" title="previous search group"><b><<</b></a><br><br></p>\r
<p class="ftsbody" >\r
-<a name="bms_ME"></a><a name="subkey_ME"></a><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>meaning</b></a> <br><a href="../sketcher.htm"><b>means</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>measurement</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>measures</b></a> <br><a href="../newentity_blocks.htm"><b>mentioned</b></a> <br><nobr>menu <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>9</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>10</b></a> <a href="../changing_displaying_parameters.htm"><b>11</b></a> <a href="../blocks.htm"><b>12</b></a> <a href="../working_with_groups.htm"><b>13</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>merging</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>mesh</b></a> <br><nobr>meshing <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>meshingdeflection</b></a> <br><a href="../files/salome2_sp3_buildgui_functions.htm"><b>method</b></a> <br><a name="bms_MI"></a><a name="subkey_MI"></a><a href="../files/salome2_sp3_basicgui_functions.htm"><b>middle</b></a> <br><nobr>min <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>mindegree</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>mindistance</b></a> <br><nobr>minimal <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>minimum</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>minnbfaces</b></a> <br><nobr>minor <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>mirror</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>mirrored</b></a> <br><nobr><a name="bms_MO"></a><a name="subkey_MO"></a>mode <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../changing_displaying_parameters.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>modeled</b></a> <br><a href="../files/introduction_to_geom.htm"><b>models</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>modes</b></a> <br><nobr>modification <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>modified</b></a> <br><nobr>modifies <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>modify</b></a> <br><nobr>module <a href="../files/salome2_sp3_displaygui_functions.htm"><b>1</b></a> <a href="../files/introduction_to_geom.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>moment</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>moments</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>move</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>moved</b></a> <br><nobr><a name="bms_MU"></a><a name="subkey_MU"></a>multi <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../blocks.htm"><b>3</b></a> </nobr><br><nobr>must <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> </nobr><br>\r
+<a name="bms_ME"></a><a name="subkey_ME"></a><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>meaning</b></a> <br><a href="../sketcher.htm"><b>means</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>measurement</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>measures</b></a> <br><a href="../newentity_blocks.htm"><b>mentioned</b></a> <br><nobr>menu <a href="../sketcher.htm"><b>1</b></a> <a href="../newentity_blocks.htm"><b>2</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>9</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>10</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>11</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>12</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>13</b></a> <a href="../changing_displaying_parameters.htm"><b>14</b></a> <a href="../blocks.htm"><b>15</b></a> <a href="../working_with_groups.htm"><b>16</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>merging</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>mesh</b></a> <br><nobr>meshing <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>meshingdeflection</b></a> <br><a href="../files/salome2_sp3_buildgui_functions.htm"><b>method</b></a> <br><a name="bms_MI"></a><a name="subkey_MI"></a><a href="../files/salome2_sp3_basicgui_functions.htm"><b>middle</b></a> <br><nobr>min <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>mindegree</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>mindistance</b></a> <br><nobr>minimal <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>minimum</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>minnbfaces</b></a> <br><nobr>minor <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>mirror</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>mirrored</b></a> <br><nobr><a name="bms_MO"></a><a name="subkey_MO"></a>mode <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../changing_displaying_parameters.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>modeled</b></a> <br><a href="../files/introduction_to_geom.htm"><b>models</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>modes</b></a> <br><nobr>modification <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>modified</b></a> <br><nobr>modifies <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>modify</b></a> <br><nobr>module <a href="../files/salome2_sp3_displaygui_functions.htm"><b>1</b></a> <a href="../files/introduction_to_geom.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>moment</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>moments</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>move</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>moved</b></a> <br><a name="bms_MU"></a><a name="subkey_MU"></a><a href="../working_with_groups.htm"><b>much</b></a> <br><nobr>multi <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../blocks.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>multitude</b></a> <br><nobr>must <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>3</b></a> </nobr><br>\r
<br><br>\r
-<nobr><a name="bm_N"></a><a name="subkey_NA"></a>name <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>9</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>10</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>names</b></a> <br><a name="bms_NB"></a><a name="subkey_NB"></a><a href="../files/salome2_sp3_generationgui_functions.htm"><b>nbiter</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>nbsplitpoints</b></a> <br><nobr>nbtimes <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>nbtimes1</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>nbtimes2</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>nbtimesu</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>nbtimesv</b></a> <br><nobr><a name="bms_NE"></a><a name="subkey_NE"></a>necessary <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>4</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>needed</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>negative</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>neigbour</b></a> <br><nobr>new <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>6</b></a> <a href="../working_with_groups.htm"><b>7</b></a> </nobr><br><a name="bms_NO"></a><a name="subkey_NO"></a><a href="../files/salome2_sp3_basicgui_functions.htm"><b>nodes</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>noerror</b></a> <br><nobr>normal <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> </nobr><br><a href="../newentity_blocks.htm"><b>notions</b></a> <br><nobr><a name="bms_NU"></a><a name="subkey_NU"></a>number <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>4</b></a> <a href="../changing_displaying_parameters.htm"><b>5</b></a> </nobr><br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>numbers</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>numeber</b></a> <br>\r
+<nobr><a name="bm_N"></a><a name="subkey_NA"></a>name <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>9</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>10</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>names</b></a> <br><a name="bms_NB"></a><a name="subkey_NB"></a><a href="../files/salome2_sp3_generationgui_functions.htm"><b>nbiter</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>nbsplitpoints</b></a> <br><nobr>nbtimes <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>nbtimes1</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>nbtimes2</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>nbtimesu</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>nbtimesv</b></a> <br><nobr><a name="bms_NE"></a><a name="subkey_NE"></a>necessary <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>4</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>needed</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>negative</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>neigbour</b></a> <br><nobr>new <a href="../sketcher.htm"><b>1</b></a> <a href="../newentity_blocks.htm"><b>2</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>7</b></a> <a href="../working_with_groups.htm"><b>8</b></a> </nobr><br><a name="bms_NO"></a><a name="subkey_NO"></a><a href="../files/salome2_sp3_basicgui_functions.htm"><b>nodes</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>noerror</b></a> <br><nobr>normal <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> </nobr><br><a href="../newentity_blocks.htm"><b>notions</b></a> <br><nobr><a name="bms_NU"></a><a name="subkey_NU"></a>number <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>4</b></a> <a href="../changing_displaying_parameters.htm"><b>5</b></a> </nobr><br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>numbers</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>numeber</b></a> <br>\r
<br><br>\r
-<nobr><a name="bm_O"></a><a name="subkey_OB"></a>object <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>9</b></a> <a href="../changing_displaying_parameters.htm"><b>10</b></a> <a href="../working_with_groups.htm"><b>11</b></a> </nobr><br><nobr>objects <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>9</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>10</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>11</b></a> <a href="../files/introduction_to_geom.htm"><b>12</b></a> <a href="../changing_displaying_parameters.htm"><b>13</b></a> </nobr><br><nobr><a name="bms_OC"></a><a name="subkey_OC"></a>occ <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>2</b></a> <a href="../changing_displaying_parameters.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>occurred</b></a> <br><a name="bms_OF"></a><a name="subkey_OF"></a><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>offset</b></a> <br><nobr><a name="bms_OK"></a><a name="subkey_OK"></a>ok <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><nobr><a name="bms_ON"></a><a name="subkey_ON"></a>one <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>7</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>ones</b></a> <br><a name="bms_OP"></a><a name="subkey_OP"></a><a href="../files/salome2_sp3_repairgui_functions.htm"><b>open</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>openwires</b></a> <br><nobr>operation <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>4</b></a> </nobr><br><nobr>operations <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>6</b></a> <a href="../files/introduction_to_geom.htm"><b>7</b></a> <a href="../working_with_groups.htm"><b>8</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>operator</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>operators</b></a> <br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>opposite</b></a> <br><a href="../files/introduction_to_geom.htm"><b>optimization</b></a> <br><a href="../blocks.htm"><b>options</b></a> <br><a name="bms_OR"></a><a name="subkey_OR"></a><a href="../files/salome2_sp3_repairgui_functions.htm"><b>order</b></a> <br><nobr>oriented <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><nobr>origin <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><nobr><a name="bms_OT"></a><a name="subkey_OT"></a>otherwise <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> </nobr><br><a name="bms_OU"></a><a name="subkey_OU"></a><a href="../files/salome2_sp3_operationgui_functions.htm"><b>outside</b></a> <br><nobr><a name="bms_OX"></a><a name="subkey_OX"></a>ox <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><a name="bms_OY"></a><a name="subkey_OY"></a><a href="../files/salome2_sp3_basicgui_functions.htm"><b>oy</b></a> <br><nobr><a name="bms_OZ"></a><a name="subkey_OZ"></a>oz <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br>\r
+<nobr><a name="bm_O"></a><a name="subkey_OB"></a>object <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>9</b></a> <a href="../changing_displaying_parameters.htm"><b>10</b></a> <a href="../working_with_groups.htm"><b>11</b></a> </nobr><br><nobr>objects <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>9</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>10</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>11</b></a> <a href="../files/introduction_to_geom.htm"><b>12</b></a> <a href="../changing_displaying_parameters.htm"><b>13</b></a> </nobr><br><nobr><a name="bms_OC"></a><a name="subkey_OC"></a>occ <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>2</b></a> <a href="../changing_displaying_parameters.htm"><b>3</b></a> <a href="../working_with_groups.htm"><b>4</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>occurred</b></a> <br><a name="bms_OF"></a><a name="subkey_OF"></a><a href="../working_with_groups.htm"><b>offers</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>offset</b></a> <br><nobr><a name="bms_OK"></a><a name="subkey_OK"></a>ok <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><nobr><a name="bms_ON"></a><a name="subkey_ON"></a>one <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>7</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>ones</b></a> <br><a name="bms_OP"></a><a name="subkey_OP"></a><a href="../files/salome2_sp3_repairgui_functions.htm"><b>open</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>openwires</b></a> <br><nobr>operation <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>4</b></a> </nobr><br><nobr>operations <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>6</b></a> <a href="../files/introduction_to_geom.htm"><b>7</b></a> <a href="../working_with_groups.htm"><b>8</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>operator</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>operators</b></a> <br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>opposite</b></a> <br><a href="../files/introduction_to_geom.htm"><b>optimization</b></a> <br><a href="../blocks.htm"><b>options</b></a> <br><nobr><a name="bms_OR"></a><a name="subkey_OR"></a>order <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>2</b></a> </nobr><br><nobr>oriented <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><nobr>origin <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><nobr><a name="bms_OT"></a><a name="subkey_OT"></a>otherwise <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> </nobr><br><a name="bms_OU"></a><a name="subkey_OU"></a><a href="../files/salome2_sp3_operationgui_functions.htm"><b>outside</b></a> <br><nobr><a name="bms_OX"></a><a name="subkey_OX"></a>ox <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><a name="bms_OY"></a><a name="subkey_OY"></a><a href="../files/salome2_sp3_basicgui_functions.htm"><b>oy</b></a> <br><nobr><a name="bms_OZ"></a><a name="subkey_OZ"></a>oz <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br>\r
<br><br>\r
-<nobr><a name="bm_P"></a><a name="subkey_PA"></a>parameter <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> </nobr><br><nobr>parameters <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>4</b></a> <a href="../changing_displaying_parameters.htm"><b>5</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>paramter</b></a> <br><nobr>part <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>partition</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>passes</b></a> <br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>path</b></a> <br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>pathshape</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>pattern</b></a> <br><nobr><a name="bms_PE"></a><a name="subkey_PE"></a>perform <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../working_with_groups.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>performed</b></a> <br><a href="../sketcher.htm"><b>perpendicular</b></a> <br><a name="bms_PI"></a><a name="subkey_PI"></a><a href="../files/salome2_sp3_generationgui_functions.htm"><b>pipe</b></a> <br><nobr><a name="bms_PL"></a><a name="subkey_PL"></a>planar <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> </nobr><br><nobr>plane <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>4</b></a> </nobr><br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>plunged</b></a> <br><nobr><a name="bms_PO"></a><a name="subkey_PO"></a>point <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>6</b></a> </nobr><br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>point1</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>point2</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>point3</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>pointcoordinates</b></a> <br><nobr>points <a href="../sketcher.htm"><b>1</b></a> <a href="../newentity_blocks.htm"><b>2</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>5</b></a> </nobr><br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>polyline</b></a> <br><nobr>pop <a href="../files/salome2_sp3_displaygui_functions.htm"><b>1</b></a> <a href="../changing_displaying_parameters.htm"><b>2</b></a> </nobr><br><nobr>position <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>possibility</b></a> <br><nobr>possible <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>2</b></a> </nobr><br><a name="bms_PR"></a><a name="subkey_PR"></a><a href="../files/salome2_sp3_repairgui_functions.htm"><b>precision</b></a> <br><a href="../sketcher.htm"><b>predefined</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>presses</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>preview</b></a> <br><a href="../sketcher.htm"><b>previous</b></a> <br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>primitive</b></a> <br><nobr>primitives <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>1</b></a> <a href="../files/introduction_to_geom.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>prism</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>problems</b></a> <br><nobr>processed <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>processes</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>processing</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>processshape</b></a> <br><nobr>properties <a href="../files/salome2_sp3_measuregui_functions.htm"><b>1</b></a> <a href="../changing_displaying_parameters.htm"><b>2</b></a> </nobr><br><a name="bms_PU"></a><a name="subkey_PU"></a><a href="../files/salome2_sp3_operationgui_functions.htm"><b>put</b></a> <br><a name="bms_PY"></a><a name="subkey_PY"></a><a href="../files/salome2_sp3_measuregui_functions.htm"><b>python</b></a> <br>\r
+<nobr><a name="bm_P"></a><a name="subkey_PA"></a>parameter <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> </nobr><br><nobr>parameters <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>4</b></a> <a href="../changing_displaying_parameters.htm"><b>5</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>paramter</b></a> <br><nobr>part <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>partition</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>passes</b></a> <br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>path</b></a> <br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>pathshape</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>pattern</b></a> <br><nobr><a name="bms_PE"></a><a name="subkey_PE"></a>perform <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../working_with_groups.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>performed</b></a> <br><a href="../sketcher.htm"><b>perpendicular</b></a> <br><a name="bms_PI"></a><a name="subkey_PI"></a><a href="../files/salome2_sp3_generationgui_functions.htm"><b>pipe</b></a> <br><nobr><a name="bms_PL"></a><a name="subkey_PL"></a>planar <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> </nobr><br><nobr>plane <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>4</b></a> </nobr><br><a href="../working_with_groups.htm"><b>platform</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>plunged</b></a> <br><nobr><a name="bms_PO"></a><a name="subkey_PO"></a>point <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>6</b></a> </nobr><br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>point1</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>point2</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>point3</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>pointcoordinates</b></a> <br><nobr>points <a href="../sketcher.htm"><b>1</b></a> <a href="../newentity_blocks.htm"><b>2</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>5</b></a> </nobr><br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>polyline</b></a> <br><nobr>pop <a href="../files/salome2_sp3_displaygui_functions.htm"><b>1</b></a> <a href="../changing_displaying_parameters.htm"><b>2</b></a> </nobr><br><nobr>position <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>possibility</b></a> <br><nobr>possible <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>4</b></a> </nobr><br><a name="bms_PR"></a><a name="subkey_PR"></a><a href="../files/salome2_sp3_repairgui_functions.htm"><b>precision</b></a> <br><a href="../sketcher.htm"><b>predefined</b></a> <br><a href="../working_with_groups.htm"><b>preferences</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>presses</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>preview</b></a> <br><a href="../sketcher.htm"><b>previous</b></a> <br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>primitive</b></a> <br><nobr>primitives <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>1</b></a> <a href="../files/introduction_to_geom.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>printed</b></a> <br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>prism</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>problems</b></a> <br><nobr>processed <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>processes</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>processing</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>processshape</b></a> <br><a href="../working_with_groups.htm"><b>project</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>propagate</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>propagation</b></a> <br><nobr>properties <a href="../files/salome2_sp3_measuregui_functions.htm"><b>1</b></a> <a href="../changing_displaying_parameters.htm"><b>2</b></a> </nobr><br><a name="bms_PU"></a><a name="subkey_PU"></a><a href="../files/salome2_sp3_operationgui_functions.htm"><b>put</b></a> <br><a name="bms_PY"></a><a name="subkey_PY"></a><a href="../files/salome2_sp3_measuregui_functions.htm"><b>python</b></a> <br>\r
<br><br>\r
-<nobr><a name="bm_Q"></a><a name="subkey_QU"></a>quadrangle <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br>\r
+<nobr><a name="bm_Q"></a><a name="subkey_QU"></a>quadrangle <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> </nobr><br>\r
<br><br>\r
-<a name="bm_R"></a><a name="subkey_RA"></a><a href="../files/salome2_sp3_repairgui_functions.htm"><b>radians</b></a> <br><nobr>radius <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>4</b></a> </nobr><br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>radius1</b></a> <br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>radius2</b></a> <br><nobr>radiuses <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><nobr>radiusmajor <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><nobr>radiusminor <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><nobr>range <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/introduction_to_geom.htm"><b>2</b></a> </nobr><br><a name="bms_RE"></a><a name="subkey_RE"></a><a href="../files/salome2_sp3_repairgui_functions.htm"><b>re</b></a> <br><a href="../files/salome2_sp3_displaygui_functions.htm"><b>reasonable</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>reconstruction</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>reference</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>regarding</b></a> <br><a href="../sketcher.htm"><b>relative</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>remove</b></a> <br><nobr>removed <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../working_with_groups.htm"><b>3</b></a> </nobr><br><a href="../working_with_groups.htm"><b>removeobject</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>removes</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>removewebs</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>removing</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>repair</b></a> <br><nobr>repairing <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/introduction_to_geom.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>repetition</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>repetitions</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>representing</b></a> <br><a href="../files/salome2_sp3_buildgui_functions.htm"><b>requested</b></a> <br><nobr>required <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>requireddegree</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>requirednbsegments</b></a> <br><nobr>respect <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>restriction</b></a> <br><nobr>result <a href="../sketcher.htm"><b>1</b></a> <a href="../newentity_blocks.htm"><b>2</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>9</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>10</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>11</b></a> <a href="../working_with_groups.htm"><b>12</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>resultant</b></a> <br><nobr>resulting <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>results</b></a> <br><a href="../files/salome2_sp3_buildgui_functions.htm"><b>retrieved</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>return</b></a> <br><nobr>returned <a href="../files/salome2_sp3_measuregui_functions.htm"><b>1</b></a> <a href="../working_with_groups.htm"><b>2</b></a> </nobr><br><nobr>returns <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>3</b></a> <a href="../working_with_groups.htm"><b>4</b></a> </nobr><br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>reverse</b></a> <br><nobr>revolution <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>2</b></a> </nobr><br><br><br></p><p class="ftsbody" align="center"><a href="whlstf4.htm" target="_self" title="previous search group"><b>>></b></a>\r
+<a name="bm_R"></a><a name="subkey_RA"></a><a href="../files/salome2_sp3_repairgui_functions.htm"><b>radians</b></a> <br><nobr>radius <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>4</b></a> </nobr><br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>radius1</b></a> <br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>radius2</b></a> <br><nobr>radiuses <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><nobr>radiusmajor <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><nobr>radiusminor <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><nobr>range <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/introduction_to_geom.htm"><b>2</b></a> </nobr><br><br><br></p><p class="ftsbody" align="center"><a href="whlstf4.htm" target="_self" title="previous search group"><b>>></b></a>\r
\r
</body>\r
\r
<body marginheight="0" marginwidth="0" bgproperties="fixed">\r
<p class="ftsbody" align="center"><a href="whlstf3.htm" target="_self" title="previous search group"><b><<</b></a><br><br></p>\r
<p class="ftsbody" >\r
-<nobr><a name="bms_RI"></a><a name="subkey_RI"></a>right <a href="../files/salome2_sp3_displaygui_functions.htm"><b>1</b></a> <a href="../changing_displaying_parameters.htm"><b>2</b></a> </nobr><br><a name="bms_RO"></a><a name="subkey_RO"></a><a href="../files/salome2_sp3_generationgui_functions.htm"><b>rotate</b></a> <br><nobr>rotated <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>rotates</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>rotation</b></a> <br>\r
+<a name="bms_RE"></a><a name="subkey_RE"></a><a href="../files/salome2_sp3_repairgui_functions.htm"><b>re</b></a> <br><a href="../files/salome2_sp3_displaygui_functions.htm"><b>reasonable</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>reconstruction</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>reference</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>regarding</b></a> <br><a href="../sketcher.htm"><b>relative</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>remove</b></a> <br><nobr>removed <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../working_with_groups.htm"><b>3</b></a> </nobr><br><a href="../working_with_groups.htm"><b>removeobject</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>removes</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>removewebs</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>removing</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>repair</b></a> <br><nobr>repairing <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/introduction_to_geom.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>repetition</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>repetitions</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>representing</b></a> <br><a href="../files/salome2_sp3_buildgui_functions.htm"><b>requested</b></a> <br><nobr>required <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>requireddegree</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>requirednbsegments</b></a> <br><nobr>respect <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>restriction</b></a> <br><nobr>result <a href="../sketcher.htm"><b>1</b></a> <a href="../newentity_blocks.htm"><b>2</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>9</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>10</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>11</b></a> <a href="../working_with_groups.htm"><b>12</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>resultant</b></a> <br><nobr>resulting <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>results</b></a> <br><a href="../files/salome2_sp3_buildgui_functions.htm"><b>retrieved</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>retrieves</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>return</b></a> <br><nobr>returned <a href="../files/salome2_sp3_measuregui_functions.htm"><b>1</b></a> <a href="../working_with_groups.htm"><b>2</b></a> </nobr><br><nobr>returns <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>4</b></a> <a href="../working_with_groups.htm"><b>5</b></a> </nobr><br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>reverse</b></a> <br><nobr>revolution <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>2</b></a> </nobr><br><nobr><a name="bms_RI"></a><a name="subkey_RI"></a>right <a href="../files/salome2_sp3_displaygui_functions.htm"><b>1</b></a> <a href="../changing_displaying_parameters.htm"><b>2</b></a> </nobr><br><a name="bms_RO"></a><a name="subkey_RO"></a><a href="../files/salome2_sp3_generationgui_functions.htm"><b>rotate</b></a> <br><nobr>rotated <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>rotates</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>rotation</b></a> <br>\r
<br><br>\r
-<nobr><a name="bm_S"></a><a name="subkey_S{"></a>s <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>5</b></a> <a href="../working_with_groups.htm"><b>6</b></a> </nobr><br><a name="bms_SA"></a><a name="subkey_SA"></a><a href="../files/introduction_to_geom.htm"><b>salome</b></a> <br><nobr>same <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>sameparameter</b></a> <br><a name="bms_SC"></a><a name="subkey_SC"></a><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>scale</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>scaled</b></a> <br><a name="bms_SE"></a><a name="subkey_SE"></a><a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>search</b></a> <br><nobr>second <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>4</b></a> </nobr><br><nobr>section <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>see</b></a> <br><a href="../sketcher.htm"><b>segment</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>segments</b></a> <br><nobr>select <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>9</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>10</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>11</b></a> <a href="../changing_displaying_parameters.htm"><b>12</b></a> <a href="../blocks.htm"><b>13</b></a> <a href="../working_with_groups.htm"><b>14</b></a> </nobr><br><nobr>selected <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> <a href="../changing_displaying_parameters.htm"><b>4</b></a> </nobr><br><nobr>selection <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>sense</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>serve</b></a> <br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>serving</b></a> <br><nobr>set <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../changing_displaying_parameters.htm"><b>3</b></a> </nobr><br><a href="../changing_displaying_parameters.htm"><b>setcolor</b></a> <br><a href="../changing_displaying_parameters.htm"><b>setdisplaymode</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>sets</b></a> <br><nobr>setting <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> </nobr><br><a href="../changing_displaying_parameters.htm"><b>settransparency</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>sew</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>sewed</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>sewing</b></a> <br><a name="bms_SG"></a><a name="subkey_SG"></a><a href="../files/salome2_sp3_displaygui_functions.htm"><b>sg</b></a> <br><a name="bms_SH"></a><a name="subkey_SH"></a><a href="../changing_displaying_parameters.htm"><b>shading</b></a> <br><nobr>shape <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>9</b></a> <a href="../changing_displaying_parameters.htm"><b>10</b></a> <a href="../working_with_groups.htm"><b>11</b></a> </nobr><br><nobr>shape1 <a href="../files/salome2_sp3_measuregui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>2</b></a> </nobr><br><nobr>shape2 <a href="../files/salome2_sp3_measuregui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>2</b></a> </nobr><br><nobr>shapes <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>6</b></a> <a href="../files/introduction_to_geom.htm"><b>7</b></a> <a href="../working_with_groups.htm"><b>8</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>shapesto</b></a> <br><nobr>shapetype <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../working_with_groups.htm"><b>2</b></a> </nobr><br><nobr>shell <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>4</b></a> </nobr><br><nobr>shells <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>2</b></a> </nobr><br><a href="../changing_displaying_parameters.htm"><b>short</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>should</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>shown</b></a> <br><a name="bms_SI"></a><a name="subkey_SI"></a><a href="../files/salome2_sp3_basicgui_functions.htm"><b>side</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>signed</b></a> <br><a href="../newentity_blocks.htm"><b>six</b></a> <br><nobr>size <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> </nobr><br><a name="bms_SK"></a><a name="subkey_SK"></a><a href="../sketcher.htm"><b>sketch</b></a> <br><a href="../sketcher.htm"><b>sketcher</b></a> <br><nobr><a name="bms_SM"></a><a name="subkey_SM"></a>small <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><nobr><a name="bms_SO"></a><a name="subkey_SO"></a>solid <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>6</b></a> </nobr><br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>solids</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>soon</b></a> <br><nobr><a name="bms_SP"></a><a name="subkey_SP"></a>space <a href="../files/salome2_sp3_measuregui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><a href="../newentity_blocks.htm"><b>specific</b></a> <br><nobr>specified <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>specifies</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>specify</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>specifying</b></a> <br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>sphere</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>spline</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>splitangle</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>splitclosedfaces</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>splitcontinuity</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>splits</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>splitting</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>spot</b></a> <br><a name="bms_ST"></a><a name="subkey_ST"></a><a href="../newentity_blocks.htm"><b>stage</b></a> <br><a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>standard</b></a> <br><a href="../sketcher.htm"><b>started</b></a> <br><nobr>starting <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> </nobr><br><nobr>step <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>2</b></a> <a href="../files/introduction_to_geom.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>step1</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>step2</b></a> <br><a href="../newentity_blocks.htm"><b>steps</b></a> <br><nobr>string <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>strip</b></a> <br><a href="../files/salome2_sp3_displaygui_functions.htm"><b>study</b></a> <br><nobr><a name="bms_SU"></a><a name="subkey_SU"></a>sub <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>2</b></a> <a href="../working_with_groups.htm"><b>3</b></a> </nobr><br><nobr>submenu <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>3</b></a> <a href="../blocks.htm"><b>4</b></a> </nobr><br><nobr>subshape <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>2</b></a> <a href="../working_with_groups.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_buildgui_functions.htm"><b>subshapeall</b></a> <br><a href="../working_with_groups.htm"><b>subshapeid</b></a> <br><nobr>subshapes <a href="../files/salome2_sp3_buildgui_functions.htm"><b>1</b></a> <a href="../working_with_groups.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>suppress</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>suppresses</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>suppressfaces</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>suppressholes</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>suppressinternalwires</b></a> <br><nobr>surface <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>surfacecontinuity</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>surfacemode</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>surfaces</b></a> <br><a name="bms_SY"></a><a name="subkey_SY"></a><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>symmetrical</b></a> <br><nobr>symmetry <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>2</b></a> </nobr><br><nobr>system <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br>\r
+<nobr><a name="bm_S"></a><a name="subkey_S{"></a>s <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>5</b></a> <a href="../working_with_groups.htm"><b>6</b></a> </nobr><br><nobr><a name="bms_SA"></a><a name="subkey_SA"></a>salome <a href="../files/introduction_to_geom.htm"><b>1</b></a> <a href="../working_with_groups.htm"><b>2</b></a> </nobr><br><nobr>same <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>sameparameter</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>satisfy</b></a> <br><a name="bms_SC"></a><a name="subkey_SC"></a><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>scale</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>scaled</b></a> <br><a name="bms_SE"></a><a name="subkey_SE"></a><a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>search</b></a> <br><nobr>second <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>4</b></a> </nobr><br><nobr>section <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>2</b></a> </nobr><br><nobr>see <a href="../files/salome2_sp3_measuregui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>2</b></a> </nobr><br><a href="../sketcher.htm"><b>segment</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>segments</b></a> <br><nobr>select <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>9</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>10</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>11</b></a> <a href="../changing_displaying_parameters.htm"><b>12</b></a> <a href="../blocks.htm"><b>13</b></a> <a href="../working_with_groups.htm"><b>14</b></a> </nobr><br><nobr>selected <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> <a href="../changing_displaying_parameters.htm"><b>4</b></a> </nobr><br><nobr>selection <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>sense</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>serve</b></a> <br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>serving</b></a> <br><nobr>set <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../changing_displaying_parameters.htm"><b>3</b></a> </nobr><br><a href="../changing_displaying_parameters.htm"><b>setcolor</b></a> <br><a href="../changing_displaying_parameters.htm"><b>setdisplaymode</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>sets</b></a> <br><nobr>setting <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> </nobr><br><a href="../changing_displaying_parameters.htm"><b>settransparency</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>sew</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>sewed</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>sewing</b></a> <br><a name="bms_SG"></a><a name="subkey_SG"></a><a href="../files/salome2_sp3_displaygui_functions.htm"><b>sg</b></a> <br><a name="bms_SH"></a><a name="subkey_SH"></a><a href="../changing_displaying_parameters.htm"><b>shading</b></a> <br><nobr>shape <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>9</b></a> <a href="../changing_displaying_parameters.htm"><b>10</b></a> <a href="../working_with_groups.htm"><b>11</b></a> </nobr><br><nobr>shape1 <a href="../files/salome2_sp3_measuregui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>2</b></a> </nobr><br><nobr>shape2 <a href="../files/salome2_sp3_measuregui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>2</b></a> </nobr><br><nobr>shapes <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>6</b></a> <a href="../files/introduction_to_geom.htm"><b>7</b></a> <a href="../working_with_groups.htm"><b>8</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>shapesto</b></a> <br><nobr>shapetype <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../working_with_groups.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>shared</b></a> <br><nobr>shell <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>4</b></a> </nobr><br><nobr>shells <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>3</b></a> </nobr><br><a href="../changing_displaying_parameters.htm"><b>short</b></a> <br><nobr>should <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>shown</b></a> <br><a name="bms_SI"></a><a name="subkey_SI"></a><a href="../files/salome2_sp3_basicgui_functions.htm"><b>side</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>signed</b></a> <br><a href="../newentity_blocks.htm"><b>six</b></a> <br><nobr>size <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> </nobr><br><a name="bms_SK"></a><a name="subkey_SK"></a><a href="../sketcher.htm"><b>sketch</b></a> <br><a href="../sketcher.htm"><b>sketcher</b></a> <br><nobr><a name="bms_SM"></a><a name="subkey_SM"></a>small <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><nobr><a name="bms_SO"></a><a name="subkey_SO"></a>solid <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>6</b></a> </nobr><br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>solids</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>soon</b></a> <br><nobr><a name="bms_SP"></a><a name="subkey_SP"></a>space <a href="../files/salome2_sp3_measuregui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><a href="../newentity_blocks.htm"><b>specific</b></a> <br><nobr>specified <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>specifies</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>specify</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>specifying</b></a> <br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>sphere</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>spline</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>splitangle</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>splitclosedfaces</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>splitcontinuity</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>splits</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>splitting</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>spot</b></a> <br><a name="bms_ST"></a><a name="subkey_ST"></a><a href="../newentity_blocks.htm"><b>stage</b></a> <br><a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>standard</b></a> <br><a href="../sketcher.htm"><b>started</b></a> <br><nobr>starting <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> </nobr><br><nobr>step <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>2</b></a> <a href="../files/introduction_to_geom.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>step1</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>step2</b></a> <br><nobr>string <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>strip</b></a> <br><a href="../files/salome2_sp3_displaygui_functions.htm"><b>study</b></a> <br><nobr><a name="bms_SU"></a><a name="subkey_SU"></a>sub <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>2</b></a> <a href="../working_with_groups.htm"><b>3</b></a> </nobr><br><nobr>submenu <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>3</b></a> <a href="../blocks.htm"><b>4</b></a> </nobr><br><nobr>subshape <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>2</b></a> <a href="../working_with_groups.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_buildgui_functions.htm"><b>subshapeall</b></a> <br><a href="../working_with_groups.htm"><b>subshapeid</b></a> <br><nobr>subshapes <a href="../files/salome2_sp3_buildgui_functions.htm"><b>1</b></a> <a href="../working_with_groups.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>suppress</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>suppresses</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>suppressfaces</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>suppressholes</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>suppressinternalwires</b></a> <br><nobr>surface <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>surfacecontinuity</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>surfacemode</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>surfaces</b></a> <br><a name="bms_SY"></a><a name="subkey_SY"></a><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>symmetrical</b></a> <br><nobr>symmetry <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>2</b></a> </nobr><br><nobr>system <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br>\r
<br><br>\r
-<a name="bm_T"></a><a name="subkey_TA"></a><a href="../newentity_blocks.htm"><b>take</b></a> <br><a href="../sketcher.htm"><b>tangent</b></a> <br><nobr>target <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> </nobr><br><a name="bms_TE"></a><a name="subkey_TE"></a><a href="../newentity_blocks.htm"><b>tetrahedral</b></a> <br><a name="bms_TH"></a><a name="subkey_TH"></a><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>theendlcs</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>them</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>theobject</b></a> <br><a href="../sketcher.htm"><b>therefore</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>theshape</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>thestartlcs</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>thetolerance</b></a> <br><a name="bms_TI"></a><a name="subkey_TI"></a><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>times</b></a> <br><a name="bms_TO"></a><a name="subkey_TO"></a><a href="../files/salome2_sp3_repairgui_functions.htm"><b>tobezier</b></a> <br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>tol2d</b></a> <br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>tol3d</b></a> <br><nobr>tolerance <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>tolerance2d</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>tolerance3d</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>tolerances</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>tools</b></a> <br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>torus</b></a> <br><a name="bms_TR"></a><a name="subkey_TR"></a><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>transform</b></a> <br><nobr>transformation <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../blocks.htm"><b>3</b></a> </nobr><br><nobr>transformations <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../files/introduction_to_geom.htm"><b>2</b></a> </nobr><br><nobr>transformed <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>translated</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>translation</b></a> <br><nobr>translations <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> </nobr><br><a href="../changing_displaying_parameters.htm"><b>transparency</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>trihedron</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>trimsize</b></a> <br><nobr>true <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>3</b></a> </nobr><br><nobr><a name="bms_TU"></a><a name="subkey_TU"></a>tui <a href="../sketcher.htm"><b>1</b></a> <a href="../newentity_blocks.htm"><b>2</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>9</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>10</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>11</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>12</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>13</b></a> <a href="../changing_displaying_parameters.htm"><b>14</b></a> <a href="../working_with_groups.htm"><b>15</b></a> </nobr><br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>tuple</b></a> <br><nobr><a name="bms_TW"></a><a name="subkey_TW"></a>two <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>6</b></a> </nobr><br><nobr><a name="bms_TY"></a><a name="subkey_TY"></a>type <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>5</b></a> <a href="../working_with_groups.htm"><b>6</b></a> </nobr><br><a href="../files/salome2_sp3_buildgui_functions.htm"><b>typeofshape</b></a> <br><nobr>types <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>3</b></a> </nobr><br>\r
-<br><br>\r
-<a name="bm_U"></a><a name="subkey_UN"></a><a href="../files/salome2_sp3_repairgui_functions.htm"><b>underlying</b></a> <br><nobr><a name="bms_UP"></a><a name="subkey_UP"></a>up <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>2</b></a> <a href="../changing_displaying_parameters.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>updated</b></a> <br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>upper</b></a> <br><nobr><a name="bms_US"></a><a name="subkey_US"></a>used <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>3</b></a> </nobr><br><nobr>user <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>4</b></a> </nobr><br><nobr>using <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>9</b></a> <a href="../files/introduction_to_geom.htm"><b>10</b></a> </nobr><br><br><br></p><p class="ftsbody" align="center"><a href="whlstf5.htm" target="_self" title="previous search group"><b>>></b></a>\r
+<a name="bm_T"></a><a name="subkey_TA"></a><a href="../sketcher.htm"><b>tangent</b></a> <br><nobr>target <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> </nobr><br><a name="bms_TE"></a><a name="subkey_TE"></a><a href="../newentity_blocks.htm"><b>tetrahedral</b></a> <br><a name="bms_TH"></a><a name="subkey_TH"></a><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>theendlcs</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>them</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>theobject</b></a> <br><a href="../sketcher.htm"><b>therefore</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>theshape</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>thestartlcs</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>thetolerance</b></a> <br><a name="bms_TI"></a><a name="subkey_TI"></a><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>times</b></a> <br><a name="bms_TO"></a><a name="subkey_TO"></a><a href="../files/salome2_sp3_repairgui_functions.htm"><b>tobezier</b></a> <br><a href="../working_with_groups.htm"><b>toggle</b></a> <br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>tol2d</b></a> <br><a href="../files/salome2_sp3_generationgui_functions.htm"><b>tol3d</b></a> <br><nobr>tolerance <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>tolerance2d</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>tolerance3d</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>tolerances</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>tools</b></a> <br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>torus</b></a> <br><br><br></p><p class="ftsbody" align="center"><a href="whlstf5.htm" target="_self" title="previous search group"><b>>></b></a>\r
\r
</body>\r
\r
<body marginheight="0" marginwidth="0" bgproperties="fixed">\r
<p class="ftsbody" align="center"><a href="whlstf4.htm" target="_self" title="previous search group"><b><<</b></a><br><br></p>\r
<p class="ftsbody" >\r
-\r
-\r
-<a name="bm_V"></a><a name="subkey_V{"></a><a href="../newentity_blocks.htm"><b>v1</b></a> <br><a href="../newentity_blocks.htm"><b>v2</b></a> <br><a href="../newentity_blocks.htm"><b>v3</b></a> <br><a href="../newentity_blocks.htm"><b>v4</b></a> <br><a name="bms_VA"></a><a name="subkey_VA"></a><a href="../files/salome2_sp3_repairgui_functions.htm"><b>val</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>valid</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>validity</b></a> <br><nobr>value <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>7</b></a> </nobr><br><nobr>values <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>6</b></a> <a href="../changing_displaying_parameters.htm"><b>7</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>various</b></a> <br><nobr><a name="bms_VE"></a><a name="subkey_VE"></a>vector <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>5</b></a> </nobr><br><nobr>vectors <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><nobr>vertex <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>7</b></a> </nobr><br><a href="../files/salome2_sp3_buildgui_functions.htm"><b>vertex1</b></a> <br><a href="../files/salome2_sp3_buildgui_functions.htm"><b>vertex2</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>vertexmaxtol</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>vertexmintol</b></a> <br><nobr>vertices <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>6</b></a> </nobr><br><a name="bms_VI"></a><a name="subkey_VI"></a><a href="../files/salome2_sp3_displaygui_functions.htm"><b>view</b></a> <br><nobr>viewer <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> <a href="../changing_displaying_parameters.htm"><b>4</b></a> </nobr><br><a href="../files/salome2_sp3_displaygui_functions.htm"><b>viewers</b></a> <br><a href="../files/salome2_sp3_displaygui_functions.htm"><b>visibility</b></a> <br><nobr>visualization <a href="../files/salome2_sp3_displaygui_functions.htm"><b>1</b></a> <a href="../changing_displaying_parameters.htm"><b>2</b></a> </nobr><br><a name="bms_VO"></a><a name="subkey_VO"></a><a href="../files/salome2_sp3_measuregui_functions.htm"><b>volume</b></a> <br><a name="bms_VT"></a><a name="subkey_VT"></a><a href="../files/salome2_sp3_displaygui_functions.htm"><b>vtk</b></a> <br><a name="bms_VX"></a><a name="subkey_VX"></a><a href="../sketcher.htm"><b>vx</b></a> <br>\r
+<a name="bms_TR"></a><a name="subkey_TR"></a><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>transform</b></a> <br><nobr>transformation <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../blocks.htm"><b>3</b></a> </nobr><br><nobr>transformations <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../files/introduction_to_geom.htm"><b>2</b></a> </nobr><br><nobr>transformed <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>2</b></a> </nobr><br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>translated</b></a> <br><a href="../files/salome2_sp3_transformationgui_functions.htm"><b>translation</b></a> <br><nobr>translations <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> </nobr><br><a href="../changing_displaying_parameters.htm"><b>transparency</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>trihedron</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>trimsize</b></a> <br><nobr>true <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>3</b></a> </nobr><br><nobr><a name="bms_TU"></a><a name="subkey_TU"></a>tui <a href="../sketcher.htm"><b>1</b></a> <a href="../newentity_blocks.htm"><b>2</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>9</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>10</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>11</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>12</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>13</b></a> <a href="../changing_displaying_parameters.htm"><b>14</b></a> <a href="../working_with_groups.htm"><b>15</b></a> </nobr><br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>tuple</b></a> <br><nobr><a name="bms_TW"></a><a name="subkey_TW"></a>two <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>7</b></a> </nobr><br><nobr><a name="bms_TY"></a><a name="subkey_TY"></a>type <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>5</b></a> <a href="../working_with_groups.htm"><b>6</b></a> </nobr><br><a href="../files/salome2_sp3_buildgui_functions.htm"><b>typeofshape</b></a> <br><nobr>types <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>3</b></a> </nobr><br>\r
+<br><br>\r
+<a name="bm_U"></a><a name="subkey_UN"></a><a href="../files/salome2_sp3_repairgui_functions.htm"><b>underlying</b></a> <br><nobr><a name="bms_UP"></a><a name="subkey_UP"></a>up <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>2</b></a> <a href="../changing_displaying_parameters.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>updated</b></a> <br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>upper</b></a> <br><nobr><a name="bms_US"></a><a name="subkey_US"></a>used <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>3</b></a> <a href="../working_with_groups.htm"><b>4</b></a> </nobr><br><a href="../working_with_groups.htm"><b>useful</b></a> <br><nobr>user <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> </nobr><br><nobr>using <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>7</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>8</b></a> <a href="../files/salome2_sp3_booleangui_functions.htm"><b>9</b></a> <a href="../files/introduction_to_geom.htm"><b>10</b></a> </nobr><br>\r
+<br><br>\r
+<a name="bm_V"></a><a name="subkey_V{"></a><a href="../newentity_blocks.htm"><b>v1</b></a> <br><a href="../newentity_blocks.htm"><b>v2</b></a> <br><a href="../newentity_blocks.htm"><b>v3</b></a> <br><a href="../newentity_blocks.htm"><b>v4</b></a> <br><a name="bms_VA"></a><a name="subkey_VA"></a><a href="../files/salome2_sp3_repairgui_functions.htm"><b>val</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>valid</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>validity</b></a> <br><nobr>value <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>7</b></a> </nobr><br><nobr>values <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>6</b></a> <a href="../changing_displaying_parameters.htm"><b>7</b></a> </nobr><br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>various</b></a> <br><nobr><a name="bms_VE"></a><a name="subkey_VE"></a>vector <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>5</b></a> </nobr><br><nobr>vectors <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> </nobr><br><nobr>vertex <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>6</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>7</b></a> </nobr><br><a href="../files/salome2_sp3_buildgui_functions.htm"><b>vertex1</b></a> <br><a href="../files/salome2_sp3_buildgui_functions.htm"><b>vertex2</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>vertexmaxtol</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>vertexmintol</b></a> <br><nobr>vertices <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_primitivegui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>5</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>6</b></a> </nobr><br><nobr><a name="bms_VI"></a><a name="subkey_VI"></a>via <a href="../sketcher.htm"><b>1</b></a> <a href="../newentity_blocks.htm"><b>2</b></a> <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>3</b></a> <a href="../working_with_groups.htm"><b>4</b></a> </nobr><br><a href="../files/salome2_sp3_displaygui_functions.htm"><b>view</b></a> <br><nobr>viewer <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>4</b></a> <a href="../changing_displaying_parameters.htm"><b>5</b></a> <a href="../working_with_groups.htm"><b>6</b></a> </nobr><br><a href="../files/salome2_sp3_displaygui_functions.htm"><b>viewers</b></a> <br><a href="../files/salome2_sp3_displaygui_functions.htm"><b>visibility</b></a> <br><nobr>visualization <a href="../files/salome2_sp3_displaygui_functions.htm"><b>1</b></a> <a href="../changing_displaying_parameters.htm"><b>2</b></a> </nobr><br><a name="bms_VO"></a><a name="subkey_VO"></a><a href="../files/salome2_sp3_measuregui_functions.htm"><b>volume</b></a> <br><a name="bms_VT"></a><a name="subkey_VT"></a><a href="../files/salome2_sp3_displaygui_functions.htm"><b>vtk</b></a> <br><a name="bms_VX"></a><a name="subkey_VX"></a><a href="../sketcher.htm"><b>vx</b></a> <br>\r
<br><br>\r
-<a name="bm_W"></a><a name="subkey_WA"></a><a href="../files/salome2_sp3_buildgui_functions.htm"><b>wantplanarface</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>water</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>waterdensity</b></a> <br><a name="bms_WE"></a><a name="subkey_WE"></a><a href="../files/salome2_sp3_operationgui_functions.htm"><b>weight</b></a> <br><a name="bms_WH"></a><a name="subkey_WH"></a><a href="../files/salome2_sp3_measuregui_functions.htm"><b>whatis</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>while</b></a> <br><nobr>whose <a href="../files/salome2_sp3_measuregui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>2</b></a> </nobr><br><a name="bms_WI"></a><a name="subkey_WI"></a><a href="../files/introduction_to_geom.htm"><b>wide</b></a> <br><nobr>will <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>5</b></a> </nobr><br><nobr>wire <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>3</b></a> </nobr><br><a href="../changing_displaying_parameters.htm"><b>wireframe</b></a> <br><nobr>wires <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>3</b></a> </nobr><br><nobr>within <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../changing_displaying_parameters.htm"><b>2</b></a> </nobr><br><nobr><a name="bms_WO"></a><a name="subkey_WO"></a>work <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>2</b></a> </nobr><br><nobr>working <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> <a href="../working_with_groups.htm"><b>3</b></a> </nobr><br>\r
+<a name="bm_W"></a><a name="subkey_WA"></a><a href="../files/salome2_sp3_buildgui_functions.htm"><b>wantplanarface</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>water</b></a> <br><a href="../files/salome2_sp3_operationgui_functions.htm"><b>waterdensity</b></a> <br><a name="bms_WE"></a><a name="subkey_WE"></a><a href="../files/salome2_sp3_operationgui_functions.htm"><b>weight</b></a> <br><a name="bms_WH"></a><a name="subkey_WH"></a><a href="../files/salome2_sp3_measuregui_functions.htm"><b>whatis</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>whether</b></a> <br><a href="../files/salome2_sp3_repairgui_functions.htm"><b>while</b></a> <br><nobr>whose <a href="../files/salome2_sp3_measuregui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>2</b></a> </nobr><br><a name="bms_WI"></a><a name="subkey_WI"></a><a href="../files/introduction_to_geom.htm"><b>wide</b></a> <br><nobr>will <a href="../files/salome2_sp3_transformationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_operationgui_functions.htm"><b>3</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>4</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>5</b></a> </nobr><br><nobr>wire <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_generationgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>3</b></a> </nobr><br><a href="../changing_displaying_parameters.htm"><b>wireframe</b></a> <br><nobr>wires <a href="../newentity_blocks.htm"><b>1</b></a> <a href="../files/salome2_sp3_repairgui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_buildgui_functions.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>wish</b></a> <br><nobr>within <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../changing_displaying_parameters.htm"><b>2</b></a> </nobr><br><nobr><a name="bms_WO"></a><a name="subkey_WO"></a>work <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_displaygui_functions.htm"><b>2</b></a> </nobr><br><nobr>working <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>2</b></a> <a href="../working_with_groups.htm"><b>3</b></a> </nobr><br>\r
<br><br>\r
<nobr><a name="bm_X"></a><a name="subkey_X{"></a>x <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>x1</b></a> <br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>x2</b></a> <br><a name="bms_XD"></a><a name="subkey_XD"></a><a href="../files/salome2_sp3_basicgui_functions.htm"><b>xdx</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>xdy</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>xdz</b></a> <br><a name="bms_XM"></a><a name="subkey_XM"></a><a href="../files/salome2_sp3_measuregui_functions.htm"><b>xmax</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>xmin</b></a> <br><a name="bms_XO"></a><a name="subkey_XO"></a><a href="../sketcher.htm"><b>xoy</b></a> <br><a name="bms_XY"></a><a name="subkey_XY"></a><a href="../files/salome2_sp3_basicgui_functions.htm"><b>xyz</b></a> <br>\r
<br><br>\r
-<nobr><a name="bm_Y"></a><a name="subkey_Y{"></a>y <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>y1</b></a> <br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>y2</b></a> <br><a name="bms_YD"></a><a name="subkey_YD"></a><a href="../files/salome2_sp3_basicgui_functions.htm"><b>ydx</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>ydy</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>ydz</b></a> <br><a name="bms_YM"></a><a name="subkey_YM"></a><a href="../files/salome2_sp3_measuregui_functions.htm"><b>ymax</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>ymin</b></a> <br><nobr><a name="bms_YO"></a><a name="subkey_YO"></a>your <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>3</b></a> </nobr><br>\r
+<nobr><a name="bm_Y"></a><a name="subkey_Y{"></a>y <a href="../sketcher.htm"><b>1</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>y1</b></a> <br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>y2</b></a> <br><a name="bms_YD"></a><a name="subkey_YD"></a><a href="../files/salome2_sp3_basicgui_functions.htm"><b>ydx</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>ydy</b></a> <br><a href="../files/salome2_sp3_basicgui_functions.htm"><b>ydz</b></a> <br><a name="bms_YM"></a><a name="subkey_YM"></a><a href="../files/salome2_sp3_measuregui_functions.htm"><b>ymax</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>ymin</b></a> <br><nobr><a name="bms_YO"></a><a name="subkey_YO"></a>your <a href="../files/salome2_sp3_repairgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_geomtoolsgui_functions.htm"><b>3</b></a> <a href="../working_with_groups.htm"><b>4</b></a> </nobr><br>\r
<br><br>\r
<nobr><a name="bm_Z"></a><a name="subkey_Z{"></a>z <a href="../files/salome2_sp3_operationgui_functions.htm"><b>1</b></a> <a href="../files/salome2_sp3_measuregui_functions.htm"><b>2</b></a> <a href="../files/salome2_sp3_basicgui_functions.htm"><b>3</b></a> </nobr><br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>z1</b></a> <br><a href="../files/salome2_sp3_primitivegui_functions.htm"><b>z2</b></a> <br><a name="bms_ZM"></a><a name="subkey_ZM"></a><a href="../files/salome2_sp3_measuregui_functions.htm"><b>zmax</b></a> <br><a href="../files/salome2_sp3_measuregui_functions.htm"><b>zmin</b></a> <br><br><br></p>\r
</body>\r
</head>\r
<body marginheight="0" marginwidth="0" bgproperties="fixed">\r
\r
-<p class="ftsheader"><a name="subkey_R"></a> <a href="whnvl32.htm#home" target="_self" title="back to top level"><b>^</b></a> <a href="whlstf3.htm#bm_R" target="ftslist" title="search letter RA"><b>RA</b></a> <a href="whlstf3.htm#bms_RE" target="ftslist" title="search letter RE"><b>RE</b></a> <a href="whlstf4.htm#bms_RI" target="ftslist" title="search letter RI"><b>RI</b></a> <a href="whlstf4.htm#bms_RO" target="ftslist" title="search letter RO"><b>RO</b></a> <a href="whnvl32.htm#home" target="_self" title="back to top level"><b>^</b></a></p>\r
+<p class="ftsheader"><a name="subkey_R"></a> <a href="whnvl32.htm#home" target="_self" title="back to top level"><b>^</b></a> <a href="whlstf3.htm#bm_R" target="ftslist" title="search letter RA"><b>RA</b></a> <a href="whlstf4.htm#bms_RE" target="ftslist" title="search letter RE"><b>RE</b></a> <a href="whlstf4.htm#bms_RI" target="ftslist" title="search letter RI"><b>RI</b></a> <a href="whlstf4.htm#bms_RO" target="ftslist" title="search letter RO"><b>RO</b></a> <a href="whnvl32.htm#home" target="_self" title="back to top level"><b>^</b></a></p>\r
\r
</body>\r
\r
</head>\r
<body marginheight="0" marginwidth="0" bgproperties="fixed">\r
\r
-<p class="ftsheader"><a name="subkey_T"></a> <a href="whnvl32.htm#home" target="_self" title="back to top level"><b>^</b></a> <a href="whlstf4.htm#bm_T" target="ftslist" title="search letter TA"><b>TA</b></a> <a href="whlstf4.htm#bms_TE" target="ftslist" title="search letter TE"><b>TE</b></a> <a href="whlstf4.htm#bms_TH" target="ftslist" title="search letter TH"><b>TH</b></a> <a href="whlstf4.htm#bms_TI" target="ftslist" title="search letter TI"><b>TI</b></a> <a href="whlstf4.htm#bms_TO" target="ftslist" title="search letter TO"><b>TO</b></a> <a href="whlstf4.htm#bms_TR" target="ftslist" title="search letter TR"><b>TR</b></a> <a href="whlstf4.htm#bms_TU" target="ftslist" title="search letter TU"><b>TU</b></a> <a href="whlstf4.htm#bms_TW" target="ftslist" title="search letter TW"><b>TW</b></a> <a href="whlstf4.htm#bms_TY" target="ftslist" title="search letter TY"><b>TY</b></a> <a href="whnvl32.htm#home" target="_self" title="back to top level"><b>^</b></a></p>\r
+<p class="ftsheader"><a name="subkey_T"></a> <a href="whnvl32.htm#home" target="_self" title="back to top level"><b>^</b></a> <a href="whlstf4.htm#bm_T" target="ftslist" title="search letter TA"><b>TA</b></a> <a href="whlstf4.htm#bms_TE" target="ftslist" title="search letter TE"><b>TE</b></a> <a href="whlstf4.htm#bms_TH" target="ftslist" title="search letter TH"><b>TH</b></a> <a href="whlstf4.htm#bms_TI" target="ftslist" title="search letter TI"><b>TI</b></a> <a href="whlstf4.htm#bms_TO" target="ftslist" title="search letter TO"><b>TO</b></a> <a href="whlstf5.htm#bms_TR" target="ftslist" title="search letter TR"><b>TR</b></a> <a href="whlstf5.htm#bms_TU" target="ftslist" title="search letter TU"><b>TU</b></a> <a href="whlstf5.htm#bms_TW" target="ftslist" title="search letter TW"><b>TW</b></a> <a href="whlstf5.htm#bms_TY" target="ftslist" title="search letter TY"><b>TY</b></a> <a href="whnvl32.htm#home" target="_self" title="back to top level"><b>^</b></a></p>\r
\r
</body>\r
\r
</head>\r
<body marginheight="0" marginwidth="0" bgproperties="fixed">\r
\r
-<p class="ftsheader"><a name="subkey_U"></a> <a href="whnvl32.htm#home" target="_self" title="back to top level"><b>^</b></a> <a href="whlstf4.htm#bm_U" target="ftslist" title="search letter UN"><b>UN</b></a> <a href="whlstf4.htm#bms_UP" target="ftslist" title="search letter UP"><b>UP</b></a> <a href="whlstf4.htm#bms_US" target="ftslist" title="search letter US"><b>US</b></a> <a href="whnvl32.htm#home" target="_self" title="back to top level"><b>^</b></a></p>\r
+<p class="ftsheader"><a name="subkey_U"></a> <a href="whnvl32.htm#home" target="_self" title="back to top level"><b>^</b></a> <a href="whlstf5.htm#bm_U" target="ftslist" title="search letter UN"><b>UN</b></a> <a href="whlstf5.htm#bms_UP" target="ftslist" title="search letter UP"><b>UP</b></a> <a href="whlstf5.htm#bms_US" target="ftslist" title="search letter US"><b>US</b></a> <a href="whnvl32.htm#home" target="_self" title="back to top level"><b>^</b></a></p>\r
\r
</body>\r
\r
</head>\r
<body marginheight="0" marginwidth="0" bgproperties="fixed">\r
\r
-<p class="ftsheader"><a name="subkey_E"></a> <a href="whnvl32.htm#home" target="_self" title="back to top level"><b>^</b></a> <a href="whlstf1.htm#bm_E" target="ftslist" title="search letter E "><b>E </b></a> <a href="whlstf1.htm#bms_ED" target="ftslist" title="search letter ED"><b>ED</b></a> <a href="whlstf1.htm#bms_EG" target="ftslist" title="search letter EG"><b>EG</b></a> <a href="whlstf1.htm#bms_EI" target="ftslist" title="search letter EI"><b>EI</b></a> <a href="whlstf1.htm#bms_EL" target="ftslist" title="search letter EL"><b>EL</b></a> <a href="whlstf1.htm#bms_EM" target="ftslist" title="search letter EM"><b>EM</b></a> <a href="whlstf1.htm#bms_EN" target="ftslist" title="search letter EN"><b>EN</b></a> <a href="whlstf1.htm#bms_EQ" target="ftslist" title="search letter EQ"><b>EQ</b></a> <a href="whlstf1.htm#bms_ER" target="ftslist" title="search letter ER"><b>ER</b></a> <a href="whlstf1.htm#bms_ET" target="ftslist" title="search letter ET"><b>ET</b></a> <a href="whlstf1.htm#bms_EX" target="ftslist" title="search letter EX"><b>EX</b></a> <a href="whnvl32.htm#home" target="_self" title="back to top level"><b>^</b></a></p>\r
+<p class="ftsheader"><a name="subkey_E"></a> <a href="whnvl32.htm#home" target="_self" title="back to top level"><b>^</b></a> <a href="whlstf1.htm#bm_E" target="ftslist" title="search letter E "><b>E </b></a> <a href="whlstf1.htm#bms_EA" target="ftslist" title="search letter EA"><b>EA</b></a> <a href="whlstf1.htm#bms_ED" target="ftslist" title="search letter ED"><b>ED</b></a> <a href="whlstf1.htm#bms_EG" target="ftslist" title="search letter EG"><b>EG</b></a> <a href="whlstf1.htm#bms_EI" target="ftslist" title="search letter EI"><b>EI</b></a> <a href="whlstf1.htm#bms_EL" target="ftslist" title="search letter EL"><b>EL</b></a> <a href="whlstf1.htm#bms_EM" target="ftslist" title="search letter EM"><b>EM</b></a> <a href="whlstf1.htm#bms_EN" target="ftslist" title="search letter EN"><b>EN</b></a> <a href="whlstf1.htm#bms_EQ" target="ftslist" title="search letter EQ"><b>EQ</b></a> <a href="whlstf1.htm#bms_ER" target="ftslist" title="search letter ER"><b>ER</b></a> <a href="whlstf1.htm#bms_ET" target="ftslist" title="search letter ET"><b>ET</b></a> <a href="whlstf1.htm#bms_EX" target="ftslist" title="search letter EX"><b>EX</b></a> <a href="whnvl32.htm#home" target="_self" title="back to top level"><b>^</b></a></p>\r
\r
</body>\r
\r
</head>\r
<body marginheight="0" marginwidth="0" bgproperties="fixed">\r
\r
-<p class="ftsheader"><a name="subkey_F"></a> <a href="whnvl32.htm#home" target="_self" title="back to top level"><b>^</b></a> <a href="whlstf1.htm#bm_F" target="ftslist" title="search letter F "><b>F </b></a> <a href="whlstf1.htm#bms_FA" target="ftslist" title="search letter FA"><b>FA</b></a> <a href="whlstf1.htm#bms_FI" target="ftslist" title="search letter FI"><b>FI</b></a> <a href="whlstf2.htm#bms_FO" target="ftslist" title="search letter FO"><b>FO</b></a> <a href="whlstf2.htm#bms_FR" target="ftslist" title="search letter FR"><b>FR</b></a> <a href="whlstf2.htm#bms_FU" target="ftslist" title="search letter FU"><b>FU</b></a> <a href="whnvl32.htm#home" target="_self" title="back to top level"><b>^</b></a></p>\r
+<p class="ftsheader"><a name="subkey_F"></a> <a href="whnvl32.htm#home" target="_self" title="back to top level"><b>^</b></a> <a href="whlstf1.htm#bm_F" target="ftslist" title="search letter F "><b>F </b></a> <a href="whlstf1.htm#bms_FA" target="ftslist" title="search letter FA"><b>FA</b></a> <a href="whlstf2.htm#bms_FI" target="ftslist" title="search letter FI"><b>FI</b></a> <a href="whlstf2.htm#bms_FL" target="ftslist" title="search letter FL"><b>FL</b></a> <a href="whlstf2.htm#bms_FO" target="ftslist" title="search letter FO"><b>FO</b></a> <a href="whlstf2.htm#bms_FR" target="ftslist" title="search letter FR"><b>FR</b></a> <a href="whlstf2.htm#bms_FU" target="ftslist" title="search letter FU"><b>FU</b></a> <a href="whnvl32.htm#home" target="_self" title="back to top level"><b>^</b></a></p>\r
\r
</body>\r
\r
</style>\r
</head>\r
<body marginheight="0" marginwidth="0" bgproperties="fixed">\r
-<p class="ndxbody">\r
-<br><br></p>\r
\r
</body>\r
\r
</style>\r
</head>\r
<body marginheight="0" marginwidth="0" bgproperties="fixed">\r
-<p class="ndxheader">\r
- <font class="inactive">#</font> \r
- <font class="inactive">A</font> \r
- <font class="inactive">B</font> \r
- <font class="inactive">C</font> \r
- <font class="inactive">D</font> \r
- <font class="inactive">E</font> \r
- <font class="inactive">F</font> \r
- <font class="inactive">G</font> \r
- <font class="inactive">H</font> \r
- <font class="inactive">I</font> \r
- <font class="inactive">J</font> \r
- <font class="inactive">K</font> \r
- <font class="inactive">L</font> \r
- <font class="inactive">M</font> \r
- <font class="inactive">N</font> \r
- <font class="inactive">O</font> \r
- <font class="inactive">P</font> \r
- <font class="inactive">Q</font> \r
- <font class="inactive">R</font> \r
- <font class="inactive">S</font> \r
- <font class="inactive">T</font> \r
- <font class="inactive">U</font> \r
- <font class="inactive">V</font> \r
- <font class="inactive">W</font> \r
- <font class="inactive">X</font> \r
- <font class="inactive">Y</font> \r
- <font class="inactive">Z</font> \r
-</p>\r
\r
<body>\r
</html>\r
<table class="tabs" width="100%">\r
<tr> \r
<td class="tabs">\r
- <nobr><a href="javascript:void(0)" title="Contents"><img src="../wht_tab1.gif" border="0"></a><a href="whnvp31.htm" target="_parent" title="Index"><img src="../wht_tab4.gif" border="0"></a><a href="whnvp32.htm" target="_parent" title="Search"><img src="../wht_tab6.gif" border="0"></a><a href="whnvp33.htm" target="_parent" title="Glossary"><img src="../wht_tab8.gif" border="0"></a></nobr>\r
+ <nobr><a href="javascript:void(0)" title="Contents"><img src="../wht_tab1.gif" border="0"></a><a href="whnvp32.htm" target="_parent" title="Search"><img src="../wht_tab6.gif" border="0"></a><a href="whnvp33.htm" target="_parent" title="Glossary"><img src="../wht_tab8.gif" border="0"></a></nobr>\r
</td>\r
</tr>\r
</table>\r
<table class="tabs" width="100%">\r
<tr> \r
<td class="tabs">\r
- <nobr><a href="whnvp30.htm" target="_parent" title="Contents"><img src="../wht_tab2.gif" border="0"></a><a href="javascript:void(0)" title="Index"><img src="../wht_tab3.gif" border="0"></a><a href="whnvp32.htm" target="_parent" title="Search"><img src="../wht_tab6.gif" border="0"></a><a href="whnvp33.htm" target="_parent" title="Glossary"><img src="../wht_tab8.gif" border="0"></a></nobr>\r
+ <nobr><a href="whnvp30.htm" target="_parent" title="Contents"><img src="../wht_tab2.gif" border="0"></a><a href="whnvp32.htm" target="_parent" title="Search"><img src="../wht_tab6.gif" border="0"></a><a href="whnvp33.htm" target="_parent" title="Glossary"><img src="../wht_tab8.gif" border="0"></a></nobr>\r
</td>\r
</tr>\r
</table>\r
<table class="tabs" width="100%">\r
<tr> \r
<td class="tabs">\r
- <nobr><a href="whnvp30.htm" target="_parent" title="Contents"><img src="../wht_tab2.gif" border="0"></a><a href="whnvp31.htm" target="_parent" title="Index"><img src="../wht_tab4.gif" border="0"></a><a href="javascript:void(0)" title="Search"><img src="../wht_tab5.gif" border="0"></a><a href="whnvp33.htm" target="_parent" title="Glossary"><img src="../wht_tab8.gif" border="0"></a></nobr>\r
+ <nobr><a href="whnvp30.htm" target="_parent" title="Contents"><img src="../wht_tab2.gif" border="0"></a><a href="javascript:void(0)" title="Search"><img src="../wht_tab5.gif" border="0"></a><a href="whnvp33.htm" target="_parent" title="Glossary"><img src="../wht_tab8.gif" border="0"></a></nobr>\r
</td>\r
</tr>\r
</table>\r
<table class="tabs" width="100%">\r
<tr> \r
<td class="tabs">\r
- <nobr><a href="whnvp30.htm" target="_parent" title="Contents"><img src="../wht_tab2.gif" border="0"></a><a href="whnvp31.htm" target="_parent" title="Index"><img src="../wht_tab4.gif" border="0"></a><a href="whnvp32.htm" target="_parent" title="Search"><img src="../wht_tab6.gif" border="0"></a><a href="javascript:void(0)" title="Glossary"><img src="../wht_tab7.gif" border="0"></a></nobr>\r
+ <nobr><a href="whnvp30.htm" target="_parent" title="Contents"><img src="../wht_tab2.gif" border="0"></a><a href="whnvp32.htm" target="_parent" title="Search"><img src="../wht_tab6.gif" border="0"></a><a href="javascript:void(0)" title="Glossary"><img src="../wht_tab7.gif" border="0"></a></nobr>\r
</td>\r
</tr>\r
</table>\r
setLangId("1033");\r
setDataPath("whdata");\r
addToc("whtoc.htm");\r
- addIdx("whidx.htm");\r
+\r
addFts("whfts.htm");\r
addGlo("whglo.htm");\r
\r
<?xml version='1.0' encoding='windows-1252' ?>\r
-<project langid="1033" datapath="whxdata" toc="whtoc.xml" index="whidx.xml" fts="whfts.xml" glossary="whglo.xml" >\r
+<project langid="1033" datapath="whxdata" toc="whtoc.xml" fts="whfts.xml" glossary="whglo.xml" >\r
</project>\r
\r
<panes show="0">\r
<toc />\r
- <index />\r
<fts />\r
<glossary />\r
</panes>\r
<table>\r
<tr><td> Start Page </td><td>geom.htm</td></tr>\r
<tr><td> Skin Name </td><td>Default</td></tr>\r
-<tr><td> Generating Time </td><td>16:19 11/25/2004</td></tr>\r
+<tr><td> Generating Time </td><td>13:16 03/01/2005</td></tr>\r
<tr><td> Language ID </td><td>1033</td></tr>\r
<tr><td> Compile Script </td><td>webhelp5_compile_script.xml</td></tr>\r
-<tr><td> Compile Build Version </td><td>13.00.584</td></tr>\r
+<tr><td> Compile Build Version </td><td>13.10.606</td></tr>\r
<tr><td> Product Name </td><td>WebHelp 5.50</td></tr>\r
<tr><td> Authoring Tool Name </td><td>RoboHelp X5</td></tr>\r
<table>\r
gsInitPane=sName;\r
}\r
addPane("toc","whtdhtml.htm");\r
- addPane("idx","whidhtml.htm");\r
addPane("fts","whfdhtml.htm");\r
addPane("glo","whgdhtml.htm");\r
setShowPane("toc");\r
var strProjectFileHTM = "whproj.htm"; \r
addProject(bPreferXML, strProjectFileXML, strProjectFileHTM);\r
addPane("toc","whtdhtml.htm");\r
- addPane("idx","whidhtml.htm");\r
addPane("fts","whfdhtml.htm");\r
addPane("glo","whgdhtml.htm");\r
setShowPane("toc");\r
setButtonBgColor("banner","", true);\r
\r
addButton("toc",BTN_TEXT|BTN_IMG,"Contents","","","","",0,0,"","","","","","");\r
-addButton("idx",BTN_TEXT|BTN_IMG,"Index","","","","",0,0,"","","","","","");\r
addButton("fts",BTN_TEXT|BTN_IMG,"Search","","","","",0,0,"","","","","","");\r
addButton("glo",BTN_TEXT|BTN_IMG,"Glossary","","","","",0,0,"","","","","","");\r
addButton("searchform",BTN_TEXT,"","","","","",0,0,"","","","","","");\r
}\r
}\r
\r
-var gsToolbarOrder = "toc|idx|fts|glo|blankblock|searchform|banner";\r
+var gsToolbarOrder = "toc|fts|glo|blankblock|searchform|banner";\r
var gsMinibarOrder = "blankblock|hide2|";\r
\r
var gsTopic = "files/introduction_to_geom.htm";\r
<?xml version='1.0' encoding='windows-1252' ?>\r
<fts>\r
-<chunkinfo url="whfwdata0.xml" first="0" last="geometry"/>\r
-<chunkinfo url="whfwdata1.xml" first="geompy" last="radiu"/>\r
-<chunkinfo url="whfwdata2.xml" first="radius" last="zmin"/>\r
+<chunkinfo url="whfwdata0.xml" first="0" last="zmin"/>\r
\r
<tchunkinfo first="0" last="16" url="whftdata0.xml" />\r
\r
<ftswdata>\r
<key name="0"> 1,12, </key>\r
<key name="1"> 1,15,3,4,7,5,11,12,13,10,9,16, </key>\r
+<key name="12"> 9, </key>\r
<key name="1d"> 3,10, </key>\r
<key name="1st"> 3,11,12,13,10, </key>\r
<key name="2"> 14,1,15,3,4,5,11,12,13,10,9, </key>\r
<key name="3st"> 13, </key>\r
<key name="4"> 14,15,4,12,10, </key>\r
<key name="5"> 15,7,12, </key>\r
-<key name="6"> 14,12, </key>\r
+<key name="6"> 14,12,9, </key>\r
<key name="7"> 12, </key>\r
<key name="8"> 12, </key>\r
<key name="9"> 15,12, </key>\r
<key name="90"> 15, </key>\r
<key name="abl"> 15, </key>\r
<key name="absolut"> 15, </key>\r
+<key name="accessibl"> 13, </key>\r
<key name="accord"> 3,12, </key>\r
<key name="accordanc"> 12, </key>\r
<key name="achiev"> 12, </key>\r
<key name="associat"> 6, </key>\r
<key name="attribut"> 6, </key>\r
<key name="automatical"> 14,3, </key>\r
-<key name="availabl"> 6,12, </key>\r
+<key name="availabl"> 14,15,6,12,16, </key>\r
<key name="ax"> 3, </key>\r
<key name="axi"> 3,7,11,13,9, </key>\r
<key name="b"> 3, </key>\r
+<key name="background"> 16, </key>\r
<key name="bas"> 7,11,12,13, </key>\r
<key name="baseshap"> 7, </key>\r
<key name="basi"> 7, </key>\r
<key name="befor"> 15,12, </key>\r
<key name="below"> 14, </key>\r
<key name="bezi"> 3,12, </key>\r
-<key name="block"> 14,0,10, </key>\r
+<key name="block"> 14,0,10,9, </key>\r
<key name="boolean"> 2,4,5,9, </key>\r
<key name="both"> 6, </key>\r
<key name="bound"> 9, </key>\r
<key name="boundary"> 12, </key>\r
<key name="boundingbox"> 9, </key>\r
<key name="box"> 14,1,15,3,4,8,7,5,11,12,13,10,9,16, </key>\r
+<key name="break"> 10, </key>\r
<key name="brep"> 2,8, </key>\r
<key name="brows"> 3,6,8, </key>\r
<key name="bsplin"> 12, </key>\r
<key name="chang"> 1, </key>\r
<key name="check"> 12,10,9, </key>\r
<key name="checkbox"> 12,13, </key>\r
+<key name="checkcompoundofblock"> 9, </key>\r
<key name="checkshap"> 9, </key>\r
<key name="choos"> 6,8,10, </key>\r
<key name="circl"> 3, </key>\r
<key name="complex"> 2,4,7,10, </key>\r
<key name="component"> 15,3,13, </key>\r
<key name="compos"> 14,9, </key>\r
-<key name="compound"> 14,4,5,12,13,10, </key>\r
+<key name="compound"> 14,4,5,12,13,10,9, </key>\r
<key name="compsolid"> 7, </key>\r
<key name="comput"> 10,9, </key>\r
<key name="con"> 11, </key>\r
<key name="concern"> 9, </key>\r
+<key name="condition"> 9, </key>\r
<key name="confirm"> 8, </key>\r
<key name="conical"> 12, </key>\r
-<key name="connect"> 5,10, </key>\r
-<key name="consider"> 12, </key>\r
+<key name="connect"> 5,10,9, </key>\r
+<key name="connection"> 9, </key>\r
+<key name="consider"> 12,9, </key>\r
+<key name="consol"> 9, </key>\r
<key name="constraint"> 14, </key>\r
<key name="construct"> 14,5,11, </key>\r
<key name="construction"> 2,4, </key>\r
<key name="constructor"> 3,11,12,13,10, </key>\r
-<key name="contain"> 15,8,12, </key>\r
+<key name="contain"> 15,8,12,10, </key>\r
<key name="content"> 8, </key>\r
<key name="continuiti"> 12, </key>\r
<key name="continuity"> 12, </key>\r
<key name="coupl"> 15, </key>\r
<key name="creat"> 14,15,3,6,7,5,11,12,13,10,9,16, </key>\r
<key name="creategroup"> 16, </key>\r
-<key name="creation"> 2,7,12,10, </key>\r
+<key name="creation"> 2,7,12,10,16, </key>\r
<key name="current"> 15,6, </key>\r
<key name="curv"> 15,3,7,12, </key>\r
<key name="curve2dmod"> 12, </key>\r
<key name="d1"> 10, </key>\r
<key name="d2"> 10, </key>\r
<key name="data"> 9, </key>\r
-<key name="default"> 15, </key>\r
+<key name="default"> 15,16, </key>\r
<key name="defin"> 15,3,11,12,13,10, </key>\r
<key name="definit"> 12,9, </key>\r
<key name="definition"> 7,12, </key>\r
<key name="deflection"> 10, </key>\r
+<key name="degenerat"> 9, </key>\r
<key name="degre"> 15,7,12, </key>\r
<key name="delet"> 10, </key>\r
<key name="density"> 10, </key>\r
<key name="e2"> 14, </key>\r
<key name="e3"> 14, </key>\r
<key name="e4"> 14, </key>\r
-<key name="edg"> 14,3,7,5,12,10, </key>\r
+<key name="easi"> 16, </key>\r
+<key name="edg"> 14,3,7,5,12,10,9, </key>\r
<key name="edgeid"> 12, </key>\r
<key name="edit"> 16, </key>\r
<key name="egdemaxtol"> 9, </key>\r
<key name="elementary"> 14, </key>\r
<key name="ellips"> 3, </key>\r
<key name="empty"> 12, </key>\r
+<key name="encounter"> 9, </key>\r
<key name="end"> 15,3,12,13, </key>\r
<key name="ent"> 3,8, </key>\r
-<key name="entity"> 15,3,7,5,11,16, </key>\r
+<key name="entir"> 9, </key>\r
+<key name="entity"> 14,15,3,7,5,11,16, </key>\r
<key name="equal"> 15, </key>\r
<key name="eras"> 6, </key>\r
<key name="eraseall"> 6, </key>\r
<key name="eraseon"> 6, </key>\r
-<key name="error"> 12, </key>\r
+<key name="error"> 12,9, </key>\r
<key name="etc"> 5,12, </key>\r
<key name="exampl"> 14,1,15,3,4,7,5,11,12,13,10,16, </key>\r
<key name="except"> 12, </key>\r
<key name="explod"> 0,5,10, </key>\r
<key name="export"> 2,8, </key>\r
<key name="exportation"> 8, </key>\r
+<key name="extra"> 9, </key>\r
<key name="extract"> 10, </key>\r
<key name="extrud"> 7, </key>\r
<key name="extrusion"> 7, </key>\r
<key name="f4"> 14, </key>\r
<key name="f5"> 14, </key>\r
<key name="f6"> 14, </key>\r
-<key name="fac"> 14,3,7,5,12,13,10, </key>\r
+<key name="fac"> 14,3,7,5,12,13,10,9, </key>\r
<key name="face1"> 10, </key>\r
<key name="face2"> 10, </key>\r
<key name="facemaxtol"> 9, </key>\r
<key name="fix"> 12, </key>\r
<key name="fixfacesiz"> 12, </key>\r
<key name="fixshap"> 12, </key>\r
-<key name="follow"> 14,4,6,5, </key>\r
+<key name="flag"> 9, </key>\r
+<key name="follow"> 4,6,5,9, </key>\r
<key name="format"> 2,8, </key>\r
<key name="formatnam"> 8, </key>\r
<key name="four"> 14, </key>\r
<key name="fre"> 12, </key>\r
<key name="function"> 2,5, </key>\r
+<key name="functionaliti"> 14, </key>\r
+<key name="functionality"> 15,16, </key>\r
<key name="fus"> 4, </key>\r
<key name="gap"> 12, </key>\r
<key name="general"> 14, </key>\r
<key name="geometric"> 14, </key>\r
<key name="geometrical"> 1,2,3,4,6,8,7,5,11,12,13,10,9,16, </key>\r
<key name="geometry"> 12, </key>\r
+<key name="geompy"> 14,15,3,4,8,7,5,11,12,13,10,9,16, </key>\r
+<key name="get"> 4,5,9, </key>\r
+<key name="getfreeboundary"> 12, </key>\r
+<key name="getfreefacesid"> 12, </key>\r
+<key name="getobjectid"> 16, </key>\r
+<key name="getsubshapeid"> 5, </key>\r
+<key name="gg"> 1, </key>\r
+<key name="giv"> 3, </key>\r
+<key name="given"> 3,5,12,13,10,9, </key>\r
+<key name="glu"> 12,10,9, </key>\r
+<key name="graphic"> 6, </key>\r
+<key name="gravity"> 9, </key>\r
+<key name="group"> 10,16, </key>\r
+<key name="gui"> 10, </key>\r
+<key name="half"> 3, </key>\r
+<key name="handl"> 16, </key>\r
+<key name="hav"> 5,12, </key>\r
+<key name="height"> 7,11, </key>\r
+<key name="hexahedral"> 14,10, </key>\r
+<key name="hexahedron"> 14, </key>\r
+<key name="hid"> 6, </key>\r
+<key name="highlight"> 12,9, </key>\r
+<key name="hol"> 12, </key>\r
+<key name="i"> 6, </key>\r
+<key name="i11"> 9, </key>\r
+<key name="i12"> 9, </key>\r
+<key name="i13"> 9, </key>\r
+<key name="i21"> 9, </key>\r
+<key name="i22"> 9, </key>\r
+<key name="i23"> 9, </key>\r
+<key name="i31"> 9, </key>\r
+<key name="i32"> 9, </key>\r
+<key name="i33"> 9, </key>\r
+<key name="id"> 1,6,5,12,10,16, </key>\r
+<key name="if"> 5,12,10,9,16, </key>\r
+<key name="ig"> 2,8, </key>\r
+<key name="imag"> 13, </key>\r
+<key name="import"> 2,6,8,9, </key>\r
+<key name="importation"> 8, </key>\r
+<key name="in"> 13, </key>\r
+<key name="increas"> 12, </key>\r
+<key name="independent"> 4,6, </key>\r
+<key name="indic"> 10, </key>\r
+<key name="inertia"> 9, </key>\r
+<key name="inform"> 9, </key>\r
+<key name="initial"> 13, </key>\r
+<key name="inquir"> 9, </key>\r
+<key name="inretia"> 9, </key>\r
+<key name="insert"> 12, </key>\r
+<key name="insid"> 10, </key>\r
+<key name="integ"> 10, </key>\r
+<key name="integer"> 10, </key>\r
+<key name="intend"> 12, </key>\r
+<key name="interactive"> 10, </key>\r
+<key name="intermediat"> 14, </key>\r
+<key name="internal"> 12, </key>\r
+<key name="intersect"> 10, </key>\r
+<key name="intersection"> 10, </key>\r
+<key name="introduction"> 14,2, </key>\r
+<key name="invalid"> 12, </key>\r
+<key name="investigat"> 9, </key>\r
+<key name="isbyparamet"> 12, </key>\r
+<key name="iscommonvertex"> 12, </key>\r
+<key name="iso"> 1, </key>\r
+<key name="isolin"> 1, </key>\r
+<key name="iteration"> 7, </key>\r
+<key name="itself"> 12, </key>\r
+<key name="ix"> 9, </key>\r
+<key name="iy"> 9, </key>\r
+<key name="iz"> 9, </key>\r
+<key name="just"> 14, </key>\r
+<key name="keep"> 13, </key>\r
+<key name="last"> 3,5, </key>\r
+<key name="lc"> 3, </key>\r
+<key name="least"> 3, </key>\r
+<key name="length"> 15,12,9, </key>\r
+<key name="les"> 12, </key>\r
+<key name="limit"> 10, </key>\r
+<key name="lin"> 15,3,10, </key>\r
+<key name="list"> 15,3,7,5,12,10,16, </key>\r
+<key name="listoffaceid"> 10, </key>\r
+<key name="listofgeomshap"> 12, </key>\r
+<key name="listofid"> 5,12, </key>\r
+<key name="listofkeepinsid"> 10, </key>\r
+<key name="listofmaterial"> 10, </key>\r
+<key name="listofremoveinsid"> 10, </key>\r
+<key name="listofshap"> 3,5,12,10, </key>\r
+<key name="listofshapeid"> 10, </key>\r
+<key name="listoftool"> 10, </key>\r
+<key name="listofwireid"> 12, </key>\r
+<key name="local"> 15,3,13, </key>\r
+<key name="locat"> 3, </key>\r
+<key name="location"> 3,8,13, </key>\r
+<key name="lwp"> 15, </key>\r
+<key name="ly"> 15,12, </key>\r
+<key name="main"> 14,0,15,3,4,6,7,5,11,12,13,10,9,16, </key>\r
+<key name="mainshap"> 16, </key>\r
+<key name="major"> 3,11, </key>\r
+<key name="mak"> 13,10,16, </key>\r
+<key name="makearc"> 3, </key>\r
+<key name="makebezi"> 3, </key>\r
+<key name="makeblockexplod"> 10, </key>\r
+<key name="makeboolean"> 4, </key>\r
+<key name="makebox"> 11, </key>\r
+<key name="makecdg"> 9, </key>\r
+<key name="makechamferedg"> 10, </key>\r
+<key name="makechamferfac"> 10, </key>\r
+<key name="makecircl"> 3, </key>\r
+<key name="makecompound"> 5, </key>\r
+<key name="makecon"> 11, </key>\r
+<key name="makecylind"> 11, </key>\r
+<key name="makeedg"> 5, </key>\r
+<key name="makeellips"> 3, </key>\r
+<key name="makefac"> 5, </key>\r
+<key name="makefil"> 7, </key>\r
+<key name="makefillet"> 10, </key>\r
+<key name="makegluefac"> 12, </key>\r
+<key name="makehexasolid"> 14, </key>\r
+<key name="makehexasolidtwofac"> 14, </key>\r
+<key name="makeinterpol"> 3, </key>\r
+<key name="makelin"> 3, </key>\r
+<key name="makemark"> 3, </key>\r
+<key name="makemirrorbyplan"> 13, </key>\r
+<key name="makemultirotation1d"> 13, </key>\r
+<key name="makemultirotation2d"> 13, </key>\r
+<key name="makemultitransformation1d"> 10, </key>\r
+<key name="makemultitransformation2d"> 10, </key>\r
+<key name="makemultitranslation1d"> 13, </key>\r
+<key name="makemultitranslation2d"> 13, </key>\r
+<key name="makeoffset"> 13, </key>\r
+<key name="makepartition"> 10, </key>\r
+<key name="makepip"> 7, </key>\r
+<key name="makeplan"> 3, </key>\r
+<key name="makepolylin"> 3, </key>\r
+<key name="makeposition"> 13, </key>\r
+<key name="makeprism"> 7, </key>\r
+<key name="makequadfac"> 14, </key>\r
+<key name="makequadfaceedg"> 14, </key>\r
+<key name="makequadfacevertic"> 14, </key>\r
+<key name="makerevolution"> 7, </key>\r
+<key name="makerotation"> 13, </key>\r
+<key name="makescaletransform"> 13, </key>\r
+<key name="makesew"> 12, </key>\r
+<key name="makeshell"> 5, </key>\r
+<key name="makesketch"> 15, </key>\r
+<key name="makesolid"> 5, </key>\r
+<key name="makespher"> 11, </key>\r
+<key name="maketoru"> 11, </key>\r
+<key name="maketranslation"> 13, </key>\r
+<key name="makevector"> 3, </key>\r
+<key name="makevertex"> 3, </key>\r
+<key name="makewir"> 5, </key>\r
+<key name="manual"> 3, </key>\r
+<key name="mas"> 9, </key>\r
+<key name="material"> 10, </key>\r
+<key name="matrix"> 9, </key>\r
+<key name="max"> 7,12,10, </key>\r
+<key name="maxdegre"> 7, </key>\r
+<key name="maximal"> 7,12,10,9, </key>\r
+<key name="maximum"> 12,10, </key>\r
+<key name="maxnbfac"> 10, </key>\r
+<key name="maxtoleranc"> 12, </key>\r
+<key name="maxtolerance3d"> 12, </key>\r
+<key name="mean"> 15,13, </key>\r
+<key name="measur"> 9, </key>\r
+<key name="measurement"> 9, </key>\r
+<key name="mention"> 14, </key>\r
+<key name="menu"> 14,0,1,15,3,4,6,8,7,5,11,12,13,10,9,16, </key>\r
+<key name="merg"> 12, </key>\r
+<key name="mesh"> 14,10, </key>\r
+<key name="meshingdeflection"> 10, </key>\r
+<key name="method"> 5, </key>\r
+<key name="middl"> 3, </key>\r
+<key name="min"> 7,10,9, </key>\r
+<key name="mindegre"> 7, </key>\r
+<key name="mindistanc"> 9, </key>\r
+<key name="minimal"> 7,10,9, </key>\r
+<key name="minimum"> 10, </key>\r
+<key name="minnbfac"> 10, </key>\r
+<key name="minor"> 3,11, </key>\r
+<key name="mirror"> 13, </key>\r
+<key name="mod"> 1,12, </key>\r
+<key name="model"> 2,10, </key>\r
+<key name="modifi"> 3,12,13, </key>\r
+<key name="modification"> 12,13, </key>\r
+<key name="modify"> 13, </key>\r
+<key name="modul"> 2,6, </key>\r
+<key name="moment"> 9, </key>\r
+<key name="mov"> 13, </key>\r
+<key name="much"> 16, </key>\r
+<key name="multi"> 0,13,10, </key>\r
+<key name="multitud"> 10, </key>\r
+<key name="must"> 12,13,9, </key>\r
+<key name="nam"> 14,3,4,8,7,5,11,12,13,10, </key>\r
+<key name="nbit"> 7, </key>\r
+<key name="nbsplitpoint"> 12, </key>\r
+<key name="nbtim"> 13,10, </key>\r
+<key name="nbtimes1"> 13, </key>\r
+<key name="nbtimes2"> 13, </key>\r
+<key name="nbtimesu"> 10, </key>\r
+<key name="nbtimesv"> 10, </key>\r
+<key name="necessary"> 15,6,12,9, </key>\r
+<key name="need"> 12, </key>\r
+<key name="negativ"> 13, </key>\r
+<key name="neigbour"> 12, </key>\r
+<key name="new"> 14,15,3,7,5,11,12,16, </key>\r
+<key name="nod"> 3, </key>\r
+<key name="noerror"> 12, </key>\r
+<key name="normal"> 3,7,13, </key>\r
+<key name="notion"> 14, </key>\r
+<key name="numb"> 1,7,12,13,10, </key>\r
+<key name="number"> 10, </key>\r
+<key name="numeb"> 10, </key>\r
+<key name="object"> 1,2,3,4,6,8,7,5,11,12,13,10,9,16, </key>\r
+<key name="occ"> 1,6,12,16, </key>\r
+<key name="occur"> 12, </key>\r
+<key name="offer"> 16, </key>\r
+<key name="offset"> 13, </key>\r
+<key name="ok"> 3,8, </key>\r
+<key name="on"> 15,3,4,6,12,13,10, </key>\r
+<key name="open"> 12, </key>\r
+<key name="openwir"> 12, </key>\r
+<key name="operation"> 14,2,4,6,7,12,13,10,16, </key>\r
+<key name="operator"> 12, </key>\r
+<key name="opposit"> 11, </key>\r
+<key name="optimization"> 2, </key>\r
+<key name="option"> 0, </key>\r
+<key name="ord"> 12,9, </key>\r
+<key name="orient"> 14,3, </key>\r
+<key name="origin"> 3,11, </key>\r
+<key name="otherwis"> 12,13, </key>\r
+<key name="outsid"> 10, </key>\r
+<key name="ox"> 15,3, </key>\r
+<key name="oy"> 3, </key>\r
+<key name="oz"> 15,3, </key>\r
+<key name="paramet"> 3,5,12, </key>\r
+<key name="parameter"> 1,15,3,7,12, </key>\r
+<key name="paramt"> 12, </key>\r
+<key name="part"> 4,11, </key>\r
+<key name="partition"> 10, </key>\r
+<key name="pas"> 3, </key>\r
+<key name="path"> 7, </key>\r
+<key name="pathshap"> 7, </key>\r
+<key name="pattern"> 13, </key>\r
+<key name="perform"> 10,16, </key>\r
+<key name="perpendicular"> 15, </key>\r
+<key name="pip"> 7, </key>\r
+<key name="plan"> 15,3,13,10, </key>\r
+<key name="planar"> 15,3,5, </key>\r
+<key name="platform"> 16, </key>\r
+<key name="plung"> 10, </key>\r
+<key name="point"> 14,15,3,11,12,13,9, </key>\r
+<key name="point1"> 3, </key>\r
+<key name="point2"> 3, </key>\r
+<key name="point3"> 3, </key>\r
+<key name="pointcoordinat"> 9, </key>\r
+<key name="polylin"> 3, </key>\r
+<key name="pop"> 1,6, </key>\r
+<key name="position"> 3,12, </key>\r
+<key name="possibility"> 12, </key>\r
+<key name="possibl"> 6,12,10,9, </key>\r
+<key name="precision"> 12, </key>\r
+<key name="predefin"> 15, </key>\r
+<key name="preferenc"> 16, </key>\r
+<key name="pres"> 3, </key>\r
+<key name="preview"> 3, </key>\r
+<key name="previou"> 15, </key>\r
+<key name="primitiv"> 2,11, </key>\r
+<key name="print"> 9, </key>\r
+<key name="prism"> 7, </key>\r
+<key name="problem"> 12, </key>\r
+<key name="proces"> 12,10, </key>\r
+<key name="processshap"> 12, </key>\r
+<key name="project"> 16, </key>\r
+<key name="propagat"> 10, </key>\r
+<key name="propagation"> 10, </key>\r
+<key name="properti"> 1,9, </key>\r
+<key name="put"> 10, </key>\r
+<key name="python"> 9, </key>\r
+<key name="quadrangl"> 14,3,9, </key>\r
+<key name="radian"> 12, </key>\r
+<key name="radiu"> 15,3,11,10, </key>\r
+<key name="radius"> 3,11, </key>\r
+<key name="radius1"> 11, </key>\r
+<key name="radius2"> 11, </key>\r
+<key name="radiusmajor"> 3,11, </key>\r
+<key name="radiusminor"> 3,11, </key>\r
+<key name="rang"> 2,12, </key>\r
+<key name="re"> 12, </key>\r
+<key name="reasonabl"> 6, </key>\r
+<key name="reconstruction"> 10, </key>\r
+<key name="referenc"> 3, </key>\r
+<key name="regard"> 3, </key>\r
+<key name="relativ"> 15, </key>\r
+<key name="remov"> 12,13,16, </key>\r
+<key name="removeobject"> 16, </key>\r
+<key name="removeweb"> 10, </key>\r
+<key name="repair"> 2,12, </key>\r
+<key name="repetition"> 13, </key>\r
+<key name="represent"> 3, </key>\r
+<key name="request"> 5, </key>\r
+<key name="requir"> 6,8,12, </key>\r
+<key name="requireddegre"> 12, </key>\r
+<key name="requirednbsegment"> 12, </key>\r
+<key name="respect"> 15,12, </key>\r
+<key name="restriction"> 12, </key>\r
+<key name="result"> 14,15,3,4,7,5,11,12,13,10,9,16, </key>\r
+<key name="resultant"> 12, </key>\r
+<key name="retriev"> 5,12, </key>\r
+<key name="return"> 5,12,10,9,16, </key>\r
+<key name="revers"> 13, </key>\r
+<key name="revolution"> 7,12, </key>\r
+<key name="right"> 1,6, </key>\r
+<key name="rotat"> 7,13, </key>\r
+<key name="rotation"> 13, </key>\r
+<key name="s"> 3,5,12,13,10,16, </key>\r
+<key name="salom"> 2,16, </key>\r
+<key name="sam"> 15,12, </key>\r
+<key name="sameparamet"> 12, </key>\r
+<key name="satisfy"> 9, </key>\r
+<key name="scal"> 13, </key>\r
+<key name="se"> 8,9, </key>\r
+<key name="search"> 8, </key>\r
+<key name="second"> 4,11,13,10, </key>\r
+<key name="section"> 4,10, </key>\r
+<key name="segment"> 15,12, </key>\r
+<key name="select"> 0,1,15,3,4,6,8,7,5,11,12,10,9,16, </key>\r
+<key name="selection"> 15,3,10, </key>\r
+<key name="sens"> 10, </key>\r
+<key name="serv"> 3,7, </key>\r
+<key name="set"> 1,3,12,13,10, </key>\r
+<key name="setcolor"> 1, </key>\r
+<key name="setdisplaymod"> 1, </key>\r
+<key name="settransparency"> 1, </key>\r
+<key name="sew"> 12, </key>\r
+<key name="sg"> 6, </key>\r
+<key name="shad"> 1, </key>\r
+<key name="shap"> 1,2,4,6,8,7,5,12,13,10,9,16, </key>\r
+<key name="shape1"> 4,9, </key>\r
+<key name="shape2"> 4,9, </key>\r
+<key name="shapesto"> 12, </key>\r
+<key name="shapetyp"> 10,16, </key>\r
+<key name="shar"> 12, </key>\r
+<key name="shel"> 5,12,13, </key>\r
+<key name="shell"> 14,7,5,13, </key>\r
+<key name="short"> 1, </key>\r
+<key name="should"> 12,9, </key>\r
+<key name="shown"> 3, </key>\r
+<key name="sid"> 3, </key>\r
+<key name="sign"> 13, </key>\r
+<key name="six"> 14, </key>\r
+<key name="siz"> 3,12,10, </key>\r
+<key name="sketch"> 15, </key>\r
+<key name="small"> 3,12, </key>\r
+<key name="solid"> 14,7,5,11,13,10, </key>\r
+<key name="soon"> 3, </key>\r
+<key name="spac"> 3,9, </key>\r
+<key name="specifi"> 3,12,10, </key>\r
+<key name="specific"> 14, </key>\r
+<key name="specify"> 12,13, </key>\r
+<key name="spher"> 11, </key>\r
+<key name="splin"> 3, </key>\r
+<key name="split"> 12, </key>\r
+<key name="splitangl"> 12, </key>\r
+<key name="splitclosedfac"> 12, </key>\r
+<key name="splitcontinuity"> 12, </key>\r
+<key name="spot"> 12, </key>\r
+<key name="stag"> 14, </key>\r
+<key name="standard"> 8, </key>\r
+<key name="start"> 15,3,13, </key>\r
+<key name="step"> 2,8,13, </key>\r
+<key name="step1"> 13, </key>\r
+<key name="step2"> 13, </key>\r
+<key name="str"> 15,8, </key>\r
+<key name="strip"> 12, </key>\r
+<key name="study"> 6, </key>\r
+<key name="sub"> 5,12,16, </key>\r
+<key name="submenu"> 0,5,12,9, </key>\r
+<key name="subshap"> 5,10,16, </key>\r
+<key name="subshapeall"> 5, </key>\r
+<key name="subshapeid"> 16, </key>\r
+<key name="suppres"> 12, </key>\r
+<key name="suppressfac"> 12, </key>\r
+<key name="suppresshol"> 12, </key>\r
+<key name="suppressinternalwir"> 12, </key>\r
+<key name="surfac"> 12,13,9, </key>\r
+<key name="surfacecontinuity"> 12, </key>\r
+<key name="surfacemod"> 12, </key>\r
+<key name="symmetrical"> 13, </key>\r
+<key name="symmetry"> 11,13, </key>\r
+<key name="system"> 3,13, </key>\r
+<key name="tangent"> 15, </key>\r
+<key name="target"> 15,10, </key>\r
+<key name="tetrahedral"> 14, </key>\r
+<key name="theendlc"> 13, </key>\r
+<key name="them"> 12, </key>\r
+<key name="theobject"> 13, </key>\r
+<key name="therefor"> 15, </key>\r
+<key name="theshap"> 12, </key>\r
+<key name="thestartlc"> 13, </key>\r
+<key name="thetoleranc"> 12, </key>\r
+<key name="tim"> 13, </key>\r
+<key name="tobezi"> 12, </key>\r
+<key name="toggl"> 16, </key>\r
+<key name="tol2d"> 7, </key>\r
+<key name="tol3d"> 7, </key>\r
+<key name="toleranc"> 7,12,9, </key>\r
+<key name="tolerance2d"> 12, </key>\r
+<key name="tolerance3d"> 12, </key>\r
+<key name="tool"> 9, </key>\r
+<key name="toru"> 11, </key>\r
+<key name="transform"> 4,13,10, </key>\r
+<key name="transformation"> 0,2,13,10, </key>\r
+<key name="translat"> 13, </key>\r
+<key name="translation"> 13,10, </key>\r
+<key name="transparency"> 1, </key>\r
+<key name="trihedron"> 3, </key>\r
+<key name="trimsiz"> 3, </key>\r
+<key name="tru"> 12,10,9, </key>\r
+<key name="tui"> 14,1,15,3,4,6,8,7,5,11,12,13,10,9,16, </key>\r
+<key name="tupl"> 9, </key>\r
+<key name="two"> 14,4,11,12,13,10,9, </key>\r
+<key name="typ"> 15,4,5,11,12,10,9,16, </key>\r
+<key name="typeofshap"> 5, </key>\r
+<key name="underly"> 12, </key>\r
+<key name="up"> 1,6,11,10, </key>\r
+<key name="updat"> 3, </key>\r
+<key name="us"> 14,2,15,3,4,6,7,5,12,13,10,9,16, </key>\r
+<key name="useful"> 16, </key>\r
+<key name="v1"> 14, </key>\r
+<key name="v2"> 14, </key>\r
+<key name="v3"> 14, </key>\r
+<key name="v4"> 14, </key>\r
+<key name="val"> 12, </key>\r
+<key name="valid"> 9, </key>\r
+<key name="validity"> 9, </key>\r
+<key name="valu"> 1,15,3,7,11,12,13,10,9, </key>\r
+<key name="variou"> 12, </key>\r
+<key name="vector"> 15,3,7,11,13, </key>\r
+<key name="vertex"> 3,7,5,11,12,13,9, </key>\r
+<key name="vertex1"> 5, </key>\r
+<key name="vertex2"> 5, </key>\r
+<key name="vertexmaxtol"> 9, </key>\r
+<key name="vertexmintol"> 9, </key>\r
+<key name="vertic"> 14,3,5,11,12,13, </key>\r
+<key name="via"> 14,15,13,16, </key>\r
+<key name="view"> 1,3,6,12,9,16, </key>\r
+<key name="viewer"> 6, </key>\r
+<key name="visibility"> 6, </key>\r
+<key name="visualization"> 1,6, </key>\r
+<key name="volum"> 9, </key>\r
+<key name="vtk"> 6, </key>\r
+<key name="vx"> 15, </key>\r
+<key name="wantplanarfac"> 5, </key>\r
+<key name="wat"> 10, </key>\r
+<key name="waterdensity"> 10, </key>\r
+<key name="weight"> 10, </key>\r
+<key name="whati"> 9, </key>\r
+<key name="wheth"> 9, </key>\r
+<key name="whil"> 12, </key>\r
+<key name="whos"> 5,9, </key>\r
+<key name="wid"> 2, </key>\r
+<key name="will"> 3,8,12,13,10, </key>\r
+<key name="wir"> 14,7,5,12, </key>\r
+<key name="wirefram"> 1, </key>\r
+<key name="wish"> 8, </key>\r
+<key name="within"> 1,12, </key>\r
+<key name="work"> 15,3,6,12,16, </key>\r
+<key name="x"> 15,3,9, </key>\r
+<key name="x1"> 11, </key>\r
+<key name="x2"> 11, </key>\r
+<key name="xdx"> 3, </key>\r
+<key name="xdy"> 3, </key>\r
+<key name="xdz"> 3, </key>\r
+<key name="xmax"> 9, </key>\r
+<key name="xmin"> 9, </key>\r
+<key name="xoy"> 15, </key>\r
+<key name="xyz"> 3, </key>\r
+<key name="y"> 15,3,9, </key>\r
+<key name="y1"> 11, </key>\r
+<key name="y2"> 11, </key>\r
+<key name="ydx"> 3, </key>\r
+<key name="ydy"> 3, </key>\r
+<key name="ydz"> 3, </key>\r
+<key name="ymax"> 9, </key>\r
+<key name="ymin"> 9, </key>\r
+<key name="your"> 8,12,9,16, </key>\r
+<key name="z"> 3,10,9, </key>\r
+<key name="z1"> 11, </key>\r
+<key name="z2"> 11, </key>\r
+<key name="zmax"> 9, </key>\r
+<key name="zmin"> 9, </key>\r
\r
</ftswdata> \r
</script>\r
<h1>Working with groups</h1>\r
\r
+<p>The <span style="font-style: italic;"><I>Salome</I></span> platform offers \r
+ such a useful functionality as creation and editing groups of subshapes \r
+ of a geometrical object which makes handling subshapes much easier. However \r
+ the functionality is available in the OCC viewer only. If other viewer \r
+ is used in your project by default, you can toggle the OCC viewer via \r
+ Preferences / Viewer background / OCC viewer. </p>\r
+\r
+<p> </p>\r
+\r
<p class=TODO>To perform operations with groups:</p>\r
\r
<p class=TODO> </p>\r
\r
<p class="whs1">In the main menu select <span style="font-weight: bold;"><B>New \r
- entity > Groups</B></span>.</p>\r
+ entity > Group</B></span>.</p>\r
\r
<p> </p>\r
\r
\r
<p class="whs3"> </p>\r
\r
-<p class="whs3"><b>TUI Command:</b><i> </i><span style="font-style: italic;"><I>geompy.CreateGroup(MainShape, \r
- ShapeType)</I></span>, where MainShape is a shape for which the group is created, \r
- ShapeType is a type of shapes in the created group.</p>\r
+<p class="whs3"><b style="font-weight: bold;">TUI Command:</b><i> \r
+ </i><span style="font-style: italic;"><I>geompy.CreateGroup(MainShape, ShapeType)</I></span>, \r
+ where MainShape is a shape for which the group is created, ShapeType is \r
+ a type of shapes in the created group.</p>\r
\r
<p class="whs3"> </p>\r
\r
\r
<p class="whs3"> </p>\r
\r
-<p class="whs3"><b>TUI Command:</b><i> </i></p>\r
+<p class="whs3"><b style="font-weight: bold;">TUI Command:</b><i> \r
+ </i></p>\r
\r
<ul type="disc" class="whs9">\r
\r
* \param theObject is a GEOM object which IOR is requested
*/
string GetStringFromIOR (in GEOM_Object theObject);
+
+ /*!
+ * Returns a name with which a GEOM object was dumped into python script
+ * \param theStudyEntry is an entry of the GEOM object in the study
+ */
+ string GetDumpName (in string theStudyEntry);
+
+ /*!
+ * Returns all names with which a GEOM objects was dumped
+ * into python script to avoid the same names in SMESH script
+ */
+ string_array GetAllDumpNames();
};
};
<component-username>Geometry</component-username>
<component-type>Geom</component-type>
<component-author>NRI</component-author>
- <component-version>2.2.0</component-version>
+ <component-version>2.2.2</component-version>
<component-comment>Geometry component</component-comment>
<component-multistudy>1</component-multistudy>
<component-icone>ModuleGeom.png</component-icone>
<component-username>GEOM_Superv</component-username>
<component-type>OTHER</component-type>
<component-author>mkr</component-author>
- <component-version>2.2.0</component-version>
+ <component-version>2.2.2</component-version>
<component-comment>Supervision wrapper for Geometry component</component-comment>
<component-multistudy>1</component-multistudy>
<component-icone></component-icone>
#include "BasicGUI.h"
#include "GeometryGUI.h"
-#include "QAD_RightFrame.h"
-#include "QAD_Desktop.h"
-#include "OCCViewer_Viewer3d.h"
-#include "OCCViewer_ViewFrame.h"
-#include "OCCViewer_AISSelector.h"
+#include "SUIT_Session.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_ViewWindow.h"
+#include "OCCViewer_ViewWindow.h"
+#include "OCCViewer_ViewModel.h"
+#include "OCCViewer_ViewManager.h"
#include "OCCViewer_ViewPort3d.h"
-#include "SALOMEGUI_QtCatchCorbaException.hxx"
-
#include "utilities.h"
#include <Precision.hxx>
// function : GetBasicGUI()
// purpose : Get the only BasicGUI object [ static ]
//=======================================================================
-BasicGUI* BasicGUI::GetBasicGUI()
+BasicGUI* BasicGUI::GetBasicGUI( GeometryGUI* parent )
{
if ( myGUIObject == 0 ) {
- myGUIObject = new BasicGUI();
+ myGUIObject = new BasicGUI( parent );
}
return myGUIObject;
}
// function : BasicGUI()
// purpose : Constructor
//=======================================================================
-BasicGUI::BasicGUI() :
- GEOMGUI()
+BasicGUI::BasicGUI( GeometryGUI* parent ) :
+ GEOMGUI(parent)
{
}
// function : OnGUIEvent()
// purpose :
//=======================================================================
-bool BasicGUI::OnGUIEvent(int theCommandID, QAD_Desktop* parent)
+bool BasicGUI::OnGUIEvent(int theCommandID, SUIT_Desktop* parent)
{
- GeometryGUI::GetGeomGUI()->EmitSignalDeactivateDialog();
- SALOME_Selection* Sel = SALOME_Selection::Selection(QAD_Application::getDesktop()->getActiveStudy()->getSelection());
+ getGeometryGUI()->EmitSignalDeactivateDialog();
QDialog* aDlg = NULL;
switch ( theCommandID )
{
case 4011: // POINT
- {
- Handle(AIS_InteractiveContext) ic;
- QAD_StudyFrame* aFrame = QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame();
- if ( aFrame->getTypeView() == VIEW_OCC)
- {
- OCCViewer_Viewer3d* v3d = ((OCCViewer_ViewFrame*)aFrame->getRightFrame()->getViewFrame())->getViewer();
- ic = v3d->getAISContext();
- }
- aDlg = new BasicGUI_PointDlg( parent, "", Sel );
- break;
- }
+ aDlg = new BasicGUI_PointDlg( getGeometryGUI(), parent, "" );
+ break;
case 4012: // LINE
- aDlg = new BasicGUI_LineDlg(parent, "", Sel);
+ aDlg = new BasicGUI_LineDlg( getGeometryGUI(), parent, "" );
break;
case 4013: // CIRCLE
- aDlg = new BasicGUI_CircleDlg(parent, "", Sel);
+ aDlg = new BasicGUI_CircleDlg( getGeometryGUI(), parent, "");
break;
case 4014: // ELLIPSE
- aDlg = new BasicGUI_EllipseDlg(parent, "", Sel);
+ aDlg = new BasicGUI_EllipseDlg( getGeometryGUI(), parent, "" );
break;
case 4015: // ARC
- aDlg = new BasicGUI_ArcDlg(parent, "", Sel);
+ aDlg = new BasicGUI_ArcDlg( getGeometryGUI(), parent, "" );
break ;
case 4016: // VECTOR
- aDlg = new BasicGUI_VectorDlg(parent, "", Sel);
+ aDlg = new BasicGUI_VectorDlg( getGeometryGUI(), parent, "" );
break;
case 4017: // PLANE
- aDlg = new BasicGUI_PlaneDlg(parent, "", Sel);
+ aDlg = new BasicGUI_PlaneDlg( getGeometryGUI(), parent, "");
break;
case 4018: // WORKING PLANE
- aDlg = new BasicGUI_WorkingPlaneDlg(parent, "", Sel);
+ aDlg = new BasicGUI_WorkingPlaneDlg( getGeometryGUI(), parent, "" );
break;
case 4019: // CURVE
- aDlg = new BasicGUI_CurveDlg( parent, "", Sel );
+ aDlg = new BasicGUI_CurveDlg( getGeometryGUI(), parent, "" );
break;
case 4020: // REPAIR
- aDlg = new BasicGUI_MarkerDlg( parent, Sel );
+ aDlg = new BasicGUI_MarkerDlg( getGeometryGUI(), parent );
break;
default:
- parent->putInfo(tr("GEOM_PRP_COMMAND").arg(theCommandID));
+ SUIT_Session::session()->activeApplication()->putInfo(tr("GEOM_PRP_COMMAND").arg(theCommandID));
break;
}
// function : 0nMousePress()
// purpose : [static] manage mouse events
//=================================================================================
-bool BasicGUI::OnMousePress( QMouseEvent* pe, QAD_Desktop* parent, QAD_StudyFrame* theFrame )
+bool BasicGUI::OnMousePress( QMouseEvent* pe, SUIT_Desktop* parent, SUIT_ViewWindow* theViewWindow )
{
- QDialog* aDlg = GeometryGUI::GetGeomGUI()->GetActiveDialogBox();
+ QDialog* aDlg = getGeometryGUI()->GetActiveDialogBox();
// Create Point dialog, OCC viewer
- if ( aDlg && aDlg->isA( "BasicGUI_PointDlg" ) && theFrame->getTypeView() == VIEW_OCC && pe->state() != Qt::ControlButton )
+ if ( aDlg && aDlg->isA( "BasicGUI_PointDlg" ) && theViewWindow->getViewManager()->getType() == OCCViewer_Viewer::Type() && pe->state() != Qt::ControlButton )
{
BasicGUI_PointDlg* aPntDlg = (BasicGUI_PointDlg*) aDlg;
if ( aPntDlg->acceptMouseEvent() )
- {
- OCCViewer_Viewer3d* v3d = ((OCCViewer_ViewFrame*)theFrame->getRightFrame()->getViewFrame())->getViewer();
- Handle (AIS_InteractiveContext) ic = v3d->getAISContext();
-
+ {
+ OCCViewer_Viewer* anOCCViewer = ((OCCViewer_ViewManager*)(theViewWindow->getViewManager()))->getOCCViewer();
+ Handle(AIS_InteractiveContext) ic = anOCCViewer->getAISContext();
+
gp_Pnt aPnt;
ic->InitSelected();
if( pe->state() == Qt::ShiftButton )
- v3d->getAISSelector()->shiftSelect(); // Append selection
+ ic->ShiftSelect(); // Append selection
else
- v3d->getAISSelector()->select(); // New selection
+ ic->Select(); // New selection
ic->InitSelected();
if( ic->MoreSelected() )
- {
- TopoDS_Shape aShape = ic->SelectedShape();
- if ( !aShape.IsNull() && aShape.ShapeType() == TopAbs_VERTEX )
- aPnt = BRep_Tool::Pnt( TopoDS::Vertex( ic->SelectedShape() ) );
- }
+ {
+ TopoDS_Shape aShape = ic->SelectedShape();
+ if ( !aShape.IsNull() && aShape.ShapeType() == TopAbs_VERTEX )
+ aPnt = BRep_Tool::Pnt( TopoDS::Vertex( ic->SelectedShape() ) );
+ }
else
- {
- OCCViewer_ViewPort* vp = ((OCCViewer_ViewFrame*)theFrame->getRightFrame()->getViewFrame())->getViewPort();
- aPnt = ConvertClickToPoint( pe->x(), pe->y(), ((OCCViewer_ViewPort3d*)vp)->getView() );
- }
+ {
+ OCCViewer_ViewPort3d* vp = ((OCCViewer_ViewWindow*)theViewWindow)->getViewPort();
+ aPnt = ConvertClickToPoint( pe->x(), pe->y(), vp->getView() );
+ }
aPntDlg->OnPointSelected( aPnt ); // "feed" the point to point construction dialog
- } // acceptMouseEvent()
+ } // acceptMouseEvent()
}
return false;
}
//=====================================================================================
extern "C"
{
- GEOMGUI* GetLibGUI()
+ GEOMGUI* GetLibGUI( GeometryGUI* parent )
{
- return BasicGUI::GetBasicGUI();
+ return BasicGUI::GetBasicGUI( parent );
}
}
#include "GEOMBase.h"
#include <V3d_View.hxx>
+
//=================================================================================
// class : BasicGUI
// purpose :
class BasicGUI : public GEOMGUI
{
protected:
- BasicGUI(); // hide constructor to avoid direct creation
+ BasicGUI( GeometryGUI* parent ); // hide constructor to avoid direct creation
public :
~BasicGUI();
// Get the only BasicGUI object
- static BasicGUI* GetBasicGUI();
+ static BasicGUI* GetBasicGUI( GeometryGUI* parent );
- bool OnGUIEvent(int theCommandID, QAD_Desktop* parent);
- bool OnMousePress(QMouseEvent* pe, QAD_Desktop* parent, QAD_StudyFrame* studyFrame);
+ bool OnGUIEvent(int theCommandID, SUIT_Desktop* parent);
+ bool OnMousePress(QMouseEvent* pe, SUIT_Desktop* parent, SUIT_ViewWindow* theViewWindow);
gp_Pnt ConvertClickToPoint( int x, int y, Handle(V3d_View) aView );
#include "BasicGUI_ArcDlg.h"
-#include "QAD_Desktop.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
+#include <qlabel.h>
+
#include <BRepBuilderAPI_MakeEdge.hxx>
#include <GC_MakeArcOfCircle.hxx>
#include <Geom_TrimmedCurve.hxx>
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-BasicGUI_ArcDlg::BasicGUI_ArcDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+BasicGUI_ArcDlg::BasicGUI_ArcDlg(GeometryGUI* theGeometryGUI, QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu),
+ myGeometryGUI()
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_ARC")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_ARC")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_ARC_TITLE"));
void BasicGUI_ArcDlg::Init()
{
/* init variables */
- myGeomGUI->SetState( 0 );
+ // myGeometryGUI->SetState( 0 );
globalSelection( GEOM_POINT );
myEditCurrentArgument = Group3Pnts->LineEdit1;
/* signals and slots connections */
connect(buttonCancel, SIGNAL(clicked()), this, SLOT(ClickOnCancel()));
- connect(myGeomGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
- connect(myGeomGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
+ connect(myGeometryGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
+ connect(myGeometryGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
connect(Group3Pnts->LineEdit2, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
connect(Group3Pnts->LineEdit3, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
initName( tr( "GEOM_ARC" ) );
}
{
myEditCurrentArgument->setText("");
- if ( mySelection->IObjectCount() != 1 )
+ if ( IObjectCount() != 1 )
{
if ( myEditCurrentArgument == Group3Pnts->LineEdit1 ) myPoint1 = GEOM::GEOM_Object::_nil();
else if ( myEditCurrentArgument == Group3Pnts->LineEdit2 ) myPoint2 = GEOM::GEOM_Object::_nil();
// nbSel == 1
Standard_Boolean aRes = Standard_False;
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), aRes );
+ GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( firstIObject(), aRes );
if ( !CORBA::is_nil( aSelectedObject ) && aRes )
{
myEditCurrentArgument->setText( GEOMBase::GetName( aSelectedObject ) );
void BasicGUI_ArcDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
- myGeomGUI->SetState( 0 );
+ // myGeometryGUI->SetState( 0 );
globalSelection( GEOM_POINT );
myEditCurrentArgument = Group3Pnts->LineEdit1;
//=================================================================================
void BasicGUI_ArcDlg::DeactivateActiveDialog()
{
- myGeomGUI->SetState( -1 );
+ // myGeometryGUI->SetState( -1 );
GEOMBase_Skeleton::DeactivateActiveDialog();
}
//=================================================================================
GEOM::GEOM_IOperations_ptr BasicGUI_ArcDlg::createOperation()
{
- return getGeomEngine()->GetICurvesOperations( getStudyId() );
+ return myGeometryGUI->GetGeomGen()->GetICurvesOperations( getStudyId() );
}
//=================================================================================
//=================================================================================
static bool isEqual( const GEOM::GEOM_Object_var& thePnt1, const GEOM::GEOM_Object_var& thePnt2 )
{
- return thePnt1->_is_equivalent( thePnt2 );
+ return thePnt1->_is_equivalent( thePnt2 );
}
//=================================================================================
bool BasicGUI_ArcDlg::isValid( QString& msg )
{
return !myPoint1->_is_nil() && !myPoint2->_is_nil() && !myPoint3->_is_nil() &&
- !isEqual( myPoint1, myPoint2 ) && !isEqual( myPoint1, myPoint3 ) && !isEqual( myPoint2, myPoint3 );
+ !isEqual( myPoint1, myPoint2 ) && !isEqual( myPoint1, myPoint3 ) && !isEqual( myPoint2, myPoint3 );
}
//=================================================================================
bool BasicGUI_ArcDlg::execute( ObjectList& objects )
{
GEOM::GEOM_Object_var anObj = GEOM::GEOM_ICurvesOperations::_narrow( getOperation() )->MakeArc( myPoint1, myPoint2, myPoint3 );
- if ( !anObj->_is_nil() )
- objects.push_back( anObj._retn() );
+ if ( !anObj->_is_nil() )
+ objects.push_back( anObj._retn() );
return true;
}
//=================================================================================
void BasicGUI_ArcDlg::closeEvent( QCloseEvent* e )
{
- myGeomGUI->SetState( -1 );
+ // myGeometryGUI->SetState( -1 );
GEOMBase_Skeleton::closeEvent( e );
}
Q_OBJECT
public:
- BasicGUI_ArcDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0 );
+ BasicGUI_ArcDlg( GeometryGUI* theGeometryGUI, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~BasicGUI_ArcDlg();
protected:
void Init();
void enterEvent(QEvent* e);
+ GeometryGUI* myGeometryGUI;
+
GEOM::GEOM_Object_var myPoint1, myPoint2, myPoint3;
DlgRef_3Sel_QTD* Group3Pnts;
#include "BasicGUI_CircleDlg.h"
-#include "QAD_Desktop.h"
-#include "QAD_Config.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
+#include <qlabel.h>
#include "GEOMImpl_Types.hxx"
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-BasicGUI_CircleDlg::BasicGUI_CircleDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+BasicGUI_CircleDlg::BasicGUI_CircleDlg(GeometryGUI* theGeometryGUI, QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu),
+ myGeometryGUI(theGeometryGUI)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_CIRCLE_PV")));
- QPixmap image2(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_CIRCLE_PNTS")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_CIRCLE_PV")));
+ QPixmap image2(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_CIRCLE_PNTS")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_CIRCLE_TITLE"));
myPoint = myDir = myPoint1 = myPoint2 = myPoint3 = GEOM::GEOM_Object::_nil();
- myGeomGUI->SetState( 0 );
+ // myGeometryGUI->SetState( 0 );
/* Get setting of step value from file configuration */
- QString St = QAD_CONFIG->getSetting("Geometry:SettingsGeomStep");
- double aStep = St.toDouble();
+ SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
+ double aStep = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
/* min, max, step and decimals for spin boxes & initial values */
GroupPntVecR->SpinBox_DX->RangeStepAndValidator(0.001, 999.999, aStep, 3);
/* signals and slots connections */
connect(buttonCancel, SIGNAL(clicked()), this, SLOT(ClickOnCancel()));
- connect(myGeomGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
- connect(myGeomGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
+ connect(myGeometryGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
+ connect(myGeometryGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
connect(GroupPntVecR->LineEdit2, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
connect(GroupPntVecR->SpinBox_DX, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox()));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPntVecR->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPntVecR->SpinBox_DX, SLOT(SetStep(double)));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
initName( tr( "GEOM_CIRCLE" ) );
//=================================================================================
void BasicGUI_CircleDlg::ConstructorsClicked( int constructorId )
{
- disconnect( mySelection, 0, this, 0 );
+ disconnect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 0, this, 0 );
myPoint = myDir = myPoint1 = myPoint2 = myPoint3 = GEOM::GEOM_Object::_nil();
switch ( constructorId )
{
case 0:
{
- Group3Pnts->hide();
- resize(0, 0);
- GroupPntVecR->show();
-
- myEditCurrentArgument = GroupPntVecR->LineEdit1;
- GroupPntVecR->LineEdit1->setText("");
- GroupPntVecR->LineEdit2->setText("");
- break;
+ Group3Pnts->hide();
+ resize(0, 0);
+ GroupPntVecR->show();
+
+ myEditCurrentArgument = GroupPntVecR->LineEdit1;
+ GroupPntVecR->LineEdit1->setText("");
+ GroupPntVecR->LineEdit2->setText("");
+ break;
}
- case 1:
- {
- GroupPntVecR->hide();
- resize( 0, 0 );
- Group3Pnts->show();
-
- myEditCurrentArgument = Group3Pnts->LineEdit1;
- Group3Pnts->LineEdit1->setText("");
- Group3Pnts->LineEdit2->setText("");
- Group3Pnts->LineEdit3->setText("");
- break;
+ case 1:
+ {
+ GroupPntVecR->hide();
+ resize( 0, 0 );
+ Group3Pnts->show();
+
+ myEditCurrentArgument = Group3Pnts->LineEdit1;
+ Group3Pnts->LineEdit1->setText("");
+ Group3Pnts->LineEdit2->setText("");
+ Group3Pnts->LineEdit3->setText("");
+ break;
}
}
myEditCurrentArgument->setFocus();
- globalSelection( GEOM_POINT );
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ globalSelection( GEOM_POINT );
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
}
//=================================================================================
{
myEditCurrentArgument->setText("");
- if ( mySelection->IObjectCount() != 1 )
+ if ( IObjectCount() != 1 )
{
if ( myEditCurrentArgument == GroupPntVecR->LineEdit1 ) myPoint = GEOM::GEOM_Object::_nil();
else if ( myEditCurrentArgument == GroupPntVecR->LineEdit2 ) myDir = GEOM::GEOM_Object::_nil();
// nbSel == 1
Standard_Boolean aRes = Standard_False;
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), aRes );
+ GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( firstIObject(), aRes );
if ( !CORBA::is_nil( aSelectedObject ) && aRes )
{
myEditCurrentArgument->setText( GEOMBase::GetName( aSelectedObject ) );
{
GEOMBase_Skeleton::ActivateThisDialog();
globalSelection( GEOM_POINT );
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
- myGeomGUI->SetState( 0 );
+ // myGeometryGUI->SetState( 0 );
ConstructorsClicked( getConstructorId() );
}
//=================================================================================
void BasicGUI_CircleDlg::DeactivateActiveDialog()
{
- myGeomGUI->SetState( -1 );
+ // myGeometryGUI->SetState( -1 );
GEOMBase_Skeleton::DeactivateActiveDialog();
}
//=================================================================================
GEOM::GEOM_IOperations_ptr BasicGUI_CircleDlg::createOperation()
{
- return getGeomEngine()->GetICurvesOperations( getStudyId() );
+ return myGeometryGUI->GetGeomGen()->GetICurvesOperations( getStudyId() );
}
//=================================================================================
//=================================================================================
static bool isEqual( const GEOM::GEOM_Object_var& thePnt1, const GEOM::GEOM_Object_var& thePnt2 )
{
- return thePnt1->_is_equivalent( thePnt2 );
+ return thePnt1->_is_equivalent( thePnt2 );
}
//=================================================================================
//=================================================================================
bool BasicGUI_CircleDlg::isValid( QString& msg )
{
- const int id = getConstructorId();
- if ( id == 0 )
- return !myPoint->_is_nil() && !myDir->_is_nil() && getRadius() > 0;
- else if ( id == 1 )
- return !myPoint1->_is_nil() && !myPoint2->_is_nil() && !myPoint3->_is_nil() &&
- !isEqual( myPoint1, myPoint2 ) && !isEqual( myPoint1, myPoint3 ) && !isEqual( myPoint2, myPoint3 );
- return false;
+ const int id = getConstructorId();
+ if ( id == 0 )
+ return !myPoint->_is_nil() && !myDir->_is_nil() && getRadius() > 0;
+ else if ( id == 1 )
+ return !myPoint1->_is_nil() && !myPoint2->_is_nil() && !myPoint3->_is_nil() &&
+ !isEqual( myPoint1, myPoint2 ) && !isEqual( myPoint1, myPoint3 ) && !isEqual( myPoint2, myPoint3 );
+ return false;
}
//=================================================================================
bool BasicGUI_CircleDlg::execute( ObjectList& objects )
{
bool res = false;
-
+
GEOM::GEOM_Object_var anObj;
-
+
switch ( getConstructorId() )
{
case 0 :
res = true;
break;
}
-
+
if ( !anObj->_is_nil() )
objects.push_back( anObj._retn() );
-
+
return res;
}
//=================================================================================
void BasicGUI_CircleDlg::closeEvent( QCloseEvent* e )
{
- myGeomGUI->SetState( -1 );
+ // myGeometryGUI->SetState( -1 );
GEOMBase_Skeleton::closeEvent( e );
}
#include "BasicGUI.h"
-#include "GEOM_EdgeFilter.hxx"
-#include "GEOM_ShapeTypeFilter.hxx"
+//#include "GEOM_EdgeFilter.hxx"
+//#include "GEOM_ShapeTypeFilter.hxx"
#include <gp_Dir.hxx>
Q_OBJECT
public:
- BasicGUI_CircleDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ BasicGUI_CircleDlg(GeometryGUI* theGeometryGUI, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~BasicGUI_CircleDlg();
protected:
void enterEvent(QEvent* e);
double getRadius() const;
+ GeometryGUI* myGeometryGUI;
+
GEOM::GEOM_Object_var myPoint, myDir, myPoint1, myPoint2, myPoint3;
DlgRef_2Sel1Spin* GroupPntVecR;
#include "BasicGUI_CurveDlg.h"
-#include "QAD_Desktop.h"
-#include "QAD_Config.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
+#include <qlabel.h>
+
#include "utilities.h"
#include "SALOME_ListIteratorOfListIO.hxx"
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-BasicGUI_CurveDlg::BasicGUI_CurveDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+BasicGUI_CurveDlg::BasicGUI_CurveDlg(GeometryGUI* theGeometryGUI, QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu),
+ myGeometryGUI(theGeometryGUI)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_POLYLINE")));
- QPixmap image2(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_SPLINE")));
- QPixmap image3(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_BEZIER")));
-
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_POLYLINE")));
+ QPixmap image2(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_SPLINE")));
+ QPixmap image3(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_BEZIER")));
+
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_CURVE_TITLE"));
/* signals and slots connections */
connect(buttonCancel, SIGNAL(clicked()), this, SLOT(ClickOnCancel()));
- connect(myGeomGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
- connect(myGeomGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
+ connect(myGeometryGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
+ connect(myGeometryGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
connect(GroupPoints->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
connect(GroupPoints->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
initName( tr( "GEOM_CURVE" ) );
ConstructorsClicked( 0 );
Standard_Boolean aRes = Standard_False;
int i = 0;
- myPoints->length( mySelection->IObjectCount() ); // this length may be greater than number of objects,
+ myPoints->length( IObjectCount() ); // this length may be greater than number of objects,
// that will actually be put into myPoints
- for ( SALOME_ListIteratorOfListIO anIt( mySelection->StoredIObjects() ); anIt.More(); anIt.Next() )
+ for ( SALOME_ListIteratorOfListIO anIt( selectedIO() ); anIt.More(); anIt.Next() )
{
GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( anIt.Value(), aRes );
if ( !CORBA::is_nil( aSelectedObject ) && aRes )
{
//TopoDS_Shape aPointShape;
//if ( myGeomBase->GetShape( aSelectedObject, aPointShape, TopAbs_VERTEX ) )
- myPoints[i++] = aSelectedObject;
+ myPoints[i++] = aSelectedObject;
}
}
myPoints->length( i ); // this is the right length, smaller of equal to the previously set
if ( i )
GroupPoints->LineEdit1->setText( QString::number( i ) + "_" + tr( "GEOM_POINT" ) + tr( "_S_" ) );
-
+
displayPreview();
}
void BasicGUI_CurveDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
- myGeomGUI->SetState( 0 );
+ // myGeometryGUI->SetState( 0 );
globalSelection( GEOM_POINT );
ConstructorsClicked( getConstructorId() );
//=================================================================================
void BasicGUI_CurveDlg::DeactivateActiveDialog()
{
- myGeomGUI->SetState( -1 );
+ // myGeometryGUI->SetState( -1 );
GEOMBase_Skeleton::DeactivateActiveDialog();
}
//=================================================================================
GEOM::GEOM_IOperations_ptr BasicGUI_CurveDlg::createOperation()
{
- return getGeomEngine()->GetICurvesOperations( getStudyId() );
+ return myGeometryGUI->GetGeomGen()->GetICurvesOperations( getStudyId() );
}
//=================================================================================
//=================================================================================
void BasicGUI_CurveDlg::closeEvent( QCloseEvent* e )
{
- myGeomGUI->SetState( -1 );
+ // myGeometryGUI->SetState( -1 );
GEOMBase_Skeleton::closeEvent( e );
}
#include "BasicGUI.h"
-#include "GEOM_ShapeTypeFilter.hxx"
+//#include "GEOM_ShapeTypeFilter.hxx"
//=================================================================================
// class : BasicGUI_CurveDlg
Q_OBJECT
public:
- BasicGUI_CurveDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ BasicGUI_CurveDlg(GeometryGUI* theGeometryGUI, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~BasicGUI_CurveDlg();
protected:
void Init();
void enterEvent(QEvent* e);
+ GeometryGUI* myGeometryGUI;
+
DlgRef_1Sel_QTD* GroupPoints;
GEOM::ListOfGO_var myPoints;
// $Header$
#include "BasicGUI_EllipseDlg.h"
-#include "QAD_Desktop.h"
-#include "QAD_Config.h"
+
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
+#include <qlabel.h>
#include "GEOMImpl_Types.hxx"
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-BasicGUI_EllipseDlg::BasicGUI_EllipseDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+BasicGUI_EllipseDlg::BasicGUI_EllipseDlg(GeometryGUI* theGeometryGUI, QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu), myGeometryGUI(theGeometryGUI)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_ELLIPSE_PV")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_ELLIPSE_PV")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_ELLIPSE_TITLE"));
myPoint = myDir = GEOM::GEOM_Object::_nil();
- myGeomGUI->SetState( 0 );
+ // myGeometryGUI->SetState( 0 );
/* Get setting of step value from file configuration */
- QString St = QAD_CONFIG->getSetting("Geometry:SettingsGeomStep");
- double step = St.toDouble();
+ SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
+ double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
+
double aMajorR( 200. ), aMinorR( 100. );
/* min, max, step and decimals for spin boxes & initial values */
/* signals and slots connections */
connect(buttonCancel, SIGNAL(clicked()), this, SLOT(ClickOnCancel()));
- connect(myGeomGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
- connect(myGeomGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
+ connect(myGeometryGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
+ connect(myGeometryGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
connect(GroupPoints->SpinBox_DX, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
connect(GroupPoints->SpinBox_DY, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DX, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DY, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DY, SLOT(SetStep(double)));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
initName( tr( "GEOM_ELLIPSE" ) );
}
{
myEditCurrentArgument->setText("");
- if ( mySelection->IObjectCount() != 1 )
+ if ( IObjectCount() != 1 )
{
if ( myEditCurrentArgument == GroupPoints->LineEdit1 ) myPoint = GEOM::GEOM_Object::_nil();
else if ( myEditCurrentArgument == GroupPoints->LineEdit2 ) myDir = GEOM::GEOM_Object::_nil();
}
Standard_Boolean aRes = Standard_False;
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), aRes );
+ GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( firstIObject(), aRes );
if ( !CORBA::is_nil( aSelectedObject ) && aRes )
{
myEditCurrentArgument->setText( GEOMBase::GetName( aSelectedObject ) );
void BasicGUI_EllipseDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
GroupPoints->LineEdit1->setFocus();
myEditCurrentArgument = GroupPoints->LineEdit1;
//=================================================================================
void BasicGUI_EllipseDlg::DeactivateActiveDialog()
{
- myGeomGUI->SetState( -1 );
+ // myGeometryGUI->SetState( -1 );
GEOMBase_Skeleton::DeactivateActiveDialog();
}
//=================================================================================
GEOM::GEOM_IOperations_ptr BasicGUI_EllipseDlg::createOperation()
{
- return getGeomEngine()->GetICurvesOperations( getStudyId() );
+ return myGeometryGUI->GetGeomGen()->GetICurvesOperations( getStudyId() );
}
//=================================================================================
//=================================================================================
void BasicGUI_EllipseDlg::closeEvent( QCloseEvent* e )
{
- myGeomGUI->SetState( -1 );
+ // myGeometryGUI->SetState( -1 );
GEOMBase_Skeleton::closeEvent( e );
}
#include "BasicGUI.h"
-#include "GEOM_ShapeTypeFilter.hxx"
-#include "GEOM_EdgeFilter.hxx"
+//#include "GEOM_ShapeTypeFilter.hxx"
+//#include "GEOM_EdgeFilter.hxx"
#include <gp_Dir.hxx>
//=================================================================================
Q_OBJECT
public:
- BasicGUI_EllipseDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ BasicGUI_EllipseDlg(GeometryGUI* theGeometryGUI, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~BasicGUI_EllipseDlg();
protected:
void Init();
void enterEvent(QEvent* e);
+ GeometryGUI* myGeometryGUI;
+
GEOM::GEOM_Object_var myPoint, myDir;
DlgRef_2Sel2Spin* GroupPoints;
#include "BasicGUI_LineDlg.h"
-#include "QAD_Desktop.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
+#include <qlabel.h>
#include "GEOMImpl_Types.hxx"
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-BasicGUI_LineDlg::BasicGUI_LineDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+BasicGUI_LineDlg::BasicGUI_LineDlg(GeometryGUI* theGeometryGUI, QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu), myGeometryGUI(theGeometryGUI)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap( "GEOM",tr("ICON_DLG_LINE_2P")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap( "GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap( "GEOM",tr("ICON_DLG_LINE_2P")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap( "GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_LINE_TITLE"));
myPoint1 = myPoint2 = GEOM::GEOM_Object::_nil();
- myGeomGUI->SetState( 0 );
+ // myGeometryGUI->SetState( 0 );
globalSelection( GEOM_POINT );
/* signals and slots connections */
connect(buttonCancel, SIGNAL(clicked()), this, SLOT(ClickOnCancel()));
- connect(myGeomGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
- connect(myGeomGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
+ connect(myGeometryGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
+ connect(myGeometryGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
connect(GroupPoints->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
connect(GroupPoints->LineEdit2, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
-
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+
initName( tr("GEOM_LINE") );
}
{
if ( !onAccept() )
return false;
-
+
initName();
return true;
}
{
myEditCurrentArgument->setText("");
- if ( mySelection->IObjectCount() != 1 )
+ if ( IObjectCount() != 1 )
{
if ( myEditCurrentArgument == GroupPoints->LineEdit1 ) myPoint1 = GEOM::GEOM_Object::_nil();
else if ( myEditCurrentArgument == GroupPoints->LineEdit2 ) myPoint2 = GEOM::GEOM_Object::_nil();
// nbSel == 1
Standard_Boolean aRes = Standard_False;
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), aRes );
+ GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( firstIObject(), aRes );
if ( !CORBA::is_nil( aSelectedObject ) && aRes )
{
myEditCurrentArgument->setText( GEOMBase::GetName( aSelectedObject ) );
if ( myEditCurrentArgument == GroupPoints->LineEdit1 ) myPoint1 = aSelectedObject;
else if ( myEditCurrentArgument == GroupPoints->LineEdit2 ) myPoint2 = aSelectedObject;
}
-
+
displayPreview();
}
void BasicGUI_LineDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
- myGeomGUI->SetState( 0 );
+ // myGeometryGUI->SetState( 0 );
globalSelection( GEOM_POINT );
myEditCurrentArgument = GroupPoints->LineEdit1;
//=================================================================================
void BasicGUI_LineDlg::DeactivateActiveDialog()
{
- myGeomGUI->SetState( -1 );
+ // myGeometryGUI->SetState( -1 );
GEOMBase_Skeleton::DeactivateActiveDialog();
}
//=================================================================================
GEOM::GEOM_IOperations_ptr BasicGUI_LineDlg::createOperation()
{
- return getGeomEngine()->GetIBasicOperations( getStudyId() );
+ return myGeometryGUI->GetGeomGen()->GetIBasicOperations( getStudyId() );
}
//=================================================================================
bool BasicGUI_LineDlg::execute( ObjectList& objects )
{
GEOM::GEOM_Object_var anObj = GEOM::GEOM_IBasicOperations::_narrow( getOperation() )->MakeLineTwoPnt( myPoint1, myPoint2 );
- if ( !anObj->_is_nil() )
- objects.push_back( anObj._retn() );
+ if ( !anObj->_is_nil() )
+ objects.push_back( anObj._retn() );
return true;
}
//=================================================================================
void BasicGUI_LineDlg::closeEvent( QCloseEvent* e )
{
- myGeomGUI->SetState( -1 );
+ // myGeometryGUI->SetState( -1 );
GEOMBase_Skeleton::closeEvent( e );
}
Q_OBJECT
public:
- BasicGUI_LineDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ BasicGUI_LineDlg(GeometryGUI* theGeometryGUI, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~BasicGUI_LineDlg();
protected:
void Init();
void enterEvent(QEvent* e);
+ GeometryGUI* myGeometryGUI;
+
GEOM::GEOM_Object_var myPoint1;
GEOM::GEOM_Object_var myPoint2;
#include "BasicGUI_MarkerDlg.h"
#include "DlgRef_SpinBox.h"
-#include "QAD_Desktop.h"
-#include "QAD_RightFrame.h"
-#include "VTKViewer_ViewFrame.h"
-#include "OCCViewer_ViewFrame.h"
-#include "QAD_Config.h"
+
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
+#include <qlabel.h>
+
#include "GEOMImpl_Types.hxx"
#include "utilities.h"
// class : BasicGUI_MarkerDlg()
// purpose : Constructor
//=================================================================================
-BasicGUI_MarkerDlg::BasicGUI_MarkerDlg( QWidget* theParent, SALOME_Selection* theSel )
-: GEOMBase_Skeleton( theParent, "BasicGUI_MarkerDlg", theSel, false,
- WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+BasicGUI_MarkerDlg::BasicGUI_MarkerDlg( GeometryGUI* theGeometryGUI, QWidget* theParent )
+: GEOMBase_Skeleton( theParent, "BasicGUI_MarkerDlg", false,
+ WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu), myGeometryGUI(theGeometryGUI)
{
- QPixmap iconCS1 ( QAD_Desktop::getResourceManager()->loadPixmap( "GEOM", tr( "ICON_MARKER" ) ) );
- QPixmap iconCS2 ( QAD_Desktop::getResourceManager()->loadPixmap( "GEOM", tr( "ICON_MARKER2" ) ) );
- QPixmap iconCS3 ( QAD_Desktop::getResourceManager()->loadPixmap( "GEOM", tr( "ICON_MARKER3" ) ) );
- QPixmap iconSelect( QAD_Desktop::getResourceManager()->loadPixmap( "GEOM", tr( "ICON_SELECT" ) ) );
+ QPixmap iconCS1 ( SUIT_Session::session()->resourceMgr()->loadPixmap( "GEOM", tr( "ICON_MARKER" ) ) );
+ QPixmap iconCS2 ( SUIT_Session::session()->resourceMgr()->loadPixmap( "GEOM", tr( "ICON_MARKER2" ) ) );
+ QPixmap iconCS3 ( SUIT_Session::session()->resourceMgr()->loadPixmap( "GEOM", tr( "ICON_MARKER3" ) ) );
+ QPixmap iconSelect( SUIT_Session::session()->resourceMgr()->loadPixmap( "GEOM", tr( "ICON_SELECT" ) ) );
setCaption( tr( "CAPTION" ) );
Layout1->addWidget( Group1, 2, 0 );
Layout1->addWidget( Group2, 2, 0 );
- Init( theSel );
+ Init();
}
// function : Init()
// purpose :
//=================================================================================
-void BasicGUI_MarkerDlg::Init( SALOME_Selection* theSel )
+void BasicGUI_MarkerDlg::Init()
{
myBlockPreview = false;
myConstructorId = -1;
Group2->LineEdit1->setReadOnly( true );
Group2->LineEdit2->setReadOnly( true );
Group2->LineEdit3->setReadOnly( true );
-
- GeometryGUI* aGeomGUI = GeometryGUI::GetGeomGUI();
-
+
connect(GroupConstructors, SIGNAL(clicked(int)), this, SLOT(ConstructorsClicked(int)));
connect(Group1->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
connect(Group2->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
connect(Group2->LineEdit3, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( onClose() ) );
- connect( aGeomGUI, SIGNAL( SignalDeactivateActiveDialog() ), this, SLOT( onDeactivate() ) );
- connect( aGeomGUI, SIGNAL( SignalCloseAllDialogs() ), this, SLOT( onClose() ) );
+ connect( myGeometryGUI, SIGNAL( SignalDeactivateActiveDialog() ), this, SLOT( onDeactivate() ) );
+ connect( myGeometryGUI, SIGNAL( SignalCloseAllDialogs() ), this, SLOT( onClose() ) );
connect( buttonOk, SIGNAL( clicked() ), this, SLOT( onOk() ) );
connect( buttonApply, SIGNAL( clicked() ), this, SLOT( onApply() ) );
- connect( mySelection, SIGNAL( currentSelectionChanged() ), this, SLOT( onSelectionDone() ) );
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL( currentSelectionChanged() ), this, SLOT( onSelectionDone() ) );
initName( tr( "LCS_NAME" ) );
- QString aStr = QAD_CONFIG->getSetting( "Geometry:SettingsGeomStep" );
+ SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
+ double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
+
for ( DataMap::iterator anIter = myData.begin(); anIter != myData.end(); ++anIter )
{
- anIter.data()->RangeStepAndValidator( -999.999, 999.999, aStr.toDouble(), 3 );
+ anIter.data()->RangeStepAndValidator( -999.999, 999.999, step, 3 );
connect( anIter.data(), SIGNAL( valueChanged( double ) ),
this, SLOT( onValueChanged( double ) ) );
}
ConstructorsClicked( 0 );
+
+ //@
+ /*
QAD_ViewFrame* aFrame = QAD_Application::getDesktop()->getActiveApp()->
getActiveStudy()->getActiveStudyFrame()->getRightFrame()->getViewFrame();
OCCViewer_ViewFrame* aOCCFrame = dynamic_cast<OCCViewer_ViewFrame*>( aFrame );
if ( aOCCFrame )
aOCCFrame->AdjustTrihedrons( true );
+ */
}
//=================================================================================
myConstructorId = constructorId;
- disconnect(mySelection, 0, this, 0);
+ disconnect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 0, this, 0);
switch (constructorId)
{
}
}
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(onSelectionDone()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(onSelectionDone()));
onSelectionDone();
}
//=================================================================================
void BasicGUI_MarkerDlg::onSelectionDone0()
{
- if ( mySelection->IObjectCount() == 1 )
+ if ( IObjectCount() == 1 )
{
Standard_Boolean aRes = Standard_False;
- Handle(SALOME_InteractiveObject) anIO = mySelection->firstIObject();
+ Handle(SALOME_InteractiveObject) anIO = firstIObject();
GEOM::GEOM_Object_var aSelectedObj = GEOMBase::ConvertIOinGEOMObject( anIO, aRes );
if ( aRes && !aSelectedObj->_is_nil() )
myData[ DX2 ]->SetValue( aYDir.X() );
myData[ DY2 ]->SetValue( aYDir.Y() );
myData[ DZ2 ]->SetValue( aYDir.Z() );
- //mySelection->ClearIObjects();
+ ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr()->clearSelected();
}
}
else
{
- if ( mySelection->HasIndex( anIO ) )
+ TColStd_IndexedMapOfInteger aMap;
+ ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr()->GetIndexes( anIO, aMap );
+ if ( aMap.Extent() == 1 )
{
- TColStd_IndexedMapOfInteger aMap;
- mySelection->GetIndex( anIO, aMap );
- if ( aMap.Extent() == 1 )
- {
- int anIndex = aMap( 1 );
- TopTools_IndexedMapOfShape aShapes;
- TopExp::MapShapes( aShape, aShapes );
- aShape = aShapes.FindKey( anIndex );
- //mySelection->ClearIObjects();
- }
- }
+ int anIndex = aMap( 1 );
+ TopTools_IndexedMapOfShape aShapes;
+ TopExp::MapShapes( aShape, aShapes );
+ aShape = aShapes.FindKey( anIndex );
+ ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr()->clearSelected();
+ }
+
if ( !aShape.IsNull() && aShape.ShapeType() == TopAbs_VERTEX )
{
myEditCurrentArgument->setText("");
QString aName;
- if ( mySelection->IObjectCount() == 1 ) {
+ if ( IObjectCount() == 1 ) {
Standard_Boolean aRes = Standard_False;
- Handle(SALOME_InteractiveObject) anIO = mySelection->firstIObject();
+ Handle(SALOME_InteractiveObject) anIO = firstIObject();
GEOM::GEOM_Object_var aSelectedObj = GEOMBase::ConvertIOinGEOMObject( anIO, aRes );
if ( !CORBA::is_nil( aSelectedObj ) && aRes ) {
TopoDS_Shape aShape;
if ( myGeomBase->GetShape( aSelectedObj, aShape, TopAbs_SHAPE ) ) {
GEOM::short_array anIndexes;
- if ( mySelection->HasIndex( anIO ) ) {
- TColStd_IndexedMapOfInteger aMap;
- mySelection->GetIndex( anIO, aMap );
+
+ TColStd_IndexedMapOfInteger aMap;
+ ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr()->GetIndexes( anIO, aMap );
+
+ if ( !aMap.IsEmpty() ) {
int anIndex = aMap( 1 );
TopTools_IndexedMapOfShape aShapes;
TopExp::MapShapes( aShape, aShapes );
aShape = aShapes.FindKey( anIndex );
}
- if ( getConstructorId() == 1 ) {
+ if ( getConstructorId() == 1 ) {
if ( !aShape.IsNull() ) {
gp_Pnt aPnt;
if (aShape.ShapeType() == TopAbs_VERTEX) {
aPnt = aSystem.CentreOfMass();
}
-
+
gp_Ax3 anAx3;
anAx3.Transform(aShape.Location().Transformation());
if(aShape.ShapeType() == TopAbs_FACE) {
anAx3 = aPln.Position();
}
}
-
+
gp_Dir aDirX = anAx3.XDirection();
gp_Dir aDirY = anAx3.YDirection();
-
+
myData[ X ]->SetValue( aPnt.X() );
myData[ Y ]->SetValue( aPnt.Y() );
myData[ Z ]->SetValue( aPnt.Z() );
-
+
myData[ DX1 ]->SetValue( aDirX.X() );
myData[ DY1 ]->SetValue( aDirX.Y() );
myData[ DZ1 ]->SetValue( aDirX.Z() );
-
+
myData[ DX2 ]->SetValue( aDirY.X() );
myData[ DY2 ]->SetValue( aDirY.Y() );
myData[ DZ2 ]->SetValue( aDirY.Z() );
-
+
myEditCurrentArgument->setText( aName );
}
else {
myData[ X ]->SetValue( 0 );
myData[ Y ]->SetValue( 0 );
myData[ Z ]->SetValue( 0 );
-
+
myData[ DX1 ]->SetValue( 0 );
myData[ DY1 ]->SetValue( 0 );
myData[ DZ1 ]->SetValue( 0 );
-
+
myData[ DX2 ]->SetValue( 0 );
myData[ DY2 ]->SetValue( 0 );
myData[ DZ2 ]->SetValue( 0 );
gp_Pnt aP1 = BRep_Tool::Pnt(TopExp::FirstVertex(TopoDS::Edge(aShape)));
gp_Pnt aP2 = BRep_Tool::Pnt(TopExp::LastVertex(TopoDS::Edge(aShape)));
gp_Dir aDir(gp_Vec(aP1, aP2));
-
+
myData[ DX1 ]->SetValue( aDir.X() );
myData[ DY1 ]->SetValue( aDir.Y() );
myData[ DZ1 ]->SetValue( aDir.Z() );
gp_Pnt aP1 = BRep_Tool::Pnt(TopExp::FirstVertex(TopoDS::Edge(aShape)));
gp_Pnt aP2 = BRep_Tool::Pnt(TopExp::LastVertex(TopoDS::Edge(aShape)));
gp_Dir aDir(gp_Vec(aP1, aP2));
-
+
myData[ DX2 ]->SetValue( aDir.X() );
myData[ DY2 ]->SetValue( aDir.Y() );
myData[ DZ2 ]->SetValue( aDir.Z() );
myData[ X ]->SetValue( 0 );
myData[ Y ]->SetValue( 0 );
myData[ Z ]->SetValue( 0 );
-
+
myData[ DX1 ]->SetValue( 0 );
myData[ DY1 ]->SetValue( 0 );
myData[ DZ1 ]->SetValue( 0 );
-
+
myData[ DX2 ]->SetValue( 0 );
myData[ DY2 ]->SetValue( 0 );
myData[ DZ2 ]->SetValue( 0 );
}
}
}
-
+
displayPreview();
}
void BasicGUI_MarkerDlg::onActivate()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect( mySelection, SIGNAL( currentSelectionChanged() ), this, SLOT( onSelectionDone() ) );
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL( currentSelectionChanged() ), this, SLOT( onSelectionDone() ) );
ConstructorsClicked( getConstructorId() );
}
//=================================================================================
GEOM::GEOM_IOperations_ptr BasicGUI_MarkerDlg::createOperation()
{
- return getGeomEngine()->GetIBasicOperations( getStudyId() );
+ return myGeometryGUI->GetGeomGen()->GetIBasicOperations( getStudyId() );
}
//=================================================================================
typedef QMap< int, DlgRef_SpinBox* > DataMap;
public:
- BasicGUI_MarkerDlg( QWidget*, SALOME_Selection* );
+ BasicGUI_MarkerDlg( GeometryGUI* theGeometryGUI, QWidget* );
virtual ~BasicGUI_MarkerDlg();
- void Init( SALOME_Selection* );
+ void Init();
protected:
virtual GEOM::GEOM_IOperations_ptr createOperation();
void enterEvent( QEvent* e );
void onSelectionDone0();
+ GeometryGUI* myGeometryGUI;
+
private slots:
void onOk();
void onClose();
// $Header$
#include "BasicGUI_PlaneDlg.h"
-#include "QAD_Config.h"
-#include "QAD_Desktop.h"
+
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
+#include <qlabel.h>
#include "GEOMImpl_Types.hxx"
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-BasicGUI_PlaneDlg::BasicGUI_PlaneDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+BasicGUI_PlaneDlg::BasicGUI_PlaneDlg(GeometryGUI* theGeometryGUI, QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu), myGeometryGUI(theGeometryGUI)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_PLANE_PV")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_PLANE_3PNTS")));
- QPixmap image2(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_PLANE_FACE")));
- QPixmap image3(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_PLANE_PV")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_PLANE_3PNTS")));
+ QPixmap image2(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_PLANE_FACE")));
+ QPixmap image3(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_PLANE_TITLE"));
myPoint = myDir = myPoint1 = myPoint2 = myPoint3 = myFace = GEOM::GEOM_Object::_nil();
- myGeomGUI->SetState( 0 );
+ // myGeometryGUI->SetState( 0 );
/* Get setting of step value from file configuration */
- QString St = QAD_CONFIG->getSetting("Geometry:SettingsGeomStep");
- double aStep = St.toDouble();
+ SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
+ double aStep = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
+
double aTrimSize = 2000.0;
/* min, max, step and decimals for spin boxes */
/* signals and slots connections */
connect(buttonCancel, SIGNAL(clicked()), this, SLOT(ClickOnCancel()));
- connect(myGeomGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
- connect(myGeomGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
+ connect(myGeometryGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
+ connect(myGeometryGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
connect(Group3Pnts->SpinBox_DX, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
connect(GroupFace->SpinBox_DX, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPntDir->SpinBox_DX, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), Group3Pnts->SpinBox_DX, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupFace->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPntDir->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), Group3Pnts->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupFace->SpinBox_DX, SLOT(SetStep(double)));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
initName( tr( "GEOM_PLANE" ) );
//=================================================================================
void BasicGUI_PlaneDlg::ConstructorsClicked(int constructorId)
{
- disconnect(mySelection, 0, this, 0);
+ disconnect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 0, this, 0);
myPoint = myDir = myPoint1 = myPoint2 = myPoint3 = myFace = GEOM::GEOM_Object::_nil();
switch ( constructorId )
}
myEditCurrentArgument->setFocus();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
}
{
myEditCurrentArgument->setText("");
- if ( mySelection->IObjectCount() != 1 )
+ if ( IObjectCount() != 1 )
{
if ( myEditCurrentArgument == GroupPntDir->LineEdit1 ) myPoint = GEOM::GEOM_Object::_nil();
else if ( myEditCurrentArgument == GroupPntDir->LineEdit2 ) myDir = GEOM::GEOM_Object::_nil();
// nbSel == 1
Standard_Boolean aRes = Standard_False;
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), aRes );
+ GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( firstIObject(), aRes );
if ( !CORBA::is_nil( aSelectedObject ) && aRes )
{
myEditCurrentArgument->setText( GEOMBase::GetName( aSelectedObject ) );
void BasicGUI_PlaneDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
- myGeomGUI->SetState( 0 );
+ // myGeometryGUI->SetState( 0 );
ConstructorsClicked( getConstructorId() );
}
//=================================================================================
void BasicGUI_PlaneDlg::DeactivateActiveDialog()
{
- myGeomGUI->SetState( -1 );
+ // myGeometryGUI->SetState( -1 );
GEOMBase_Skeleton::DeactivateActiveDialog();
}
//=================================================================================
GEOM::GEOM_IOperations_ptr BasicGUI_PlaneDlg::createOperation()
{
- return getGeomEngine()->GetIBasicOperations( getStudyId() );
+ return myGeometryGUI->GetGeomGen()->GetIBasicOperations( getStudyId() );
}
//=================================================================================
//=================================================================================
void BasicGUI_PlaneDlg::closeEvent( QCloseEvent* e )
{
- myGeomGUI->SetState( -1 );
+ // myGeometryGUI->SetState( -1 );
GEOMBase_Skeleton::closeEvent( e );
}
Q_OBJECT
public:
- BasicGUI_PlaneDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ BasicGUI_PlaneDlg( GeometryGUI* theGeometryGUI, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~BasicGUI_PlaneDlg();
protected:
void enterEvent(QEvent* e);
double getSize() const;
+ GeometryGUI* myGeometryGUI;
+
GEOM::GEOM_Object_var myPoint, myDir, myPoint1, myPoint2, myPoint3, myFace;
DlgRef_2Sel1Spin* GroupPntDir;
using namespace std;
#include "BasicGUI_PointDlg.h"
-#include "QAD_RightFrame.h"
-#include "QAD_Desktop.h"
-#include "QAD_Config.h"
-#include "OCCViewer_Viewer3d.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
#include "GEOMImpl_Types.hxx"
+#include <qlabel.h>
+
#include "utilities.h"
#include <gp_Pnt.hxx>
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-BasicGUI_PointDlg::BasicGUI_PointDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, fl )
+BasicGUI_PointDlg::BasicGUI_PointDlg(GeometryGUI* theGeometryGUI, QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, fl ), myGeometryGUI(theGeometryGUI)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_POINT")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_POINT_EDGE")));
- QPixmap image2(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
- QPixmap image3(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_POINT_REF")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_POINT")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_POINT_EDGE")));
+ QPixmap image2(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image3(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_POINT_REF")));
setCaption(tr("GEOM_POINT_TITLE"));
myEditCurrentArgument = 0;
- myGeomGUI->SetState( 0 );
+ // myGeometryGUI->SetState( 0 );
/* Get setting of step value from file configuration */
- QString St = QAD_CONFIG->getSetting("Geometry:SettingsGeomStep");
- double step = St.toDouble();
-
+ SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
+ double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
+
/* min, max, step and decimals for spin boxes */
GroupXYZ->SpinBox_DX->RangeStepAndValidator(-999.999, 999.999, step, 3);
GroupXYZ->SpinBox_DY->RangeStepAndValidator(-999.999, 999.999, step, 3);
/* signals and slots connections */
connect(buttonCancel, SIGNAL(clicked()), this, SLOT(ClickOnCancel()));
- connect(myGeomGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
- connect(myGeomGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
+ connect(myGeometryGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
+ connect(myGeometryGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
connect(GroupRefPoint->SpinBox_DY, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
connect(GroupRefPoint->SpinBox_DZ, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupOnCurve->SpinBox_DX, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupXYZ->SpinBox_DX, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupXYZ->SpinBox_DY, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupXYZ->SpinBox_DZ, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupRefPoint->SpinBox_DX, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupRefPoint->SpinBox_DY, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupRefPoint->SpinBox_DZ, SLOT(SetStep(double)));
-
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupOnCurve->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupXYZ->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupXYZ->SpinBox_DY, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupXYZ->SpinBox_DZ, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupRefPoint->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupRefPoint->SpinBox_DY, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupRefPoint->SpinBox_DZ, SLOT(SetStep(double)));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+
initName( tr("GEOM_VERTEX") );
-
+
ConstructorsClicked( 0 );
}
{
if ( !onAccept() )
return false;
-
+
initName();
ConstructorsClicked( getConstructorId() );
return true;
//=================================================================================
void BasicGUI_PointDlg::SelectionIntoArgument()
{
- const int id = getConstructorId();
+ const int id = getConstructorId();
if ( ( id == 1 || id == 2 ) && myEditCurrentArgument != 0 )
- {
- myEditCurrentArgument->setText("");
- myX->setText( "" );
- myY->setText( "" );
- myZ->setText( "" );
- myRefPoint = myEdge = GEOM::GEOM_Object::_nil();
- }
+ {
+ myEditCurrentArgument->setText("");
+ myX->setText( "" );
+ myY->setText( "" );
+ myZ->setText( "" );
+ myRefPoint = myEdge = GEOM::GEOM_Object::_nil();
+ }
- if ( mySelection->IObjectCount() == 1 )
- {
- Standard_Boolean aRes = Standard_False;
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), aRes );
- if ( !CORBA::is_nil( aSelectedObject ) && aRes )
+ if ( IObjectCount() == 1 )
+ {
+ Standard_Boolean aRes = Standard_False;
+ GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( firstIObject(), aRes );
+ if ( !CORBA::is_nil( aSelectedObject ) && aRes )
{
- if ( id == 0 )
- {
- // get CORBA reference to data object
- TopoDS_Shape aShape = GeometryGUI::GetGeomGUI()->GetShapeReader().GetShape(
- GeometryGUI::GetGeomGUI()->GetGeomGen(), aSelectedObject );
- if ( !aShape.IsNull() && aShape.ShapeType() == TopAbs_VERTEX )
- {
- gp_Pnt aPnt = BRep_Tool::Pnt( TopoDS::Vertex( aShape ) );
- GroupXYZ->SpinBox_DX->SetValue( aPnt.X() );
- GroupXYZ->SpinBox_DY->SetValue( aPnt.Y() );
- GroupXYZ->SpinBox_DZ->SetValue( aPnt.Z() );
- }
- }
- else if ( id == 1 )
- {
- myRefPoint = aSelectedObject;
- GroupRefPoint->LineEdit1->setText( GEOMBase::GetName( aSelectedObject ) );
- }
- else if ( id == 2 )
- {
- myEdge = aSelectedObject;
- GroupOnCurve->LineEdit1->setText( GEOMBase::GetName( aSelectedObject ) );
- }
+ if ( id == 0 )
+ {
+ // get CORBA reference to data object
+ TopoDS_Shape aShape = myGeometryGUI->GetShapeReader().GetShape( myGeometryGUI->GetGeomGen(), aSelectedObject );
+ if ( !aShape.IsNull() && aShape.ShapeType() == TopAbs_VERTEX )
+ {
+ gp_Pnt aPnt = BRep_Tool::Pnt( TopoDS::Vertex( aShape ) );
+ GroupXYZ->SpinBox_DX->SetValue( aPnt.X() );
+ GroupXYZ->SpinBox_DY->SetValue( aPnt.Y() );
+ GroupXYZ->SpinBox_DZ->SetValue( aPnt.Z() );
+ }
+ }
+ else if ( id == 1 )
+ {
+ myRefPoint = aSelectedObject;
+ GroupRefPoint->LineEdit1->setText( GEOMBase::GetName( aSelectedObject ) );
+ }
+ else if ( id == 2 )
+ {
+ myEdge = aSelectedObject;
+ GroupOnCurve->LineEdit1->setText( GEOMBase::GetName( aSelectedObject ) );
+ }
}
- }
-
+ }
+
displayPreview();
}
{
QLineEdit* send = (QLineEdit*)sender();
if ( send == GroupRefPoint->LineEdit1 || send == GroupOnCurve->LineEdit1 )
- {
- myEditCurrentArgument = send;
- GEOMBase_Skeleton::LineEditReturnPressed();
- }
+ {
+ myEditCurrentArgument = send;
+ GEOMBase_Skeleton::LineEditReturnPressed();
+ }
}
{
GroupOnCurve->LineEdit1->setFocus();
myEditCurrentArgument = GroupOnCurve->LineEdit1;
-
+
globalSelection( GEOM_EDGE );
}
}
void BasicGUI_PointDlg::ActivateThisDialog( )
{
GEOMBase_Skeleton::ActivateThisDialog();
- myGeomGUI->SetState( 0 );
+ // myGeometryGUI->SetState( 0 );
ConstructorsClicked( getConstructorId() );
}
//=================================================================================
void BasicGUI_PointDlg::DeactivateActiveDialog()
{
- myGeomGUI->SetState( -1 );
+ // myGeometryGUI->SetState( -1 );
GEOMBase_Skeleton::DeactivateActiveDialog();
}
//=================================================================================
GEOM::GEOM_IOperations_ptr BasicGUI_PointDlg::createOperation()
{
- return getGeomEngine()->GetIBasicOperations( getStudyId() );
+ return myGeometryGUI->GetGeomGen()->GetIBasicOperations( getStudyId() );
}
//=================================================================================
//=================================================================================
bool BasicGUI_PointDlg::isValid( QString& msg )
{
- const int id = getConstructorId();
- if ( id == 0 )
- return true;
- else if ( id == 1 )
- return !myRefPoint->_is_nil();
- else if ( id == 2 )
- return !myEdge->_is_nil();
- return false;
+ const int id = getConstructorId();
+ if ( id == 0 )
+ return true;
+ else if ( id == 1 )
+ return !myRefPoint->_is_nil();
+ else if ( id == 2 )
+ return !myEdge->_is_nil();
+ return false;
}
//=================================================================================
double dy = GroupRefPoint->SpinBox_DY->GetValue();
double dz = GroupRefPoint->SpinBox_DZ->GetValue();
- anObj = GEOM::GEOM_IBasicOperations::_narrow( getOperation() )->MakePointWithReference( myRefPoint, dx, dy, dz );
- res = true;
+ anObj = GEOM::GEOM_IBasicOperations::_narrow( getOperation() )->MakePointWithReference( myRefPoint, dx, dy, dz );
+ res = true;
break;
}
case 2 :
}
if ( getConstructorId() == 1 || getConstructorId() == 2 )
- {
- TopoDS_Shape aShape;
- if ( GEOMBase::GetShape( anObj, aShape ) && !aShape.IsNull() && aShape.ShapeType() == TopAbs_VERTEX )
{
- gp_Pnt aPnt = BRep_Tool::Pnt( TopoDS::Vertex( aShape ) );
- myX->setText( QString( "%1" ).arg( aPnt.X() ) );
- myY->setText( QString( "%1" ).arg( aPnt.Y() ) );
- myZ->setText( QString( "%1" ).arg( aPnt.Z() ) );
+ TopoDS_Shape aShape;
+ if ( GEOMBase::GetShape( anObj, aShape ) && !aShape.IsNull() && aShape.ShapeType() == TopAbs_VERTEX )
+ {
+ gp_Pnt aPnt = BRep_Tool::Pnt( TopoDS::Vertex( aShape ) );
+ myX->setText( QString( "%1" ).arg( aPnt.X() ) );
+ myY->setText( QString( "%1" ).arg( aPnt.Y() ) );
+ myZ->setText( QString( "%1" ).arg( aPnt.Z() ) );
+ }
+ else
+ {
+ myX->setText( "" );
+ myY->setText( "" );
+ myZ->setText( "" );
+ }
}
- else
- {
- myX->setText( "" );
- myY->setText( "" );
- myZ->setText( "" );
- }
- }
-
+
if ( !anObj->_is_nil() )
objects.push_back( anObj._retn() );
-
+
return res;
}
//=================================================================================
void BasicGUI_PointDlg::closeEvent( QCloseEvent* e )
{
- myGeomGUI->SetState( -1 );
+ // myGeometryGUI->SetState( -1 );
GEOMBase_Skeleton::closeEvent( e );
}
Q_OBJECT
public:
- BasicGUI_PointDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ BasicGUI_PointDlg(GeometryGUI* theGeometryGUI, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~BasicGUI_PointDlg();
void enterEvent(QEvent* e);
double getParameter() const;
+ GeometryGUI* myGeometryGUI;
+
GEOM::GEOM_Object_var myEdge;
GEOM::GEOM_Object_var myRefPoint;
using namespace std;
#include "BasicGUI_VectorDlg.h"
-#include "QAD_Desktop.h"
-#include "QAD_Config.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
+#include <qlabel.h>
#include "GEOMImpl_Types.hxx"
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-BasicGUI_VectorDlg::BasicGUI_VectorDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, fl )
+BasicGUI_VectorDlg::BasicGUI_VectorDlg(GeometryGUI* theGeometryGUI, QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, fl ), myGeometryGUI(theGeometryGUI)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_VECTOR_2P")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_VECTOR_DXYZ")));
- QPixmap image2(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_VECTOR_2P")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_VECTOR_DXYZ")));
+ QPixmap image2(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_VECTOR_TITLE"));
-
+
/***************************************************************/
GroupConstructors->setTitle(tr("GEOM_VECTOR"));
RadioButton1->setPixmap(image0);
myPoint2 = GEOM::GEOM_Object::_nil();
/* Get setting of step value from file configuration */
- QString St = QAD_CONFIG->getSetting("Geometry:SettingsGeomStep");
- double step = St.toDouble();
-
+ SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
+ double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
+
/* min, max, step and decimals for spin boxes */
GroupDimensions->SpinBox_DX->RangeStepAndValidator(-999.999, 999.999, step, 3);
GroupDimensions->SpinBox_DY->RangeStepAndValidator(-999.999, 999.999, step, 3);
/* signals and slots connections */
connect(buttonCancel, SIGNAL(clicked()), this, SLOT(ClickOnCancel()));
- connect(myGeomGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
- connect(myGeomGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
+ connect(myGeometryGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
+ connect(myGeometryGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
connect(GroupDimensions->SpinBox_DY, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
connect(GroupDimensions->SpinBox_DZ, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DX, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DY, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DZ, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DY, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DZ, SLOT(SetStep(double)));
connect(GroupDimensions->CheckBox1, SIGNAL(stateChanged(int)), this, SLOT(ReverseVector(int)));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
initName( tr("GEOM_VECTOR") );
//=================================================================================
void BasicGUI_VectorDlg::ConstructorsClicked( int constructorId )
{
- disconnect(mySelection, 0, this, 0);
+ disconnect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 0, this, 0);
myPoint1 = GEOM::GEOM_Object::_nil();
myPoint2 = GEOM::GEOM_Object::_nil();
GroupPoints->LineEdit2->setText("");
globalSelection( GEOM_POINT );
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
break;
}
case 1:
{
myEditCurrentArgument->setText("");
- if ( mySelection->IObjectCount() != 1 )
+ if ( IObjectCount() != 1 )
{
if ( myEditCurrentArgument == GroupPoints->LineEdit1 )
myPoint1 = GEOM::GEOM_Object::_nil();
// nbSel == 1
Standard_Boolean aRes = Standard_False;
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), aRes );
+ GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( firstIObject(), aRes );
if ( !CORBA::is_nil( aSelectedObject ) && aRes )
{
myEditCurrentArgument->setText( GEOMBase::GetName( aSelectedObject ) );
void BasicGUI_VectorDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
ConstructorsClicked( getConstructorId() );
}
//=================================================================================
void BasicGUI_VectorDlg::DeactivateActiveDialog()
{
- myGeomGUI->SetState( -1 );
+ // myGeometryGUI->SetState( -1 );
GEOMBase_Skeleton::DeactivateActiveDialog();
}
//=================================================================================
GEOM::GEOM_IOperations_ptr BasicGUI_VectorDlg::createOperation()
{
- return getGeomEngine()->GetIBasicOperations( getStudyId() );
+ return myGeometryGUI->GetGeomGen()->GetIBasicOperations( getStudyId() );
}
//=================================================================================
#include "DlgRef_3Spin1Check.h"
#include "BasicGUI.h"
-#include "GEOM_ShapeTypeFilter.hxx"
+//#include "GEOM_ShapeTypeFilter.hxx"
//=================================================================================
// class : BasicGUI_VectorDlg
Q_OBJECT
public:
- BasicGUI_VectorDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ BasicGUI_VectorDlg(GeometryGUI* theGeometryGUI, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~BasicGUI_VectorDlg();
protected:
void Init();
void enterEvent(QEvent* e);
+ GeometryGUI* myGeometryGUI;
+
GEOM::GEOM_Object_var myPoint1;
GEOM::GEOM_Object_var myPoint2;
#include "GEOMBase.h"
-#include "OCCViewer_Viewer3d.h"
-#include "OCCViewer_ViewPort3d.h"
-#include "QAD_StudyFrame.h"
-#include "QAD_RightFrame.h"
-#include "QAD_Desktop.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
#include <Geom_Surface.hxx>
#include <Geom_Plane.hxx>
#include "GEOMImpl_Types.hxx"
#include <qcheckbox.h>
+#include <qlabel.h>
//=================================================================================
// class : BasicGUI_WorkingPlaneDlg()
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-BasicGUI_WorkingPlaneDlg::BasicGUI_WorkingPlaneDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+BasicGUI_WorkingPlaneDlg::BasicGUI_WorkingPlaneDlg(GeometryGUI* theGeometryGUI , QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu), myGeometryGUI(theGeometryGUI)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_WPLANE_FACE")));
- QPixmap image2(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_WPLANE_VECTOR")));
- QPixmap image3(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_WPLANE_ORIGIN")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_WPLANE_FACE")));
+ QPixmap image2(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_WPLANE_VECTOR")));
+ QPixmap image3(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_WPLANE_ORIGIN")));
setCaption(tr("GEOM_WPLANE_TITLE"));
{
/* init variables */
myEditCurrentArgument = Group1->LineEdit1;
- myWPlane = GeometryGUI::GetGeomGUI()->GetWorkingPlane();
+ myWPlane = myGeometryGUI->GetWorkingPlane();
- myGeomGUI->SetState( 0 );
+ // myGeometryGUI->SetState( 0 );
myFace = GEOM::GEOM_Object::_nil();
myVectX = GEOM::GEOM_Object::_nil();
/* signals and slots connections */
connect(buttonCancel, SIGNAL(clicked()), this, SLOT(ClickOnCancel()));
- connect(myGeomGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
- connect(myGeomGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
+ connect(myGeometryGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
+ connect(myGeometryGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
connect(GroupConstructors, SIGNAL(clicked(int)), this, SLOT(ConstructorsClicked(int)));
connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
connect(Group3->GroupBox1, SIGNAL(clicked(int)), this, SLOT(GroupClicked(int)));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
initName( tr( "GEOM_WPLANE" ) );
ConstructorsClicked(0);
//=================================================================================
void BasicGUI_WorkingPlaneDlg::ConstructorsClicked(int constructorId)
{
- disconnect(mySelection, 0, this, 0);
- myGeomGUI->SetState( 0 );
+ disconnect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 0, this, 0);
+ // myGeometryGUI->SetState( 0 );
switch (constructorId)
{
Group1->LineEdit1->setText("");
myFace = GEOM::GEOM_Object::_nil();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
break;
}
case 1:
myVectX = GEOM::GEOM_Object::_nil();
myVectZ = GEOM::GEOM_Object::_nil();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
break;
}
case 2:
bool BasicGUI_WorkingPlaneDlg::ClickOnApply()
{
buttonApply->setFocus();
- QAD_Application::getDesktop()->putInfo(tr(""));
+ myGeometryGUI->application()->putInfo(tr(""));
const int id = getConstructorId();
if (id == 0) {
gp_Pln aPln = aGPlane->Pln();
myWPlane = aPln.Position();
- GeometryGUI::GetGeomGUI()->SetWorkingPlane(myWPlane);
- GeometryGUI::GetGeomGUI()->ActiveWorkingPlane();
+ myGeometryGUI->SetWorkingPlane(myWPlane);
+ myGeometryGUI->ActiveWorkingPlane();
return true;
}
}
myWPlane = gp_Ax3(BRep_Tool::Pnt(V1), aDirZ, aDirX);
- GeometryGUI::GetGeomGUI()->SetWorkingPlane(myWPlane);
- GeometryGUI::GetGeomGUI()->ActiveWorkingPlane();
+ myGeometryGUI->SetWorkingPlane(myWPlane);
+ myGeometryGUI->ActiveWorkingPlane();
return true;
}
} else if (id == 2) {
myWPlane = gp_Ax3(P1, aDirZ, aDirX);
- GeometryGUI::GetGeomGUI()->SetWorkingPlane(myWPlane);
- GeometryGUI::GetGeomGUI()->ActiveWorkingPlane();
+ myGeometryGUI->SetWorkingPlane(myWPlane);
+ myGeometryGUI->ActiveWorkingPlane();
return true;
}
return false;
myEditCurrentArgument->setText("");
const int id = getConstructorId();
- if ( mySelection->IObjectCount() != 1 ) {
+ if ( IObjectCount() != 1 ) {
if(id == 0)
myFace = GEOM::GEOM_Object::_nil();
else if(id == 1) {
// nbSel == 1
Standard_Boolean aRes = Standard_False;
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject(mySelection->firstIObject(), aRes);
+ GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject(firstIObject(), aRes);
if(!aRes || CORBA::is_nil( aSelectedObject ))
return;
void BasicGUI_WorkingPlaneDlg::ActivateThisDialog( )
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
ConstructorsClicked( getConstructorId() );
}
//=================================================================================
void BasicGUI_WorkingPlaneDlg::DeactivateActiveDialog()
{
- myGeomGUI->SetState( -1 );
+ // myGeometryGUI->SetState( -1 );
GEOMBase_Skeleton::DeactivateActiveDialog();
}
//=================================================================================
void BasicGUI_WorkingPlaneDlg::closeEvent( QCloseEvent* e )
{
- myGeomGUI->SetState( -1 );
+ // myGeometryGUI->SetState( -1 );
GEOMBase_Skeleton::closeEvent( e );
}
Q_OBJECT
public:
- BasicGUI_WorkingPlaneDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0 );
+ BasicGUI_WorkingPlaneDlg( GeometryGUI* theGeometryGUI, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~BasicGUI_WorkingPlaneDlg();
virtual void closeEvent( QCloseEvent* e );
void Init();
void enterEvent(QEvent* e);
+ GeometryGUI* myGeometryGUI;
+
GEOM::GEOM_Object_var myFace;
GEOM::GEOM_Object_var myVectX;
GEOM::GEOM_Object_var myVectZ;
BasicGUI_CurveDlg.h \
BasicGUI_MarkerDlg.h
-LIB_CLIENT_IDL = SALOME_GenericObj.idl
+LIB_CLIENT_IDL = SALOME_GenericObj.idl SALOME_Exception.idl SALOME_Component.idl
LIB_SERVER_IDL =
# additionnal information to compil and link file
-CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome
-CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome
+CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) $(BOOST_CPPFLAGS) -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
+CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
-LDFLAGS += -lGEOMFiltersSelection -lGEOMBase -lGEOMGUI
+LDFLAGS += -lGEOMFiltersSelection -lGEOMBase -lGEOM
@CONCLUDE@
#include "BlocksGUI_ExplodeDlg.h"
#include "BlocksGUI_PropagateDlg.h"
-#include "SALOMEGUI_QtCatchCorbaException.hxx"
+#include "GeometryGUI.h"
-#include "QAD_Desktop.h"
-#include "QAD_MessageBox.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_MessageBox.h"
+#include "SUIT_Session.h"
BlocksGUI* BlocksGUI::myGUIObject = 0;
// function : GetBlocksGUI()
// purpose : Get the only BlocksGUI object [ static ]
//=======================================================================
-BlocksGUI* BlocksGUI::GetBlocksGUI()
+BlocksGUI* BlocksGUI::GetBlocksGUI( GeometryGUI* parent )
{
if ( myGUIObject == 0 )
- myGUIObject = new BlocksGUI();
+ myGUIObject = new BlocksGUI( parent );
return myGUIObject;
}
// function : BlocksGUI()
// purpose : Constructor
//=======================================================================
-BlocksGUI::BlocksGUI()
- : GEOMGUI()
+BlocksGUI::BlocksGUI( GeometryGUI* parent )
+ : GEOMGUI( parent )
{
}
// function : OnGUIEvent()
// purpose :
//=======================================================================
-bool BlocksGUI::OnGUIEvent( int theCommandID, QAD_Desktop* parent )
+bool BlocksGUI::OnGUIEvent( int theCommandID, SUIT_Desktop* parent )
{
- GeometryGUI::GetGeomGUI()->EmitSignalDeactivateDialog();
-
- SALOME_Selection* Sel = SALOME_Selection::Selection
- (QAD_Application::getDesktop()->getActiveStudy()->getSelection());
+ getGeometryGUI()->EmitSignalDeactivateDialog();
QDialog* aDlg = NULL;
switch (theCommandID)
{
case 9999:
- aDlg = new BlocksGUI_BlockDlg (parent, Sel);
+ aDlg = new BlocksGUI_BlockDlg (parent);
break;
case 9998:
- aDlg = new BlocksGUI_TrsfDlg (parent, Sel);
+ aDlg = new BlocksGUI_TrsfDlg (parent);
break;
case 9997:
- aDlg = new BlocksGUI_QuadFaceDlg (parent, Sel);
+ aDlg = new BlocksGUI_QuadFaceDlg (parent);
break;
case 9996:
// aDlg = new BlocksGUI_CheckMultiBlockDlg (parent, Sel);
- QAD_MessageBox::warn1 (parent,
- QObject::tr("WRN_WARNING"),
- QObject::tr("WRN_NOT_IMPLEMENTED"),
- QObject::tr("BUT_OK"));
+ SUIT_MessageBox::warn1 (parent,
+ QObject::tr("WRN_WARNING"),
+ QObject::tr("WRN_NOT_IMPLEMENTED"),
+ QObject::tr("BUT_OK"));
break;
-
+
case 9995:
- aDlg = new BlocksGUI_ExplodeDlg (parent, Sel);
+ aDlg = new BlocksGUI_ExplodeDlg (parent);
break;
case 99991:
- aDlg = new BlocksGUI_PropagateDlg (parent, "", Sel);
+ aDlg = new BlocksGUI_PropagateDlg (parent, "");
break;
default:
- parent->putInfo(tr("GEOM_PRP_COMMAND").arg(theCommandID));
+ SUIT_Session::session()->activeApplication()->putInfo(tr("GEOM_PRP_COMMAND").arg(theCommandID));
break;
}
//=====================================================================================
extern "C"
{
- GEOMGUI* GetLibGUI()
+ GEOMGUI* GetLibGUI( GeometryGUI* parent )
{
- return BlocksGUI::GetBlocksGUI();
+ return BlocksGUI::GetBlocksGUI( parent );
}
}
class BlocksGUI : public GEOMGUI
{
protected:
- BlocksGUI(); // hide constructor to avoid direct creation
+ BlocksGUI( GeometryGUI* parent ); // hide constructor to avoid direct creation
public:
~BlocksGUI();
// Get the only BuildGUI object
- static BlocksGUI* GetBlocksGUI();
+ static BlocksGUI* GetBlocksGUI( GeometryGUI* parent );
- bool OnGUIEvent (int theCommandID, QAD_Desktop* parent);
+ bool OnGUIEvent (int theCommandID, SUIT_Desktop* parent);
private:
static BlocksGUI* myGUIObject; // the only BlocksGUI object
#include "BlocksGUI_BlockDlg.h"
-#include "QAD_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
#include "GEOMImpl_Types.hxx"
using namespace std;
+#include <qlabel.h>
+
//=================================================================================
// class : BlocksGUI_BlockDlg()
// purpose : Constructs a BlocksGUI_BlockDlg which is a child of 'parent'.
//=================================================================================
BlocksGUI_BlockDlg::BlocksGUI_BlockDlg (QWidget* parent,
- SALOME_Selection* Sel,
bool modal)
- : GEOMBase_Skeleton(parent, "BlockDlg", Sel, modal,
+ : GEOMBase_Skeleton(parent, "BlockDlg", modal,
WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
- QPixmap image0 (QAD_Desktop::getResourceManager()->loadPixmap("GEOM", tr("ICON_DLG_BLOCK_2F")));
- QPixmap image1 (QAD_Desktop::getResourceManager()->loadPixmap("GEOM", tr("ICON_DLG_BLOCK_6F")));
- QPixmap imageS (QAD_Desktop::getResourceManager()->loadPixmap("GEOM", tr("ICON_SELECT")));
+ QPixmap image0 (SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM", tr("ICON_DLG_BLOCK_2F")));
+ QPixmap image1 (SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM", tr("ICON_DLG_BLOCK_6F")));
+ QPixmap imageS (SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM", tr("ICON_SELECT")));
setCaption(tr("GEOM_BLOCK_TITLE"));
connect(Group6F->PushButton5, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
connect(Group6F->PushButton6, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
// init controls and fields
initName(tr("GEOM_BLOCK"));
globalSelection(GEOM_FACE);
SelectionIntoArgument();
-// connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
}
//=================================================================================
erasePreview();
myEditCurrentArgument->setText("");
- if (mySelection->IObjectCount() != 1)
+ if (IObjectCount() != 1)
{
if (myEditCurrentArgument == Group2F->LineEdit1 ||
myEditCurrentArgument == Group6F->LineEdit1)
// nbSel == 1
Standard_Boolean testResult = Standard_False;
GEOM::GEOM_Object_var aSelectedObject =
- GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), testResult );
+ GEOMBase::ConvertIOinGEOMObject( firstIObject(), testResult );
if (!testResult || CORBA::is_nil( aSelectedObject ))
return;
void BlocksGUI_BlockDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
globalSelection(GEOM_FACE);
public:
BlocksGUI_BlockDlg (QWidget* parent,
- SALOME_Selection* Sel,
bool modal = FALSE);
~BlocksGUI_BlockDlg();
#include "GEOM_Displayer.h"
-#include "QAD_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+#include "OCCViewer_ViewModel.h"
#include "SALOME_ListIteratorOfListIO.hxx"
#include "utilities.h"
#include <qmessagebox.h>
#include <qtextedit.h>
#include <qcheckbox.h>
+#include <qlabel.h>
//=================================================================================
// class : BlocksGUI_ExplodeDlg()
// purpose : Constructs a BlocksGUI_ExplodeDlg which is a child of 'parent'.
//=================================================================================
BlocksGUI_ExplodeDlg::BlocksGUI_ExplodeDlg (QWidget* parent,
- SALOME_Selection* Sel,
bool modal)
- : GEOMBase_Skeleton(parent, "ExplodeDlg", Sel, modal,
+ : GEOMBase_Skeleton(parent, "ExplodeDlg", modal,
WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
- QPixmap image1 (QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_BLOCK_EXPLODE")));
- QPixmap imageS (QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image1 (SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_BLOCK_EXPLODE")));
+ QPixmap imageS (SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_BLOCK_EXPLODE_TITLE"));
mySpinBoxMin->RangeStepAndValidator(0.0, 999.0, SpecificStep, 3);
mySpinBoxMax->RangeStepAndValidator(0.0, 999.0, SpecificStep, 3);
- if (QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getTypeView() != VIEW_OCC)
+ if (SUIT_Session::session()->activeApplication()->desktop()->activeWindow()->getViewManager()->getType()
+ != OCCViewer_Viewer::Type())
myCheckBtn->setEnabled(false);
// signals and slots connections
connect(myCheckBtn, SIGNAL(stateChanged(int)), this, SLOT(SubShapeToggled()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
myConstructorId = -1;
ConstructorsClicked(0);
//=================================================================================
bool BlocksGUI_ExplodeDlg::ClickOnApply()
{
- QAD_Application::getDesktop()->putInfo(tr(""));
+ SUIT_Session::session()->activeApplication()->putInfo(tr(""));
// Explode all sub shapes
if (isAllSubShapes()) {
myObject = GEOM::GEOM_Object::_nil();
mySelName->setText("");
- if (mySelection->IObjectCount() == 1) {
+ if (IObjectCount() == 1) {
Standard_Boolean aResult = Standard_False;
GEOM::GEOM_Object_var anObj =
- GEOMBase::ConvertIOinGEOMObject(mySelection->firstIObject(), aResult);
+ GEOMBase::ConvertIOinGEOMObject(firstIObject(), aResult);
if ( aResult && !anObj->_is_nil() && GEOMBase::IsShape( anObj ) ) {
myObject = anObj;
void BlocksGUI_ExplodeDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
activateSelection();
}
erasePreview(true);
if (isAllSubShapes()) { // Sub-shapes selection disabled
- disconnect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ disconnect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
globalSelection( GEOM_ALLSHAPES );
if (myObject->_is_nil()) {
SelectionIntoArgument();
}
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
} else {
displayPreview(true, true, false);
globalSelection(GEOM_PREVIEW);
//=================================================================================
void BlocksGUI_ExplodeDlg::updateButtonState()
{
- if (QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getTypeView() != VIEW_OCC ||
- myObject->_is_nil()) {
+ if (SUIT_Session::session()->activeApplication()->desktop()->activeWindow()->getViewManager()->getType()
+ != OCCViewer_Viewer::Type() || myObject->_is_nil()) {
myCheckBtn->setChecked(FALSE);
myCheckBtn->setEnabled(FALSE);
} else {
if (IsPreview())
return !myObject->_is_nil();
else
- return !myObject->_is_nil() && (isAllSubShapes() || mySelection->IObjectCount());
+ return !myObject->_is_nil() && (isAllSubShapes() || IObjectCount());
default:
return false;
}
QMap<QString, char> selected;
// Get names of selected objects
- SALOME_ListIteratorOfListIO it (mySelection->StoredIObjects());
+ SALOME_ListIteratorOfListIO it (selectedIO());
for (; it.More(); it.Next()) {
selected.insert(it.Value()->getName(), 0);
}
ObjectList toRemoveFromEnggine;
ObjectList::iterator anIter;
for (anIter = myTmpObjs.begin(); anIter != myTmpObjs.end(); ++anIter) {
- if (selected.contains(GeometryGUI::GetORB()->object_to_string(*anIter)))
+ if (selected.contains(myGeomGUI->getApp()->orb()->object_to_string(*anIter)))
objects.push_back(*anIter);
else
toRemoveFromEnggine.push_back(*anIter);
public:
BlocksGUI_ExplodeDlg (QWidget* parent,
- SALOME_Selection* Sel,
bool modal = FALSE);
~BlocksGUI_ExplodeDlg();
using namespace std;
#include "BlocksGUI_PropagateDlg.h"
-
-#include "QAD_Desktop.h"
#include "GEOMImpl_Types.hxx"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
+#include <TColStd_MapOfInteger.hxx>
+
+#include <qlabel.h>
//=================================================================================
// class : BlocksGUI_PropagateDlg()
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-BlocksGUI_PropagateDlg::BlocksGUI_PropagateDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+BlocksGUI_PropagateDlg::BlocksGUI_PropagateDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_PROPAGATE")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_PROPAGATE")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_PROPAGATE_TITLE"));
myObject = GEOM::GEOM_Object::_nil();
ResultName->setText( "" );
- myGeomGUI->SetState( 0 );
+ //myGeomGUI->SetState( 0 );
/* signals and slots connections */
connect(buttonCancel, SIGNAL(clicked()), this, SLOT(ClickOnCancel()));
mySelName->setText("");
myObject = GEOM::GEOM_Object::_nil();
- if ( mySelection->IObjectCount() == 1 ) {
- Handle(SALOME_InteractiveObject) anIO = mySelection->firstIObject();
+ if ( IObjectCount() == 1 ) {
+ Handle(SALOME_InteractiveObject) anIO = firstIObject();
Standard_Boolean aRes;
myObject = GEOMBase::ConvertIOinGEOMObject( anIO, aRes );
if ( aRes )
//=================================================================================
void BlocksGUI_PropagateDlg::DeactivateActiveDialog()
{
- myGeomGUI->SetState( -1 );
+ //myGeomGUI->SetState( -1 );
GEOMBase_Skeleton::DeactivateActiveDialog();
}
mySelName->setText("");
myObject = GEOM::GEOM_Object::_nil();
- myGeomGUI->SetState( 0 );
+ //myGeomGUI->SetState( 0 );
activateSelection();
}
//=================================================================================
void BlocksGUI_PropagateDlg::closeEvent(QCloseEvent* e)
{
- myGeomGUI->SetState( -1 );
+ //myGeomGUI->SetState( -1 );
GEOMBase_Skeleton::closeEvent( e );
}
if (myObject->_is_nil()) {
SelectionIntoArgument();
}
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
}
//================================================================
Q_OBJECT
public:
- BlocksGUI_PropagateDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ BlocksGUI_PropagateDlg(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~BlocksGUI_PropagateDlg();
protected:
// $Header$
#include "BlocksGUI_QuadFaceDlg.h"
-
-#include "QAD_Desktop.h"
-
#include "GEOMImpl_Types.hxx"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
//using namespace std;
+#include <qlabel.h>
+
//=================================================================================
// class : BlocksGUI_QuadFaceDlg()
// purpose : Constructs a BlocksGUI_QuadFaceDlg which is a child of 'parent'.
//=================================================================================
BlocksGUI_QuadFaceDlg::BlocksGUI_QuadFaceDlg (QWidget* parent,
- SALOME_Selection* Sel,
bool modal)
- : GEOMBase_Skeleton(parent, "QuadFaceDlg", Sel, modal,
+ : GEOMBase_Skeleton(parent, "QuadFaceDlg", modal,
WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
- QPixmap image1 (QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_QUAD_FACE_4_VERT")));
- QPixmap image2 (QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_QUAD_FACE_2_EDGE")));
- QPixmap image3 (QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_QUAD_FACE_4_EDGE")));
- QPixmap imageS (QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image1 (SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_QUAD_FACE_4_VERT")));
+ QPixmap image2 (SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_QUAD_FACE_2_EDGE")));
+ QPixmap image3 (SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_QUAD_FACE_4_EDGE")));
+ QPixmap imageS (SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_QUAD_FACE_TITLE"));
for (anIterBtn = mySelBtn.begin(); anIterBtn != mySelBtn.end(); ++anIterBtn)
connect(anIterBtn.data(), SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
// init controls and fields
initName(tr("GEOM_QUAD_FACE"));
GEOM::GEOM_Object_var anObj;
Standard_Boolean aResult = Standard_False;
- if (mySelection->IObjectCount() == 1) {
- anObj = GEOMBase::ConvertIOinGEOMObject(mySelection->firstIObject(), aResult);
+ if (IObjectCount() == 1) {
+ anObj = GEOMBase::ConvertIOinGEOMObject(firstIObject(), aResult);
if (aResult) {
if (anObj->_is_nil()) {
aResult = Standard_False;
void BlocksGUI_QuadFaceDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
activateSelection();
displayPreview();
public:
BlocksGUI_QuadFaceDlg (QWidget* parent,
- SALOME_Selection* Sel,
bool modal = FALSE);
~BlocksGUI_QuadFaceDlg();
#include "DlgRef_SpinBox.h"
-#include "QAD_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+#include "OCCViewer_ViewModel.h"
#include <TColStd_IndexedMapOfInteger.hxx>
+#include <qlabel.h>
+
//=================================================================================
// class : BlocksGUI_TrsfDlg()
// purpose : Constructs a BlocksGUI_TrsfDlg which is a child of 'parent'.
//=================================================================================
BlocksGUI_TrsfDlg::BlocksGUI_TrsfDlg (QWidget* parent,
- SALOME_Selection* Sel,
bool modal)
- : GEOMBase_Skeleton(parent, "TrsfDlg", Sel, modal,
+ : GEOMBase_Skeleton(parent, "TrsfDlg", modal,
WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
- QPixmap image1 (QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_BLOCK_MULTITRSF_SIMPLE")));
- QPixmap image2 (QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_BLOCK_MULTITRSF_DOUBLE")));
- QPixmap imageS (QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image1 (SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_BLOCK_MULTITRSF_SIMPLE")));
+ QPixmap image2 (SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_BLOCK_MULTITRSF_DOUBLE")));
+ QPixmap imageS (SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_BLOCK_MULTITRSF_TITLE"));
for (anIterSpin = mySpinBox.begin(); anIterSpin != mySpinBox.end(); ++anIterSpin)
connect(anIterSpin.data(), SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
// init controls and fields
initName(tr("GEOM_BLOCK_MULTITRSF"));
// If selection of main object is activated
if (aCurrFocus == MainObj1 || aCurrFocus == MainObj2) {
- if (mySelection->IObjectCount() == 1) {
+ if (IObjectCount() == 1) {
Standard_Boolean aResult = Standard_False;
GEOM::GEOM_Object_var anObj =
- GEOMBase::ConvertIOinGEOMObject(mySelection->firstIObject(), aResult);
+ GEOMBase::ConvertIOinGEOMObject(firstIObject(), aResult);
if (aResult && !anObj->_is_nil() && GEOMBase::IsShape( anObj ) ) {
myShape = anObj;
else if (aCurrFocus == Face1 || aCurrFocus == Face2 ||
aCurrFocus == Face1U || aCurrFocus == Face2U ||
aCurrFocus == Face1V || aCurrFocus == Face2V) {
- if (mySelection->IObjectCount() == 1) {
+ if (IObjectCount() == 1) {
Standard_Boolean aResult = Standard_False;
GEOM::GEOM_Object_var anObj =
- GEOMBase::ConvertIOinGEOMObject(mySelection->firstIObject(), aResult);
+ GEOMBase::ConvertIOinGEOMObject(firstIObject(), aResult);
if ( aResult && !anObj->_is_nil() && GEOMBase::IsShape( anObj ) ) {
TColStd_IndexedMapOfInteger anIndexes;
- mySelection->GetIndex(mySelection->firstIObject(), anIndexes);
+ ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr()->GetIndexes( firstIObject(), anIndexes );
if (anIndexes.Extent() == 1) {
int anIndex = anIndexes(1);
void BlocksGUI_TrsfDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
activateSelection();
displayPreview();
myEditCurrentArgument == mySelName[ Face2V ])) {
// Local selection is available only in the OCC Viewer
- if ( QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getTypeView() == VIEW_OCC ) {
+ if (SUIT_Session::session()->activeApplication()->desktop()->activeWindow()->getViewManager()->getType()
+ != OCCViewer_Viewer::Type()) {
localSelection(myShape, TopAbs_FACE);
} else {
return;
public:
BlocksGUI_TrsfDlg (QWidget* parent,
- SALOME_Selection* Sel,
bool modal = FALSE);
~BlocksGUI_TrsfDlg();
BlocksGUI_PropagateDlg.h \
BlocksGUI_TrsfDlg.h
-LIB_CLIENT_IDL = SALOME_GenericObj.idl SALOME_Component.idl
+LIB_CLIENT_IDL = SALOME_Exception.idl SALOME_GenericObj.idl SALOME_Component.idl
LIB_SERVER_IDL =
# additionnal information to compil and link file
-CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome
-CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome
+CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) $(BOOST_CPPFLAGS) -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
+CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
LDFLAGS += -lGEOMFiltersSelection -lGEOMBase
using namespace std;
#include "BooleanGUI.h"
-#include "QAD_Desktop.h"
-#include "SALOMEGUI_QtCatchCorbaException.hxx"
+#include "SUIT_Desktop.h"
#include "BooleanGUI_Dialog.h"
+#include "GeometryGUI.h"
+
BooleanGUI* BooleanGUI::myGUIObject = 0;
//=======================================================================
// function : GetBooleanGUI()
// purpose : Get the only BooleanGUI object [ static ]
//=======================================================================
-BooleanGUI* BooleanGUI::GetBooleanGUI()
+BooleanGUI* BooleanGUI::GetBooleanGUI( GeometryGUI* parent )
{
if ( myGUIObject == 0 ) {
// init BooleanGUI only once
- myGUIObject = new BooleanGUI();
+ myGUIObject = new BooleanGUI( parent );
}
return myGUIObject;
}
// function : BooleanGUI()
// purpose : Constructor
//=======================================================================
-BooleanGUI::BooleanGUI() : GEOMGUI()
+BooleanGUI::BooleanGUI( GeometryGUI* parent ) : GEOMGUI( parent )
{
}
// function : OnGUIEvent()
// purpose :
//=======================================================================
-bool BooleanGUI::OnGUIEvent(int theCommandID, QAD_Desktop* parent)
+bool BooleanGUI::OnGUIEvent(int theCommandID, SUIT_Desktop* parent)
{
- GeometryGUI::GetGeomGUI()->EmitSignalDeactivateDialog();
- SALOME_Selection* Sel = SALOME_Selection::Selection(QAD_Application::getDesktop()->getActiveStudy()->getSelection());
+ getGeometryGUI()->EmitSignalDeactivateDialog();
int anOperation = 0;
if ( theCommandID == 5011 )
else
return false;
- QDialog* aDlg = new BooleanGUI_Dialog( anOperation, parent, "", Sel);
+ QDialog* aDlg = new BooleanGUI_Dialog( anOperation, parent, "");
aDlg->show();
return true;
//=====================================================================================
extern "C"
{
- GEOMGUI* GetLibGUI()
+ GEOMGUI* GetLibGUI( GeometryGUI* parent )
{
- return BooleanGUI::GetBooleanGUI();
+ return BooleanGUI::GetBooleanGUI( parent );
}
}
class BooleanGUI : public GEOMGUI
{
protected:
- BooleanGUI(); // hide constructor to avoid direct creation
+ BooleanGUI( GeometryGUI* parent ); // hide constructor to avoid direct creation
public:
enum BooleanOperation { COMMON = 1, CUT = 2, FUSE = 3, SECTION = 4 };
~BooleanGUI();
// Get the only BooleanGUI object
- static BooleanGUI* GetBooleanGUI();
+ static BooleanGUI* GetBooleanGUI( GeometryGUI* parent );
- bool OnGUIEvent(int theCommandID, QAD_Desktop* parent);
+ bool OnGUIEvent(int theCommandID, SUIT_Desktop* parent);
private:
static BooleanGUI* myGUIObject; // the only BooleanGUI object
#include "BooleanGUI.h"
#include "DlgRef_2Sel_QTD.h"
-#include "QAD_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
+#include <qlabel.h>
//=================================================================================
// class : BooleanGUI_Dialog()
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-BooleanGUI_Dialog::BooleanGUI_Dialog( const int theOperation, QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, fl),
+BooleanGUI_Dialog::BooleanGUI_Dialog( const int theOperation, QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, fl),
myOperation( theOperation )
{
QPixmap image0;
switch ( myOperation )
{
case BooleanGUI::COMMON:
- image0 = QPixmap( QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_COMMON")));
+ image0 = QPixmap( SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_COMMON")));
aTitle = tr("GEOM_COMMON");
aCaption = tr("GEOM_COMMON_TITLE");
break;
case BooleanGUI::CUT:
- image0 = QPixmap( QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_CUT")));
+ image0 = QPixmap( SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_CUT")));
aTitle = tr("GEOM_CUT");
aCaption = tr("GEOM_CUT_TITLE");
break;
case BooleanGUI::FUSE:
- image0 = QPixmap( QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_FUSE")));
+ image0 = QPixmap( SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_FUSE")));
aTitle = tr("GEOM_FUSE");
aCaption = tr("GEOM_FUSE_TITLE");
break;
case BooleanGUI::SECTION:
- image0 = QPixmap( QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_SECTION")));
+ image0 = QPixmap( SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_SECTION")));
aTitle = tr("GEOM_SECTION");
aCaption = tr("GEOM_SECTION_TITLE");
break;
}
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption( aCaption );
connect(myGroup->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
connect(myGroup->PushButton2, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
initName( GroupConstructors->title() );
{
myEditCurrentArgument->setText( "" );
- if ( mySelection->IObjectCount() != 1 )
+ if ( IObjectCount() != 1 )
{
if ( myEditCurrentArgument == myGroup->LineEdit1 ) myObject1 = GEOM::GEOM_Object::_nil();
else if ( myEditCurrentArgument == myGroup->LineEdit2 ) myObject2 = GEOM::GEOM_Object::_nil();
// nbSel == 1
Standard_Boolean aRes = Standard_False;
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), aRes );
+ GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( firstIObject(), aRes );
if ( !CORBA::is_nil( aSelectedObject ) && aRes && GEOMBase::IsShape( aSelectedObject ) )
{
myEditCurrentArgument->setText( GEOMBase::GetName( aSelectedObject ) );
{
GEOMBase_Skeleton::ActivateThisDialog();
globalSelection( GEOM_ALLSHAPES );
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
}
Q_OBJECT
public:
- BooleanGUI_Dialog( const int theOperation, QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ BooleanGUI_Dialog( const int theOperation, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~BooleanGUI_Dialog();
protected:
LIB_MOC = \
BooleanGUI_Dialog.h
-LIB_CLIENT_IDL = SALOME_GenericObj.idl SALOME_Component.idl
+LIB_CLIENT_IDL = SALOME_Exception.idl SALOME_GenericObj.idl SALOME_Component.idl
LIB_SERVER_IDL =
# additionnal information to compil and link file
-CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome
-CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome
+CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) $(BOOST_CPPFLAGS) -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
+CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
LDFLAGS += -lGEOMBase
#include "BuildGUI.h"
-#include "SALOMEGUI_QtCatchCorbaException.hxx"
-#include "QAD_Desktop.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
#include "BuildGUI_EdgeDlg.h" // Method EDGE
#include "BuildGUI_WireDlg.h" // Method WIRE
#include "BuildGUI_SolidDlg.h" // Method SOLID
#include "BuildGUI_CompoundDlg.h" // Method COMPOUND
+#include "GeometryGUI.h"
+
BuildGUI* BuildGUI::myGUIObject = 0;
//=======================================================================
// function : GetBuildGUI()
// purpose : Get the only BuildGUI object [ static ]
//=======================================================================
-BuildGUI* BuildGUI::GetBuildGUI()
+BuildGUI* BuildGUI::GetBuildGUI( GeometryGUI* parent )
{
if ( myGUIObject == 0 )
- myGUIObject = new BuildGUI();
+ myGUIObject = new BuildGUI( parent );
return myGUIObject;
}
// function : BuildGUI()
// purpose : Constructor
//=======================================================================
-BuildGUI::BuildGUI()
-: GEOMGUI()
+BuildGUI::BuildGUI( GeometryGUI* parent )
+: GEOMGUI( parent )
{
}
// function : OnGUIEvent()
// purpose :
//=======================================================================
-bool BuildGUI::OnGUIEvent( int theCommandID, QAD_Desktop* parent )
+bool BuildGUI::OnGUIEvent( int theCommandID, SUIT_Desktop* parent )
{
- GeometryGUI::GetGeomGUI()->EmitSignalDeactivateDialog();
+ getGeometryGUI()->EmitSignalDeactivateDialog();
- SALOME_Selection* Sel = SALOME_Selection::Selection(
- QAD_Application::getDesktop()->getActiveStudy()->getSelection() );
-
QDialog* aDlg = NULL;
switch ( theCommandID )
{
- case 4081: aDlg = new BuildGUI_EdgeDlg ( parent, "", Sel ); break;
- case 4082: aDlg = new BuildGUI_WireDlg ( parent, "", Sel ); break;
- case 4083: aDlg = new BuildGUI_FaceDlg ( parent, "", Sel ); break;
- case 4084: aDlg = new BuildGUI_ShellDlg ( parent, "", Sel ); break;
- case 4085: aDlg = new BuildGUI_SolidDlg ( parent, "", Sel ); break;
- case 4086: aDlg = new BuildGUI_CompoundDlg( parent, "", Sel ); break;
+ case 4081: aDlg = new BuildGUI_EdgeDlg ( parent, "" ); break;
+ case 4082: aDlg = new BuildGUI_WireDlg ( parent, "" ); break;
+ case 4083: aDlg = new BuildGUI_FaceDlg ( parent, "" ); break;
+ case 4084: aDlg = new BuildGUI_ShellDlg ( parent, "" ); break;
+ case 4085: aDlg = new BuildGUI_SolidDlg ( parent, "" ); break;
+ case 4086: aDlg = new BuildGUI_CompoundDlg( parent, "" ); break;
- default: parent->putInfo( tr( "GEOM_PRP_COMMAND" ).arg( theCommandID ) ); break;
+ default:
+ SUIT_Session::session()->activeApplication()->putInfo( tr( "GEOM_PRP_COMMAND" ).arg( theCommandID ) );
+ break;
}
if ( aDlg != NULL )
//=====================================================================================
extern "C"
{
- GEOMGUI* GetLibGUI()
+ GEOMGUI* GetLibGUI( GeometryGUI* parent )
{
- return BuildGUI::GetBuildGUI();
+ return BuildGUI::GetBuildGUI( parent );
}
}
class BuildGUI : public GEOMGUI
{
protected:
- BuildGUI(); // hide constructor to avoid direct creation
+ BuildGUI( GeometryGUI* parent ); // hide constructor to avoid direct creation
public :
~BuildGUI();
// Get the only BuildGUI object
- static BuildGUI* GetBuildGUI();
+ static BuildGUI* GetBuildGUI( GeometryGUI* parent );
- bool OnGUIEvent( int theCommandID, QAD_Desktop* parent );
+ bool OnGUIEvent( int theCommandID, SUIT_Desktop* parent );
private:
static BuildGUI* myGUIObject; // the only BuildGUI object
// $Header$
#include "BuildGUI_CompoundDlg.h"
-#include "QAD_Desktop.h"
#include "GEOMImpl_Types.hxx"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
+#include <qlabel.h>
+
//=================================================================================
// class : BuildGUI_CompoundDlg()
// purpose : Constructs a BuildGUI_CompoundDlg which is a child of 'parent', with the
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-BuildGUI_CompoundDlg::BuildGUI_CompoundDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+BuildGUI_CompoundDlg::BuildGUI_CompoundDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_BUILD_COMPOUND")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_BUILD_COMPOUND")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_COMPOUND_TITLE"));
connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
connect(GroupShapes->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
globalSelection( GEOM_ALLSHAPES );
QString aString = ""; /* name of selection */
myOkShapes = false;
- int nbSel = GEOMBase::GetNameOfSelectedIObjects( mySelection, aString, true );
+ int nbSel = GEOMBase::GetNameOfSelectedIObjects( selectedIO(), aString, true );
if ( nbSel == 0 )
return;
if ( nbSel != 1 )
aString = QString( "%1_objects").arg( nbSel );
- GEOMBase::ConvertListOfIOInListOfGO( mySelection->StoredIObjects(), myShapes, true );
+ GEOMBase::ConvertListOfIOInListOfGO( selectedIO(), myShapes, true );
myEditCurrentArgument->setText( aString );
myOkShapes = true;
}
{
GEOMBase_Skeleton::ActivateThisDialog();
globalSelection( GEOM_ALLSHAPES );
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
}
Q_OBJECT
public:
- BuildGUI_CompoundDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ BuildGUI_CompoundDlg(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~BuildGUI_CompoundDlg();
protected:
#include <Precision.hxx>
#include "utilities.h"
-#include "QAD_Desktop.h"
#include "GEOMImpl_Types.hxx"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
+#include <qlabel.h>
+
//=================================================================================
// class : BuildGUI_EdgeDlg()
// purpose : Constructs a BuildGUI_EdgeDlg which is a child of 'parent', with the
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-BuildGUI_EdgeDlg::BuildGUI_EdgeDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+BuildGUI_EdgeDlg::BuildGUI_EdgeDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_BUILD_EDGE")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_BUILD_EDGE")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_EDGE_TITLE"));
connect(GroupPoints->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
connect(GroupPoints->LineEdit2, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
initName( tr( "GEOM_EDGE") );
}
erasePreview();
myEditCurrentArgument->setText("");
- if(mySelection->IObjectCount() != 1) {
+ if(IObjectCount() != 1) {
if(myEditCurrentArgument == GroupPoints->LineEdit1)
myOkPoint1 = false;
else if(myEditCurrentArgument == GroupPoints->LineEdit2)
// nbSel == 1
Standard_Boolean testResult = Standard_False;
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject(mySelection->firstIObject(), testResult );
+ GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject(firstIObject(), testResult );
if(!testResult)
return;
void BuildGUI_EdgeDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
globalSelection( GEOM_POINT );
displayPreview();
}
Q_OBJECT
public:
- BuildGUI_EdgeDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ BuildGUI_EdgeDlg(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~BuildGUI_EdgeDlg();
protected:
using namespace std;
#include "BuildGUI_FaceDlg.h"
-#include "QAD_Desktop.h"
#include "GEOMImpl_Types.hxx"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
//Qt includes
#include <qcheckbox.h>
+#include <qlabel.h>
//=================================================================================
// class : BuildGUI_FaceDlg()
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-BuildGUI_FaceDlg::BuildGUI_FaceDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+BuildGUI_FaceDlg::BuildGUI_FaceDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_BUILD_FACE")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_BUILD_FACE")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_FACE_TITLE"));
connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
connect(GroupWire->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
connect(GroupWire->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
initName(tr("GEOM_FACE"));
}
myEditCurrentArgument->setText("");
QString aName;
- int aNbSel = GEOMBase::GetNameOfSelectedIObjects(mySelection, aName);
+ int aNbSel = GEOMBase::GetNameOfSelectedIObjects(selectedIO(), aName);
if(aNbSel < 1)
{
return;
}
- GEOMBase::ConvertListOfIOInListOfGO(mySelection->StoredIObjects(), myWires);
+ GEOMBase::ConvertListOfIOInListOfGO(selectedIO(), myWires);
if (!myWires.length())
return;
if(aNbSel != 1)
void BuildGUI_FaceDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
globalSelection( GEOM_WIRE );
}
Q_OBJECT
public:
- BuildGUI_FaceDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ BuildGUI_FaceDlg(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~BuildGUI_FaceDlg();
protected:
// $Header:
#include "BuildGUI_ShellDlg.h"
-
-#include "QAD_Desktop.h"
#include "GEOMImpl_Types.hxx"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
+#include "TColStd_MapOfInteger.hxx"
+
+#include <qlabel.h>
+
//=================================================================================
// class : BuildGUI_ShellDlg()
// purpose : Constructs a BuildGUI_ShellDlg which is a child of 'parent', with the
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-BuildGUI_ShellDlg::BuildGUI_ShellDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+BuildGUI_ShellDlg::BuildGUI_ShellDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM", tr("ICON_DLG_BUILD_SHELL")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM", tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM", tr("ICON_DLG_BUILD_SHELL")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM", tr("ICON_SELECT")));
setCaption(tr("GEOM_SHELL_TITLE"));
connect(GroupShell->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
initName(tr("GEOM_SHELL"));
}
QString aString;
myOkFacesAndShells = false;
- int nbSel = GEOMBase::GetNameOfSelectedIObjects( mySelection, aString, true );
+ int nbSel = GEOMBase::GetNameOfSelectedIObjects( selectedIO(), aString, true );
if ( nbSel == 0 )
return;
if ( nbSel != 1 )
aString = QString( "%1_objects ").arg( nbSel );
- GEOMBase::ConvertListOfIOInListOfGO( mySelection->StoredIObjects(), myFacesAndShells, true );
+ GEOMBase::ConvertListOfIOInListOfGO( selectedIO(), myFacesAndShells, true );
if ( !myFacesAndShells.length() )
return;
void BuildGUI_ShellDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
TColStd_MapOfInteger aMap;
aMap.Add(GEOM_SHELL);
aMap.Add(GEOM_FACE);
Q_OBJECT
public:
- BuildGUI_ShellDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ BuildGUI_ShellDlg(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~BuildGUI_ShellDlg();
protected:
// $Header:
#include "BuildGUI_SolidDlg.h"
-
-#include "QAD_Desktop.h"
#include "GEOMImpl_Types.hxx"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
//Qt includes
#include <qcheckbox.h>
+#include <qlabel.h>
//=================================================================================
// class : BuildGUI_SolidDlg()
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-BuildGUI_SolidDlg::BuildGUI_SolidDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+BuildGUI_SolidDlg::BuildGUI_SolidDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM", tr("ICON_DLG_BUILD_SOLID")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM", tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM", tr("ICON_DLG_BUILD_SOLID")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM", tr("ICON_SELECT")));
setCaption(tr("GEOM_SOLID_TITLE"));
connect(GroupSolid->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
connect(GroupSolid->CheckButton1, SIGNAL(toggled(bool)), this, SLOT(EnableNameField(bool)));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
initName(tr("GEOM_SOLID"));
}
QString aString = "";
myOkShells = false;
- int nbSel = GEOMBase::GetNameOfSelectedIObjects(mySelection, aString);
+ int nbSel = GEOMBase::GetNameOfSelectedIObjects(selectedIO(), aString);
if (nbSel == 0)
return;
if(nbSel != 1)
aString = tr("%1_objects").arg(nbSel);
- GEOMBase::ConvertListOfIOInListOfGO(mySelection->StoredIObjects(), myShells);
+ GEOMBase::ConvertListOfIOInListOfGO(selectedIO(), myShells);
if (!myShells.length())
return;
void BuildGUI_SolidDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
globalSelection( GEOM_SHELL );
}
Q_OBJECT
public:
- BuildGUI_SolidDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ BuildGUI_SolidDlg(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~BuildGUI_SolidDlg();
protected:
// $Header$
#include "BuildGUI_WireDlg.h"
-#include "QAD_Desktop.h"
#include "GEOMImpl_Types.hxx"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
+#include "TColStd_MapOfInteger.hxx"
+
+#include <qlabel.h>
+
//=================================================================================
// class : BuildGUI_WireDlg()
// purpose : Constructs a BuildGUI_WireDlg which is a child of 'parent', with the
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-BuildGUI_WireDlg::BuildGUI_WireDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+BuildGUI_WireDlg::BuildGUI_WireDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_BUILD_WIRE")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_BUILD_WIRE")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_WIRE_TITLE"));
connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
connect(GroupPoints->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
-
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
+
initName(tr("GEOM_WIRE"));
}
QString aString = ""; /* name of selection */
myOkEdgesAndWires = false;
- int nbSel = GEOMBase::GetNameOfSelectedIObjects(mySelection, aString);
+ int nbSel = GEOMBase::GetNameOfSelectedIObjects(selectedIO(), aString);
if(nbSel == 0)
return;
if(nbSel != 1)
aString = tr("%1_objects").arg(nbSel);
- GEOMBase::ConvertListOfIOInListOfGO(mySelection->StoredIObjects(), myEdgesAndWires);
+ GEOMBase::ConvertListOfIOInListOfGO(selectedIO(), myEdgesAndWires);
if (!myEdgesAndWires.length())
return;
void BuildGUI_WireDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
TColStd_MapOfInteger aMap;
aMap.Add(GEOM_WIRE);
aMap.Add(GEOM_EDGE);
Q_OBJECT
public:
- BuildGUI_WireDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ BuildGUI_WireDlg(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~BuildGUI_WireDlg();
protected:
BuildGUI_SolidDlg.h \
BuildGUI_CompoundDlg.h
-LIB_CLIENT_IDL = SALOME_GenericObj.idl SALOME_Component.idl
+LIB_CLIENT_IDL = SALOME_Exception.idl SALOME_GenericObj.idl SALOME_Component.idl
LIB_SERVER_IDL =
# additionnal information to compil and link file
-CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome
-CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome
+CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) $(BOOST_CPPFLAGS) -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
+CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
LDFLAGS += -lGEOMFiltersSelection -lGEOMBase
#include "GeometryGUI.h"
#include "GEOM_Displayer.h"
-#include "QAD_RightFrame.h"
-#include "QAD_WaitCursor.h"
-#include "QAD_Desktop.h"
-#include "VTKViewer_ViewFrame.h"
-#include "VTKViewer_RenderWindowInteractor.h"
-#include "OCCViewer_ViewFrame.h"
-#include "OCCViewer_Viewer3d.h"
-#include "SALOME_ListIteratorOfListIO.hxx"
-#include "VTKViewer_Prs.h"
-#include "OCCViewer_Prs.h"
+#include <SUIT_Desktop.h>
+#include <SUIT_Session.h>
+#include <SUIT_ViewWindow.h>
+#include <SUIT_OverrideCursor.h>
+
+#include <VTKViewer_ViewWindow.h>
+#include <VTKViewer_RenderWindowInteractor.h>
+#include <OCCViewer_ViewManager.h>
+#include <OCCViewer_ViewModel.h>
+#include <OCCViewer_ViewWindow.h>
+
+#include <SALOME_ListIteratorOfListIO.hxx>
+
+#include <SVTK_ViewModel.h>
+#include <SOCC_ViewModel.h>
+#include <SVTK_Prs.h>
+#include <SOCC_Prs.h>
+
+#include <SalomeApp_Application.h>
+#include <SalomeApp_SelectionMgr.h>
+#include <SalomeApp_Study.h>
#include <AIS_ListIteratorOfListOfInteractive.hxx>
-using namespace std;
+#include <qmenubar.h>
+
DisplayGUI* DisplayGUI::myGUIObject = 0;
// function : DisplayGUI::GetDisplayGUI()
// purpose : Get the only DisplayGUI object [ static ]
//=======================================================================
-DisplayGUI* DisplayGUI::GetDisplayGUI()
+DisplayGUI* DisplayGUI::GetDisplayGUI( GeometryGUI* parent )
{
if ( myGUIObject == 0 ) {
// init DisplayGUI only once
- myGUIObject = new DisplayGUI();
+ myGUIObject = new DisplayGUI( parent );
}
return myGUIObject;
}
// function : DisplayGUI::DisplayGUI()
// purpose : Constructor
//=======================================================================
-DisplayGUI::DisplayGUI() : GEOMGUI()
+DisplayGUI::DisplayGUI( GeometryGUI* parent ) : GEOMGUI( parent )
{
}
// function : DisplayGUI::OnGUIEvent()
// purpose : Dispatch menu command
//=======================================================================
-bool DisplayGUI::OnGUIEvent(int theCommandID, QAD_Desktop* parent)
+bool DisplayGUI::OnGUIEvent(int theCommandID, SUIT_Desktop* parent)
{
- DisplayGUI* myDisplayGUI = GetDisplayGUI();
+ DisplayGUI* myDisplayGUI = GetDisplayGUI( getGeometryGUI() );
switch (theCommandID) {
case 211: // MENU VIEW - WIREFRAME/SHADING
{
myDisplayGUI->InvertDisplayMode();
int newMode = myDisplayGUI->GetDisplayMode();
- QAD_Application::getDesktop()->menuBar()->changeItem( 211, newMode == 1 ? tr( "GEOM_MEN_WIREFRAME" ) : tr("GEOM_MEN_SHADING") );
+ SUIT_Session::session()->activeApplication()->desktop()->menuBar()->
+ changeItem( 211, newMode == 1 ? tr( "GEOM_MEN_WIREFRAME" ) : tr("GEOM_MEN_SHADING") );
break;
}
case 212: // MENU VIEW - DISPLAY ALL
}
default:
{
- parent->putInfo(tr("GEOM_PRP_COMMAND").arg(theCommandID));
+ SUIT_Session::session()->activeApplication()->putInfo(tr("GEOM_PRP_COMMAND").arg(theCommandID));
break;
}
}
//=====================================================================================
void DisplayGUI::DisplayAll()
{
- QAD_WaitCursor wc;
- SALOMEDS::Study_var aStudy = QAD_Application::getDesktop()->getActiveStudy()->getStudyDocument();
- SALOMEDS::SComponent_var SC = aStudy->FindComponent( "GEOM" );
- if ( SC->_is_nil() )
+ SalomeApp_Study* appStudy = dynamic_cast<SalomeApp_Study*>( SUIT_Session::session()->activeApplication()->activeStudy() );
+ if ( !appStudy ) return;
+ _PTR(Study) aStudy = appStudy->studyDS();
+ if ( !aStudy ) return;
+ _PTR(SComponent) SC ( aStudy->FindComponent( "GEOM" ) );
+ if ( !SC )
return;
SALOME_ListIO listIO;
- SALOMEDS::ChildIterator_var anIter = aStudy->NewChildIterator( SC );
+ _PTR(ChildIterator) anIter ( aStudy->NewChildIterator( SC ) );
anIter->InitEx( true );
+
+ SUIT_OverrideCursor();
+
while( anIter->More() ) {
- SALOMEDS::SObject_var valSO = anIter->Value();
- SALOMEDS::SObject_var refSO;
+ _PTR(SObject) valSO ( anIter->Value() );
+ _PTR(SObject) refSO;
if ( !valSO->ReferencedObject( refSO ) ) {
- listIO.Append( new SALOME_InteractiveObject( valSO->GetID(), SC->ComponentDataType() ,valSO->GetName()) );
+ listIO.Append( new SALOME_InteractiveObject( valSO->GetID().c_str(), SC->ComponentDataType().c_str() ,valSO->GetName().c_str() ) );
}
anIter->Next();
}
- GEOM_Displayer().Display( listIO, true );
+ GEOM_Displayer( appStudy ).Display( listIO, true );
}
//=====================================================================================
//=====================================================================================
void DisplayGUI::EraseAll()
{
- QAD_WaitCursor wc;
- QAD_ViewFrame* vf = QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getRightFrame()->getViewFrame();
- if ( vf->getTypeView() == VIEW_OCC || vf->getTypeView() == VIEW_VTK )
- vf->EraseAll();
+ SUIT_OverrideCursor();
+
+ SUIT_Application* app = SUIT_Session::session()->activeApplication();
+ if ( app ) {
+ SUIT_ViewWindow* vw = app->desktop()->activeWindow();
+ if ( vw ) {
+ SalomeApp_Study* appStudy = dynamic_cast<SalomeApp_Study*>( app->activeStudy() );
+ SUIT_ViewManager* vman = vw->getViewManager();
+ if ( vman->getType() == OCCViewer_Viewer::Type() ||
+ vman->getType() == VTKViewer_Viewer::Type() ) {
+ GEOM_Displayer( appStudy ).EraseAll();
+ }
+ }
+ }
}
//=====================================================================================
//=====================================================================================
void DisplayGUI::Display()
{
- QAD_WaitCursor wc;
SALOME_ListIO listIO;
+
+ SalomeApp_Application* app = dynamic_cast< SalomeApp_Application* >( SUIT_Session::session()->activeApplication() );
+ if ( !app ) return;
+
+ SalomeApp_Study* anActiveStudy = dynamic_cast<SalomeApp_Study*>( app->activeStudy() );
+ if ( !anActiveStudy ) return;
+
+ //get SalomeApp selection manager
+ SalomeApp_SelectionMgr* aSelMgr = app->selectionMgr();
+ if ( !aSelMgr ) return;
+
+ SALOME_ListIO aList;
+ aSelMgr->selectedObjects( aList );
+ SALOME_ListIteratorOfListIO It( aList );
+
+ SUIT_OverrideCursor();
- QAD_Study* anActiveStudy = QAD_Application::getDesktop()->getActiveStudy();
- SALOME_Selection* Sel = SALOME_Selection::Selection( anActiveStudy->getSelection() );
- SALOME_ListIteratorOfListIO It( Sel->StoredIObjects() );
for( ;It.More();It.Next() ) {
Handle(SALOME_InteractiveObject) anIObject = It.Value();
if ( anIObject->hasEntry() ) {
- SALOMEDS::SObject_var SO = anActiveStudy->getStudyDocument()->FindObjectID( anIObject->getEntry() );
- if ( !SO->_is_nil() && QString( SO->GetID() ) == QString( SO->GetFatherComponent()->GetID() ) ) {
- SALOMEDS::SComponent_var SC = SO->GetFatherComponent();
+ _PTR(SObject) SO ( anActiveStudy->studyDS()->FindObjectID( anIObject->getEntry() ) );
+ if ( SO && QString( SO->GetID().c_str() ) == QString( SO->GetFatherComponent()->GetID().c_str() ) ) {
+ _PTR(SComponent) SC ( SO->GetFatherComponent() );
// if component is selected
listIO.Clear();
- SALOMEDS::ChildIterator_var anIter = anActiveStudy->getStudyDocument()->NewChildIterator( SO );
+ _PTR(ChildIterator) anIter ( anActiveStudy->studyDS()->NewChildIterator( SO ) );
anIter->InitEx( true );
while( anIter->More() ) {
- SALOMEDS::SObject_var valSO = anIter->Value();
- SALOMEDS::SObject_var refSO;
+ _PTR(SObject) valSO ( anIter->Value() );
+ _PTR(SObject) refSO;
if ( !valSO->ReferencedObject( refSO ) ) {
- listIO.Append( new SALOME_InteractiveObject( valSO->GetID(), SC->ComponentDataType() ,valSO->GetName()) );
+ listIO.Append( new SALOME_InteractiveObject( valSO->GetID().c_str(), SC->ComponentDataType().c_str() ,valSO->GetName().c_str() ) );
}
anIter->Next();
}
listIO.Append( anIObject );
}
}
- GEOM_Displayer().Display( listIO, true );
+ GEOM_Displayer( anActiveStudy ).Display( listIO, true );
}
//=====================================================================================
void DisplayGUI::Erase()
{
- QAD_WaitCursor wc;
SALOME_ListIO listIO;
- QAD_Study* anActiveStudy = QAD_Application::getDesktop()->getActiveStudy();
- SALOME_Selection* Sel = SALOME_Selection::Selection( anActiveStudy->getSelection() );
- SALOME_ListIteratorOfListIO It( Sel->StoredIObjects() );
+ SalomeApp_Application* app = dynamic_cast< SalomeApp_Application* >( SUIT_Session::session()->activeApplication() );
+ if ( !app ) return;
+
+ SalomeApp_Study* anActiveStudy = dynamic_cast<SalomeApp_Study*>( app->activeStudy() );
+ if ( !anActiveStudy ) return;
+
+ //get SalomeApp selection manager
+ SalomeApp_SelectionMgr* aSelMgr = app->selectionMgr();
+ if ( !aSelMgr ) return;
+
+ SALOME_ListIO aList;
+ aSelMgr->selectedObjects( aList );
+ SALOME_ListIteratorOfListIO It( aList );
+
+ SUIT_OverrideCursor();
+
for( ;It.More();It.Next() ) {
Handle(SALOME_InteractiveObject) anIObject = It.Value();
if ( anIObject->hasEntry() ) {
- SALOMEDS::SObject_var SO = anActiveStudy->getStudyDocument()->FindObjectID( anIObject->getEntry() );
- if ( !SO->_is_nil() && QString( SO->GetID() ) == QString( SO->GetFatherComponent()->GetID() ) ) {
- SALOMEDS::SComponent_var SC = SO->GetFatherComponent();
+ _PTR(SObject) SO ( anActiveStudy->studyDS()->FindObjectID( anIObject->getEntry() ) );
+ if ( SO && QString( SO->GetID().c_str() ) == QString( SO->GetFatherComponent()->GetID().c_str() ) ) {
+ _PTR(SComponent) SC ( SO->GetFatherComponent() );
// if component is selected
listIO.Clear();
- SALOMEDS::ChildIterator_var anIter = anActiveStudy->getStudyDocument()->NewChildIterator( SO );
+ _PTR(ChildIterator) anIter ( anActiveStudy->studyDS()->NewChildIterator( SO ) );
anIter->InitEx( true );
while( anIter->More() ) {
- SALOMEDS::SObject_var valSO = anIter->Value();
- SALOMEDS::SObject_var refSO;
+ _PTR(SObject) valSO ( anIter->Value() );
+ _PTR(SObject) refSO;
if ( !valSO->ReferencedObject( refSO ) ) {
- listIO.Append( new SALOME_InteractiveObject( valSO->GetID(), SC->ComponentDataType() ,valSO->GetName()) );
+ listIO.Append( new SALOME_InteractiveObject( valSO->GetID().c_str(), SC->ComponentDataType().c_str() ,valSO->GetName().c_str() ) );
}
anIter->Next();
}
listIO.Append( anIObject );
}
}
- GEOM_Displayer().Erase( listIO, true );
- Sel->ClearIObjects();
+ GEOM_Displayer(anActiveStudy).Erase( listIO, true );
+ ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr()->clearSelected();
}
//=====================================================================================
// function : DisplayGUI::SetDisplayMode()
-// purpose : Set display mode for the viewer (current viewer if <viewFrame> - 0 )
+// purpose : Set display mode for the viewer (current viewer if <viewWindow> - 0 )
//=====================================================================================
-void DisplayGUI::SetDisplayMode( const int mode, QAD_ViewFrame* viewFrame )
+void DisplayGUI::SetDisplayMode( const int mode, SUIT_ViewWindow* viewWindow )
{
- QAD_WaitCursor wc;
- if ( !viewFrame )
- viewFrame = QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getRightFrame()->getViewFrame();
- if( viewFrame->getTypeView() == VIEW_VTK ) {
- VTKViewer_RenderWindowInteractor* myRenderInter= ((VTKViewer_ViewFrame*)viewFrame)->getRWInteractor();
+ SUIT_OverrideCursor();
+
+ if ( !viewWindow )
+ viewWindow = SUIT_Session::session()->activeApplication()->desktop()->activeWindow();
+ if ( viewWindow->getViewManager()->getType() == VTKViewer_Viewer::Type() ) {
+ VTKViewer_RenderWindowInteractor* myRenderInter= ((VTKViewer_ViewWindow*)viewWindow)->getRWInteractor();
myRenderInter->SetDisplayMode( mode );
}
- else if( viewFrame->getTypeView() == VIEW_OCC ) {
- OCCViewer_Viewer3d* v3d = ((OCCViewer_ViewFrame*)viewFrame)->getViewer();
+ else if ( viewWindow->getViewManager()->getType() == OCCViewer_Viewer::Type() ) {
+ OCCViewer_Viewer* v3d = ((OCCViewer_ViewManager*)(viewWindow->getViewManager()))->getOCCViewer();
Handle(AIS_InteractiveContext) ic = v3d->getAISContext();
AIS_DisplayMode newmode = (mode == 1 ? AIS_Shaded : AIS_WireFrame);
AIS_ListOfInteractive List;
//=====================================================================================
// function : DisplayGUI::GetDisplayMode()
-// purpose : Get display mode of the viewer (current viewer if <viewFrame> - 0 )
+// purpose : Get display mode of the viewer (current viewer if <viewWindow> - 0 )
//=====================================================================================
-int DisplayGUI::GetDisplayMode( QAD_ViewFrame* viewFrame )
+int DisplayGUI::GetDisplayMode( SUIT_ViewWindow* viewWindow )
{
int dispMode = 0;
- if ( !viewFrame )
- viewFrame = QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getRightFrame()->getViewFrame();
- if( viewFrame->getTypeView() == VIEW_VTK) {
- VTKViewer_RenderWindowInteractor* myRenderInter= ((VTKViewer_ViewFrame*)viewFrame)->getRWInteractor();
+ if ( !viewWindow )
+ viewWindow = SUIT_Session::session()->activeApplication()->desktop()->activeWindow();
+ if ( viewWindow->getViewManager()->getType() == VTKViewer_Viewer::Type() ) {
+ VTKViewer_RenderWindowInteractor* myRenderInter= ((VTKViewer_ViewWindow*)viewWindow)->getRWInteractor();
dispMode = myRenderInter->GetDisplayMode();
}
- else if( viewFrame->getTypeView() == VIEW_OCC) {
- OCCViewer_Viewer3d* v3d = ((OCCViewer_ViewFrame*)viewFrame)->getViewer();
+ else if ( viewWindow->getViewManager()->getType() == OCCViewer_Viewer::Type() ) {
+ OCCViewer_Viewer* v3d = ((OCCViewer_ViewManager*)(viewWindow->getViewManager()))->getOCCViewer();
Handle(AIS_InteractiveContext) ic = v3d->getAISContext();
AIS_DisplayMode mode = (AIS_DisplayMode)ic->DisplayMode();
dispMode = (mode == AIS_WireFrame ? 0 : 1 );
//=====================================================================================
// function : DisplayGUI::InvertDisplayMode()
// purpose : Invert display mode ( shadin <-> wireframe ) for the viewer
-// (current viewer if <viewFrame> = 0 )
+// (current viewer if <viewWindow> = 0 )
//=====================================================================================
-void DisplayGUI::InvertDisplayMode( QAD_ViewFrame* viewFrame )
+void DisplayGUI::InvertDisplayMode( SUIT_ViewWindow* viewWindow )
{
- SetDisplayMode( 1 - GetDisplayMode( viewFrame ) );
+ SetDisplayMode( 1 - GetDisplayMode( viewWindow ) );
}
//=====================================================================================
// function : DisplayGUI::ChangeDisplayMode()
// purpose : Set display mode for selected objects in the viewer given
-// (current viewer if <viewFrame> = 0 )
+// (current viewer if <viewWindow> = 0 )
//=====================================================================================
-void DisplayGUI::ChangeDisplayMode( const int mode, QAD_ViewFrame* viewFrame )
+void DisplayGUI::ChangeDisplayMode( const int mode, SUIT_ViewWindow* viewWindow )
{
- QAD_WaitCursor wc;
- if ( !viewFrame )
- viewFrame = QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getRightFrame()->getViewFrame();
- SALOME_Selection* Sel = SALOME_Selection::Selection(QAD_Application::getDesktop()->getActiveStudy()->getSelection());
- if ( viewFrame->getTypeView() == VIEW_VTK ) {
- VTKViewer_RenderWindowInteractor* myRenderInter = ((VTKViewer_ViewFrame*)viewFrame)->getRWInteractor();
- SALOME_ListIteratorOfListIO It( Sel->StoredIObjects() );
+ if ( !viewWindow )
+ viewWindow = SUIT_Session::session()->activeApplication()->desktop()->activeWindow();
+
+ SalomeApp_Application* app = dynamic_cast< SalomeApp_Application* >( SUIT_Session::session()->activeApplication() );
+ if ( !app ) return;
+
+ SalomeApp_SelectionMgr* aSelMgr = app->selectionMgr();
+ if ( !aSelMgr ) return;
+
+ SUIT_OverrideCursor();
+
+ SALOME_ListIO aList;
+
+ if ( viewWindow->getViewManager()->getType() == VTKViewer_Viewer::Type() ) {
+ VTKViewer_RenderWindowInteractor* myRenderInter = ((VTKViewer_ViewWindow*)viewWindow)->getRWInteractor();
+
+ aSelMgr->selectedObjects( aList );
+ SALOME_ListIteratorOfListIO It( aList );
+
for( ;It.More(); It.Next() ) {
- VTKViewer_Prs* vtkPrs = dynamic_cast<VTKViewer_Prs*>( viewFrame->CreatePrs( It.Value()->getEntry() ) );
+ SVTK_Viewer* stvkViewer = (SVTK_Viewer*)(viewWindow->getViewManager()->getViewModel());
+ SVTK_Prs* vtkPrs = dynamic_cast<SVTK_Prs*>( stvkViewer->CreatePrs( It.Value()->getEntry() ) );
if ( vtkPrs && !vtkPrs->IsNull() ) {
if ( mode == 0 )
myRenderInter->ChangeRepresentationToWireframe( vtkPrs->GetObjects() );
}
myRenderInter->Render();
}
- else if ( viewFrame->getTypeView() == VIEW_OCC ) {
- OCCViewer_Viewer3d* v3d = ((OCCViewer_ViewFrame*)viewFrame)->getViewer();
+ else if ( viewWindow->getViewManager()->getType() == OCCViewer_Viewer::Type() ) {
+ OCCViewer_Viewer* v3d = ((OCCViewer_ViewManager*)(viewWindow->getViewManager()))->getOCCViewer();
Handle(AIS_InteractiveContext) ic = v3d->getAISContext();
- SALOME_ListIteratorOfListIO It( Sel->StoredIObjects() );
+
+ aSelMgr->selectedObjects( aList );
+ SALOME_ListIteratorOfListIO It( aList );
+
for( ;It.More(); It.Next() ) {
- OCCViewer_Prs* occPrs = dynamic_cast<OCCViewer_Prs*>( viewFrame->CreatePrs( It.Value()->getEntry() ) );
+ SOCC_Viewer* soccViewer = (SOCC_Viewer*)(viewWindow->getViewManager()->getViewModel());
+ SOCC_Prs* occPrs = dynamic_cast<SOCC_Prs*>( soccViewer->CreatePrs( It.Value()->getEntry() ) );
if ( occPrs && !occPrs->IsNull() ) {
AIS_ListOfInteractive shapes; occPrs->GetObjects( shapes );
AIS_ListIteratorOfListOfInteractive interIter( shapes );
//=====================================================================================
extern "C"
{
- GEOMGUI* GetLibGUI()
+ GEOMGUI* GetLibGUI( GeometryGUI* parent )
{
- return DisplayGUI::GetDisplayGUI();
+ return DisplayGUI::GetDisplayGUI( parent );
}
}
// class : GEOMBase_Display
// purpose :
//=================================================================================
-class QAD_ViewFrame;
+//class QAD_ViewFrame;
+class SUIT_ViewWindow;
class DisplayGUI : public GEOMGUI
{
protected:
- DisplayGUI(); // hide constructor to avoid direct creation
+ DisplayGUI( GeometryGUI* parent ); // hide constructor to avoid direct creation
public :
~DisplayGUI();
// Get the only DisplayGUI object
- static DisplayGUI* GetDisplayGUI();
+ static DisplayGUI* GetDisplayGUI( GeometryGUI* parent );
// Dispatch menu command
- bool OnGUIEvent(int theCommandID, QAD_Desktop* parent);
+ bool OnGUIEvent(int theCommandID, SUIT_Desktop* parent);
// Display all GEOM objects
void DisplayAll();
void Erase();
// DISPLAY MODE methods : 0 - wireframe, 1 - shading
- // Set display mode for the viewer (current viewer if <viewFrame> - 0 )
- void SetDisplayMode( const int mode, QAD_ViewFrame* viewFrame = 0 );
- // Get display mode of the viewer (current viewer if <viewFrame> - 0 )
- int GetDisplayMode( QAD_ViewFrame* viewFrame = 0 );
+ // Set display mode for the viewer (current viewer if <viewWindow> - 0 )
+ void SetDisplayMode( const int mode, SUIT_ViewWindow* viewWindow = 0 );
+ // Get display mode of the viewer (current viewer if <viewWindow> - 0 )
+ int GetDisplayMode( SUIT_ViewWindow* viewWindow = 0 );
// Invert display mode ( shadin <-> wireframe ) for the viewer
- // (current viewer if <viewFrame> = 0 )
- void InvertDisplayMode( QAD_ViewFrame* viewFrame = 0 );
+ // (current viewer if <viewWindow> = 0 )
+ void InvertDisplayMode( SUIT_ViewWindow* viewWindow = 0 );
// Set display mode for selected objects in the viewer given
- // (current viewer if <viewFrame> = 0 )
- void ChangeDisplayMode( const int mode, QAD_ViewFrame* viewFrame = 0 );
+ // (current viewer if <viewWindow> = 0 )
+ void ChangeDisplayMode( const int mode, SUIT_ViewWindow* viewWindo = 0 );
private:
static DisplayGUI* myGUIObject; // the only DisplayGUI object
LIB_MOC =
-LIB_CLIENT_IDL = SALOME_Exception.idl SALOME_GenericObj.idl
+LIB_CLIENT_IDL = SALOME_Exception.idl SALOME_GenericObj.idl SALOME_Component.idl
LIB_SERVER_IDL =
# additionnal information to compil and link file
-CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome
-CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome
+CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) $(BOOST_CPPFLAGS) -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
+CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
-LDFLAGS += -lGEOMGUI
+LDFLAGS += -lGEOM
@CONCLUDE@
// purpose : constructor of specific widget accepting floats in double precision.
//=================================================================================
DlgRef_SpinBox::DlgRef_SpinBox(QWidget* parent, const char* name)
-: QAD_SpinBoxDbl(parent, name)
+ : QtxDblSpinBox(parent, name)
{
}
#ifndef GEOMSPINBOX_H
#define GEOMSPINBOX_H
-#include "QAD_SpinBoxDbl.h"
+#include "QtxDblSpinBox.h"
//=================================================================================
// class : DlgRef_SpinBox
// purpose : Derivated from QSpinBox class and modified to accept floats
//=================================================================================
-class DlgRef_SpinBox : public QAD_SpinBoxDbl
+class DlgRef_SpinBox : public QtxDblSpinBox
{
Q_OBJECT
LIB_SERVER_IDL =
# additionnal information to compil and link file
-CPPFLAGS += $(QT_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome
-CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome
+CPPFLAGS += $(QT_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
+CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
LDFLAGS +=
#include "EntityGUI.h"
#include "GeometryGUI.h"
-
-#include "QAD_RightFrame.h"
-#include "QAD_Desktop.h"
-#include "OCCViewer_Viewer3d.h"
-#include "OCCViewer_ViewFrame.h"
-#include "VTKViewer_ViewFrame.h"
#include "GEOM_AssemblyBuilder.h"
-#include "SALOMEGUI_ImportOperation.h"
-#include "SALOMEGUI_QtCatchCorbaException.hxx"
+
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SUIT_ViewWindow.h"
+#include "OCCViewer_ViewModel.h"
+#include "OCCViewer_ViewManager.h"
+#include "VTKViewer_ViewModel.h"
+#include "SalomeApp_Study.h"
+#include "SalomeApp_Tools.h"
+//#include "SALOMEGUI_ImportOperation.h"
#include <TopoDS_Compound.hxx>
#include <BRep_Builder.hxx>
#include "utilities.h"
+using namespace boost;
using namespace std;
EntityGUI* EntityGUI::myGUIObject = 0;
// function : GetEntityGUI()
// purpose : Get the only EntityGUI object [ static ]
//=======================================================================
-EntityGUI* EntityGUI::GetEntityGUI()
+EntityGUI* EntityGUI::GetEntityGUI( GeometryGUI* parent )
{
if ( myGUIObject == 0 ) {
// init EntityGUI only once
- myGUIObject = new EntityGUI();
+ myGUIObject = new EntityGUI( parent );
}
return myGUIObject;
}
// function : EntityGUI()
// purpose : Constructor
//=======================================================================
-EntityGUI::EntityGUI() : GEOMGUI()
+EntityGUI::EntityGUI( GeometryGUI* parent ) : GEOMGUI( parent )
{
myGeomBase = new GEOMBase();
- myGeom = GEOM::GEOM_Gen::_duplicate( GeometryGUI::GetGeomGUI()->GetGeomGen() );
+ myGeom = GEOM::GEOM_Gen::_duplicate( GeometryGUI::GetGeomGen() );
mySimulationShape1 = new AIS_Shape(TopoDS_Shape());
mySimulationShape2 = new AIS_Shape(TopoDS_Shape());
// function : OnGUIEvent()
// purpose :
//=======================================================================
-bool EntityGUI::OnGUIEvent(int theCommandID, QAD_Desktop* parent)
+bool EntityGUI::OnGUIEvent(int theCommandID, SUIT_Desktop* parent)
{
- GeometryGUI::GetGeomGUI()->EmitSignalDeactivateDialog();
- SALOME_Selection* Sel = SALOME_Selection::Selection(QAD_Application::getDesktop()->getActiveStudy()->getSelection());
+ getGeometryGUI()->EmitSignalDeactivateDialog();
QDialog* aDlg = NULL;
switch (theCommandID)
{
case 404: // SKETCHER
- GeometryGUI::GetGeomGUI()->ActiveWorkingPlane();
- aDlg = new EntityGUI_SketcherDlg(parent, "", Sel);
+ getGeometryGUI()->ActiveWorkingPlane();
+ aDlg = new EntityGUI_SketcherDlg(getGeometryGUI(), parent, "");
break;
case 407: // EXPLODE : use ic
- aDlg = new EntityGUI_SubShapeDlg(parent, "", Sel);
+ aDlg = new EntityGUI_SubShapeDlg(parent, "");
break;
default:
- parent->putInfo(tr("GEOM_PRP_COMMAND").arg(theCommandID));
+ SUIT_Session::session()->activeApplication()->putInfo(tr("GEOM_PRP_COMMAND").arg(theCommandID));
break;
}
if ( aDlg )
QAD_Application::getDesktop()->putInfo(tr("GEOM_PRP_DONE"));
}
catch(const SALOME::SALOME_Exception& S_ex) {
- QtCatchCorbaException(S_ex);
+ SalomeApp_Tools::QtCatchCorbaException(S_ex);
}
*/
return;
void EntityGUI::DisplaySimulationShape(const TopoDS_Shape& S1, const TopoDS_Shape& S2)
{
//NRI DEBUG : 14/02/2002
- if(QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getTypeView() > VIEW_OCC)
+ if( SUIT_Session::session()->activeApplication()->desktop()->activeWindow()->getViewManager()->getType()
+ != OCCViewer_Viewer::Type() )
return;
-
- OCCViewer_Viewer3d* v3d = ((OCCViewer_ViewFrame*)QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getRightFrame()->getViewFrame())->getViewer();
+
+ OCCViewer_Viewer* v3d =
+ ((OCCViewer_ViewManager*)(SUIT_Session::session()->activeApplication()->desktop()->activeWindow()->getViewManager()))->getOCCViewer();
Handle(AIS_InteractiveContext) ic = v3d->getAISContext();
try {
if(!S1.IsNull()) {
//==================================================================================
void EntityGUI::EraseSimulationShape()
{
- int count = QAD_Application::getDesktop()->getActiveStudy()->getStudyFramesCount();
- for(int i = 0; i < count; i++) {
- if(QAD_Application::getDesktop()->getActiveStudy()->getStudyFrame(i)->getTypeView() == VIEW_OCC) {
- OCCViewer_Viewer3d* v3d = ((OCCViewer_ViewFrame*)QAD_Application::getDesktop()->getActiveStudy()->getStudyFrame(i)->getRightFrame()->getViewFrame())->getViewer();
+ // get all view windows at the desktop
+ QPtrList<SUIT_ViewWindow> aWndLst = SUIT_Session::session()->activeApplication()->desktop()->windows();
+ //get all view windows, which belong to the active study
+ QPtrList<SUIT_ViewWindow> aWndLstAS;
+ SUIT_ViewWindow* vw;
+ for ( vw = aWndLst.first(); vw; vw = aWndLst.next() )
+ if ( vw->getViewManager()->study() == SUIT_Session::session()->activeApplication()->activeStudy() )
+ aWndLstAS.append( vw );
+
+ for ( vw = aWndLstAS.first(); vw; vw = aWndLstAS.next() ) {
+ if ( vw->getViewManager()->getType() == OCCViewer_Viewer::Type() ) {
+ OCCViewer_Viewer* v3d = ((OCCViewer_ViewManager*)(vw->getViewManager()))->getOCCViewer();
Handle(AIS_InteractiveContext) ic = v3d->getAISContext();
ic->Erase(mySimulationShape1, Standard_True, Standard_False);
ic->ClearPrs(mySimulationShape1);
// function : SObjectExist()
// purpose :
//=====================================================================================
-bool EntityGUI::SObjectExist(SALOMEDS::SObject_ptr theFatherObject, const char* IOR)
+bool EntityGUI::SObjectExist(const _PTR(SObject)& theFatherObject, const char* IOR)
{
- SALOMEDS::Study_var aStudy = QAD_Application::getDesktop()->getActiveStudy()->getStudyDocument();
- SALOMEDS::ChildIterator_var it = aStudy->NewChildIterator(theFatherObject);
- SALOMEDS::SObject_var RefSO;
- SALOMEDS::GenericAttribute_var anAttr;
- SALOMEDS::AttributeIOR_var anIOR;
+ SalomeApp_Study* appStudy = dynamic_cast<SalomeApp_Study*>( SUIT_Session::session()->activeApplication()->activeStudy() );
+ if ( !appStudy ) return false;
+ _PTR(Study) aStudy = appStudy->studyDS();
+ _PTR(ChildIterator) it ( aStudy->NewChildIterator(theFatherObject) );
+ _PTR(SObject) RefSO;
+ _PTR(GenericAttribute) anAttr;
for(; it->More();it->Next()) {
- SALOMEDS::SObject_var SO= it->Value();
+ _PTR(SObject) SO ( it->Value() );
if(SO->FindAttribute(anAttr, "AttributeIOR")) {
- anIOR = SALOMEDS::AttributeIOR::_narrow(anAttr);
- if(strcmp( anIOR->Value(), IOR ) == 0)
+ _PTR(AttributeIOR) anIOR ( anAttr );
+ if(strcmp( anIOR->Value().c_str(), IOR ) == 0)
return true;
}
if(SO->ReferencedObject(RefSO)) {
if(RefSO->FindAttribute(anAttr, "AttributeIOR")) {
- anIOR = SALOMEDS::AttributeIOR::_narrow(anAttr);
- if(strcmp(anIOR->Value(), IOR) == 0)
+ _PTR(AttributeIOR) anIOR ( anAttr );
+ if(strcmp(anIOR->Value().c_str(), IOR) == 0)
return true;
}
}
//=====================================================================================
bool EntityGUI::OnSubShapeGetAll(const TopoDS_Shape& ShapeTopo, const char* ShapeTopoIOR, const int SubShapeType)
{
- QAD_Application::getDesktop()->putInfo("OnSubShapeGetAll method from EntityGUI should be reimplemented ...");
+ SUIT_Session::session()->activeApplication()->putInfo("OnSubShapeGetAll method from EntityGUI should be reimplemented ...");
/*
SALOMEDS::Study_var aStudy = QAD_Application::getDesktop()->getActiveStudy()->getStudyDocument();
SALOMEDS::SObject_var theObj = aStudy->FindObjectIOR(ShapeTopoIOR);
}
}
catch(const SALOME::SALOME_Exception& S_ex) {
- QtCatchCorbaException(S_ex);
+ SalomeApp_Tools::QtCatchCorbaException(S_ex);
}
// open transaction
//=====================================================================================
bool EntityGUI::OnSubShapeGetSelected(const TopoDS_Shape& ShapeTopo, const char* ShapeTopoIOR, const int SubShapeType, Standard_Integer& aLocalContextId, bool& myUseLocalContext)
{
- QAD_Application::getDesktop()->putInfo("OnSubShapeGetSelected method from EntityGUI should be reimplemented ...");
+ SUIT_Session::session()->activeApplication()->putInfo("OnSubShapeGetSelected method from EntityGUI should be reimplemented ...");
// //* Test the type of viewer */
// if(QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getTypeView() > VIEW_OCC)
// return false;
// aResult = myGeom->SubShape(aShape, SubShapeType, ListOfID);
// }
// catch (const SALOME::SALOME_Exception& S_ex) {
-// QtCatchCorbaException(S_ex);
+// SalomeApp_Tools::QtCatchCorbaException(S_ex);
// }
// /* local context from DialogBox */
//=====================================================================================
extern "C"
{
- GEOMGUI* GetLibGUI()
+ GEOMGUI* GetLibGUI( GeometryGUI* parent )
{
- return EntityGUI::GetEntityGUI();
+ return EntityGUI::GetEntityGUI( parent );
}
}
#include "GEOMGUI.h"
#include "GEOMBase.h"
+#include "SALOMEDSClient.hxx"
+
//=================================================================================
// class : EntityGUI
// purpose :
class EntityGUI : public GEOMGUI
{
protected:
- EntityGUI(); // hide constructor to avoid direct creation
+ EntityGUI( GeometryGUI* parent ); // hide constructor to avoid direct creation
public :
~EntityGUI();
// Get the only EntityGUI object
- static EntityGUI* GetEntityGUI();
+ static EntityGUI* GetEntityGUI( GeometryGUI* parent );
- bool OnGUIEvent(int theCommandID, QAD_Desktop* parent);
+ bool OnGUIEvent(int theCommandID, SUIT_Desktop* parent);
void OnSketchEnd(const char *Cmd);
void MakeBezierAndDisplay(GEOM::string_array& listShapesIOR);
/* Methods for sub shapes explode */
- bool SObjectExist(SALOMEDS::SObject_ptr theFatherObject, const char* IOR);
+ bool SObjectExist(const _PTR(SObject)& theFatherObject, const char* IOR);
bool OnSubShapeGetAll(const TopoDS_Shape& ShapeTopo, const char* ShapeTopoIOR, const int SubShapeType);
bool OnSubShapeGetSelected(const TopoDS_Shape& ShapeTopo, const char* ShapeTopoIOR, const int SubShapeType,
Standard_Integer& aLocalContextId, bool& myUseLocalContext);
#include "EntityGUI_SketcherDlg.h"
#include "Sketcher_Profile.hxx"
#include "GEOM_Displayer.h"
-#include "QAD_Config.h"
-#include "QAD_Desktop.h"
-#include "QAD_MessageBox.h"
+
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SUIT_MessageBox.h"
+#include "SUIT_ResourceMgr.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
#include <qpushbutton.h>
+#include <qlabel.h>
#include <BRep_Tool.hxx>
#include <TopExp.hxx>
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-EntityGUI_SketcherDlg::EntityGUI_SketcherDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
-:EntityGUI_Skeleton_QTD(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu | WDestructiveClose), GEOMBase_Helper(), myIsAllAdded( false )
+EntityGUI_SketcherDlg::EntityGUI_SketcherDlg(GeometryGUI* GUI, QWidget* parent, const char* name, bool modal, WFlags fl)
+ :EntityGUI_Skeleton_QTD(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu | WDestructiveClose), GEOMBase_Helper(), myIsAllAdded( false ),
+ myGeometryGUI( GUI )
{
- mySelection = Sel;
- GeometryGUI::GetGeomGUI()->SetActiveDialogBox(this);
+ myGeometryGUI->SetActiveDialogBox(this);
if ( !name ) setName("EntityGUI_SketcherDlg");
GroupDest2->close(TRUE);
GroupDest3->close(TRUE);
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_UNDO")));
- QPixmap image2(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_REDO")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_UNDO")));
+ QPixmap image2(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_REDO")));
setCaption(tr("GEOM_SKETCHER_TITLE"));
connect(Group4Spin->SpinBox_DZ, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
connect(Group4Spin->SpinBox_DS, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
- connect(GeometryGUI::GetGeomGUI(), SIGNAL(SignalDefaultStepValueChanged(double)), Group1Spin->SpinBox_DX, SLOT(SetStep(double)));
- connect(GeometryGUI::GetGeomGUI(), SIGNAL(SignalDefaultStepValueChanged(double)), Group2Spin->SpinBox_DX, SLOT(SetStep(double)));
- connect(GeometryGUI::GetGeomGUI(), SIGNAL(SignalDefaultStepValueChanged(double)), Group2Spin->SpinBox_DY, SLOT(SetStep(double)));
- connect(GeometryGUI::GetGeomGUI(), SIGNAL(SignalDefaultStepValueChanged(double)), Group3Spin->SpinBox_DX, SLOT(SetStep(double)));
- connect(GeometryGUI::GetGeomGUI(), SIGNAL(SignalDefaultStepValueChanged(double)), Group3Spin->SpinBox_DY, SLOT(SetStep(double)));
- connect(GeometryGUI::GetGeomGUI(), SIGNAL(SignalDefaultStepValueChanged(double)), Group3Spin->SpinBox_DZ, SLOT(SetStep(double)));
- connect(GeometryGUI::GetGeomGUI(), SIGNAL(SignalDefaultStepValueChanged(double)), Group4Spin->SpinBox_DX, SLOT(SetStep(double)));
- connect(GeometryGUI::GetGeomGUI(), SIGNAL(SignalDefaultStepValueChanged(double)), Group4Spin->SpinBox_DY, SLOT(SetStep(double)));
- connect(GeometryGUI::GetGeomGUI(), SIGNAL(SignalDefaultStepValueChanged(double)), Group4Spin->SpinBox_DZ, SLOT(SetStep(double)));
- connect(GeometryGUI::GetGeomGUI(), SIGNAL(SignalDefaultStepValueChanged(double)), Group4Spin->SpinBox_DS, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), Group1Spin->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), Group2Spin->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), Group2Spin->SpinBox_DY, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), Group3Spin->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), Group3Spin->SpinBox_DY, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), Group3Spin->SpinBox_DZ, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), Group4Spin->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), Group4Spin->SpinBox_DY, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), Group4Spin->SpinBox_DZ, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), Group4Spin->SpinBox_DS, SLOT(SetStep(double)));
- connect(GeometryGUI::GetGeomGUI(), SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
- connect(GeometryGUI::GetGeomGUI(), SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
+ connect(myGeometryGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
+ connect(myGeometryGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
Init();
}
//=================================================================================
EntityGUI_SketcherDlg::~EntityGUI_SketcherDlg()
{
- GeometryGUI::GetGeomGUI()->SetActiveDialogBox( 0 );
+ myGeometryGUI->SetActiveDialogBox( 0 );
}
myLastY2 = 0.0;
/* Get setting of step value from file configuration */
- QString St = QAD_CONFIG->getSetting("Geometry:SettingsGeomStep");
- double step = St.toDouble();
+ double step = SUIT_Session::session()->resourceMgr()->doubleValue( "Geometry", "SettingsGeomStep", 100.0 );
/* min, max, step and decimals for spin boxes */
Group1Spin->SpinBox_DX->RangeStepAndValidator(-999999.999, 999999.999, step, 3);
//=================================================================================
void EntityGUI_SketcherDlg::InitClick()
{
- disconnect(mySelection, 0, this, 0);
+ disconnect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 0, this, 0);
Group1Sel->hide();
Group1Spin->hide();
{ // Selection
mySketchType = PT_SEL;
myEditCurrentArgument = Group1Sel->LineEdit1;
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
Group1Sel->show();
Group1Sel->buttonApply->setFocus();
SelectionIntoArgument();
// Verify validity of commands
if ( myCommand.count() <= 2 )
{
- QAD_MessageBox::error1( QAD_Application::getDesktop(),
- tr( "GEOM_ERROR_STATUS" ), tr( "CANNOT_CLOSE" ), tr( "BUT_OK" ) );
+ SUIT_MessageBox::error1( SUIT_Session::session()->activeApplication()->desktop(),
+ tr( "GEOM_ERROR_STATUS" ), tr( "CANNOT_CLOSE" ), tr( "BUT_OK" ) );
return;
}
myX = myLastX1;
myY = myLastY1;
- int nbSel = mySelection->IObjectCount();
+ int nbSel = IObjectCount();
if ( nbSel == 1 && myEditCurrentArgument == Group1Sel->LineEdit1 )
{
Standard_Boolean aRes = Standard_False;
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), aRes );
+ GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( firstIObject(), aRes );
if ( !CORBA::is_nil( aSelectedObject ) && aRes ) {
TopoDS_Shape aShape;
if ( GEOMBase::GetShape( aSelectedObject, aShape, TopAbs_VERTEX ) ) {
gp_Trsf aTrans;
- gp_Ax3 aWPlane = GeometryGUI::GetGeomGUI()->GetWorkingPlane();
+ gp_Ax3 aWPlane = myGeometryGUI->GetWorkingPlane();
aTrans.SetTransformation(aWPlane);
BRepBuilderAPI_Transform aTransformation(aShape, aTrans, Standard_False);
/* so SelectionIntoArgument() is automatically called. */
const QString objectUserName = myEditCurrentArgument->text();
QWidget* thisWidget = (QWidget*)this;
- if(GEOMBase::SelectionByNameInDialogs(thisWidget, objectUserName, mySelection))
+ if(GEOMBase::SelectionByNameInDialogs(thisWidget, objectUserName, selectedIO()))
myEditCurrentArgument->setText(objectUserName);
}
}
//=================================================================================
void EntityGUI_SketcherDlg::DeactivateActiveDialog()
{
- GeometryGUI::GetGeomGUI()->SetState( -1 );
+ //myGeometryGUI->SetState( -1 );
setEnabled( false );
globalSelection();
- disconnect(mySelection, 0, this, 0);
- GeometryGUI::GetGeomGUI()->SetActiveDialogBox(0);
+ disconnect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 0, this, 0);
+ myGeometryGUI->SetActiveDialogBox(0);
}
//=================================================================================
void EntityGUI_SketcherDlg::ActivateThisDialog()
{
- GeometryGUI::GetGeomGUI()->EmitSignalDeactivateDialog();
+ myGeometryGUI->EmitSignalDeactivateDialog();
setEnabled(true);
- GeometryGUI::GetGeomGUI()->SetActiveDialogBox((QDialog*)this);
+ myGeometryGUI->SetActiveDialogBox((QDialog*)this);
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
- GeometryGUI::GetGeomGUI()->SetState( 0 );
+ //myGeometryGUI->SetState( 0 );
globalSelection( GEOM_POINT );
myEditCurrentArgument = Group1Sel->LineEdit1;
//=================================================================================
void EntityGUI_SketcherDlg::closeEvent(QCloseEvent* e)
{
- GeometryGUI::GetGeomGUI()->SetState( -1 );
- disconnect(mySelection, 0, this, 0);
+ //myGeometryGUI->SetState( -1 );
+ disconnect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 0, this, 0);
QDialog::closeEvent( e );
}
}
}
- gp_Ax3 myWPlane = GeometryGUI::GetGeomGUI()->GetWorkingPlane();
+ gp_Ax3 myWPlane = myGeometryGUI->GetWorkingPlane();
GEOM::ListOfDouble_var WPlane = new GEOM::ListOfDouble;
WPlane->length(9);
WPlane[0] = myWPlane.Location().X();
getDisplayer()->SetToActivate( activate );
// Make a reference to GEOM_Object
- getDisplayer()->SetName( GeometryGUI::GetORB()->object_to_string( object ) );
+ getDisplayer()->SetName( myGeometryGUI->getApp()->orb()->object_to_string( object ) );
// Create wire from applayed object
TopoDS_Shape anApplyedWire, aLastSegment;
return true;
}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+//=================================================================================
+// function : getDesktop()
+// purpose :
+//=================================================================================
+SUIT_Desktop* EntityGUI_SketcherDlg::getDesktop() const
+{
+ return dynamic_cast<SUIT_Desktop*>( parentWidget() );
+}
#include "EntityGUI.h"
#include "GeometryGUI.h"
-#include "GEOM_ShapeTypeFilter.hxx"
-
#include <gp_Dir.hxx>
#include <qwidget.h>
Q_OBJECT
public:
- EntityGUI_SketcherDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ EntityGUI_SketcherDlg(GeometryGUI* GUI, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~EntityGUI_SketcherDlg();
protected:
void closeEvent( QCloseEvent* e );
+ virtual SUIT_Desktop* getDesktop() const;
+
private :
void Init();
void enterEvent(QEvent* e);
bool myIsAllAdded;
QLineEdit* myEditCurrentArgument; /* Current LineEdit */
- SALOME_Selection* mySelection; /* User shape selection */
QStringList myCommand;
QStringList myUndoCommand;
EntityGUI_3Spin* Group3Spin;
EntityGUI_4Spin* Group4Spin;
+ GeometryGUI* myGeometryGUI;
+
enum SketchState {FIRST_POINT, NEXT_POINT};
enum SketchType {PT_ABS, PT_RELATIVE, PT_SEL,
#include "EntityGUI_SubShapeDlg.h"
#include "GEOM_Displayer.h"
-#include "QAD_RightFrame.h"
-#include "QAD_Desktop.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "OCCViewer_ViewModel.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
#include "SALOME_ListIteratorOfListIO.hxx"
#include <TColStd_IndexedMapOfInteger.hxx>
#include <TopTools_MapOfShape.hxx>
#include <qmessagebox.h>
+#include <qlabel.h>
+#include <qcombobox.h>
//=================================================================================
// class : EntityGUI_SubShapeDlg
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-EntityGUI_SubShapeDlg::EntityGUI_SubShapeDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, fl)
+EntityGUI_SubShapeDlg::EntityGUI_SubShapeDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, fl)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_SUBSHAPE")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_SUBSHAPE")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_SUBSHAPE_TITLE"));
GroupPoints->ComboBox1->insertItem("Vertex");
GroupPoints->ComboBox1->insertItem("Shape");
- if(QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getTypeView() != VIEW_OCC)
+ if (SUIT_Session::session()->activeApplication()->desktop()->activeWindow()->getViewManager()->getType()
+ != OCCViewer_Viewer::Type())
GroupPoints->CheckButton1->setEnabled(false);
/* signals and slots connections */
connect(GroupPoints->ComboBox1, SIGNAL(activated(int)), this, SLOT(ComboTextChanged()));
connect(GroupPoints->CheckButton1, SIGNAL(stateChanged(int)), this, SLOT(SubShapeToggled()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
-
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
+
updateButtonState();
SelectionIntoArgument();
//=================================================================================
bool EntityGUI_SubShapeDlg::ClickOnApply()
{
- QAD_Application::getDesktop()->putInfo(tr(""));
+ SUIT_Session::session()->activeApplication()->putInfo(tr(""));
/* Explode all sub shapes */
if( isAllSubShapes() ) {
QString aString = ""; /* name of selection */
- int nbSel = GEOMBase::GetNameOfSelectedIObjects( mySelection, aString, true );
+ int nbSel = GEOMBase::GetNameOfSelectedIObjects( selectedIO(), aString, true );
if( nbSel != 1 )
return;
TopoDS_Shape S;
- Handle(SALOME_InteractiveObject) IO = mySelection->firstIObject();
+ Handle(SALOME_InteractiveObject) IO = firstIObject();
if ( !IO->hasEntry() )
{
- QAD_Application::getDesktop()->putInfo( tr( "GEOM_PRP_SHAPE_IN_STUDY" ) );
+ SUIT_Session::session()->activeApplication()->putInfo( tr( "GEOM_PRP_SHAPE_IN_STUDY" ) );
updateButtonState();
return;
}
- if ( !myGeomBase->GetTopoFromSelection( mySelection, S ) ||
+ if ( !myGeomBase->GetTopoFromSelection( selectedIO(), S ) ||
S.IsNull() ||
S.ShapeType() == TopAbs_VERTEX )
{
void EntityGUI_SubShapeDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
SubShapeToggled();
updateButtonState();
}
//=================================================================================
void EntityGUI_SubShapeDlg::updateButtonState()
{
- if ( QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getTypeView() != VIEW_OCC ||
+ if ( SUIT_Session::session()->activeApplication()->desktop()->activeWindow()->getViewManager()->getType() != OCCViewer_Viewer::Type() ||
myObject->_is_nil() || shapeType() == TopAbs_SHAPE || shapeType() == TopAbs_COMPOUND ) {
GroupPoints->CheckButton1->setChecked( FALSE );
GroupPoints->CheckButton1->setEnabled( FALSE );
if ( !myObject->_is_nil() ) {
if ( isAllSubShapes() )
isOk = true;
- else if ( mySelection->IObjectCount() == 1 ) {
+ else if ( IObjectCount() == 1 ) {
Standard_Boolean aResult = Standard_False;
GEOM::GEOM_Object_var anObj =
- GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), aResult );
+ GEOMBase::ConvertIOinGEOMObject( firstIObject(), aResult );
if ( aResult && !anObj->_is_nil() ) {
TColStd_IndexedMapOfInteger aMapIndex;
- mySelection->GetIndex( mySelection->firstIObject(), aMapIndex );
+ ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr()->GetIndexes( firstIObject(), aMapIndex );
isOk = aMapIndex.Extent() > 0;
if ( !isOk )
msg += tr( "NO_SUBSHAPES_SELECTED" );
// and manual selection is active
if ( !isAllSubShapes() )
{
- if ( mySelection->IObjectCount() == 1 ) {
+ if ( IObjectCount() == 1 ) {
Standard_Boolean aResult = Standard_False;
GEOM::GEOM_Object_var anObj =
- GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), aResult );
+ GEOMBase::ConvertIOinGEOMObject( firstIObject(), aResult );
if ( aResult && !anObj->_is_nil() ) {
TColStd_IndexedMapOfInteger aMapIndex;
- mySelection->GetIndex( mySelection->firstIObject(), aMapIndex );
+ ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr()->GetIndexes( firstIObject(), aMapIndex );
GEOM::GEOM_ILocalOperations_var aLocOp =
getGeomEngine()->GetILocalOperations( getStudyId() );
public:
EntityGUI_SubShapeDlg( QWidget* parent = 0,
const char* name = 0,
- SALOME_Selection* Sel = 0,
bool modal = FALSE,
WFlags fl = 0 );
~EntityGUI_SubShapeDlg();
EntityGUI_SketcherDlg.h \
EntityGUI_SubShapeDlg.h
-LIB_CLIENT_IDL = SALOME_GenericObj.idl SALOME_Component.idl
+LIB_CLIENT_IDL = SALOME_Exception.idl SALOME_GenericObj.idl SALOME_Component.idl
LIB_SERVER_IDL =
# additionnal information to compil and link file
-CPPFLAGS += $(QT_INCLUDES) $(OCC_INCLUDES) $(VTK_INCLUDES) $(PYTHON_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome
-CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome
+CPPFLAGS += $(QT_INCLUDES) $(OCC_INCLUDES) $(VTK_INCLUDES) $(PYTHON_INCLUDES) $(BOOST_CPPFLAGS) -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
+CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
-LDFLAGS += -lGEOMFiltersSelection -lGEOMSketcher -lGEOMBase -lGEOMGUI
+LDFLAGS += -lGEOMFiltersSelection -lGEOMSketcher -lGEOMBase -lGEOM
@CONCLUDE@
#include "GEOM_ISubShape.hxx"
#include "GEOM_SubShapeDriver.hxx"
#include "GEOM_DataMapIteratorOfDataMapOfAsciiStringTransient.hxx"
+#include "GEOM_PythonDump.hxx"
#include "utilities.h"
-#include <Interface_DataMapIteratorOfDataMapOfIntegerTransient.hxx>
-
#include <TDF_Tool.hxx>
#include <TDF_Data.hxx>
+#include <TDF_LabelSequence.hxx>
#include <TDataStd_Integer.hxx>
#include <TDataStd_ChildNodeIterator.hxx>
#include <TFunction_Driver.hxx>
#include <TCollection_AsciiString.hxx>
#include <TCollection_ExtendedString.hxx>
#include <TColStd_SequenceOfAsciiString.hxx>
+#include <TColStd_MapOfTransient.hxx>
+#include <TColStd_HSequenceOfInteger.hxx>
+
+#include <Interface_DataMapIteratorOfDataMapOfIntegerTransient.hxx>
+#include <Resource_DataMapIteratorOfDataMapOfAsciiStringAsciiString.hxx>
+
+#include <map>
+#include <string>
#include <Standard_ErrorHandler.hxx> // CAREFUL ! position of this file is critic : see Lucien PIGNOLONI / OCC
return aDocID.IntegerValue();
}
+void ProcessFunction(Handle(GEOM_Function)& theFunction,
+ TCollection_AsciiString& theScript,
+ TColStd_MapOfTransient& theProcessed);
+
+Handle(TColStd_HSequenceOfInteger) FindEntries(TCollection_AsciiString& theString);
+
//=============================================================================
/*!
* GetEngine
* AddSubShape
*/
//=============================================================================
-Handle(GEOM_Object) GEOM_Engine::AddSubShape(Handle(GEOM_Object) theMainShape, Handle(TColStd_HArray1OfInteger) theIndices)
+Handle(GEOM_Object) GEOM_Engine::AddSubShape(Handle(GEOM_Object) theMainShape,
+ Handle(TColStd_HArray1OfInteger) theIndices,
+ bool isStandaloneOperation)
{
if(theMainShape.IsNull() || theIndices.IsNull()) return NULL;
if(_objects.IsBound(anID)) _objects.UnBind(anID);
_objects.Bind(anID, anObject);
- TCollection_AsciiString anEntry, aDescr("");
- TDF_Tool::Entry(anObject->GetEntry(), anEntry);
- aDescr += anEntry;
- aDescr += " = geom.AddSubShape(";
- TDF_Tool::Entry(theMainShape->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- aDescr += (", [");
- for(Standard_Integer i=theIndices->Lower(); i<=theIndices->Upper(); i++) {
- aDescr += (TCollection_AsciiString(theIndices->Value(i))+", ");
+ GEOM::TPythonDump pd (aFunction);
+
+ if (isStandaloneOperation) {
+ pd << anObject << " = geompy.GetSubShape(" << theMainShape << ", [";
+ Standard_Integer i = theIndices->Lower(), up = theIndices->Upper();
+ for (; i <= up - 1; i++) {
+ pd << theIndices->Value(i) << ", ";
+ }
+ pd << theIndices->Value(up) << "])";
}
- aDescr.Trunc(aDescr.Length()-1);
- aDescr += "])";
- aFunction->SetDescription(aDescr);
+ else
+ pd << "None";
return anObject;
}
TCollection_AsciiString anID = BuildIDFromObject(theObject);
if(_objects.IsBound(anID)) _objects.UnBind(anID);
+ int nb = theObject->GetNbFunctions();
+ Handle(TDataStd_TreeNode) aNode;
+ for(int i = 1; i<=nb; i++) {
+ Handle(GEOM_Function) aFunction = theObject->GetFunction(i);
+ if(aFunction->GetEntry().FindAttribute(GEOM_Function::GetFunctionTreeID(), aNode))
+ aNode->Remove();
+ }
+
TDF_Label aLabel = theObject->GetEntry();
aLabel.ForgetAllAttributes(Standard_True);
bool GEOM_Engine::Load(int theDocID, char* theFileName)
{
Handle(TDocStd_Document) aDoc;
- if(_OCAFApp->Open(theFileName, aDoc) != CDF_RS_OK) return false;
+ if(_OCAFApp->Open(theFileName, aDoc) != CDF_RS_OK) {
+ return false;
+ }
aDoc->SetUndoLimit(_UndoLimit);
TDataStd_Integer::Set(aDoc->Main(), theDocID);
+ _OCAFApp->SaveAs(aDoc, "/dn05/salome/srn/Test.sdg");
+
return true;
}
aDoc.Nullify();
}
}
+
+//=============================================================================
+/*!
+ * DumpPython
+ */
+//=============================================================================
+TCollection_AsciiString GEOM_Engine::DumpPython(int theDocID,
+ Resource_DataMapOfAsciiStringAsciiString& theObjectNames,
+ bool isPublished,
+ bool& aValidScript)
+{
+ TCollection_AsciiString aScript;
+ Handle(TDocStd_Document) aDoc = GetDocument(theDocID);
+
+ if(aDoc.IsNull()) return TCollection_AsciiString("def RebuildData(theStudy): pass\n");
+
+ aScript = "import geompy\n";
+ aScript += "import math\n\n";
+ aScript += "def RebuildData(theStudy):";
+ aScript += "\n\tgeompy.init_geom(theStudy)";
+
+ Standard_Integer posToInertGlobalVars = aScript.Length() + 1;
+
+ Handle(TDataStd_TreeNode) aNode, aRoot;
+ Handle(GEOM_Function) aFunction;
+ TColStd_MapOfTransient aMap;
+
+ if(aDoc->Main().FindAttribute(GEOM_Function::GetFunctionTreeID(), aRoot)) {
+ TDataStd_ChildNodeIterator Itr(aRoot);
+ for(; Itr.More(); Itr.Next()) {
+ aNode = Itr.Value();
+ aFunction = GEOM_Function::GetFunction(aNode->Label());
+ if(aFunction.IsNull()) {
+ cout << "Null function !!!!" << endl;
+ continue;
+ }
+ ProcessFunction(aFunction, aScript, aMap);
+ }
+ }
+
+ Resource_DataMapOfAsciiStringAsciiString aEntry2StEntry, aStEntry2Entry;
+ Resource_DataMapIteratorOfDataMapOfAsciiStringAsciiString anEntryToNameIt;
+ // build maps entry <-> studyEntry
+ for (anEntryToNameIt.Initialize( theObjectNames );
+ anEntryToNameIt.More();
+ anEntryToNameIt.Next())
+ {
+ const TCollection_AsciiString& aEntry = anEntryToNameIt.Key();
+ // look for an object by entry
+ TDF_Label L;
+ TDF_Tool::Label( aDoc->GetData(), aEntry, L );
+ if ( L.IsNull() ) continue;
+ Handle(GEOM_Object) obj = GEOM_Object::GetObject( L );
+ // fill maps
+ if ( !obj.IsNull() ) {
+ TCollection_AsciiString aStudyEntry (obj->GetAuxData());
+ aEntry2StEntry.Bind( aEntry, aStudyEntry);
+ aStEntry2Entry.Bind( aStudyEntry, aEntry );
+ }
+ }
+
+ Handle(TColStd_HSequenceOfInteger) aSeq = FindEntries(aScript);
+ Standard_Integer aLen = aSeq->Length(), objectCounter = 0, aStart = 1, aScriptLength = aScript.Length();
+ Resource_DataMapOfAsciiStringAsciiString aNameToEntry, anEntryToBadName;
+
+ //Replace entries by the names
+ TCollection_AsciiString anUpdatedScript, anEntry, aName, aBaseName("geomObj_"),
+ allowedChars ("qwertyuioplkjhgfdsazxcvbnmQWERTYUIOPLKJHGFDSAZXCVBNM0987654321_");
+ if(aLen == 0) anUpdatedScript = aScript;
+
+ for(Standard_Integer i = 1; i <= aLen; i+=2) {
+ anUpdatedScript += aScript.SubString(aStart, aSeq->Value(i)-1);
+ anEntry = aScript.SubString(aSeq->Value(i), aSeq->Value(i+1));
+ if(theObjectNames.IsBound(anEntry)) {
+ aName = theObjectNames.Find(anEntry);
+ // check validity of aName
+ bool isValidName = true;
+ if ( aName.IsIntegerValue() ) { // aName must not start with a digit
+ aName.Insert( 1, 'a' );
+ isValidName = false;
+ }
+ int p, p2=1; // replace not allowed chars
+ while ((p = aName.FirstLocationNotInSet(allowedChars, p2, aName.Length()))) {
+ aName.SetValue(p, '_');
+ p2=p;
+ isValidName = false;
+ }
+ if ( aNameToEntry.IsBound( aName ) && anEntry != aNameToEntry( aName ))
+ { // diff objects have same name - make a new name by appending a digit
+ TCollection_AsciiString aName2;
+ Standard_Integer i = 0;
+ do {
+ aName2 = aName + "_" + ++i;
+ } while ( aNameToEntry.IsBound( aName2 ) && anEntry != aNameToEntry( aName2 ));
+ aName = aName2;
+ isValidName = false;
+ }
+ if ( !isValidName ) {
+ if ( isPublished )
+ anEntryToBadName.Bind( anEntry, theObjectNames.Find(anEntry) );
+ theObjectNames( anEntry ) = aName;
+ }
+ }
+ else {
+ do {
+ aName = aBaseName + TCollection_AsciiString(++objectCounter);
+ } while(aNameToEntry.IsBound(aName));
+ theObjectNames.Bind(anEntry, aName);
+ }
+ aNameToEntry.Bind(aName, anEntry); // to detect same name of diff objects
+
+ anUpdatedScript += aName;
+ aStart = aSeq->Value(i+1) + 1;
+ }
+
+ //Add final part of the script
+ if(aSeq->Value(aLen) < aScriptLength) anUpdatedScript += aScript.SubString(aSeq->Value(aLen)+1, aScriptLength);
+
+ // Make script to publish in study
+ if ( isPublished )
+ {
+ map< int, string > anEntryToCommandMap; // sort publishing commands by object entry
+ for (anEntryToNameIt.Initialize( theObjectNames );
+ anEntryToNameIt.More();
+ anEntryToNameIt.Next())
+ {
+ const TCollection_AsciiString& aEntry = anEntryToNameIt.Key();
+ const TCollection_AsciiString& aName = anEntryToNameIt.Value();
+ if ( !aEntry2StEntry.IsBound( aEntry ))
+ continue; // was not published
+ TCollection_AsciiString aCommand("\n\tgeompy."), aFatherEntry;
+
+ // find a father entry
+ const TCollection_AsciiString& aStudyEntry = aEntry2StEntry( aEntry );
+ TCollection_AsciiString aFatherStudyEntry =
+ aStudyEntry.SubString( 1, aStudyEntry.SearchFromEnd(":") - 1 );
+ if ( aStEntry2Entry.IsBound( aFatherStudyEntry ))
+ aFatherEntry = aStEntry2Entry( aFatherStudyEntry );
+
+ // make a command
+ if ( !aFatherEntry.IsEmpty() && theObjectNames.IsBound( aFatherEntry )) {
+ aCommand += "addToStudyInFather( ";
+ aCommand += theObjectNames( aFatherEntry ) + ", ";
+ }
+ else
+ aCommand += "addToStudy( ";
+ if ( anEntryToBadName.IsBound( aEntry ))
+ aCommand += aName + ", \"" + anEntryToBadName( aEntry ) + "\" )";
+ else
+ aCommand += aName + ", \"" + aName + "\" )";
+
+ // bind a command to the last digit of the entry
+ int tag =
+ aEntry.SubString( aEntry.SearchFromEnd(":")+1, aEntry.Length() ).IntegerValue();
+ anEntryToCommandMap.insert( make_pair( tag, aCommand.ToCString() ));
+ }
+
+ // add publishing commands to the script
+ map< int, string >::iterator anEntryToCommand = anEntryToCommandMap.begin();
+ for ( ; anEntryToCommand != anEntryToCommandMap.end(); ++anEntryToCommand ) {
+ anUpdatedScript += (char*)anEntryToCommand->second.c_str();
+ }
+ }
+
+ anUpdatedScript += "\n\tpass\n";
+ aValidScript = true;
+
+ // fill _studyEntry2NameMap and build globalVars
+ TCollection_AsciiString globalVars;
+ _studyEntry2NameMap.Clear();
+ Resource_DataMapIteratorOfDataMapOfAsciiStringAsciiString aStEntryToEntryIt;
+ for (aStEntryToEntryIt.Initialize( aStEntry2Entry );
+ aStEntryToEntryIt.More();
+ aStEntryToEntryIt.Next() )
+ {
+ const TCollection_AsciiString & name = theObjectNames( aStEntryToEntryIt.Value() );
+ _studyEntry2NameMap.Bind (aStEntryToEntryIt.Key(), name );
+ if ( !globalVars.IsEmpty() )
+ globalVars += ", ";
+ globalVars += name;
+ }
+ if ( !globalVars.IsEmpty() ) {
+ globalVars.Insert( 1, "\n\tglobal " );
+ anUpdatedScript.Insert( posToInertGlobalVars, globalVars );
+ }
+
+ return anUpdatedScript;
+}
+
+//=======================================================================
+//function : GetDumpName
+//purpose :
+//=======================================================================
+
+const char* GEOM_Engine::GetDumpName (const char* theStudyEntry) const
+{
+ if ( _studyEntry2NameMap.IsBound( (char*)theStudyEntry ))
+ return _studyEntry2NameMap( (char*)theStudyEntry ).ToCString();
+
+ return NULL;
+}
+
+//=======================================================================
+//function : GetAllDumpNames
+//purpose :
+//=======================================================================
+
+Handle(TColStd_HSequenceOfAsciiString) GEOM_Engine::GetAllDumpNames() const
+{
+ Handle(TColStd_HSequenceOfAsciiString) aRetSeq = new TColStd_HSequenceOfAsciiString;
+
+ Resource_DataMapIteratorOfDataMapOfAsciiStringAsciiString it (_studyEntry2NameMap);
+ for (; it.More(); it.Next()) {
+ aRetSeq->Append(it.Value());
+ }
+
+ return aRetSeq;
+}
+
+
+//===========================================================================
+// Internal functions
+//===========================================================================
+void ProcessFunction(Handle(GEOM_Function)& theFunction,
+ TCollection_AsciiString& theScript,
+ TColStd_MapOfTransient& theProcessed)
+{
+ if(theFunction.IsNull() || theProcessed.Contains(theFunction)) return;
+
+/*
+ TDF_LabelSequence aSeq;
+ theFunction->GetDependency(aSeq);
+ Standard_Integer aLen = aSeq.Length();
+ for(Standard_Integer i = 1; i<= aLen; i++) {
+ Handle(GEOM_Function) aFunction = GEOM_Function::GetFunction(aSeq.Value(i));
+ if(aFunction.IsNull()) continue;
+ ProcessFunction(aFunction, theScript, theProcessed);
+ }
+*/
+
+ TCollection_AsciiString aDescr = theFunction->GetDescription();
+ if(aDescr.Length() == 0) {
+ //cout << "Warning: the function has no description" << endl;
+ return;
+ }
+ //Check if its internal function which doesn't requires dumping
+ if(aDescr == "None") return;
+
+ theScript += "\n\t";
+ theScript += aDescr;
+
+ theProcessed.Add(theFunction);
+ return;
+}
+
+//=============================================================================
+/*!
+ * FindEntries: Returns a sequence of start/end positions of entries in the string
+ */
+//=============================================================================
+Handle(TColStd_HSequenceOfInteger) FindEntries(TCollection_AsciiString& theString)
+{
+ Handle(TColStd_HSequenceOfInteger) aSeq = new TColStd_HSequenceOfInteger;
+ Standard_Integer aLen = theString.Length();
+ Standard_Boolean isFound = Standard_False;
+
+ char* arr = theString.ToCString();
+ Standard_Integer i = 0, j;
+
+ while(i < aLen) {
+ int c = (int)arr[i];
+ j = i+1;
+ if(c >= 48 && c <= 57) { //Is digit?
+
+ isFound = Standard_False;
+ while((j < aLen) && ((c >= 48 && c <= 57) || c == 58) ) { //Check if it is an entry
+ c = (int)arr[j++];
+ if(c == 58) isFound = Standard_True;
+ }
+
+ if(isFound && arr[j-2] != 58) { // last char should be a diggit
+ aSeq->Append(i+1); // +1 because AsciiString starts from 1
+ aSeq->Append(j-1);
+ }
+ }
+
+ i = j;
+ }
+
+ return aSeq;
+}
#define _GEOM_Engine_HXX_
#include "GEOM_Application.hxx"
+#include "GEOM_Object.hxx"
+#include "GEOM_DataMapOfAsciiStringTransient.hxx"
+
#include <Interface_DataMapOfIntegerTransient.hxx>
-#include <TDF_Label.hxx>
+#include <Resource_DataMapOfAsciiStringAsciiString.hxx>
#include <TDocStd_Document.hxx>
-#include "GEOM_Object.hxx"
#include <TColStd_HArray1OfInteger.hxx>
-#include <TopAbs.hxx>
-
-#include "GEOM_DataMapOfAsciiStringTransient.hxx"
+#include <TColStd_HSequenceOfAsciiString.hxx>
class GEOM_Engine
{
void Redo(int theDocID);
//Adds a new sub shape object of the MainShape object
- Handle(GEOM_Object) AddSubShape(Handle(GEOM_Object) theMainShape, Handle(TColStd_HArray1OfInteger) theIndices);
+ Handle(GEOM_Object) AddSubShape(Handle(GEOM_Object) theMainShape,
+ Handle(TColStd_HArray1OfInteger) theIndices,
+ bool isStandaloneOperation = false);
+
+ TCollection_AsciiString DumpPython(int theDocID,
+ Resource_DataMapOfAsciiStringAsciiString& theObjectNames,
+ bool isPublished,
+ bool& aValidScript);
+
+ const char* GetDumpName (const char* theStudyEntry) const;
+
+ Handle(TColStd_HSequenceOfAsciiString) GetAllDumpNames() const;
protected:
static void SetEngine(GEOM_Engine* theEngine);
Interface_DataMapOfIntegerTransient _mapIDDocument;
int _UndoLimit;
GEOM_DataMapOfAsciiStringTransient _objects;
+
+ Resource_DataMapOfAsciiStringAsciiString _studyEntry2NameMap;
};
#endif
* SetDescription
*/
//=============================================================================
-void GEOM_Function::SetDescription(TCollection_AsciiString& theDescription)
+void GEOM_Function::SetDescription(const TCollection_AsciiString& theDescription)
{
TDF_Label aChild = _label.FindChild(DESCRIPTION_LABEL);
- Handle(TDataStd_Comment) aComment = TDataStd_Comment::Set(aChild, TCollection_ExtendedString(theDescription));
+ Handle(TDataStd_Comment) aComment =
+ TDataStd_Comment::Set(aChild, TCollection_ExtendedString(theDescription));
}
//=============================================================================
TCollection_AsciiString GetDescription();
//Sets aPython description of the function
- void SetDescription(TCollection_AsciiString& theDescription);
+ void SetDescription(const TCollection_AsciiString& theDescription);
//Access to arguments
* GetAuxData
*/
//=============================================================================
-char* GEOM_Object::GetAuxData()
+TCollection_AsciiString GEOM_Object::GetAuxData()
{
+ TCollection_AsciiString aData;
+
Handle(TDataStd_Comment) aCommentAttr;
- if(!_label.FindAttribute(TDataStd_Comment::GetID(), aCommentAttr)) return NULL;
-
- TCollection_AsciiString aData(aCommentAttr->Get());
- return aData.ToCString();
+ if (_label.FindAttribute(TDataStd_Comment::GetID(), aCommentAttr))
+ aData = aCommentAttr->Get();
+
+ return aData;
}
void SetAuxData(const char* theData);
//Returns an auxiliary data
- char* GetAuxData();
+ TCollection_AsciiString GetAuxData();
//###########################################################
// Sub shape methods
GEOM_IOperations.cxx \
GEOM_Solver.cxx \
GEOM_SubShapeDriver.cxx \
+ GEOM_PythonDump.cxx \
GEOM_DataMapNodeOfDataMapOfAsciiStringTransient_0.cxx \
GEOM_DataMapIteratorOfDataMapOfAsciiStringTransient_0.cxx \
GEOM_DataMapOfAsciiStringTransient_0.cxx
GEOM_IOperations.hxx \
GEOM_ISubShape.hxx \
GEOM_Solver.hxx \
+ GEOM_PythonDump.hxx \
GEOM_DataMapOfAsciiStringTransient.hxx \
Handle_GEOM_DataMapNodeOfDataMapOfAsciiStringTransient.hxx
# additionnal information to compil and link file
CPPFLAGS += $(OCC_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome $(BOOST_CPPFLAGS)
CXXFLAGS += $(OCC_CXXFLAGS) -I${KERNEL_ROOT_DIR}/include/salome
-LDFLAGS += -L${KERNEL_ROOT_DIR}/lib/salome $(CAS_LDPATH) -lTKCAF
+LDFLAGS += -L${KERNEL_ROOT_DIR}/lib/salome $(CAS_LDPATH) $(CAS_OCAF)
# additional file to be cleaned
#include "GeometryGUI.h"
#include "GEOMBase_aParameterDlg.h"
+#include "GEOM_Client.hxx"
+
//// SALOME Includes
#include "Utils_ORB_INIT.hxx"
#include "Utils_SINGLETON.hxx"
-#include "QAD_Config.h"
-#include "QAD_Desktop.h"
-#include "QAD_RightFrame.h"
-#include "QAD_MessageBox.h"
-#include "QAD_Resource.h"
-#include "QAD_MessageBox.h"
-#include "SALOME_Selection.h"
+#include "SALOME_LifeCycleCORBA.hxx"
#include "GEOM_AssemblyBuilder.h"
#include "GEOM_Actor.h"
-#include "VTKViewer_ViewFrame.h"
#include "VTKViewer_RenderWindowInteractor.h"
+#include "VTKViewer_ViewModel.h"
+#include "VTKViewer_ViewWindow.h"
#include "OCCViewer_ViewPort3d.h"
-#include "OCCViewer_Viewer3d.h"
-#include "OCCViewer_ViewFrame.h"
+#include "OCCViewer_ViewModel.h"
+#include "OCCViewer_ViewWindow.h"
+#include "SALOME_ListIO.hxx"
#include "SALOME_ListIteratorOfListIO.hxx"
#include "GEOM_AISTrihedron.hxx"
-#include "SALOMEGUI_ImportOperation.h"
-#include "SALOMEGUI_NameDlg.h"
+
+#include "SUIT_Session.h"
+#include "SUIT_ViewWindow.h"
+#include "SUIT_MessageBox.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_Study.h"
// // Open CASCADE Includes
#include <BRep_Tool.hxx>
using namespace std;
+#include "SALOMEDSClient.hxx"
+#include "SALOMEDS_SObject.hxx"
+#include "SALOMEDS_Study.hxx"
+
+
//=======================================================================
// function : GEOMBase()
// purpose : Constructor
if(IOR.stripWhiteSpace().isEmpty())
return result;
- CORBA::Object_var obj = GeometryGUI::GetORB()->string_to_object((char*)(IOR.latin1()));
+ CORBA::Object_var obj = SalomeApp_Application::orb()->string_to_object((char*)(IOR.latin1()));
if(CORBA::is_nil(obj))
return result;
GEOM::GEOM_Object_var GeomObject = GEOM::GEOM_Object::_narrow( obj );
if (GeomObject->_is_nil())
return result;
-
- result = GeometryGUI::GetGeomGUI()->GetShapeReader().GetShape(GeometryGUI::GetGeomGUI()->GetGeomGen(), GeomObject);
+
+ result = GEOM_Client().GetShape(GeometryGUI::GetGeomGen(), GeomObject);
return result;
}
// function : GetTopoFromSelection()
// purpose : Define tds from a single selection and retuen true
//=======================================================================
-bool GEOMBase::GetTopoFromSelection(SALOME_Selection *Sel, TopoDS_Shape& tds)
+bool GEOMBase::GetTopoFromSelection(const SALOME_ListIO& aList, TopoDS_Shape& tds)
{
- if(Sel->IObjectCount() != 1)
+ if(aList.Extent() != 1)
return false;
- Handle(SALOME_InteractiveObject) IO = Sel->firstIObject();
+ Handle(SALOME_InteractiveObject) IO = aList.First();
/* case SObject */
if(IO->hasEntry()) {
- SALOMEDS::Study_var aStudy = QAD_Application::getDesktop()->getActiveStudy()->getStudyDocument();
- SALOMEDS::SObject_var obj = aStudy->FindObjectID(IO->getEntry());
- SALOMEDS::GenericAttribute_var anAttr;
- SALOMEDS::AttributeIOR_var anIOR;
- if(!obj->_is_nil()) {
+ SalomeApp_Study* appStudy = dynamic_cast<SalomeApp_Study*>( SUIT_Session::session()->activeApplication()->activeStudy() );
+ if ( !appStudy ) return false;
+ _PTR(Study) aStudy = appStudy->studyDS();
+
+ _PTR(SObject) obj ( aStudy->FindObjectID(IO->getEntry()) );
+ _PTR(GenericAttribute) anAttr;
+ if( obj ) {
if(obj->FindAttribute(anAttr, "AttributeIOR")) {
- anIOR = SALOMEDS::AttributeIOR::_narrow(anAttr);
- tds = GetShapeFromIOR(anIOR->Value());
+ _PTR(AttributeIOR) anIOR ( anAttr );
+ tds = GetShapeFromIOR(anIOR->Value().c_str());
if(tds.IsNull())
return false;
else
}
}
}
-
+
return false;
}
// function : GetNameOfSelectedIObjects()
// purpose : Define the name geom++ or other name of mono or multi sel.
//=======================================================================
-int GEOMBase::GetNameOfSelectedIObjects( SALOME_Selection* theSel,
+int GEOMBase::GetNameOfSelectedIObjects( const SALOME_ListIO& aList,
QString& theName,
const bool theShapesOnly )
{
if ( !theShapesOnly )
- {
- int nbSel = theSel->IObjectCount();
- if ( nbSel == 1 )
{
- Handle(SALOME_InteractiveObject) anIObj = theSel->firstIObject();
- theName = anIObj->getName();
- }
- else
- theName = QObject::tr("%1_objects").arg(nbSel);
+ int nbSel = aList.Extent();
+ if ( nbSel == 1 )
+ {
+ Handle(SALOME_InteractiveObject) anIObj = aList.First();
+ if(anIObj->hasEntry()) {
+ SalomeApp_Study* appStudy = dynamic_cast<SalomeApp_Study*>( SUIT_Session::session()->activeApplication()->activeStudy() );
+ if ( !appStudy ) return nbSel;
+ _PTR(Study) aStudy = appStudy->studyDS();
+
+ _PTR(SObject) obj ( aStudy->FindObjectID(anIObj->getEntry()) );
+
+ _PTR(GenericAttribute) anAttr;
+
+ if ( obj && obj->FindAttribute( anAttr, "AttributeName") )
+ {
+ _PTR(AttributeName) aNameAttr ( anAttr );
+ theName = aNameAttr->Value().c_str();
+ }
+ }
+ }
+ else
+ theName = QObject::tr("%1_objects").arg(nbSel);
- return nbSel;
- }
+ return nbSel;
+ }
else
- {
- QStringList aNames;
- GEOM::ListOfGO anObjs;
- ConvertListOfIOInListOfGO( theSel->StoredIObjects(), anObjs, theShapesOnly );
- if ( anObjs.length() == 1 )
- theName = GetName( anObjs[ 0 ] );
- else
- theName = QString( "%1_objects" ).arg( anObjs.length() );
-
- return anObjs.length();
- }
+ {
+ GEOM::ListOfGO anObjs;
+ ConvertListOfIOInListOfGO( aList, anObjs, theShapesOnly );
+ if ( anObjs.length() == 1 )
+ theName = GetName( anObjs[ 0 ] );
+ else
+ theName = QString( "%1_objects" ).arg( anObjs.length() );
+
+ return anObjs.length();
+ }
}
Handle(GEOM_AISShape) resultShape;
testResult = false;
- SALOMEDS::Study_var aStudy = QAD_Application::getDesktop()->getActiveStudy()->getStudyDocument();
- SALOMEDS::SObject_var anObj = aStudy->FindObjectIOR( IOR );
- if ( anObj->_is_nil() )
+ SalomeApp_Study* appStudy = dynamic_cast<SalomeApp_Study*>( SUIT_Session::session()->activeApplication()->activeStudy() );
+ if ( !appStudy ) return resultShape;
+ _PTR(Study) aStudy = appStudy->studyDS();
+
+ _PTR(SObject) anObj ( aStudy->FindObjectIOR( IOR ) );
+ if ( !anObj )
return resultShape;
+
+ QPtrList<SUIT_ViewWindow> aViewWindowsList = SUIT_Session::session()->activeApplication()->desktop()->windows();
- int nbSf = QAD_Application::getDesktop()->getActiveStudy()->getStudyFramesCount();
- for(int i = 0; i < nbSf; i++) {
- QAD_StudyFrame* sf = QAD_Application::getDesktop()->getActiveStudy()->getStudyFrame(i);
- if(sf->getTypeView() == VIEW_OCC) {
- OCCViewer_Viewer3d* v3d = ((OCCViewer_ViewFrame*)sf->getRightFrame()->getViewFrame())->getViewer();
- Handle (AIS_InteractiveContext) ic = v3d->getAISContext();
-
+ for ( QPtrListIterator<SUIT_ViewWindow> it( aViewWindowsList ); it.current(); ++it ) {
+ if (it.current()->getViewManager()->getType() == OCCViewer_Viewer::Type()) {
+ Handle (AIS_InteractiveContext) ic = ((OCCViewer_Viewer*)it.current()->getViewManager()->getViewModel())->getAISContext();
+
AIS_ListOfInteractive List;
ic->DisplayedObjects(List);
AIS_ListOfInteractive List1;
Handle(GEOM_AISShape) aSh = Handle(GEOM_AISShape)::DownCast(ite.Value());
if(aSh->hasIO()) {
Handle(SALOME_InteractiveObject) GIO = Handle(SALOME_InteractiveObject)::DownCast(aSh->getIO());
- if(GIO->hasEntry() && strcmp(GIO->getEntry(), anObj->GetID()) == 0) {
+ if(GIO->hasEntry() && strcmp(GIO->getEntry(), anObj->GetID().c_str()) == 0) {
if(!onlyInActiveView ||
- sf == QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()) {
+ it.current() == SUIT_Session::session()->activeApplication()->desktop()->activeWindow()) {
testResult = true;
resultShape = aSh;
return resultShape;
{
testResult = false;
- SALOMEDS::Study_var aStudy = QAD_Application::getDesktop()->getActiveStudy()->getStudyDocument();
- SALOMEDS::SObject_var anObj = aStudy->FindObjectIOR( IOR );
- if ( anObj->_is_nil() )
+ SalomeApp_Study* appStudy = dynamic_cast<SalomeApp_Study*>( SUIT_Session::session()->activeApplication()->activeStudy() );
+ if ( !appStudy ) return GEOM_Actor::New();
+ _PTR(Study) aStudy = appStudy->studyDS();
+
+ _PTR(SObject) anObj ( aStudy->FindObjectIOR( IOR ) );
+ if ( !anObj )
return GEOM_Actor::New();
- int nbSf = QAD_Application::getDesktop()->getActiveStudy()->getStudyFramesCount();
- for(int i = 0; i < nbSf; i++) {
- QAD_StudyFrame* sf = QAD_Application::getDesktop()->getActiveStudy()->getStudyFrame(i);
- if(sf->getTypeView() == VIEW_VTK) {
- vtkRenderer* Renderer = ((VTKViewer_ViewFrame*)sf->getRightFrame()->getViewFrame())->getRenderer();
+ QPtrList<SUIT_ViewWindow> aViewWindowsList = SUIT_Session::session()->activeApplication()->desktop()->windows();
+
+ for ( QPtrListIterator<SUIT_ViewWindow> it( aViewWindowsList ); it.current(); ++it ) {
+ if (it.current()->getViewManager()->getType() == VTKViewer_Viewer::Type()) {
+ VTKViewer_ViewWindow* aVTKViewWindow = (VTKViewer_ViewWindow*)it.current();
+ vtkRenderer* Renderer = aVTKViewWindow->getRenderer();
vtkActorCollection* theActors = Renderer->GetActors();
theActors->InitTraversal();
vtkActor *ac = theActors->GetNextActor();
GEOM_Actor* anActor = GEOM_Actor::SafeDownCast(ac);
if(anActor->hasIO()) {
Handle(SALOME_InteractiveObject) GIO = Handle(SALOME_InteractiveObject)::DownCast(anActor->getIO());
- if(GIO->hasEntry() && strcmp(GIO->getEntry(), anObj->GetID()) == 0) {
+ if(GIO->hasEntry() && strcmp(GIO->getEntry(), anObj->GetID().c_str()) == 0) {
if(!onlyInActiveView ||
- sf == QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()) {
+ it.current() == SUIT_Session::session()->activeApplication()->desktop()->activeWindow()) {
testResult = true;
return anActor;
}
if ( theIO.IsNull() || !theIO->hasEntry() )
return Handle(AIS_InteractiveObject)();
- int nbSf = QAD_Application::getDesktop()->getActiveStudy()->getStudyFramesCount();
+ QPtrList<SUIT_ViewWindow> aViewWindowsList = SUIT_Session::session()->activeApplication()->desktop()->windows();
- for ( int i = 0; i < nbSf; i++ )
- {
- QAD_StudyFrame* aStudyFrame =
- QAD_Application::getDesktop()->getActiveStudy()->getStudyFrame( i );
-
- if ( aStudyFrame->getTypeView() != VIEW_OCC )
+ for ( QPtrListIterator<SUIT_ViewWindow> it( aViewWindowsList ); it.current(); ++it ) {
+ if (it.current()->getViewManager()->getType() != OCCViewer_Viewer::Type())
continue;
-
- OCCViewer_Viewer3d* v3d =
- ((OCCViewer_ViewFrame*)aStudyFrame->getRightFrame()->getViewFrame())->getViewer();
-
- Handle(AIS_InteractiveContext) anIC = v3d->getAISContext();
-
+ Handle (AIS_InteractiveContext) anIC = ((OCCViewer_Viewer*)it.current()->getViewManager()->getViewModel())->getAISContext();
+
AIS_ListOfInteractive aList;
anIC->DisplayedObjects( aList );
anIC->ObjectsInCollector( aList );
{
if( isOnlyInActiveView )
{
- if ( aStudyFrame == QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame() )
+ if ( it.current() == SUIT_Session::session()->activeApplication()->desktop()->activeWindow() )
return anIter.Value();
}
else
return res;
}
- int nbSf = QAD_Application::getDesktop()->getActiveStudy()->getStudyFramesCount();
- for(int i = 0; i < nbSf; i++) {
- QAD_StudyFrame* sf = QAD_Application::getDesktop()->getActiveStudy()->getStudyFrame(i);
- if(sf->getTypeView() == VIEW_OCC) {
- OCCViewer_Viewer3d* v3d = ((OCCViewer_ViewFrame*)sf->getRightFrame()->getViewFrame())->getViewer();
- Handle (AIS_InteractiveContext) ic = v3d->getAISContext();
+ QPtrList<SUIT_ViewWindow> aViewWindowsList = SUIT_Session::session()->activeApplication()->desktop()->windows();
+ for ( QPtrListIterator<SUIT_ViewWindow> it( aViewWindowsList ); it.current(); ++it ) {
+ if (it.current()->getViewManager()->getType() == OCCViewer_Viewer::Type()) {
+ Handle (AIS_InteractiveContext) ic = ((OCCViewer_Viewer*)it.current()->getViewManager()->getViewModel())->getAISContext();
+
AIS_ListOfInteractive List;
ic->DisplayedObjects(List);
AIS_ListOfInteractive List1;
{
if(onlyInActiveView)
{
- if(sf == QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame())
+ if(it.current() == SUIT_Session::session()->activeApplication()->desktop()->activeWindow())
{
testResult = true;
return aSh;
/* case SObject */
if(IO->hasEntry()) {
- SALOMEDS::Study_var aStudy = QAD_Application::getDesktop()->getActiveStudy()->getStudyDocument();
- SALOMEDS::SObject_var obj = aStudy->FindObjectID(IO->getEntry());
- SALOMEDS::GenericAttribute_var anAttr;
- SALOMEDS::AttributeIOR_var anIOR;
- if(!obj->_is_nil()) {
+ SalomeApp_Study* appStudy = dynamic_cast<SalomeApp_Study*>( SUIT_Session::session()->activeApplication()->activeStudy() );
+ if ( !appStudy ) return GEOM::GEOM_Object::_nil();
+ _PTR(Study) aStudy = appStudy->studyDS();
+
+ _PTR(SObject) obj ( aStudy->FindObjectID(IO->getEntry()) );
+ _PTR(GenericAttribute) anAttr;
+ if(obj) {
if(obj->FindAttribute(anAttr, "AttributeIOR")) {
- anIOR = SALOMEDS::AttributeIOR::_narrow(anAttr);
- aShape = GeometryGUI::GetGeomGUI()->GetGeomGen()->GetIORFromString(anIOR->Value());
+ _PTR(AttributeIOR) anIOR ( anAttr );
+ aShape = GeometryGUI::GetGeomGen()->GetIORFromString(anIOR->Value().c_str());
if(!CORBA::is_nil(aShape))
testResult = true;
return aShape._retn();
listIOR.length(nbSel);
int j=0;
SALOME_ListIteratorOfListIO It(aList);
+ SalomeApp_Study* appStudy = dynamic_cast<SalomeApp_Study*>( SUIT_Session::session()->activeApplication()->activeStudy() );
+ if ( !appStudy ) return;
+ _PTR(Study) aStudy = appStudy->studyDS();
+
for(int i=0; It.More(); It.Next(), i++) {
Handle(SALOME_InteractiveObject) IObject = It.Value();
if(IObject->hasEntry()) {
- SALOMEDS::Study_var aStudy = QAD_Application::getDesktop()->getActiveStudy()->getStudyDocument();
- SALOMEDS::SObject_var obj = aStudy->FindObjectID(IObject->getEntry());
- SALOMEDS::GenericAttribute_var anAttr;
- SALOMEDS::AttributeIOR_var anIOR;
- if(!obj->_is_nil() && obj->FindAttribute(anAttr, "AttributeIOR")) {
- anIOR = SALOMEDS::AttributeIOR::_narrow(anAttr);
- ORB_INIT &init = *SINGLETON_<ORB_INIT>::Instance();
- CORBA::ORB_var& _orb = init.orb();
- CORBA::String_var theValue = anIOR->Value();
- CORBA::Object_var theObj = _orb->string_to_object(theValue);
+ _PTR(SObject) obj ( aStudy->FindObjectID(IObject->getEntry()) );
+ _PTR(GenericAttribute) anAttr;
+ if(obj && obj->FindAttribute(anAttr, "AttributeIOR")) {
+ _PTR(AttributeIOR) anIOR (anAttr);
+ CORBA::Object_var theObj = dynamic_cast<SALOMEDS_Study*>(aStudy.get())->ConvertIORToObject(anIOR->Value());
if(theObj->_is_a("IDL:GEOM/GEOM_Object:1.0")) {
- listIOR[j] = CORBA::string_dup(theValue);
+ listIOR[j] = CORBA::string_dup(anIOR->Value().c_str());
j++;
}
}
if ( !theIO.IsNull() )
{
const char* anEntry = theIO->getEntry();
- SALOMEDS::SObject_var aSObj = QAD_Application::getDesktop()->getActiveStudy()->getStudyDocument()->FindObjectID( anEntry );
- if ( !CORBA::is_nil( aSObj ) )
+
+ SalomeApp_Study* appStudy = dynamic_cast<SalomeApp_Study*>( SUIT_Session::session()->activeApplication()->activeStudy() );
+ if ( !appStudy ) return GEOM::GEOM_Object::_nil();
+ _PTR(Study) aStudy = appStudy->studyDS();
+
+ _PTR(SObject) aSObj ( aStudy->FindObjectID( anEntry ) );
+
+ if ( aSObj )
{
- aReturnObject = GEOM::GEOM_Object::_narrow( aSObj->GetObject() );
+ aReturnObject = GEOM::GEOM_Object::_narrow( dynamic_cast<SALOMEDS_SObject*>(aSObj.get())->GetObject() );
theResult = !CORBA::is_nil( aReturnObject );
}
}
int nbSel = theList.Extent();
theListGO.length( nbSel );
SALOME_ListIteratorOfListIO anIter( theList );
- SALOMEDS::Study_var aStudy = QAD_Application::getDesktop()->getActiveStudy()->getStudyDocument();
+
+ SalomeApp_Study* appStudy = dynamic_cast<SalomeApp_Study*>( SUIT_Session::session()->activeApplication()->activeStudy() );
+ if ( !appStudy ) return;
+ _PTR(Study) aStudy = appStudy->studyDS();
+
int j = 0;
for ( int i=0; anIter.More(); anIter.Next(), i++ )
{
Handle(SALOME_InteractiveObject) anIObj = anIter.Value();
- SALOMEDS::SObject_var aSObj = aStudy->FindObjectID( anIObj->getEntry() );
+ _PTR(SObject) aSObj ( aStudy->FindObjectID( anIObj->getEntry() ) );
- if ( !aSObj->_is_nil() )
+ if ( aSObj )
{
- GEOM::GEOM_Object_var aGeomObj = GEOM::GEOM_Object::_narrow(aSObj->GetObject());
+ GEOM::GEOM_Object_var aGeomObj =
+ GEOM::GEOM_Object::_narrow(dynamic_cast<SALOMEDS_SObject*>(aSObj.get())->GetObject());
if ( !CORBA::is_nil( aGeomObj ) && ( !theShapesOnly || IsShape( aGeomObj ) ) )
theListGO[ j++ ] = aGeomObj;
}
//=================================================================================
bool GEOMBase::CreateArrowForLinearEdge(const TopoDS_Shape& tds, TopoDS_Shape& ArrowCone)
{
- if(QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getTypeView() != VIEW_OCC || tds.ShapeType() != TopAbs_EDGE)
+ if(SUIT_Session::session()->activeApplication()->desktop()->activeWindow()->getViewManager()->getType()
+ != OCCViewer_Viewer::Type() || tds.ShapeType() != TopAbs_EDGE)
return false;
- OCCViewer_ViewPort* vp = ((OCCViewer_ViewFrame*)QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getRightFrame()->getViewFrame())->getViewPort();
- Handle( V3d_View) view3d = ((OCCViewer_ViewPort3d*)vp)->getView();
+ OCCViewer_ViewPort3d* vp3d = ((OCCViewer_ViewWindow*)SUIT_Session::session()->activeApplication()->desktop()->activeWindow())->getViewPort();
+ Handle( V3d_View) view3d = vp3d->getView();
Standard_Real Width, Height;
view3d->Size(Width, Height);
const Standard_Real aHeight = (Width + Height) / 50.0;
//=======================================================================
double GEOMBase::Parameter(Standard_Boolean& res, const char* aValue1, const char* aTitle1, const char* aTitle, const double bottom, const double top, const int decimals)
{
- GEOMBase_aParameterDlg * Dialog = new GEOMBase_aParameterDlg(aValue1, aTitle1, QAD_Application::getDesktop(), aTitle, TRUE, 0, bottom, top, decimals);
+ GEOMBase_aParameterDlg * Dialog = new GEOMBase_aParameterDlg(aValue1, aTitle1, SUIT_Session::session()->activeApplication()->desktop(),
+ aTitle, TRUE, 0, bottom, top, decimals);
int r = Dialog->exec();
float X = 0.0;
if(r == QDialog::Accepted) {
// : The selection is changed. Dialog box will receive the
// : corresponding signal to manage this event.
//=======================================================================
-bool GEOMBase::SelectionByNameInDialogs(QWidget* aWidget, const QString& objectUserName, SALOME_Selection* Sel)
+bool GEOMBase::SelectionByNameInDialogs(QWidget* aWidget, const QString& objectUserName, const SALOME_ListIO& aList)
{
/* Find SObject with name in component GEOM */
- SALOMEDS::Study_var ST = QAD_Application::getDesktop()->getActiveStudy()->getStudyDocument();
- SALOMEDS::Study::ListOfSObject_var listSO = new SALOMEDS::Study::ListOfSObject;
- listSO = ST->FindObjectByName(objectUserName, "GEOM");
+ SalomeApp_Study* appStudy = dynamic_cast<SalomeApp_Study*>( SUIT_Session::session()->activeApplication()->activeStudy() );
+ if ( !appStudy ) return false;
+ _PTR(Study) ST = appStudy->studyDS();
+
+ std::vector<_PTR(SObject)> listSO;
+ listSO = ST->FindObjectByName(objectUserName.latin1(), "GEOM");
- if(listSO->length() < 1) {
+ if(listSO.size() < 1) {
const QString caption = QObject::tr("GEOM_WRN_WARNING");
const QString text = QObject::tr("GEOM_NAME_INCORRECT");
const QString button0 = QObject::tr("GEOM_BUT_OK");
- QAD_MessageBox::error1(aWidget, caption, text, button0);
+ SUIT_MessageBox::error1(aWidget, caption, text, button0);
return false;
}
/* More than one object with same name */
- if(listSO->length() > 1) {
+ if(listSO.size() > 1) {
const QString caption = QObject::tr("GEOM_WRN_WARNING");
const QString text = QObject::tr("GEOM_IDENTICAL_NAMES_SELECT_BY_MOUSE");
const QString button0 = QObject::tr("GEOM_BUT_OK") ;
- QAD_MessageBox::error1(aWidget, caption, text, button0) ;
+ SUIT_MessageBox::error1(aWidget, caption, text, button0) ;
+ listSO.clear();
return false;
}
- SALOMEDS::SObject_var theObj = listSO[0];
+ _PTR(SObject) theObj ( listSO[0] );
/* Create a SALOME_InteractiveObject with a SALOME::SObject */
- Standard_CString anEntry = theObj->GetID();
char* aCopyobjectUserName = CORBA::string_dup(objectUserName);
- Handle(SALOME_InteractiveObject) SI = new SALOME_InteractiveObject(anEntry, "GEOM", aCopyobjectUserName);
+ Handle(SALOME_InteractiveObject) SI = new SALOME_InteractiveObject(theObj->GetID().c_str(), "GEOM", aCopyobjectUserName);
delete(aCopyobjectUserName);
/* Add as a selected object */
/* Clear any previous selection : */
/* Warning the LineEdit is purged because of signal currentSelectionChanged ! */
- Sel->ClearIObjects();
- Sel->AddIObject(SI);
+ // Sel->ClearIObjects(); //mzn
+ // Sel->AddIObject(SI); //mzn
return true;
}
bool GEOMBase::DefineDlgPosition(QWidget* aDlg, int& x, int& y)
{
/* Here the position is on the bottom right corner - 10 */
- QAD_Desktop* PP = QAD_Application::getDesktop();
+ SUIT_Desktop* PP = SUIT_Session::session()->activeApplication()->desktop();
x = abs(PP->x() + PP->size().width() - aDlg->size().width() - 10);
y = abs(PP->y() + PP->size().height() - aDlg->size().height() - 10);
return true;
//=======================================================================
QString GEOMBase::GetDefaultName(const QString& theOperation)
{
- SALOMEDS::Study_var aStudy = QAD_Application::getDesktop()->getActiveStudy()->getStudyDocument();
- int aNumber = 0;
- QString aName;
- SALOMEDS::SObject_var obj;
+ QString aName = "";
+
+ SalomeApp_Study* appStudy = dynamic_cast<SalomeApp_Study*>( SUIT_Session::session()->activeApplication()->activeStudy() );
+ if ( !appStudy ) return aName;
+ _PTR(Study) aStudy = appStudy->studyDS();
+ int aNumber = 0;
+ _PTR(SObject) obj;
do
{
aName = theOperation+"_"+QString::number(++aNumber);
- obj = aStudy->FindObject(aName);
+ obj = aStudy->FindObject(aName.latin1());
}
- while (!obj->_is_nil());
-
+ while (obj);
+
return aName;
}
if (!aComment.isEmpty())
aText.append("\n" + QString(theComment));
- QAD_MessageBox::error1( QAD_Application::getDesktop(), QObject::tr( "GEOM_ERROR" ),
- QObject::tr("GEOM_PRP_ABORT") + aText, "OK" );
+ SUIT_MessageBox::error1( SUIT_Session::session()->activeApplication()->desktop(), QObject::tr( "GEOM_ERROR" ),
+ QObject::tr("GEOM_PRP_ABORT") + aText, "OK" );
}
if ( theIOR == NULL || strlen( theIOR ) == 0 )
return anObject._retn(); // returning nil object
- anObject = GEOM::GEOM_Object::_narrow( GeometryGUI::GetORB()->string_to_object( theIOR ) );
+ anObject = GEOM::GEOM_Object::_narrow( SalomeApp_Application::orb()->string_to_object( theIOR ) );
return anObject._retn();
}
if ( CORBA::is_nil( theObject ) )
return NULL;
- return GeometryGUI::GetORB()->object_to_string( theObject );
+ return SalomeApp_Application::orb()->object_to_string( theObject );
}
//=======================================================================
{
if ( !CORBA::is_nil( theObject ) )
{
- TopoDS_Shape aTopoDSShape = GEOM_Client().GetShape( GeometryGUI::GetGeomGUI()->GetGeomGen(), theObject );
+ TopoDS_Shape aTopoDSShape = GEOM_Client().GetShape( GeometryGUI::GetGeomGen(), theObject );
if ( !aTopoDSShape.IsNull() && ( theType == TopAbs_SHAPE || theType == aTopoDSShape.ShapeType() ) )
{
theShape = aTopoDSShape;
//=======================================================================
const char* GEOMBase::GetName( GEOM::GEOM_Object_ptr theObj )
{
- QAD_Study* aStudy = QAD_Application::getDesktop()->getActiveStudy();
+ SalomeApp_Study* appStudy = dynamic_cast<SalomeApp_Study*>( SUIT_Session::session()->activeApplication()->activeStudy() );
- if ( aStudy )
+ if ( appStudy )
{
- string anIOR = GeometryGUI::GetORB()->object_to_string( theObj );
+ string anIOR = SalomeApp_Application::orb()->object_to_string( theObj );
if ( anIOR != "" )
{
- SALOMEDS::SObject_var aSObj = aStudy->getStudyDocument()->FindObjectIOR( anIOR.c_str() );
- SALOMEDS::GenericAttribute_var anAttr;
+ _PTR(SObject) aSObj ( appStudy->studyDS()->FindObjectIOR( anIOR ) );
+
+ _PTR(GenericAttribute) anAttr;
- if ( !aSObj->_is_nil() && aSObj->FindAttribute( anAttr, "AttributeName") )
+ if ( aSObj && aSObj->FindAttribute( anAttr, "AttributeName") )
{
- SALOMEDS::AttributeName_var aNameAttr = SALOMEDS::AttributeName::_narrow( anAttr );
- return aNameAttr->Value();
+ _PTR(AttributeName) aNameAttr ( anAttr );
+ return aNameAttr->Value().c_str();
}
}
}
#include <qstring.h>
class GEOM_Actor;
-class SALOME_Selection;
class SALOME_ListIO;
-class QAD_Desktop;
class TColStd_MapOfInteger;
class QWidget;
static int GetIndex(const TopoDS_Shape& subshape, const TopoDS_Shape& shape, int ShapeType);
static TopoDS_Shape GetShapeFromIOR(QString IOR);
static bool GetShape( const GEOM::GEOM_Object_ptr&, TopoDS_Shape&, const TopAbs_ShapeEnum = TopAbs_SHAPE );
- static bool GetTopoFromSelection(SALOME_Selection *Sel, TopoDS_Shape& tds);
- static int GetNameOfSelectedIObjects(SALOME_Selection* Sel, QString& aName, const bool theShapesOnly = false );
+ static bool GetTopoFromSelection(const SALOME_ListIO& aList, TopoDS_Shape& tds);
+ static int GetNameOfSelectedIObjects(const SALOME_ListIO& aList, QString& aName, const bool theShapesOnly = false );
static bool GetShapeTypeString(const TopoDS_Shape& aShape, Standard_CString& aTypeString);
/* Convertions */
static bool CreateArrowForLinearEdge(const TopoDS_Shape& tds, TopoDS_Shape& ArrowCone);
/* Generates default names */
- static bool SelectionByNameInDialogs(QWidget* aWidget, const QString& userObjectName, SALOME_Selection *Sel);
+ static bool SelectionByNameInDialogs(QWidget* aWidget, const QString& userObjectName, const SALOME_ListIO& aList);
/* Shows message box with error code */
static bool DefineDlgPosition(QWidget* aDlg, int& x, int& y);
// Module : GEOM
// $Header$
+#include <SUIT_ViewModel.h>
+
#include "GEOMBase_Helper.h"
#include "GEOMBase.h"
#include "GEOM_Operation.h"
#include "GeometryGUI.h"
#include "GEOM_Displayer.h"
#include "GEOMImpl_Types.hxx"
-#include "QAD_Study.h"
-#include "QAD_Application.h"
-#include "QAD_Desktop.h"
-#include "QAD_MessageBox.h"
-#include "QAD_ViewFrame.h"
-#include "QAD_RightFrame.h"
-#include "QAD_WaitCursor.h"
-#include "SALOMEGUI_QtCatchCorbaException.hxx"
+
+#include <SUIT_Session.h>
+#include <SUIT_ViewWindow.h>
+#include <SUIT_MessageBox.h>
+#include <SUIT_OverrideCursor.h>
+
+#include <SalomeApp_Module.h>
+#include <SalomeApp_Application.h>
+#include <SalomeApp_Study.h>
+#include <SalomeApp_SelectionMgr.h>
+#include <SalomeApp_Tools.h>
+#include <SalomeApp_DataModel.h>
+#include <SalomeApp_Module.h>
+
+#include <OCCViewer_ViewModel.h>
+#include <VTKViewer_ViewModel.h>
+
+#include <OB_Browser.h>
#include <TColStd_MapOfInteger.hxx>
#include <TCollection_AsciiString.hxx>
using namespace std;
+#include <SALOMEDSClient.hxx>
+#include <SALOMEDS_SObject.hxx>
+#include <SALOMEDS_Study.hxx>
+
+
+
+
//================================================================
// Function : getActiveView
-// Purpose : Get active study frame, returns 0 if no open study frame
+// Purpose : Get active view window, returns 0 if no open study frame
//================================================================
-static QAD_ViewFrame* getActiveView()
+static SUIT_ViewWindow* getActiveView()
{
- QAD_Study* activeStudy = QAD_Application::getDesktop()->getActiveStudy();
- if ( activeStudy ) {
- QAD_StudyFrame* sf = activeStudy->getActiveStudyFrame();
- if ( sf ) {
- return sf->getRightFrame()->getViewFrame();
- }
- }
+ SUIT_Study* activeStudy = SUIT_Session::session()->activeApplication()->activeStudy();
+ if ( activeStudy )
+ return SUIT_Session::session()->activeApplication()->desktop()->activeWindow();
+
return 0;
}
//================================================================
GEOM::GEOM_Gen_ptr GEOMBase_Helper::getGeomEngine()
{
- Engines::Component_var comp = QAD_Application::getDesktop()->getEngine("FactoryServer", "GEOM");
- return GEOM::GEOM_Gen::_narrow(comp);
+ return GeometryGUI::GetGeomGen();
}
//================================================================
// Purpose :
//================================================================
GEOMBase_Helper::GEOMBase_Helper()
- : myViewFrame( 0 ), myDisplayer( 0 ), myCommand( 0 ), isPreview( false )
+ : myViewWindow( 0 ), myDisplayer( 0 ), myCommand( 0 ), isPreview( false )
{
}
//================================================================
GEOMBase_Helper::~GEOMBase_Helper()
{
- if ( !QAD_Application::getDesktop() )
+ if ( !SUIT_Session::session()->activeApplication()->desktop() )
return;
if ( myPreview.size() )
}
if ( withChildren ) {
- QAD_Study* aDoc = getStudy();
- if ( aDoc && !CORBA::is_nil( aDoc->getStudyDocument() ) ) {
- SALOMEDS::Study_var aStudy = aDoc->getStudyDocument();
- SALOMEDS::SObject_var aSObj = aStudy->FindObjectIOR( GeometryGUI::GetORB()->object_to_string( object ) );
- if ( !CORBA::is_nil( aSObj ) ) {
- SALOMEDS::ChildIterator_var anIt = aStudy->NewChildIterator( aSObj );
+ SalomeApp_Study* aDoc = getStudy();
+ if ( aDoc && aDoc->studyDS() ) {
+ _PTR(Study) aStudy = aDoc->studyDS();
+ _PTR(SObject) aSObj ( aStudy->FindObjectIOR( SalomeApp_Application::orb()->object_to_string( object ) ) );
+ if ( aSObj ) {
+ _PTR(ChildIterator) anIt ( aStudy->NewChildIterator( aSObj ) );
for ( anIt->InitEx( true ); anIt->More(); anIt->Next() ) {
- GEOM::GEOM_Object_var aChild = GEOM::GEOM_Object::_narrow( anIt->Value()->GetObject() );
+ GEOM::GEOM_Object_var aChild = GEOM::GEOM_Object::_narrow( dynamic_cast<SALOMEDS_SObject*>(anIt->Value().get())->GetObject() );
if ( !CORBA::is_nil( aChild ) ) {
if ( !aChild->_is_nil() ) {
string entry = getEntry( aChild );
erasePreview( false );
try {
- QAD_WaitCursor wc;
+ SUIT_OverrideCursor wc;
ObjectList objects;
if ( !execute( objects ) || !getOperation()->IsDone() ) {
- wc.stop();
+ wc.suspend();
}
else {
for ( ObjectList::iterator it = objects.begin(); it != objects.end(); ++it )
}
}
catch( const SALOME::SALOME_Exception& e ) {
- QtCatchCorbaException( e );
+ SalomeApp_Tools::QtCatchCorbaException( e );
}
isPreview = false;
getDisplayer()->SetToActivate( activate );
// Make a reference to GEOM_Object
- getDisplayer()->SetName( GeometryGUI::GetORB()->object_to_string( object ) );
+ getDisplayer()->SetName( SalomeApp_Application::orb()->object_to_string( object ) );
// Build prs
SALOME_Prs* aPrs = getDisplayer()->BuildPrs( object );
erasePreview( false );
// remember current view frame to make correct erase preview later
- myViewFrame = getActiveView();
+ myViewWindow = getActiveView();
- if ( myViewFrame == 0 )
+ if ( myViewWindow == 0 )
return;
// Display prs
- ( (SALOME_View*)myViewFrame )->Display( prs );
-
+ SUIT_ViewManager* aViewManager = myViewWindow->getViewManager();
+ if ( aViewManager->getType() == OCCViewer_Viewer::Type() ||
+ aViewManager->getType() == VTKViewer_Viewer::Type() )
+ {
+ SUIT_ViewModel* aViewModel = aViewManager->getViewModel();
+ SALOME_View* aView = dynamic_cast<SALOME_View*>(aViewModel);
+ if (aView)
+ aView->Display( prs );
+ }
+
// Add prs to the preview list
myPreview.push_back( (SALOME_Prs*)prs );
// Update viewer
if ( update )
- myViewFrame->Repaint();
+ getDisplayer()->UpdateViewer();
}
//================================================================
void GEOMBase_Helper::erasePreview( const bool update )
{
// check view frame where the preview was displayed
- bool vfOK = checkViewFrame() && myViewFrame;
+ bool vfOK = checkViewWindow() && myViewWindow;
// Iterate through presentations and delete them
for ( PrsList::iterator anIter = myPreview.begin(); anIter != myPreview.end(); ++anIter ) {
if ( vfOK )
- ( (SALOME_View*)myViewFrame )->Erase( *anIter, true );
+ {
+ SUIT_ViewManager* aViewManager = myViewWindow->getViewManager();
+ if ( aViewManager->getType() == OCCViewer_Viewer::Type() ||
+ aViewManager->getType() == VTKViewer_Viewer::Type() )
+ {
+ SUIT_ViewModel* aViewModel = aViewManager->getViewModel();
+ SALOME_View* aView = dynamic_cast<SALOME_View*>(aViewModel);
+ if (aView)
+ aView->Erase( *anIter, true );
+ }
+ }
delete *anIter;
}
myPreview.clear();
//================================================================
void GEOMBase_Helper::activate( const int theType )
{
- SALOMEDS::Study_var aStudy = getStudy()->getStudyDocument();
- SALOMEDS::SComponent_var aGeom = aStudy->FindComponent( "GEOM" );
- if ( aGeom->_is_nil() )
+ if (!getStudy()) return;
+ _PTR(Study) aStudy = getStudy()->studyDS();
+ _PTR(SComponent) aGeom ( aStudy->FindComponent( "GEOM" ) );
+ if ( !aGeom )
return;
SALOME_ListIO aList;
- SALOMEDS::ChildIterator_var anIter = aStudy->NewChildIterator( aGeom );
+ _PTR(ChildIterator) anIter ( aStudy->NewChildIterator( aGeom ) );
for ( ; anIter->More(); anIter->Next() )
{
- SALOMEDS::SObject_var aSO = anIter->Value();
- if ( !aSO->_is_nil() )
+ _PTR(SObject) aSO ( anIter->Value() );
+ if ( aSO )
{
- SALOMEDS::SObject_var aRefSO;
+ _PTR(SObject) aRefSO;
if ( !aSO->ReferencedObject( aRefSO ) )
{
- GEOM::GEOM_Object_var anObj = GEOM::GEOM_Object::_narrow( aSO->GetObject() );
+ GEOM::GEOM_Object_var anObj = GEOM::GEOM_Object::_narrow( dynamic_cast<SALOMEDS_SObject*>(aSO.get())->GetObject() );
if ( !anObj->_is_nil() && anObj->GetType() == theType )
- aList.Append( new SALOME_InteractiveObject( aSO->GetID(), "GEOM", aSO->GetName()) );
+ aList.Append( new SALOME_InteractiveObject( aSO->GetID().c_str(), "GEOM", aSO->GetName().c_str()) );
}
}
}
- myDisplayer->LocalSelection( aList, 0 );
+ getDisplayer()->LocalSelection( aList, 0 );
}
//================================================================
aEntry.c_str(), "GEOM", strdup( GEOMBase::GetName( anObj ) ) ) );
}
- myDisplayer->LocalSelection( aListOfIO, theMode );
+ getDisplayer()->LocalSelection( aListOfIO, theMode );
}
//================================================================
{
// If object is null local selection for all objects is activated
if ( obj->_is_nil() ) {
- myDisplayer->LocalSelection( Handle(SALOME_InteractiveObject)(), mode );
+ getDisplayer()->LocalSelection( Handle(SALOME_InteractiveObject)(), mode );
return;
}
//================================================================
void GEOMBase_Helper::globalSelection( const int theMode, const bool update )
{
- myDisplayer->GlobalSelection( theMode, update );
+ getDisplayer()->GlobalSelection( theMode, update );
}
//================================================================
void GEOMBase_Helper::globalSelection( const TColStd_MapOfInteger& theModes,
const bool update )
{
- myDisplayer->GlobalSelection( theModes, update );
+ getDisplayer()->GlobalSelection( theModes, update );
}
//================================================================
if ( !hasCommand() )
return;
- SALOMEDS::Study_var aStudy = getStudy()->getStudyDocument();
- if ( aStudy->_is_nil() || theObj->_is_nil() )
+ _PTR(Study) aStudy = getStudy()->studyDS();
+ if ( !aStudy || theObj->_is_nil() )
return;
GEOM::GEOM_Object_ptr aFatherObj = getFather( theObj );
- GeometryGUI::GetGeomGUI()->GetGeomGen()->AddInStudy( aStudy, theObj, theName, aFatherObj );
+ getGeomEngine()->AddInStudy( dynamic_cast<SALOMEDS_Study*>(aStudy.get())->GetStudy(), theObj, theName, aFatherObj );
}
//================================================================
//================================================================
void GEOMBase_Helper::updateObjBrowser() const
{
- getStudy()->updateObjBrowser();
+ SalomeApp_Application* app = dynamic_cast<SalomeApp_Application*>(SUIT_Session::session()->activeApplication());
+ if (app) {
+ CAM_Module* module = app->module( "Geometry" );
+ SalomeApp_Module* appMod = dynamic_cast<SalomeApp_Module*>( module );
+ if ( appMod ) {
+ appMod->updateObjBrowser( true );
+ }
+ }
}
//================================================================
{
int anId = -1;
if ( getStudy() )
- anId = getStudy()->getStudyId();
+ anId = getStudy()->id();
return anId;
}
// Purpose : Returns the active study. It is recommended to use
// this method instead of direct desktop->getActiveStudy() calls
//================================================================
-QAD_Study* GEOMBase_Helper::getStudy() const
+SalomeApp_Study* GEOMBase_Helper::getStudy() const
{
- // Probably, it would be better to rememeber the active study in helper...
- return QAD_Application::getDesktop()->getActiveStudy();
+ SUIT_Desktop* aDesktop = getDesktop();
+ if (!aDesktop)
+ return 0;
+
+ QPtrList<SUIT_Application> anAppList = SUIT_Session::session()->applications();
+
+ SUIT_Application* anApp = 0;
+ for ( QPtrListIterator<SUIT_Application> it( anAppList ); it.current() ; ++it )
+ {
+ anApp = it.current();
+ if ( anApp->desktop() == aDesktop )
+ break;
+ }
+
+ return dynamic_cast<SalomeApp_Study*>(anApp->activeStudy());
}
//================================================================
//================================================================
char* GEOMBase_Helper::getEntry( GEOM::GEOM_Object_ptr object ) const
{
- QAD_Study* study = getStudy();
+ SalomeApp_Study* study = getStudy();
if ( study ) {
string IOR = GEOMBase::GetIORFromObject( object);
if ( IOR != "" ) {
- SALOMEDS::SObject_var SO = study->getStudyDocument()->FindObjectIOR( IOR.c_str() );
- if ( !SO->_is_nil() ) {
- return SO->GetID();
+ _PTR(SObject) SO ( study->studyDS()->FindObjectIOR( IOR ) );
+ if ( SO ) {
+ return TCollection_AsciiString((char*)SO->GetID().c_str()).ToCString();
}
}
}
GEOM_Displayer* GEOMBase_Helper::getDisplayer()
{
if ( !myDisplayer )
- myDisplayer = new GEOM_Displayer();
+ myDisplayer = new GEOM_Displayer( getStudy() );
return myDisplayer;
}
if ( CORBA::is_nil( theObj ) )
return;
- string IOR = GeometryGUI::GetORB()->object_to_string( theObj );
+ string IOR = SalomeApp_Application::orb()->object_to_string( theObj );
TCollection_AsciiString asciiIOR( strdup( IOR.c_str() ) );
- GeometryGUI::GetGeomGUI()->GetShapeReader().RemoveShapeFromBuffer( asciiIOR );
+ GEOM_Client().RemoveShapeFromBuffer( asciiIOR );
- if ( !getStudy() || CORBA::is_nil( getStudy()->getStudyDocument() ) )
+ if ( !getStudy() || !getStudy()->studyDS() )
return;
- SALOMEDS::Study_var aStudy = getStudy()->getStudyDocument();
- SALOMEDS::SObject_var aSObj = aStudy->FindObjectIOR( IOR.c_str() );
- if ( CORBA::is_nil( aSObj ) )
+ _PTR(Study) aStudy = getStudy()->studyDS();
+ _PTR(SObject) aSObj ( aStudy->FindObjectIOR( IOR ) );
+ if ( !aSObj )
return;
- SALOMEDS::ChildIterator_var anIt = aStudy->NewChildIterator( aSObj );
+ _PTR(ChildIterator) anIt ( aStudy->NewChildIterator( aSObj ) );
for ( anIt->InitEx( true ); anIt->More(); anIt->Next() ) {
- SALOMEDS::GenericAttribute_var anAttr;
+ _PTR(GenericAttribute) anAttr;
if ( anIt->Value()->FindAttribute(anAttr, "AttributeIOR") ) {
- SALOMEDS::AttributeIOR_var anIOR = SALOMEDS::AttributeIOR::_narrow(anAttr);
- TCollection_AsciiString asciiIOR( anIOR->Value() );
- GeometryGUI::GetGeomGUI()->GetShapeReader().RemoveShapeFromBuffer( asciiIOR );
+ _PTR(AttributeIOR) anIOR ( anAttr );
+ TCollection_AsciiString asciiIOR( (char*)anIOR->Value().c_str() );
+ GEOM_Client().RemoveShapeFromBuffer( asciiIOR );
}
}
}
GEOM::GEOM_IOperations_var anOp = GEOM::GEOM_IOperations::_narrow( getOperation() );
if ( !anOp->_is_nil() ) {
- myCommand = new GEOM_Operation( getStudy(), anOp.in() );
+ myCommand = new GEOM_Operation( SUIT_Session::session()->activeApplication(), anOp.in() );
myCommand->start();
res = true;
}
if ( !hasCommand() )
return false;
- myCommand->finish();
+ myCommand->commit();
myCommand = 0;
return true;
//================================================================
-// Function : checkViewFrame
+// Function : checkViewWindow
// Purpose :
//================================================================
-bool GEOMBase_Helper::checkViewFrame()
+bool GEOMBase_Helper::checkViewWindow()
{
- if ( myViewFrame ){
- QListIterator<QAD_Study> it( QAD_Application::getDesktop()->getActiveApp()->getStudies() );
- for ( ; it.current(); ++it ) {
- QListIterator<QAD_StudyFrame> it1( it.current()->getStudyFrames() );
- for ( ; it1.current(); ++it1 ) {
- if ( myViewFrame == it1.current()->getRightFrame()->getViewFrame() )
+ if ( myViewWindow ){
+ QPtrList<SUIT_ViewWindow> aViewWindowsList = SUIT_Session::session()->activeApplication()->desktop()->windows();
+ for ( QPtrListIterator<SUIT_ViewWindow> it( aViewWindowsList ); it.current(); ++it )
+ {
+ if ( myViewWindow == it.current() )
return true;
}
- }
}
- myViewFrame = 0;
+ myViewWindow = 0;
return false;
}
//================================================================
bool GEOMBase_Helper::onAccept( const bool publish, const bool useTransaction )
{
- QAD_Study* aDoc = QAD_Application::getDesktop()->getActiveStudy();
- SALOMEDS::Study_var aStudy = aDoc->getStudyDocument();
-
- bool aLocked = aStudy->GetProperties()->IsLocked();
+ SalomeApp_Study* appStudy = dynamic_cast<SalomeApp_Study*>( SUIT_Session::session()->activeApplication()->activeStudy() );
+ if ( !appStudy ) return false;
+ _PTR(Study) aStudy = appStudy->studyDS();
+
+ bool aLocked = (_PTR(AttributeStudyProperties) (aStudy->GetProperties()))->IsLocked();
if ( aLocked ) {
MESSAGE("GEOMBase_Helper::onAccept - ActiveStudy is locked");
- QAD_MessageBox::warn1 ( (QWidget*)QAD_Application::getDesktop(),
+ SUIT_MessageBox::warn1 ( (QWidget*)SUIT_Session::session()->activeApplication()->desktop(),
QObject::tr("WRN_WARNING"),
QObject::tr("WRN_STUDY_LOCKED"),
QObject::tr("BUT_OK") );
try {
if ( ( !publish && !useTransaction ) || openCommand() ) {
- QAD_WaitCursor wc;
- QAD_Application::getDesktop()->putInfo( "" );
+ SUIT_OverrideCursor wc;
+ SUIT_Session::session()->activeApplication()->putInfo( "" );
ObjectList objects;
if ( !execute( objects ) || !getOperation()->IsDone() ) {
- wc.stop();
+ wc.suspend();
abortCommand();
showError();
}
if ( nbObjs ) {
commitCommand();
updateObjBrowser();
- QAD_Application::getDesktop()->putInfo( QObject::tr("GEOM_PRP_DONE") );
+ SUIT_Session::session()->activeApplication()->putInfo( QObject::tr("GEOM_PRP_DONE") );
}
else
abortCommand();
}
}
catch( const SALOME::SALOME_Exception& e ) {
- QtCatchCorbaException( e );
+ SalomeApp_Tools::QtCatchCorbaException( e );
abortCommand();
}
if ( msg.isEmpty() )
msg = QObject::tr( "GEOM_PRP_ABORT" );
- QAD_MessageBox::error1( QAD_Application::getDesktop(),
- QObject::tr( "GEOM_ERROR_STATUS" ),
- msg,
- QObject::tr( "BUT_OK" ) );
+ SUIT_MessageBox::error1( SUIT_Session::session()->activeApplication()->desktop(),
+ QObject::tr( "GEOM_ERROR_STATUS" ),
+ msg,
+ QObject::tr( "BUT_OK" ) );
}
//================================================================
QString str( QObject::tr( "GEOM_INCORRECT_INPUT" ) );
if ( !msg.isEmpty() )
str += "\n" + msg;
- QAD_MessageBox::error1( QAD_Application::getDesktop(), QObject::tr( "GEOM_ERROR" ), str, QObject::tr( "BUT_OK" ) );
+ SUIT_MessageBox::error1(SUIT_Session::session()->activeApplication()->desktop(), QObject::tr( "GEOM_ERROR" ), str, QObject::tr( "BUT_OK" ) );
}
//////////////////////////////////////////////////////////////////
}
}
+//================================================================
+// Function : selectedIO
+// Purpose : Return the list of selected SALOME_InteractiveObject's
+//================================================================
+const SALOME_ListIO& GEOMBase_Helper::selectedIO()
+{
+ mySelected.Clear();
+
+ SalomeApp_Application* app = dynamic_cast< SalomeApp_Application* >( SUIT_Session::session()->activeApplication() );
+ if ( app ) {
+ SalomeApp_SelectionMgr* aSelMgr = app->selectionMgr();
+ if ( aSelMgr )
+ aSelMgr->selectedObjects( mySelected );
+ }
+
+ return mySelected;
+}
+
+//================================================================
+// Function : IObjectCount
+// Purpose : Return the number of selected objects
+//================================================================
+int GEOMBase_Helper::IObjectCount()
+{
+ return selectedIO().Extent();
+}
+
+//================================================================
+// Function : firstIObject
+// Purpose : Return the first selected object in the selected object list
+//================================================================
+Handle(SALOME_InteractiveObject) GEOMBase_Helper::firstIObject()
+{
+ const SALOME_ListIO& aList = selectedIO();
+ return aList.Extent() > 0 ? aList.First() : Handle(SALOME_InteractiveObject)();
+}
+
+//================================================================
+// Function : lastIObject
+// Purpose : Return the last selected object in the selected object list
+//================================================================
+Handle(SALOME_InteractiveObject) GEOMBase_Helper::lastIObject()
+{
+ const SALOME_ListIO& aList = selectedIO();
+ return aList.Extent() > 0 ? aList.Last() : Handle(SALOME_InteractiveObject)();
+}
#include "GEOM_Displayer.h"
#include "SALOME_Prs.h"
+#include "SALOME_ListIO.hxx"
#include <SALOMEconfig.h>
#include CORBA_CLIENT_HEADER(GEOM_Gen)
typedef std::list<GEOM::GEOM_Object_ptr> ObjectList;
+class SalomeApp_Study;
+class SUIT_Desktop;
+class SUIT_ViewWindow;
class GEOM_Operation;
-class QAD_Study;
class TopoDS_Shape;
-class QAD_ViewFrame;
class TColStd_MapOfInteger;
//================================================================
void updateObjBrowser() const;
int getStudyId () const;
- QAD_Study* getStudy () const;
- bool checkViewFrame ();
+ SalomeApp_Study* getStudy () const;
+ bool checkViewWindow ();
bool onAccept( const bool publish = true, const bool useTransaction = true );
// This method should be called from "OK" button handler.
inline void setPrefix( const QString& prefix ) { myPrefix = prefix; }
QString getPrefix( GEOM::GEOM_Object_ptr = GEOM::GEOM_Object::_nil() ) const;
+ const SALOME_ListIO& selectedIO();
+ // Function returns a list of SALOME_InteractiveObject's from
+ // selection manager in GUI
+
+ int IObjectCount() ;
+ // Function returns the number of selected objects
+
+ Handle(SALOME_InteractiveObject) firstIObject() ;
+ // Function returns the first selected object in the list
+ // of selected objects
+
+ Handle(SALOME_InteractiveObject) lastIObject() ;
+ // Function returns the last selected object in the list
+ // of selected objects
+
////////////////////////////////////////////////////////////////////////////
// Virtual methods, to be redefined in dialog classes
////////////////////////////////////////////////////////////////////////////
bool IsPreview() {return isPreview;}
GEOM_Displayer* getDisplayer();
+ virtual SUIT_Desktop* getDesktop() const = 0;
private:
char* getEntry ( GEOM::GEOM_Object_ptr ) const;
GEOM_Displayer* myDisplayer;
GEOM_Operation* myCommand;
GEOM::GEOM_IOperations_var myOperation;
- QAD_ViewFrame* myViewFrame;
+ SUIT_ViewWindow* myViewWindow;
QString myPrefix;
bool isPreview;
+ SALOME_ListIO mySelected;
};
using namespace std;
#include "GEOMBase_Skeleton.h"
#include "GeometryGUI.h"
-#include "SALOME_Selection.h"
+
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
#include <qpushbutton.h>
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-GEOMBase_Skeleton::GEOMBase_Skeleton(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
+GEOMBase_Skeleton::GEOMBase_Skeleton(QWidget* parent, const char* name, bool modal, WFlags fl)
:DlgRef_Skeleton_QTD(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu | WDestructiveClose ), GEOMBase_Helper()
{
if (!name)
GroupMedium->close(TRUE);
resize(0, 0);
- Init(Sel);
+ Init();
}
//=================================================================================
GEOMBase_Skeleton::~GEOMBase_Skeleton()
{
- myGeomGUI->SetActiveDialogBox( 0 );
+ if (myGeomGUI)
+ myGeomGUI->SetActiveDialogBox( 0 );
}
// function : Init()
// purpose :
//=================================================================================
-void GEOMBase_Skeleton::Init(SALOME_Selection* Sel)
+void GEOMBase_Skeleton::Init()
{
- myGeomGUI = GeometryGUI::GetGeomGUI();
-
+ myGeomGUI = 0;
+ SalomeApp_Application* app = (SalomeApp_Application*)(SUIT_Session::session()->activeApplication());
+ if (app)
+ {
+ SalomeApp_Module* module = dynamic_cast<SalomeApp_Module*>(app->loadModule("Geometry"));
+ if (module)
+ myGeomGUI = dynamic_cast<GeometryGUI*>(module);
+ }
+
/* init variables */
- mySelection = Sel;
-
myGeomBase = new GEOMBase(); // SAN -- TO BE REMOVED !!!
myGeomGUI->SetActiveDialogBox(this);
-
+
/* signals and slots connections */
connect(buttonCancel, SIGNAL(clicked()), this, SLOT(ClickOnCancel()));
- connect(myGeomGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
- connect(myGeomGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
-
+ if (myGeomGUI)
+ {
+ connect(myGeomGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
+ connect(myGeomGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
+ }
+
/* Move widget on the botton right corner of main widget */
// int x, y;
// myGeomBase->DefineDlgPosition( this, x, y );
/* so SelectionIntoArgument() is automatically called. */
const QString objectUserName = myEditCurrentArgument->text();
QWidget* thisWidget = (QWidget*)this;
- if(GEOMBase::SelectionByNameInDialogs(thisWidget, objectUserName, mySelection))
- myEditCurrentArgument->setText(objectUserName);
+
+ if(GEOMBase::SelectionByNameInDialogs(thisWidget, objectUserName, selectedIO()))
+ myEditCurrentArgument->setText(objectUserName);
return;
}
{
this->setEnabled(false);
globalSelection();
- //myGeomGUI->ResetState();
- disconnect(mySelection, 0, this, 0);
- GeometryGUI::GetGeomGUI()->SetActiveDialogBox(0);
+ disconnect( ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 0, this, 0);
+ if (myGeomGUI) myGeomGUI->SetActiveDialogBox(0);
+
return;
}
void GEOMBase_Skeleton::ActivateThisDialog()
{
/* Emit a signal to deactivate the active dialog */
- GeometryGUI::GetGeomGUI()->EmitSignalDeactivateDialog();
+ if (myGeomGUI) myGeomGUI->EmitSignalDeactivateDialog();
this->setEnabled(true);
- GeometryGUI::GetGeomGUI()->SetActiveDialogBox((QDialog*)this);
+ if (myGeomGUI) myGeomGUI->SetActiveDialogBox((QDialog*)this);
return;
}
//=================================================================================
void GEOMBase_Skeleton::closeEvent(QCloseEvent* e)
{
- disconnect(mySelection, 0, this, 0);
+ disconnect( ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 0, this, 0);
QDialog::closeEvent( e );
}
return GroupConstructors->id( GroupConstructors->selected() );
return -1;
}
+
+//=================================================================================
+// function : getDesktop()
+// purpose :
+//=================================================================================
+SUIT_Desktop* GEOMBase_Skeleton::getDesktop() const
+{
+ return dynamic_cast<SUIT_Desktop*>( parentWidget() );
+}
Q_OBJECT
public:
- GEOMBase_Skeleton(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ GEOMBase_Skeleton(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~GEOMBase_Skeleton();
private :
- void Init(SALOME_Selection* Sel);
+ void Init();
protected:
void closeEvent(QCloseEvent* e);
void initName( const char* thePrefix = 0 ); // initialize "Name" field with a string "thePrefix_X" (Vertex_3)
const char* getNewObjectName() const; // returns contents of "Name" field
int getConstructorId() const; // returns id of a selected "constructor" radio button or '-1' in case of error
+ virtual SUIT_Desktop* getDesktop() const;
QLineEdit* myEditCurrentArgument; /* Current LineEdit */
- SALOME_Selection* mySelection; /* User shape selection */
GEOMBase* myGeomBase; // SAN -- TO BE REMOVED !!!
GeometryGUI* myGeomGUI; /* reference GEOM GUI */
using namespace std;
#include "GEOMBase_aParameterDlg.h"
-#include "QAD_SpinBoxDbl.h"
-#include "QAD_Tools.h"
+#include "QtxDblSpinBox.h"
#include <stdio.h>
TextLabel1->setText(tr(aTitle1));
mainGrpLayout->addWidget(TextLabel1, 0, 0);
- mySpinBox = new QAD_SpinBoxDbl(mainGrp, "mySpinBox");
+ mySpinBox = new QtxDblSpinBox(mainGrp, "mySpinBox");
mySpinBox->setPrecision(12);
mySpinBox->setRange(bottom, top);
((QDoubleValidator*)(mySpinBox->validator()))->setRange(bottom, top, decimals);
connect(myButtonCancel, SIGNAL(clicked()), this, SLOT(reject()));
/* Move widget on the botton right corner of main widget */
- QAD_Tools::centerWidget(this, parent);
+ //mzn: QAD_Tools::centerWidget(this, parent);
}
#include <qdialog.h>
class QPushButton;
-class QAD_SpinBoxDbl;
+class QtxDblSpinBox;
//=================================================================================
// class : GEOMBase_aParameterDlg
private:
QPushButton* myButtonOk;
QPushButton* myButtonCancel;
- QAD_SpinBoxDbl* mySpinBox;
+ QtxDblSpinBox* mySpinBox;
};
#include "GEOM_Operation.h"
-#include "SALOMEGUI_QtCatchCorbaException.hxx"
+#include "SUIT_Application.h"
+#include "SalomeApp_Tools.h"
+
//================================================================
// Function : GEOM_Operation
// Purpose :
//================================================================
-GEOM_Operation::GEOM_Operation( QAD_Study* doc, GEOM::GEOM_IOperations_ptr oper )
-: QAD_Operation( doc )
+GEOM_Operation::GEOM_Operation( SUIT_Application* app, GEOM::GEOM_IOperations_ptr oper )
+: SUIT_Operation( app )
{
myIOperation = GEOM::GEOM_IOperations::_narrow( oper );
}
// Function : onStartOperation()
// Purpose : Opens an internal transaction in GEOM engine
//================================================================
-void GEOM_Operation::onStartOperation()
+void GEOM_Operation::startOperation()
{
- QAD_Operation::onStartOperation();
+ SUIT_Operation::startOperation();
if ( !myIOperation->_is_nil() ) {
try {
myIOperation->StartOperation();
}
catch( const SALOME::SALOME_Exception& e ) {
- QtCatchCorbaException( e );
+ SalomeApp_Tools:: QtCatchCorbaException( e );
}
}
}
// Function : onFinishOperation
// Purpose : Commits an internal transaction in GEOM engine
//================================================================
-void GEOM_Operation::onFinishOperation()
+void GEOM_Operation::commitOperation()
{
- QAD_Operation::onFinishOperation();
+ SUIT_Operation::commitOperation();
if ( !myIOperation->_is_nil() ) {
try {
myIOperation->FinishOperation();
}
catch( const SALOME::SALOME_Exception& e ) {
- QtCatchCorbaException( e );
+ SalomeApp_Tools:: QtCatchCorbaException( e );
}
}
}
// Function : onSuspendOperation
// Purpose :
//================================================================
-void GEOM_Operation::onSuspendOperation()
+void GEOM_Operation::suspendOperation()
{
- QAD_Operation::onSuspendOperation();
+ SUIT_Operation::suspendOperation();
}
//================================================================
// Function : onResumeOperation
// Purpose :
//================================================================
-void GEOM_Operation::onResumeOperation()
+void GEOM_Operation::resumeOperation()
{
- QAD_Operation::onResumeOperation();
+ SUIT_Operation::resumeOperation();
}
//================================================================
// Function : onAbortOperation
// Purpose : Aborts an internal transaction in GEOM engine
//================================================================
-void GEOM_Operation::onAbortOperation()
+void GEOM_Operation::abortOperation()
{
- QAD_Operation::onAbortOperation();
+ SUIT_Operation::abortOperation();
if ( !myIOperation->_is_nil() ) {
try {
myIOperation->AbortOperation();
}
catch( const SALOME::SALOME_Exception& e ) {
- QtCatchCorbaException( e );
+ SalomeApp_Tools::QtCatchCorbaException( e );
}
}
}
#ifndef GEOM_OPERATION_H
#define GEOM_OPERATION_H
-#include "QAD_Operation.h"
+#include "SUIT_Operation.h"
#include <SALOMEconfig.h>
#include CORBA_CLIENT_HEADER(GEOM_Gen)
-class GEOM_Operation : public QAD_Operation
+class GEOM_Operation : public SUIT_Operation
{
public:
- GEOM_Operation( QAD_Study*, GEOM::GEOM_IOperations_ptr );
+ GEOM_Operation( SUIT_Application*, GEOM::GEOM_IOperations_ptr );
virtual ~GEOM_Operation();
protected:
- // Reimplemented from QAD_Operation
- virtual void onStartOperation();
- virtual void onFinishOperation();
- virtual void onSuspendOperation();
- virtual void onResumeOperation();
- virtual void onAbortOperation();
+ // Reimplemented from SUIT_Operation
+ virtual void startOperation();
+ virtual void commitOperation();
+ virtual void suspendOperation();
+ virtual void resumeOperation();
+ virtual void abortOperation();
private:
GEOM::GEOM_IOperations_var myIOperation;
# additionnal information to compil and link file
-CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome
-CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome
+CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) $(BOOST_CPPFLAGS) -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
+CXXFLAGS += $(BOOST_CPPFLAGS) -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
-LDFLAGS += -lDlgRef -lGEOMGUI
+LDFLAGS += -L$(GUI_ROOT_DIR)/lib/salome -lDlgRef -lGEOM -lsuit -lOCCViewer -lVTKViewer
@CONCLUDE@
-// GEOM GEOMFiltersSelection : filter selector for the viewer
-//
-// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
-//
-//
-//
-// File : GEOM_EdgeFilter.cxx
-// Author : Nicolas REJNERI
-// Module : GEOM
-// $Header$
-
-using namespace std;
-#include "GEOM_EdgeFilter.ixx"
+#include "GEOM_EdgeFilter.h"
#include <BRepAdaptor_Curve.hxx>
#include <TopoDS_Edge.hxx>
#include <TopoDS.hxx>
+#include <StdSelect_TypeOfEdge.hxx>
+//=======================================================================
+// function : GEOM_EdgeFilter
+// purpose :
+//=======================================================================
+GEOM_EdgeFilter::GEOM_EdgeFilter( SalomeApp_Study* study, const int kind )
+: GEOM_SelectionFilter( study ),
+myKind( kind )
+{
+ add( TopAbs_EDGE );
+}
//=======================================================================
-// function : IsShapeOk
-// purpose : enumeration TypeOfEdge is AnyEdge,Line,Circle;
+// function : ~GEOM_SelectionFilter
+// purpose :
//=======================================================================
-GEOM_EdgeFilter::GEOM_EdgeFilter( const StdSelect_TypeOfEdge theKind )
-: GEOM_ShapeTypeFilter( TopAbs_EDGE )
+GEOM_EdgeFilter::~GEOM_EdgeFilter()
{
- myKind = theKind;
}
//=======================================================================
-// function : IsShapeOk
+// function : isShapeOk
// purpose :
//=======================================================================
-Standard_Boolean GEOM_EdgeFilter::IsShapeOk( const TopoDS_Shape& theShape ) const
+bool GEOM_EdgeFilter::isShapeOk( const TopoDS_Shape& theShape ) const
{
if ( !theShape.IsNull() && theShape.ShapeType() == TopAbs_EDGE )
{
case StdSelect_Circle: return ( aType == GeomAbs_Circle );
}
}
- return Standard_False;
+ return false;
}
+
-// GEOM GEOMFiltersSelection : filter selector for the viewer
-//
-// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
-//
-//
-//
-// File : GEOM_FaceFilter.cxx
-// Author : Nicolas REJNERI
-// Module : GEOM
-// $Header$
-
-using namespace std;
-#include "GEOM_FaceFilter.ixx"
+#include "GEOM_FaceFilter.h"
#include <BRepAdaptor_Surface.hxx>
#include <TopoDS_Face.hxx>
#include <TopoDS.hxx>
+#include <StdSelect_TypeOfFace.hxx>
+//=======================================================================
+// function : GEOM_FaceFilter
+// purpose :
+//=======================================================================
+GEOM_FaceFilter::GEOM_FaceFilter( SalomeApp_Study* study, const int kind )
+: GEOM_SelectionFilter( study ),
+myKind( kind )
+{
+ add( TopAbs_FACE );
+}
//=======================================================================
-// function : IsShapeOk
-// purpose : enumeration TypeOfFace is AnyFace,Plane,Cylinder,Sphere,Torus,Revol,Cone;
+// function : ~GEOM_SelectionFilter
+// purpose :
//=======================================================================
-GEOM_FaceFilter::GEOM_FaceFilter( const StdSelect_TypeOfFace theKind )
-: GEOM_ShapeTypeFilter( TopAbs_FACE )
+GEOM_FaceFilter::~GEOM_FaceFilter()
{
- myKind = theKind;
}
//=======================================================================
-// function : IsShapeOk
+// function : isShapeOk
// purpose :
//=======================================================================
-Standard_Boolean GEOM_FaceFilter::IsShapeOk( const TopoDS_Shape& theShape ) const
+bool GEOM_FaceFilter::isShapeOk( const TopoDS_Shape& theShape ) const
{
if ( !theShape.IsNull() && theShape.ShapeType() == TopAbs_FACE )
{
case StdSelect_Cone: return ( aType == GeomAbs_Cone);
}
}
- return Standard_False;
+ return false;
}
+
-// SALOME SALOMEGUI : implementation of desktop and GUI kernel
-//
-// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
-//
-//
-//
-// File : GEOM_LogicalFilter.cxx
-// Author : Sergey LITONIN
-// Module : GEOM
-
-#include "GEOM_LogicalFilter.hxx"
-
-/*
- Class : GEOM_LogicalFilter
- Description : Filter for combaining several filters with logical operation (OR or AND)
-*/
-
-IMPLEMENT_STANDARD_HANDLE( GEOM_LogicalFilter, SALOME_Filter )
-IMPLEMENT_STANDARD_RTTIEXT( GEOM_LogicalFilter, SALOME_Filter )
+#include "GEOM_LogicalFilter.h"
//=======================================================================
-// name : GEOM_LogicalFilter::GEOM_LogicalFilter
-// Purpose : Constructor
+// function : GEOM_LogicalFilter
+// purpose :
//=======================================================================
-GEOM_LogicalFilter::GEOM_LogicalFilter( const GEOM_ListOfFilter& theFilters,
- const int theLogOp )
+GEOM_LogicalFilter::GEOM_LogicalFilter( const QPtrList<SUIT_SelectionFilter>& lst, const int op )
+: SUIT_SelectionFilter()
{
- myFilters = theFilters;
- myLogOp = theLogOp;
+ setFilters( lst );
+ setOperation( op );
}
//=======================================================================
-// name : GEOM_LogicalFilter::GEOM_LogicalFilter
-// Purpose : Constructor
-//=======================================================================
-GEOM_LogicalFilter::GEOM_LogicalFilter( const Handle(SALOME_Filter)& theFilter,
- const int theLogOp )
-{
- myFilters.Append( theFilter );
- myLogOp = theLogOp;
-}
-
-//=======================================================================
-// name : GEOM_LogicalFilter::~GEOM_LogicalFilter
-// Purpose : Destructor
+// function : ~GEOM_LogicalFilter
+// purpose :
//=======================================================================
GEOM_LogicalFilter::~GEOM_LogicalFilter()
{
}
//=======================================================================
-// name : GEOM_LogicalFilter::IsOk
-// Purpose : Verify validity of entry object
+// function : isOk
+// purpose :
//=======================================================================
-Standard_Boolean GEOM_LogicalFilter::IsOk( const Handle(SALOME_InteractiveObject)& theIO ) const
+bool GEOM_LogicalFilter::isOk( const SUIT_DataOwner* owner ) const
{
- GEOM_ListOfFilter::Iterator anIter( myFilters );
- for ( ; anIter.More(); anIter.Next() )
+ GEOM_LogicalFilter* non_const_this = (GEOM_LogicalFilter*)this;
+ for ( SUIT_SelectionFilter* filter = non_const_this->myFilters.first(); filter; filter = non_const_this->myFilters.next() )
{
- Handle(SALOME_Filter) aFilter = anIter.Value();
- if ( !aFilter.IsNull() )
- {
- if ( myLogOp == LO_OR && anIter.Value()->IsOk( theIO ) )
- return true;
- if ( myLogOp == LO_AND && !anIter.Value()->IsOk( theIO ) )
- return false;
- if ( myLogOp == LO_NOT )
- return !anIter.Value()->IsOk( theIO );
- }
+ if ( myOperation == LO_OR && filter->isOk( owner ) )
+ return true;
+ if ( myOperation == LO_AND && !filter->isOk( owner ) )
+ return false;
+ if ( myOperation == LO_NOT )
+ return !filter->isOk( owner );
}
- return myLogOp == LO_OR ? false : true;
+ return ( myOperation != LO_OR );
}
//=======================================================================
-// name : GEOM_LogicalFilter::SetFilters
-// Purpose : Set new list of filters. Old wilters are removed
+// function : setFilters
+// purpose :
//=======================================================================
-void GEOM_LogicalFilter::SetFilters( const GEOM_ListOfFilter& theFilters )
+void GEOM_LogicalFilter::setFilters( const QPtrList<SUIT_SelectionFilter>& lst )
{
- myFilters = theFilters;
+ myFilters = lst;
}
//=======================================================================
-// name : GEOM_LogicalFilter::SetLogOp
-// Purpose : Set logical operation
+// function : setOperation
+// purpose :
//=======================================================================
-void GEOM_LogicalFilter::SetLogOp( const int theLogOp )
+void GEOM_LogicalFilter::setOperation( const int op )
{
- myLogOp = theLogOp;
+ myOperation = op;
}
//=======================================================================
-// name : GEOM_LogicalFilter::GetFilters
-// Purpose : Get list of filters
+// function : getFilters
+// purpose :
//=======================================================================
-const GEOM_ListOfFilter& GEOM_LogicalFilter::GetFilters() const
+QPtrList<SUIT_SelectionFilter> GEOM_LogicalFilter::getFilters() const
{
return myFilters;
}
//=======================================================================
-// name : GEOM_LogicalFilter::GetLogOp
-// Purpose : Get logical operation
+// function : getOperation
+// purpose :
//=======================================================================
-int GEOM_LogicalFilter::GetLogOp() const
+int GEOM_LogicalFilter::getOperation() const
{
- return myLogOp;
+ return myOperation;
}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-// GEOM GEOMFiltersSelection : filter selector for the viewer
-//
-// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
-//
-//
-//
-// File : GEOM_PreviewFilter.cxx
-// Author : Sergey ANIKIN
-// Module : GEOM
-// $Header$
+#include "GEOM_PreviewFilter.h"
-#include "GEOM_PreviewFilter.ixx"
-#include "SALOME_InteractiveObject.hxx"
+#include <SalomeApp_DataOwner.h>
-using namespace std;
+//=======================================================================
+// function : GEOM_SelectionFilter
+// purpose :
+//=======================================================================
+GEOM_PreviewFilter::GEOM_PreviewFilter( SalomeApp_Study* study )
+: SalomeApp_Filter( study )
+{
+}
-GEOM_PreviewFilter::GEOM_PreviewFilter()
+//=======================================================================
+// function : ~GEOM_SelectionFilter
+// purpose :
+//=======================================================================
+GEOM_PreviewFilter::~GEOM_PreviewFilter()
{
}
-Standard_Boolean GEOM_PreviewFilter::IsOk(const Handle(SALOME_InteractiveObject)& anObj) const
+//=======================================================================
+// function : isOk
+// purpose :
+//=======================================================================
+bool GEOM_PreviewFilter::isOk( const SUIT_DataOwner* sOwner ) const
{
- return ( !anObj.IsNull() && anObj->hasEntry() && strstr( anObj->getEntry(), "TEMP" ) );
+ const SalomeApp_DataOwner* owner = dynamic_cast<const SalomeApp_DataOwner*> ( sOwner );
+ return ( owner && strstr( owner->entry(), "TEMP" ) );
}
-// GEOM GEOMGUI : Implementation of selection filters for GEOM module
-//
-// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
-//
-//
-//
-// File : GEOM_TypeFilter.cxx
-// Author : Sergey LITONIN
-// Module : GEOM
-
-#include "GEOM_TypeFilter.hxx"
-#include "SALOME_InteractiveObject.hxx"
-#include "GEOM_Client.hxx"
-#include "QAD_Application.h"
-#include "QAD_Desktop.h"
-#include "utilities.h"
-
-static GEOM::GEOM_Object_ptr convertIOinGEOMObject(
- const Handle(SALOME_InteractiveObject)& theIO, Standard_Boolean& theResult )
-{
- theResult = Standard_False;
- GEOM::GEOM_Object_var aReturnObject;
- if ( !theIO.IsNull() )
- {
- const char* anEntry = theIO->getEntry();
- SALOMEDS::SObject_var aSObj =
- QAD_Application::getDesktop()->getActiveStudy()->getStudyDocument()->FindObjectID( anEntry );
- if ( !CORBA::is_nil( aSObj ) )
- {
- aReturnObject = GEOM::GEOM_Object::_narrow( aSObj->GetObject() );
- theResult = !CORBA::is_nil( aReturnObject );
- }
- }
- return aReturnObject._retn();
-}
-
-/*
- Class : GEOM_TypeFilter
- Description : Filter for combaining several filters with logical operation (OR or AND)
-*/
-
-IMPLEMENT_STANDARD_HANDLE( GEOM_TypeFilter, SALOME_TypeFilter )
-IMPLEMENT_STANDARD_RTTIEXT( GEOM_TypeFilter, SALOME_TypeFilter )
+#include "GEOM_TypeFilter.h"
//=======================================================================
-// name : GEOM_TypeFilter::GEOM_TypeFilter
-// Purpose : Constructor
+// function : GEOM_TypeFilter
+// purpose :
//=======================================================================
-GEOM_TypeFilter::GEOM_TypeFilter( const int theType )
-: SALOME_TypeFilter( "GEOM" )
+GEOM_TypeFilter::GEOM_TypeFilter( SalomeApp_Study* study, const int type )
+:GEOM_SelectionFilter( study ),
+myType( type )
{
- myType = theType;
}
//=======================================================================
-// name : GEOM_TypeFilter::~GEOM_TypeFilter
-// Purpose : Destructor
+// function : ~GEOM_TypeFilter
+// purpose :
//=======================================================================
GEOM_TypeFilter::~GEOM_TypeFilter()
{
}
//=======================================================================
-// name : GEOM_TypeFilter::IsOk
-// Purpose : Verify validity of entry object
+// function : isOk
+// purpose :
//=======================================================================
-Standard_Boolean GEOM_TypeFilter::IsOk( const Handle(SALOME_InteractiveObject)& theIO ) const
+bool GEOM_TypeFilter::isOk( const SUIT_DataOwner* sOwner ) const
{
- if ( SALOME_TypeFilter::IsOk( theIO ) )
- {
- Standard_Boolean aTestRes = Standard_False;
- GEOM::GEOM_Object_var anObj = convertIOinGEOMObject( theIO, aTestRes );
- if ( aTestRes && !anObj->_is_nil() )
- return anObj->GetType() == myType;
- }
-
+ GEOM::GEOM_Object_var obj = getObject( sOwner );
+ if ( !CORBA::is_nil( obj ) )
+ return obj->GetType() == type();
+
return false;
}
//=======================================================================
-// name : GEOM_TypeFilter::SetType
-// Purpose : Set type of object
-//=======================================================================
-void GEOM_TypeFilter::SetType( const int theType )
-{
- myType = theType;
-}
-
-//=======================================================================
-// name : GEOM_TypeFilter::GetType
-// Purpose : Get type of object
+// function : type
+// purpose :
//=======================================================================
-int GEOM_TypeFilter::GetType() const
+int GEOM_TypeFilter::type() const
{
return myType;
}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
# Libraries targets
LIB = libGEOMFiltersSelection.la
-LIB_SRC = GEOM_ShapeTypeFilter.cxx \
- GEOM_FaceFilter.cxx \
+LIB_SRC = GEOM_SelectionFilter.cxx \
GEOM_EdgeFilter.cxx \
- GEOM_PreviewFilter.cxx \
+ GEOM_FaceFilter.cxx \
+ GEOM_TypeFilter.cxx \
+ GEOM_PreviewFilter.cxx \
GEOM_LogicalFilter.cxx \
- GEOM_TypeFilter.cxx
-
-LIB_CLIENT_IDL = SALOME_Component.idl SALOMEDS.idl SALOMEDS_Attributes.idl SALOME_Exception.idl GEOM_Gen.idl SALOME_GenericObj.idl
+ GEOM_OCCFilter.cxx
# header files
-EXPORT_HEADERS= GEOM_ShapeTypeFilter.hxx \
- Handle_GEOM_ShapeTypeFilter.hxx \
- GEOM_FaceFilter.hxx \
- Handle_GEOM_FaceFilter.hxx \
- GEOM_EdgeFilter.hxx \
- Handle_GEOM_EdgeFilter.hxx \
- GEOM_TypeFilter.hxx \
- GEOM_LogicalFilter.hxx \
- GEOM_PreviewFilter.hxx \
- Handle_GEOM_PreviewFilter.hxx
+EXPORT_HEADERS= GEOM_SelectionFilter.h \
+ GEOM_EdgeFilter.h \
+ GEOM_FaceFilter.h \
+ GEOM_TypeFilter.h \
+ GEOM_PreviewFilter.h \
+ GEOM_LogicalFilter.h \
+ GEOM_OCCFilter.h
+
+LIB_CLIENT_IDL= GEOM_Gen.idl SALOMEDS.idl SALOME_Exception.idl SALOME_GenericObj.idl SALOME_Component.idl
+
# additionnal information to compil and link file
-CPPFLAGS += $(OCC_INCLUDES) $(QT_INCLUDES) $(PYTHON_INCLUDES) $(VTK_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome
-CXXFLAGS += $(OCC_CXXFLAGS) -I${KERNEL_ROOT_DIR}/include/salome
-LDFLAGS += -lSalomeGUI -L${KERNEL_ROOT_DIR}/lib/salome
+CPPFLAGS += $(QT_INCLUDES) $(OCC_INCLUDES) $(BOOST_CPPFLAGS) -I$(GUI_ROOT_DIR)/include/salome -I$(KERNEL_ROOT_DIR)/include/salome
+CXXFLAGS += $(QT_INCLUDES) $(BOOST_CPPFLAGS) -I$(GUI_ROOT_DIR)/include/salome -I$(KERNEL_ROOT_DIR)/include/salome
+LDFLAGS += -L$(GUI_ROOT_DIR)/lib/salome -L$(KERNEL_ROOT_DIR)/lib/salome -lsuit
# additional file to be cleaned
MOSTLYCLEAN =
#include "GEOMGUI.h"
-#include "QAD_Desktop.h"
-#include "QAD_StudyFrame.h"
-#include "QAD_Application.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_ViewWindow.h"
+
+#include "GeometryGUI.h"
+
#include <qevent.h>
//=================================================================================
// class : GEOMGUI::GEOMGUI
// purpose : Constructor
//=================================================================================
-GEOMGUI::GEOMGUI( QObject* parent ) :
- QObject ( parent )
+GEOMGUI::GEOMGUI( GeometryGUI* parent ) :
+QObject ( parent ),
+myGeometryGUI( parent )
{
}
// class : GEOMGUI::OnGUIEvent
// purpose : Main/popup menu events processing
//=================================================================================
-bool GEOMGUI::OnGUIEvent( int /*theCommandID*/, QAD_Desktop* /*parent*/ )
+bool GEOMGUI::OnGUIEvent( int /*theCommandID*/, SUIT_Desktop* /*parent*/ )
{
return TRUE;
}
// purpose : Mouse press event processing. Should return FALSE to let the event
// be processed further.
//=================================================================================
-bool GEOMGUI::OnMousePress( QMouseEvent* /*pe*/, QAD_Desktop* /*parent*/, QAD_StudyFrame* /*studyFrame*/ )
+bool GEOMGUI::OnMousePress( QMouseEvent* /*pe*/, SUIT_Desktop* /*parent*/, SUIT_ViewWindow* /*studyFrame*/ )
{
return FALSE;
}
// class : GEOMGUI::OnMouseMove
// purpose : Mouse move event processing
//=================================================================================
-bool GEOMGUI::OnMouseMove( QMouseEvent* /*pe*/, QAD_Desktop* /*parent*/, QAD_StudyFrame* /*studyFrame*/ )
+bool GEOMGUI::OnMouseMove( QMouseEvent* /*pe*/, SUIT_Desktop* /*parent*/, SUIT_ViewWindow* /*studyFrame*/ )
{
return TRUE;
}
// class : GEOMGUI::OnKeyPress
// purpose : Key press event processing
//=================================================================================
-bool GEOMGUI::OnKeyPress( QKeyEvent* /*pe*/, QAD_Desktop* /*parent*/, QAD_StudyFrame* /*studyFrame*/ )
+bool GEOMGUI::OnKeyPress( QKeyEvent* /*pe*/, SUIT_Desktop* /*parent*/, SUIT_ViewWindow* /*studyFrame*/ )
{
return TRUE;
}
// class : GEOMGUI::SetSettings
// purpose : Called when GEOM component is activated
//=================================================================================
-bool GEOMGUI::SetSettings( QAD_Desktop* /*parent*/ )
+void GEOMGUI::activate( SUIT_Desktop* /*parent*/ )
{
- return TRUE;
}
//=================================================================================
// class : GEOMGUI::Deactivate
// purpose : Called when GEOM component is deactivated
//=================================================================================
-void GEOMGUI::Deactivate()
+void GEOMGUI::deactivate()
{
}
//=================================================================================
-// class : GEOMGUI::ActiveStudyChanged
-// purpose : Called when active study changed
+// class : GEOMGUI::Deactivate
+// purpose : Called when GEOM component is deactivated
//=================================================================================
-bool GEOMGUI::ActiveStudyChanged( QAD_Desktop* /*parent*/ )
+GeometryGUI* GEOMGUI::getGeometryGUI()
{
- return TRUE;
+ return myGeometryGUI;
}
#include <qobject.h>
-class QAD_Desktop;
-class QAD_StudyFrame;
+class SUIT_Desktop;
+class SUIT_ViewWindow;
class QMouseEvent;
class QKeyEvent;
+class GeometryGUI;
//=================================================================================
// class : GEOMGUI
{
public :
// Constructor
- GEOMGUI( QObject* parent = 0 );
+ GEOMGUI( GeometryGUI* parent );
// Destructor
virtual ~GEOMGUI();
// Each of this methods can be redifined by descendants
- virtual bool OnGUIEvent( int theCommandID, QAD_Desktop* parent );
- virtual bool OnMousePress( QMouseEvent* pe, QAD_Desktop* parent, QAD_StudyFrame* studyFrame );
- virtual bool OnMouseMove( QMouseEvent* pe, QAD_Desktop* parent, QAD_StudyFrame* studyFrame );
- virtual bool OnKeyPress( QKeyEvent* pe, QAD_Desktop* parent, QAD_StudyFrame* studyFrame );
- virtual bool SetSettings( QAD_Desktop* parent );
- virtual void Deactivate();
- virtual bool ActiveStudyChanged( QAD_Desktop* parent );
+ virtual bool OnGUIEvent( int theCommandID, SUIT_Desktop* parent );
+
+ virtual bool OnMousePress( QMouseEvent* pe, SUIT_Desktop* parent, SUIT_ViewWindow* );
+ virtual bool OnMouseMove( QMouseEvent* pe, SUIT_Desktop* parent, SUIT_ViewWindow* );
+ virtual bool OnKeyPress( QKeyEvent* pe, SUIT_Desktop* parent, SUIT_ViewWindow* );
+
+ virtual void activate( SUIT_Desktop* parent );
+ virtual void deactivate();
+
+ GeometryGUI* getGeometryGUI();
+
+private:
+ GeometryGUI* myGeometryGUI;
};
#endif // __GEOMGUI_H
// Module : GEOM
// $Header$
+#include <SOCC_ViewModel.h>
+
#include "GEOM_Displayer.h"
-#include "GEOM_ShapeTypeFilter.hxx"
-#include "GEOM_TypeFilter.hxx"
-#include "QAD_Desktop.h"
-#include "QAD_Application.h"
-#include "QAD_Study.h"
-#include "QAD_StudyFrame.h"
-#include "QAD_RightFrame.h"
-#include "QAD_ViewFrame.h"
-#include "QAD_Config.h"
-#include "SALOME_ListIteratorOfListIO.hxx"
-#include "OCCViewer_Prs.h"
-#include "OCCViewer_ViewFrame.h"
-#include "OCCViewer_Viewer3d.h"
-#include "VTKViewer_Prs.h"
-#include "VTKViewer_ViewFrame.h"
#include "GEOMImpl_Types.hxx"
-#include "TColStd_MapOfInteger.hxx"
-#include "TColStd_MapIteratorOfMapOfInteger.hxx"
-#include "GEOM_EdgeFilter.hxx"
-#include "GEOM_FaceFilter.hxx"
-#include "GEOM_PreviewFilter.hxx"
-#include "GEOM_LogicalFilter.hxx"
+
+#include "GEOM_TypeFilter.h"
+#include "GEOM_EdgeFilter.h"
+#include "GEOM_FaceFilter.h"
+#include "GEOM_PreviewFilter.h"
+#include "GEOM_LogicalFilter.h"
+#include "GEOM_OCCFilter.h"
+
#include "GEOM_AssemblyBuilder.h"
#include "GEOM_Actor.h"
#include "GEOM_AISTrihedron.hxx"
#include "GEOM_VTKTrihedron.hxx"
+#include <SUIT_Desktop.h>
+#include <SUIT_ViewWindow.h>
+#include <SUIT_Session.h>
+#include <SUIT_Tools.h>
+#include <SUIT_ViewManager.h>
+
+#include <SalomeApp_Study.h>
+#include <SalomeApp_Application.h>
+#include <SalomeApp_SelectionMgr.h>
+#include <SalomeApp_TypeFilter.h>
+
+#include <SALOME_ListIteratorOfListIO.hxx>
+#include <SALOMEDSClient.hxx>
+#include <SALOMEDS_SObject.hxx>
+#include <SALOMEDSClient_SObject.hxx>
+
+#include <SOCC_Prs.h>
+
+#include <SVTK_Prs.h>
+#include <SVTK_ViewModel.h>
+
+#include <TColStd_MapOfInteger.hxx>
+#include <TColStd_MapIteratorOfMapOfInteger.hxx>
+
#include CORBA_CLIENT_HEADER(SALOMEDS_Attributes)
-#include "GeometryGUI.h"
-#include "GEOM_AISShape.hxx"
+#include <GeometryGUI.h>
+#include <GEOM_AISShape.hxx>
#include <AIS_ListIteratorOfListOfInteractive.hxx>
#include <AIS_Drawer.hxx>
#include <Prs3d_PointAspect.hxx>
#include <BRep_Tool.hxx>
#include <gp_Pln.hxx>
#include <Geom_Axis2Placement.hxx>
-
+#include <StdSelect_TypeOfEdge.hxx>
+#include <StdSelect_TypeOfFace.hxx>
#include <vtkActorCollection.h>
#include <cstring>
// Function : getActiveStudy
// Purpose : Get active study, returns 0 if no open study frame
//================================================================
-static inline QAD_Study* getActiveStudy()
+static inline SalomeApp_Study* getActiveStudy()
{
- QAD_Desktop* desktop = QAD_Application::getDesktop();
- if ( desktop ) {
- QAD_Application* app = desktop->getActiveApp();
- if ( app )
- return app->getActiveStudy();
- }
+ SUIT_Session* session = SUIT_Session::session();
+ SalomeApp_Application* app = dynamic_cast<SalomeApp_Application*>( session->activeApplication() );
+ if ( app )
+ return ( SalomeApp_Study* )app->activeStudy();
return 0;
}
}
//================================================================
-// Function : getTopAbsMode
+// Function : getFilter
// Purpose : Get filter corresponding to the type of object
// from GEOMImpl_Types.h
//================================================================
-static inline Handle(SALOME_Filter) getFilter( const int theMode )
+SUIT_SelectionFilter* GEOM_Displayer::getFilter( const int theMode )
{
- Handle(SALOME_Filter) aFilter;
+ SUIT_SelectionFilter* aFilter;
int aTopAbsMode = getTopAbsMode( theMode );
if ( aTopAbsMode != -1 )
- aFilter = new GEOM_ShapeTypeFilter( ( TopAbs_ShapeEnum )aTopAbsMode );
+ aFilter = new GEOM_TypeFilter( getStudy(), theMode ); //@ aFilter = new GEOM_TypeFilter( ( TopAbs_ShapeEnum )aTopAbsMode );
else
switch ( theMode )
- {
- case GEOM_LINE : aFilter = new GEOM_EdgeFilter( StdSelect_Line ); break;
- case GEOM_CIRCLE : aFilter = new GEOM_EdgeFilter( StdSelect_Circle ); break;
-
- case GEOM_PLANE : aFilter = new GEOM_FaceFilter( StdSelect_Plane ); break;
- case GEOM_CYLINDER : aFilter = new GEOM_FaceFilter( StdSelect_Cylinder ); break;
- case GEOM_SPHERE : aFilter = new GEOM_FaceFilter( StdSelect_Sphere ); break;
- case GEOM_TORUS : aFilter = new GEOM_FaceFilter( StdSelect_Torus ); break;
- case GEOM_REVOLUTION: aFilter = new GEOM_FaceFilter( StdSelect_Revol ); break;
- case GEOM_CONE : aFilter = new GEOM_FaceFilter( StdSelect_Cone ); break;
-
- case GEOM_PREVIEW : aFilter = new GEOM_PreviewFilter(); break;
-
- case GEOM_ALLSHAPES : aFilter = new GEOM_ShapeTypeFilter( -1, true ); break;
- case GEOM_ALLGEOM : aFilter = new SALOME_TypeFilter( "GEOM" ); break;
-
- default : aFilter = new GEOM_TypeFilter( theMode ); break;
- }
-
+ {
+ case GEOM_LINE : aFilter = new GEOM_EdgeFilter( getStudy(), StdSelect_Line ); break;
+ case GEOM_CIRCLE : aFilter = new GEOM_EdgeFilter( getStudy(), StdSelect_Circle ); break;
+
+ case GEOM_PLANE : aFilter = new GEOM_FaceFilter( getStudy(), StdSelect_Plane ); break;
+ case GEOM_CYLINDER : aFilter = new GEOM_FaceFilter( getStudy(), StdSelect_Cylinder ); break;
+ case GEOM_SPHERE : aFilter = new GEOM_FaceFilter( getStudy(), StdSelect_Sphere ); break;
+ case GEOM_TORUS : aFilter = new GEOM_FaceFilter( getStudy(), StdSelect_Torus ); break;
+ case GEOM_REVOLUTION: aFilter = new GEOM_FaceFilter( getStudy(), StdSelect_Revol ); break;
+ case GEOM_CONE : aFilter = new GEOM_FaceFilter( getStudy(), StdSelect_Cone ); break;
+
+ case GEOM_PREVIEW : aFilter = new GEOM_PreviewFilter( getStudy() ); break;
+
+ case GEOM_ALLSHAPES : aFilter = new GEOM_SelectionFilter(getStudy(), true ); break;
+ case GEOM_ALLGEOM : aFilter = new SalomeApp_TypeFilter( getStudy(), "GEOM" ); break;
+
+ default : aFilter = new GEOM_TypeFilter( getStudy(), theMode ); break;
+ }
+
return aFilter;
}
//================================================================
static char* getEntry( GEOM::GEOM_Object_ptr object )
{
- QAD_Study* study = getActiveStudy();
- if ( study ) {
- string IOR = GeometryGUI::GetORB()->object_to_string( object );
- if ( IOR != "" ) {
- SALOMEDS::SObject_var SO = study->getStudyDocument()->FindObjectIOR( IOR.c_str() );
- if ( !SO->_is_nil() ) {
- return SO->GetID();
- }
+ SUIT_Session* session = SUIT_Session::session();
+ SalomeApp_Application* app = dynamic_cast<SalomeApp_Application*>( session->activeApplication() );
+ if ( app )
+ {
+ string IOR = app->orb()->object_to_string( object );
+ if ( IOR != "" )
+ {
+ SalomeApp_Study* study = ( SalomeApp_Study* )app->activeStudy();
+ _PTR(SObject) SO ( study->studyDS()->FindObjectIOR( IOR ) );
+ if ( SO )
+ return (char*)(SO->GetID().c_str());
}
}
return "";
// Function : getName
// Purpose :
//================================================================
-static const char* getName( GEOM::GEOM_Object_ptr theObj )
+static const char* getName( GEOM::GEOM_Object_ptr object )
{
- QAD_Study* aStudy = QAD_Application::getDesktop()->getActiveStudy();
-
- if ( aStudy )
+ SUIT_Session* session = SUIT_Session::session();
+ SalomeApp_Application* app = dynamic_cast<SalomeApp_Application*>( session->activeApplication() );
+ if ( app )
{
- string anIOR = GeometryGUI::GetORB()->object_to_string( theObj );
- if ( anIOR != "" )
+ string IOR = app->orb()->object_to_string( object );
+ if ( IOR != "" )
{
- SALOMEDS::SObject_var aSObj = aStudy->getStudyDocument()->FindObjectIOR( anIOR.c_str() );
- SALOMEDS::GenericAttribute_var anAttr;
+ SalomeApp_Study* study = ( SalomeApp_Study* )app->activeStudy();
+ _PTR(SObject) aSObj ( study->studyDS()->FindObjectIOR( IOR ) );
- if ( !aSObj->_is_nil() && aSObj->FindAttribute( anAttr, "AttributeName") )
+ _PTR(GenericAttribute) anAttr;
+
+ if ( aSObj && aSObj->FindAttribute( anAttr, "AttributeName") )
{
- SALOMEDS::AttributeName_var aNameAttr = SALOMEDS::AttributeName::_narrow( anAttr );
- return aNameAttr->Value();
+ _PTR(AttributeName) aNameAttr( anAttr );
+ return aNameAttr->Value().c_str();
}
}
}
* Constructor
*/
//=================================================================
-GEOM_Displayer::GEOM_Displayer()
+GEOM_Displayer::GEOM_Displayer( SalomeApp_Study* study )
{
+ myStudy = study;
+
/* Shading Color */
- QString SCr = QAD_CONFIG->getSetting( "Geometry:SettingsShadingColorRed" );
- QString SCg = QAD_CONFIG->getSetting( "Geometry:SettingsShadingColorGreen" );
- QString SCb = QAD_CONFIG->getSetting( "Geometry:SettingsShadingColorBlue" );
- if ( !SCr.isEmpty() && !SCg.isEmpty() && !SCb.isEmpty() )
- myShadingColor = Quantity_Color(
- SCr.toInt()/255., SCg.toInt()/255., SCb.toInt()/255., Quantity_TOC_RGB );
- else
- myShadingColor = Quantity_Color( Quantity_NOC_GOLDENROD );
+ SUIT_Session* session = SUIT_Session::session();
+ SUIT_ResourceMgr* resMgr = session->resourceMgr();
+ QColor col = resMgr->colorValue( "Geometry", "SettingsShadingColor", QColor( "goldenrod" ) );
+
+// TO DO: make some utility method to convert QColor into Quantity_Color
+// myShadingColor = SUIT_Tools::color( col );
+ myShadingColor = Quantity_NOC_RED;
myColor = -1;
// This color is used for shape displaying. If it is equal -1 then
* Get active study frame, returns 0 if no open study frame
*/
//=================================================================
-QAD_ViewFrame* GEOM_Displayer::GetActiveView()
+SALOME_View* GEOM_Displayer::GetActiveView()
{
- QAD_Study* activeStudy = getActiveStudy();
- if ( activeStudy )
+ SUIT_Session* session = SUIT_Session::session();
+ SUIT_Application* app = session->activeApplication();
+ if ( app )
{
- QAD_StudyFrame* sf = activeStudy->getActiveStudyFrame();
- if ( sf )
+ SUIT_Desktop* desk = app->desktop();
+ if ( desk )
{
- return sf->getRightFrame()->getViewFrame();
+ SUIT_ViewWindow* win = desk->activeWindow();
+ if ( win )
+ {
+ SUIT_ViewManager* vman = win->getViewManager();
+ if ( vman )
+ {
+ SUIT_ViewModel* vmodel = vman->getViewModel();
+ if ( vmodel )
+ {
+ SALOME_View* view = dynamic_cast<SALOME_View*>(vmodel);
+ return view;
+ }
+ }
+ }
}
}
return 0;
* Display interactive object in the current viewer
*/
//=================================================================
-void GEOM_Displayer::Display( const Handle(SALOME_InteractiveObject)& theIO, const bool updateViewer,
- QAD_ViewFrame* theViewFrame )
+void GEOM_Displayer::Display( const Handle(SALOME_InteractiveObject)& theIO,
+ const bool updateViewer,
+ SALOME_View* theViewFrame )
{
- QAD_ViewFrame* vf = theViewFrame;
- if ( !vf )
- vf = GetActiveView();
-
+ SALOME_View* vf = theViewFrame ? theViewFrame : GetActiveView();
if ( vf )
{
- if ( vf->inherits( "VTKViewer_ViewFrame" ) )
- {
- SALOME_Prs* prs = vf->CreatePrs( !theIO.IsNull() ? theIO->getEntry() : 0 );
- ((SALOME_View*)vf)->Erase( prs, true );
- delete prs;
- }
-
SALOME_Prs* prs = buildPresentation( theIO, vf );
if ( prs )
{
vf->BeforeDisplay( this );
- ((SALOME_View*)vf)->Display( prs );
+ vf->Display( prs );
vf->AfterDisplay( this );
-
+
if ( updateViewer )
vf->Repaint();
void GEOM_Displayer::Erase( const Handle(SALOME_InteractiveObject)& theIO,
const bool forced,
const bool updateViewer,
- QAD_ViewFrame* theViewFrame )
+ SALOME_View* theViewFrame )
{
if ( theIO.IsNull() )
return;
- QAD_ViewFrame* vf = theViewFrame;
- if ( !vf )
- vf = GetActiveView();
+ SALOME_View* vf = theViewFrame ? theViewFrame : GetActiveView();
if ( vf ) {
SALOME_Prs* prs = vf->CreatePrs( theIO->getEntry() );
if ( prs ) {
- ((SALOME_View*)vf)->Erase( prs, forced );
+ vf->Erase( prs, forced );
if ( updateViewer )
vf->Repaint();
delete prs; // delete presentation because displayer is its owner
}
}
+//=================================================================
+/*!
+ * GEOM_Displayer::EraseAll
+ * Erase all objects in the current viewer
+ */
+//=================================================================
+void GEOM_Displayer::EraseAll ( const bool forced,
+ const bool updateViewer,
+ SALOME_View* theViewFrame )
+{
+ SALOME_View* vf = theViewFrame ? theViewFrame : GetActiveView();
+
+ if ( vf ) {
+ vf->EraseAll( forced );
+ if ( updateViewer )
+ vf->Repaint();
+ }
+}
+
//=================================================================
/*!
* GEOM_Displayer::Redisplay
const bool updateViewer )
{
// Remove the object permanently (<forced> == true)
-
- QAD_Study* activeStudy = getActiveStudy();
- if ( !activeStudy )
- return;
-
- int aNbFrames = activeStudy->getStudyFramesCount();
- for (int i = 0; i < aNbFrames; i++)
+ SUIT_Session* ses = SUIT_Session::session();
+ SUIT_Application* app = ses->activeApplication();
+ if ( app )
+ {
+ SUIT_Desktop* desk = app->desktop();
+ QPtrList<SUIT_ViewWindow> wnds = desk->windows();
+ SUIT_ViewWindow* wnd;
+ for ( wnd = wnds.first(); wnd; wnd = wnds.next() )
{
- QAD_StudyFrame* sf = activeStudy->getStudyFrame(i);
- if ( !sf )
- continue;
-
- QAD_ViewFrame* vf = sf->getRightFrame()->getViewFrame();
- if ( !vf )
- continue;
-
- if ( vf->isVisible(theIO) || vf == GetActiveView() )
+ SUIT_ViewManager* vman = wnd->getViewManager();
+ if ( vman )
+ {
+ SUIT_ViewModel* vmodel = vman->getViewModel();
+ if ( vmodel )
{
- Erase( theIO, true, false, vf );
- Display( theIO, updateViewer, vf );
+ SALOME_View* view = dynamic_cast<SALOME_View*>(vmodel);
+ if ( view )
+ {
+ if ( view->isVisible( theIO ) || view == GetActiveView() )
+ {
+ Erase( theIO, true, false, view );
+ Display( theIO, updateViewer, view );
+ }
+ }
}
+ }
}
+ }
}
//=================================================================
void GEOM_Displayer::Redisplay( const SALOME_ListIO& theIOList, const bool updateViewer )
{
SALOME_ListIteratorOfListIO Iter( theIOList );
- for ( ; Iter.More(); Iter.Next() ) {
+ for ( ; Iter.More(); Iter.Next() )
Redisplay( Iter.Value(), false );
- }
+
if ( updateViewer )
UpdateViewer();
}
//=================================================================
void GEOM_Displayer::UpdateViewer()
{
- QAD_ViewFrame* vf = GetActiveView();
+ SALOME_View* vf = GetActiveView();
if ( vf )
vf->Repaint();
}
//=================================================================
void GEOM_Displayer::Update( SALOME_OCCPrs* prs )
{
- OCCViewer_Prs* occPrs = dynamic_cast<OCCViewer_Prs*>( prs );
+ SOCC_Prs* occPrs = dynamic_cast<SOCC_Prs*>( prs );
if ( !occPrs )
return;
- OCCViewer_ViewFrame* vf = dynamic_cast<OCCViewer_ViewFrame*>( myViewFrame );
- if ( !vf )
- return;
-
if ( myType == GEOM_MARKER && !myShape.IsNull() && myShape.ShapeType() == TopAbs_FACE )
{
TopoDS_Face aFace = TopoDS::Face( myShape );
//=================================================================
void GEOM_Displayer::Update( SALOME_VTKPrs* prs )
{
- VTKViewer_Prs* vtkPrs = dynamic_cast<VTKViewer_Prs*>( prs );
+ SVTK_Prs* vtkPrs = dynamic_cast<SVTK_Prs*>( prs );
if ( !vtkPrs || myShape.IsNull() )
return;
gp_Ax2 anAx2 = aPlane->Pln().Position().Ax2();
aTrh->SetPlacement( new Geom_Axis2Placement( anAx2 ) );
- if ( VTKViewer_ViewFrame* vf = dynamic_cast<VTKViewer_ViewFrame*>( GetActiveView() ) )
- aTrh->SetSize( 0.5 * vf->GetTrihedronSize() );
+// if ( SVTK_Viewer* vf = dynamic_cast<SVTK_Viewer*>( GetActiveView() ) )
+// aTrh->SetSize( 0.5 * vf->GetTrihedronSize() );
vtkPrs->AddObject( aTrh );
if ( theObj->_is_nil() )
return 0;
- GeometryGUI* geomGUI = GeometryGUI::GetGeomGUI();
-
myViewFrame = GetActiveView();
if ( myViewFrame == 0 )
return 0;
return 0;
internalReset();
- setShape( geomGUI->GetShapeReader().GetShape( geomGUI->GetGeomGen(), theObj ) );
+ setShape( GEOM_Client().GetShape( GeometryGUI::GetGeomGen(), theObj ) );
myType = theObj->GetType();
// Update presentation
*/
//=================================================================
SALOME_Prs* GEOM_Displayer::buildPresentation( const Handle(SALOME_InteractiveObject)& theIO,
- QAD_ViewFrame* theViewFrame )
+ SALOME_View* theViewFrame )
{
SALOME_Prs* prs = 0;
internalReset();
- GeometryGUI* geomGUI = GeometryGUI::GetGeomGUI();
-
- myViewFrame = theViewFrame; // no dynamic_cast here to use double dispatch
- if ( !myViewFrame )
- myViewFrame = GetActiveView();
+ myViewFrame = theViewFrame ? theViewFrame : GetActiveView();
- if ( myViewFrame ) {
+ if ( myViewFrame )
+ {
prs = myViewFrame->CreatePrs( !theIO.IsNull() ? theIO->getEntry() : 0 );
- if ( prs ) {
- if ( !theIO.IsNull() ) {
+ if ( prs )
+ {
+ if ( !theIO.IsNull() )
+ {
// set interactive object
setIO( theIO );
// Find SOBject (because shape should be published previously)
- SALOMEDS::SObject_var SO = getActiveStudy()->getStudyDocument()->FindObjectID( theIO->getEntry() );
- if ( !SO->_is_nil() ) {
- // get CORBA reference to data object
- CORBA::Object_var object = SO->GetObject();
- if ( !CORBA::is_nil( object ) ) {
- // downcast to GEOM object
- GEOM::GEOM_Object_var GeomObject = GEOM::GEOM_Object::_narrow( object );
- if ( !GeomObject->_is_nil() ) {
- // finally set shape
- setShape( geomGUI->GetShapeReader().GetShape( geomGUI->GetGeomGen(), GeomObject ) );
- myType = GeomObject->GetType();
+ SUIT_Session* session = SUIT_Session::session();
+ SUIT_Application* app = session->activeApplication();
+ if ( app )
+ {
+ SalomeApp_Study* study = dynamic_cast<SalomeApp_Study*>( app->activeStudy() );
+ if ( study )
+ {
+ _PTR(SObject) SO ( study->studyDS()->FindObjectID( theIO->getEntry() ) );
+ if ( SO )
+ {
+ // get CORBA reference to data object
+ CORBA::Object_var object = dynamic_cast<SALOMEDS_SObject*>(SO.get())->GetObject();
+ if ( !CORBA::is_nil( object ) )
+ {
+ // downcast to GEOM object
+ GEOM::GEOM_Object_var GeomObject = GEOM::GEOM_Object::_narrow( object );
+ if ( !GeomObject->_is_nil() )
+ {
+ // finally set shape
+ setShape( GEOM_Client().GetShape( GeometryGUI::GetGeomGen(), GeomObject ) );
+ myType = GeomObject->GetType();
+ }
+ }
}
}
}
//=================================================================
void GEOM_Displayer::LocalSelection( const Handle(SALOME_InteractiveObject)& theIO, const int theMode )
{
- // remove all filters from selection
- SALOME_Selection* aSel = SALOME_Selection::Selection(
- QAD_Application::getDesktop()->getActiveStudy()->getSelection() );
+ SUIT_Session* session = SUIT_Session::session();
+ SalomeApp_Application* app = dynamic_cast<SalomeApp_Application*>( session->activeApplication() );
+ if ( !app )
+ return;
- aSel->ClearFilters();
+ SalomeApp_SelectionMgr* sm = app->selectionMgr();
+
+ // remove all filters from selection
+ sm->clearFilters();
- QAD_ViewFrame* vf = GetActiveView();
+ SALOME_View* vf = GetActiveView();
if ( vf )
- {
- SALOME_Prs* prs = vf->CreatePrs( theIO.IsNull() ? 0 : theIO->getEntry() );
- ((SALOME_View*)vf)->LocalSelection( prs, theMode );
- delete prs; // delete presentation because displayer is its owner
- }
+ {
+ SALOME_Prs* prs = vf->CreatePrs( theIO.IsNull() ? 0 : theIO->getEntry() );
+ vf->LocalSelection( prs, theMode );
+ delete prs; // delete presentation because displayer is its owner
+ }
}
//=================================================================
void GEOM_Displayer::GlobalSelection( const TColStd_MapOfInteger& theModes,
const bool update )
{
- QAD_ViewFrame* vf = GetActiveView();
+ SUIT_Session* session = SUIT_Session::session();
+ SalomeApp_Application* app = dynamic_cast<SalomeApp_Application*>( session->activeApplication() );
+ if ( !app )
+ return;
+
+ SALOME_View* vf = GetActiveView();
if ( vf == 0 )
return;
-
+
// Close local context
vf->GlobalSelection( update );
// Set selection filters in accordance with current mode
- SALOME_Selection* aSel = SALOME_Selection::Selection(
- QAD_Application::getDesktop()->getActiveStudy()->getSelection() );
+ SalomeApp_SelectionMgr* sm = app->selectionMgr();
+ if ( !sm )
+ return;
// Remove from selection temporary objects if necessary
if ( !theModes.Contains( GEOM_PREVIEW ) )
- clearTemporary( aSel );
+ clearTemporary( sm );
- aSel->ClearIndex();
+ //@ aSel->ClearIndex();
- aSel->ClearFilters();
-
+ sm->clearFilters();
+
+ // Remove filters from AIS_InteractiveContext
+ Handle(AIS_InteractiveContext) ic;
+ SOCC_Viewer* viewer = dynamic_cast<SOCC_Viewer*>( vf );
+ if ( viewer )
+ {
+ ic = viewer->getAISContext();
+ if ( !ic.IsNull() )
+ ic->RemoveFilters();
+ }
+
if ( theModes.Contains( GEOM_ALLOBJECTS ) )
return;
- Handle(SALOME_Filter) aFilter;
+ SUIT_SelectionFilter* aFilter;
if ( theModes.Extent() == 1 )
- {
- int aMode = TColStd_MapIteratorOfMapOfInteger( theModes ).Key();
- aFilter = getFilter( aMode );
- }
+ {
+ int aMode = TColStd_MapIteratorOfMapOfInteger( theModes ).Key();
+ aFilter = getFilter( aMode );
+ }
else if ( theModes.Extent() > 1 )
- {
- TColStd_MapOfInteger aTopAbsModes;
- TColStd_MapIteratorOfMapOfInteger anIter( theModes );
- GEOM_ListOfFilter aListOfFilters;
- for ( ; anIter.More(); anIter.Next() )
{
- Handle(SALOME_Filter) aFilter = getFilter( anIter.Key() );
- if ( !aFilter.IsNull() )
- aListOfFilters.Append( aFilter );
+ TColStd_MapOfInteger aTopAbsModes;
+ TColStd_MapIteratorOfMapOfInteger anIter( theModes );
+ QPtrList<SUIT_SelectionFilter> aListOfFilters;
+ for ( ; anIter.More(); anIter.Next() )
+ {
+ SUIT_SelectionFilter* aFilter = getFilter( anIter.Key() );
+ if ( aFilter )
+ aListOfFilters.append( aFilter );
+ }
+
+ aFilter = new GEOM_LogicalFilter( aListOfFilters, GEOM_LogicalFilter::LO_OR );
}
-
- aFilter = new GEOM_LogicalFilter( aListOfFilters, GEOM_LogicalFilter::LO_OR );
- }
else
return;
- if ( !aFilter.IsNull() )
- aSel->AddFilter( aFilter );
+ if ( aFilter )
+ {
+ sm->installFilter( aFilter );
+ if ( !ic.IsNull() )
+ {
+ Handle(GEOM_OCCFilter) anOCCFilter = new GEOM_OCCFilter( sm );
+ ic->AddFilter( anOCCFilter );
+ }
+ }
}
//=================================================================
//=================================================================
void GEOM_Displayer::BeforeDisplay( SALOME_View* v, const SALOME_OCCViewType& )
{
- OCCViewer_ViewFrame* vf = dynamic_cast<OCCViewer_ViewFrame*>( v );
+ SOCC_Viewer* vf = dynamic_cast<SOCC_Viewer*>( v );
if ( vf )
{
- Handle(AIS_InteractiveContext) ic = vf->getViewer()->getAISContext();
+ Handle(AIS_InteractiveContext) ic = vf->getAISContext();
if ( !ic.IsNull() )
{
if ( ic->HasOpenedContext() )
* Removes from selection temporary objects
*/
//=================================================================
-void GEOM_Displayer::clearTemporary( SALOME_Selection* theSel )
+void GEOM_Displayer::clearTemporary( SalomeApp_SelectionMgr* theSelMgr )
{
- SALOME_ListIO toBeRemoved;
- SALOME_ListIteratorOfListIO anIter( theSel->StoredIObjects() );
+ SALOME_ListIO toBeSelected;
+ theSelMgr->selectedObjects(toBeSelected)
+;
+ SALOME_ListIteratorOfListIO anIter( toBeSelected );
for ( ; anIter.More(); anIter.Next() )
- {
- Handle(SALOME_InteractiveObject) anIO = anIter.Value();
- if ( anIO->hasEntry() && ( strncmp( anIO->getEntry(), "TEMP_", 5 ) == 0 ) )
- toBeRemoved.Append( anIO );
- }
-
- SALOME_ListIteratorOfListIO anIter2( toBeRemoved );
- for ( ; anIter2.More(); anIter2.Next() )
- theSel->RemoveIObject( anIter2.Value(), false );
+ {
+ Handle(SALOME_InteractiveObject) anIO = anIter.Value();
+ if ( !(anIO->hasEntry()) || ( strncmp( anIO->getEntry(), "TEMP_", 5 ) != 0 ) )
+ toBeSelected.Remove( anIter );
+ }
+
+ theSelMgr->setSelectedObjects( toBeSelected, true );
}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
typedef std::list<GEOM::GEOM_Object_ptr> ObjectList;
class TColStd_MapOfInteger;
-class QAD_ViewFrame;
-class SALOME_Selection;
+class SalomeApp_SelectionMgr;
+class SalomeApp_Study;
+class SUIT_SelectionFilter;
+//class SALOME_Selection;
class GEOM_Displayer : public SALOME_Displayer
{
public:
/* Constructor */
- GEOM_Displayer();
+ GEOM_Displayer( SalomeApp_Study* study );
/* Destructor */
virtual ~GEOM_Displayer();
void Display ( const Handle(SALOME_InteractiveObject)& theIO,
const bool updateViewer = true,
- QAD_ViewFrame* theViewFrame = 0 );
+ SALOME_View* theViewFrame = 0 );
// This overloaded Display() method can be useful for operations
// not using dialog boxes.
void Erase ( const Handle(SALOME_InteractiveObject)& theIO,
const bool forced = false,
const bool updateViewer = true,
- QAD_ViewFrame* theViewFrame = 0 );
+ SALOME_View* theViewFrame = 0 );
void Erase ( GEOM::GEOM_Object_ptr theObj,
const bool forced = false,
void Redisplay ( const SALOME_ListIO& theIOList,
const bool updateViewer = true );
+ /* Erase all objects displayed in the given or active view */
+ void EraseAll ( const bool forced = false,
+ const bool updateViewer = true,
+ SALOME_View* theViewFrame = 0 );
+
/* Update current viewer */
void UpdateViewer();
void GlobalSelection( const int = GEOM_ALLOBJECTS, const bool = false );
void GlobalSelection( const TColStd_MapOfInteger&, const bool = false );
- static QAD_ViewFrame* GetActiveView();
+ static SALOME_View* GetActiveView();
+ SalomeApp_Study* getStudy() const {return myStudy;}
protected:
/* internal methods */
/* Builds presentation accordint to the current viewer type */
SALOME_Prs* buildPresentation( const Handle(SALOME_InteractiveObject)& theIO,
- QAD_ViewFrame* theViewFrame = 0 );
+ SALOME_View* theViewFrame = 0 );
/* Sets interactive object */
void setIO( const Handle(SALOME_InteractiveObject)& theIO ) { myIO = theIO; }
/* Resets internal data */
void internalReset();
- void clearTemporary( SALOME_Selection* );
+ void clearTemporary( SalomeApp_SelectionMgr* theSelMgr );
+ SUIT_SelectionFilter* getFilter( const int theMode );
+
protected:
Handle(SALOME_InteractiveObject) myIO;
TopoDS_Shape myShape;
string myName;
int myType;
- QAD_ViewFrame* myViewFrame;
+ SALOME_View* myViewFrame;
// Attributes
Quantity_Color myShadingColor;
int myColor;
double myWidth;
bool myToActivate;
+
+private:
+ SalomeApp_Study* myStudy;
};
#endif // __GEOM_DISPLAYER_H
msgid "GEOM_PROPAGATE"
msgstr "Propagate"
-###
+### Menu of GEOM module ###
+msgid "MEN_FILE"
+msgstr "File"
+
+msgid "TOP_IMPORT"
+msgstr "Import geometry from BREP file"
+
+msgid "MEN_IMPORT"
+msgstr "Import..."
+
+msgid "STB_IMPORT"
+msgstr "Import geometry from BREP file"
+
+msgid "TOP_EXPORT"
+msgstr "Export geometry to BREP file"
+
+msgid "MEN_EXPORT"
+msgstr "Export..."
+
+msgid "STB_EXPORT"
+msgstr "Export geometry to BREP file"
+
+msgid "MEN_EDIT"
+msgstr "Edit"
+
+msgid "TOP_DELETE"
+msgstr "Delete object"
+
+msgid "MEN_DELETE"
+msgstr "Delete"
+
+msgid "STB_DELETE"
+msgstr "Delete object"
+
+msgid "MEN_NEW_ENTITY"
+msgstr "New Entity"
+
+msgid "MEN_BASIC"
+msgstr "Basic"
+
+msgid "TOP_POINT"
+msgstr "Create a point"
+
+msgid "MEN_POINT"
+msgstr "Point"
+
+msgid "STB_POINT"
+msgstr "Create a point"
+
+msgid "TOP_LINE"
+msgstr "Create a line"
+
+msgid "MEN_LINE"
+msgstr "Line"
+
+msgid "STB_LINE"
+msgstr "Create a line"
+
+msgid "TOP_CIRCLE"
+msgstr "Create a circle"
+
+msgid "MEN_CIRCLE"
+msgstr "Circle"
+
+msgid "STB_CIRCLE"
+msgstr "Create a circle"
+
+msgid "TOP_ELLIPSE"
+msgstr "Create a ellipse"
+
+msgid "MEN_ELLIPSE"
+msgstr "Ellipse"
+
+msgid "STB_ELLIPSE"
+msgstr "Create a ellipse"
+
+msgid "TOP_ARC"
+msgstr "Create a arc"
+
+msgid "MEN_ARC"
+msgstr "Arc"
+
+msgid "STB_ARC"
+msgstr "Create a arc"
+
+msgid "TOP_CURVE"
+msgstr "Create a curve"
+
+msgid "MEN_CURVE"
+msgstr "Curve"
+
+msgid "STB_CURVE"
+msgstr "Create a curve"
+
+msgid "TOP_VECTOR"
+msgstr "Create a vector"
+
+msgid "MEN_VECTOR"
+msgstr "Vector"
+
+msgid "STB_VECTOR"
+msgstr "Create a vector"
+
+msgid "TOP_PLANE"
+msgstr "Create a plane"
+
+msgid "MEN_PLANE"
+msgstr "Plane"
+
+msgid "STB_PLANE"
+msgstr "Create a plane"
+
+msgid "TOP_WORK_PLANE"
+msgstr "Create a working plane"
+
+msgid "MEN_WORK_PLANE"
+msgstr "Working plane"
+
+msgid "STB_WORK_PLANE"
+msgstr "Create a working plane"
+
+msgid "TOP_LOCAL_CS"
+msgstr "Create a local coordinate system"
+
+msgid "MEN_LOCAL_CS"
+msgstr "Local coordinate system"
+
+msgid "STB_LOCAL_CS"
+msgstr "Create a local coordinate system"
+
+msgid "MEN_PRIMITIVES"
+msgstr "Primitives"
+
+msgid "TOP_BOX"
+msgstr "Create a box"
+
+msgid "MEN_BOX"
+msgstr "Box"
+
+msgid "STB_BOX"
+msgstr "Create a box"
+
+msgid "TOP_CYLINDER"
+msgstr "Create a cyliner"
+
+msgid "MEN_CYLINDER"
+msgstr "Cyliner"
+
+msgid "STB_CYLINDER"
+msgstr "Create a cylinder"
+
+msgid "TOP_SPHERE"
+msgstr "Create a sphere"
+
+msgid "MEN_SPHERE"
+msgstr "Sphere"
+
+msgid "STB_SPHERE"
+msgstr "Create a sphere"
+
+msgid "TOP_TORUS"
+msgstr "Create a torus"
+
+msgid "MEN_TORUS"
+msgstr "Torus"
+
+msgid "STB_TORUS"
+msgstr "Create a torus"
+
+msgid "TOP_CONE"
+msgstr "Create a cone"
+
+msgid "MEN_CONE"
+msgstr "Cone"
+
+msgid "STB_CONE"
+msgstr "Create a cone"
+
+msgid "MEN_GENERATION"
+msgstr "Generation"
+
+msgid "TOP_EXTRUSION"
+msgstr "Create an extrusion"
+
+msgid "MEN_EXTRUSION"
+msgstr "Extrusion"
+
+msgid "STB_EXTRUSION"
+msgstr "Create an extrusion"
+
+msgid "TOP_REVOLUTION"
+msgstr "Create a revolution"
+
+msgid "MEN_REVOLUTION"
+msgstr "Revolution"
+
+msgid "STB_REVOLUTION"
+msgstr "Create a revolution"
+
+msgid "TOP_FILLING"
+msgstr "Create a filling"
+
+msgid "MEN_FILLING"
+msgstr "Filling"
+
+msgid "STB_FILLING"
+msgstr "Create a filling"
+
+msgid "TOP_PIPE"
+msgstr "Create a pipe"
+
+msgid "MEN_PIPE"
+msgstr "Pipe"
+
+msgid "STB_PIPE"
+msgstr "Create a pipe"
+
+msgid "MEN_GROUP"
+msgstr "Group"
+
+msgid "TOP_GROUP_CREATE"
+msgstr "Create a group"
+
+msgid "MEN_GROUP_CREATE"
+msgstr "Create"
+
+msgid "STB_GROUP_CREATE"
+msgstr "Create a group"
+
+msgid "TOP_GROUP_EDIT"
+msgstr "Edit a group"
+
+msgid "MEN_GROUP_EDIT"
+msgstr "Edit"
+
+msgid "STB_GROUP_EDIT"
+msgstr "Edit a group"
+
+msgid "MEN_BLOCKS"
+msgstr "Blocks"
+
+msgid "TOP_Q_FACE"
+msgstr "Quadrangle Face"
+
+msgid "MEN_Q_FACE"
+msgstr "Quadrangle Face"
+
+msgid "STB_Q_FACE"
+msgstr "Quadrangle Face"
+
+msgid "TOP_HEX_SOLID"
+msgstr "Hexahedral Solid"
+
+msgid "MEN_HEX_SOLID"
+msgstr "Hexahedral Solid"
+
+msgid "STB_HEX_SOLID"
+msgstr "Hexahedral Solid"
+
+msgid "TOP_SKETCH"
+msgstr "Sketch"
+
+msgid "MEN_SKETCH"
+msgstr "Sketch"
+
+msgid "STB_SKETCH"
+msgstr "Sketch"
+
+msgid "TOP_EXPLODE"
+msgstr "Explode"
+
+msgid "MEN_EXPLODE"
+msgstr "Explode"
+
+msgid "STB_EXPLODE"
+msgstr "Explode"
+
+msgid "MEN_BUILD"
+msgstr "Build"
+
+msgid "TOP_EDGE"
+msgstr "Build an edge"
+
+msgid "MEN_EDGE"
+msgstr "Edge"
+
+msgid "STB_EDGE"
+msgstr "Build an edge"
+
+msgid "TOP_WIRE"
+msgstr "Build a wire"
+
+msgid "MEN_WIRE"
+msgstr "Wire"
+
+msgid "STB_WIRE"
+msgstr "Build a wire"
+
+msgid "TOP_FACE"
+msgstr "Build a face"
+
+msgid "MEN_FACE"
+msgstr "Face"
+
+msgid "STB_FACE"
+msgstr "Build a face"
+
+msgid "TOP_SHELL"
+msgstr "Build a shell"
+
+msgid "MEN_SHELL"
+msgstr "Shell"
+
+msgid "STB_SHELL"
+msgstr "Build a shell"
+
+msgid "TOP_SOLID"
+msgstr "Build a solid"
+
+msgid "MEN_SOLID"
+msgstr "Solid"
+
+msgid "STB_SOLID"
+msgstr "Build a solid"
+
+msgid "TOP_COMPOUND"
+msgstr "Build a compound"
+
+msgid "MEN_COMPOUND"
+msgstr "Compound"
+
+msgid "STB_COMPOUND"
+msgstr "Build a compound"
+
+msgid "MEN_OPERATIONS"
+msgstr "Operations"
+
+msgid "MEN_BOOLEAN"
+msgstr "Boolean"
+
+msgid "TOP_FUSE"
+msgstr "Fuse"
+
+msgid "MEN_FUSE"
+msgstr "Fuse"
+
+msgid "STB_FUSE"
+msgstr "Fuse"
+
+msgid "TOP_COMMON"
+msgstr "Common"
+
+msgid "MEN_COMMON"
+msgstr "Common"
+
+msgid "STB_COMMON"
+msgstr "Common"
+
+msgid "TOP_CUT"
+msgstr "Cut"
+
+msgid "MEN_CUT"
+msgstr "Cut"
+
+msgid "STB_CUT"
+msgstr "Cut"
+
+msgid "TOP_SECTION"
+msgstr "Section"
+
+msgid "MEN_SECTION"
+msgstr "Section"
+
+msgid "STB_SECTION"
+msgstr "Section"
+
+msgid "MEN_TRANSFORMATION"
+msgstr "Transformation"
+
+msgid "TOP_TRANSLATION"
+msgstr "Translation"
+
+msgid "MEN_TRANSLATION"
+msgstr "Translation"
+
+msgid "STB_TRANSLATION"
+msgstr "Translation"
+
+msgid "TOP_ROTATION"
+msgstr "Rotation"
+
+msgid "MEN_ROTATION"
+msgstr "Rotation"
+
+msgid "STB_ROTATION"
+msgstr "Rotation"
+
+msgid "TOP_MODIFY_LOCATION"
+msgstr "Modify the Location"
+
+msgid "MEN_MODIFY_LOCATION"
+msgstr "Modify the Location"
+
+msgid "STB_MODIFY_LOCATION"
+msgstr "Modify the Location"
+
+msgid "TOP_MIRROR"
+msgstr "Mirror image"
+
+msgid "MEN_MIRROR"
+msgstr "Mirror image"
+
+msgid "STB_MIRROR"
+msgstr "Mirror image"
+
+msgid "TOP_SCALE"
+msgstr "Scale transform"
+
+msgid "MEN_SCALE"
+msgstr "Scale transform"
+
+msgid "STB_SCALE"
+msgstr "Scale transform"
+
+msgid "TOP_OFFSET"
+msgstr "Offset surface"
+
+msgid "MEN_OFFSET"
+msgstr "Offset surface"
+
+msgid "STB_OFFSET"
+msgstr "Offset surface"
+
+msgid "TOP_MUL_TRANSLATION"
+msgstr "Multi-Translation"
+
+msgid "MEN_MUL_TRANSLATION"
+msgstr "Multi-Translation"
+
+msgid "STB_MUL_TRANSLATION"
+msgstr "Multi-Translation"
+
+msgid "TOP_MUL_ROTATION"
+msgstr "Multi-Rotation"
+
+msgid "MEN_MUL_ROTATION"
+msgstr "Multi-Rotation"
+
+msgid "STB_MUL_ROTATION"
+msgstr "Multi-Rotation"
+
+msgid "TOP_PARTITION"
+msgstr "Partition"
+
+msgid "MEN_PARTITION"
+msgstr "Partition"
+
+msgid "STB_PARTITION"
+msgstr "Partition"
+
+msgid "TOP_ARCHIMEDE"
+msgstr "Archimede"
+
+msgid "MEN_ARCHIMEDE"
+msgstr "Archimede"
+
+msgid "STB_ARCHIMEDE"
+msgstr "Archimede"
+
+msgid "TOP_FILLET"
+msgstr "Fillet"
+
+msgid "MEN_FILLET"
+msgstr "Fillet"
+
+msgid "STB_FILLET"
+msgstr "Fillet"
+
+msgid "TOP_CHAMFER"
+msgstr "Chamfer"
+
+msgid "MEN_CHAMFER"
+msgstr "Chamfer"
+
+msgid "STB_CHAMFER"
+msgstr "Chamfer"
+
+msgid "TOP_CLIPPING"
+msgstr "Clipping range"
+
+msgid "MEN_CLIPPING"
+msgstr "Clipping range"
+
+msgid "STB_CLIPPING"
+msgstr "Clipping range"
+
+msgid "TOP_MUL_TRANSFORM"
+msgstr "Multi-transformation"
+
+msgid "MEN_MUL_TRANSFORM"
+msgstr "Multi-transformation"
+
+msgid "STB_MUL_TRANSFORM"
+msgstr "Multi-transformation"
+
+msgid "TOP_EXPLODE_BLOCKS"
+msgstr "Expload on Blocks"
+
+msgid "MEN_EXPLODE_BLOCKS"
+msgstr "Expload on Blocks"
+
+msgid "STB_EXPLODE_BLOCKS"
+msgstr "Expload on Blocks"
+
+msgid "TOP_PROPAGATE"
+msgstr "Propagate"
+
+msgid "MEN_PROPAGATE"
+msgstr "Propagate"
+
+msgid "STB_PROPAGATE"
+msgstr "Propagate"
+
+msgid "MEN_REPAIR"
+msgstr "Repair"
+
+msgid "TOP_SHAPE_PROCESS"
+msgstr "Perform shape processing"
+
+msgid "MEN_SHAPE_PROCESS"
+msgstr "Shape processing"
+
+msgid "STB_SHAPE_PROCESS"
+msgstr "Perform shape processing "
+
+msgid "TOP_SUPPRESS_FACES"
+msgstr "Perform suppress faces"
+
+msgid "MEN_SUPPRESS_FACES"
+msgstr "Suppress faces"
+
+msgid "STB_SUPPRESS_FACES"
+msgstr "Perform suppress faces"
+
+msgid "TOP_CLOSE_CONTOUR"
+msgstr "Perform close contour"
+
+msgid "MEN_CLOSE_CONTOUR"
+msgstr "Close contour"
+
+msgid "STB_CLOSE_CONTOUR"
+msgstr "Perform close contour"
+
+msgid "TOP_SUPPRESS_INT_WIRES"
+msgstr "Perform suppress internal wires"
+
+msgid "MEN_SUPPRESS_INT_WIRES"
+msgstr "Suppress internal wires"
+
+msgid "STB_SUPPRESS_INT_WIRES"
+msgstr "Perform suppress internal wires"
+
+msgid "TOP_SUPPERSS_HOLES"
+msgstr "Perform suppress holes"
+
+msgid "MEN_SUPPERSS_HOLES"
+msgstr "Suppress holes"
+
+msgid "STB_SUPPERSS_HOLES"
+msgstr "Perform suppress holes"
+
+msgid "TOP_SEWING"
+msgstr "Perform sewing"
+
+msgid "MEN_SEWING"
+msgstr "Sewing"
+
+msgid "STB_SEWING"
+msgstr "Perform sewing"
+
+msgid "TOP_GLUE_FACES"
+msgstr "Perform glue faces"
+
+msgid "MEN_GLUE_FACES"
+msgstr "Glue faces"
+
+msgid "STB_GLUE_FACES"
+msgstr "Perform glue faces"
+
+msgid "TOP_POINT_ON_EDGE"
+msgstr "Add point on edge"
+
+msgid "MEN_POINT_ON_EDGE"
+msgstr "Add point on edge"
+
+msgid "STB_POINT_ON_EDGE"
+msgstr "Add point on edge"
+
+msgid "TOP_CHECK_FREE_BNDS"
+msgstr "Check free boundaries"
+
+msgid "MEN_CHECK_FREE_BNDS"
+msgstr "Check free boundaries"
+
+msgid "STB_CHECK_FREE_BNDS"
+msgstr "Check free boundaries"
+
+msgid "TOP_CHECK_FREE_FACES"
+msgstr "Check free faces"
+
+msgid "MEN_CHECK_FREE_FACES"
+msgstr "Check free faces"
+
+msgid "STB_CHECK_FREE_FACES"
+msgstr "Check free faces"
+
+msgid "MEN_MEASURES"
+msgstr "Measures"
+
+msgid "TOP_POINT_COORDS"
+msgstr "Point corrdinates"
+
+msgid "MEN_POINT_COORDS"
+msgstr "Point corrdinates"
+
+msgid "STB_POINT_COORDS"
+msgstr "Point corrdinates"
+
+msgid "TOP_BASIC_PROPS"
+msgstr "Basic properties"
+
+msgid "MEN_BASIC_PROPS"
+msgstr "Basic properties"
+
+msgid "STB_BASIC_PROPS"
+msgstr "Basic properties"
+
+msgid "TOP_MASS_CENTER"
+msgstr "Compute center of mass"
+
+msgid "MEN_MASS_CENTER"
+msgstr "Center of mass"
+
+msgid "STB_MASS_CENTER"
+msgstr "Compute center of mass"
+
+msgid "TOP_INERTIA"
+msgstr "Compute intertia"
+
+msgid "MEN_INERTIA"
+msgstr "Inertia"
+
+msgid "STB_INERTIA"
+msgstr "Compute intertia"
+
+msgid "MEN_DIMENSIONS"
+msgstr "Dimensions"
+
+msgid "TOP_BND_BOX"
+msgstr "Compute bounding box"
+
+msgid "MEN_BND_BOX"
+msgstr "Bounding box"
+
+msgid "STB_BND_BOX"
+msgstr "Compute bounding box"
+
+msgid "TOP_MIN_DIST"
+msgstr "Compute minimum distance"
+
+msgid "MEN_MIN_DIST"
+msgstr "Min distance"
+
+msgid "STB_MIN_DIST"
+msgstr "Compute minimum distance"
+
+msgid "TOP_TOLERANCE"
+msgstr "Compute tolerance"
+
+msgid "MEN_TOLERANCE"
+msgstr "Compute tolerance"
+
+msgid "STB_TOLERANCE"
+msgstr "Compute tolerance"
+
+msgid "TOP_WHAT_IS"
+msgstr "What is"
+
+msgid "MEN_WHAT_IS"
+msgstr "What is"
+
+msgid "STB_WHAT_IS"
+msgstr "What is"
+
+msgid "TOP_CHECK"
+msgstr "Check"
+
+msgid "MEN_CHECK"
+msgstr "Check"
+
+msgid "STB_CHECK"
+msgstr "Check"
+
+msgid "TOP_CHECK_COMPOUND"
+msgstr "Check compound of blocks"
+
+msgid "MEN_CHECK_COMPOUND"
+msgstr "Check compound of blocks"
+
+msgid "STB_CHECK_COMPOUND"
+msgstr "Check compound of blocks"
+
+msgid "MEN_TOOLS"
+msgstr "Tools"
+
+msgid "TOP_CHECK_GEOMETRY"
+msgstr "Check Geometry"
+
+msgid "MEN_CHECK_GEOMETRY"
+msgstr "Check Geometry"
+
+msgid "STB_CHECK_GEOMETRY"
+msgstr "Check Geometry"
+
+msgid "TOP_LOAD_SCRIPT"
+msgstr "Load script"
+
+msgid "MEN_LOAD_SCRIPT"
+msgstr "Load script"
+
+msgid "STB_LOAD_SCRIPT"
+msgstr "Load script"
+
+msgid "MEN_PREFERENCES"
+msgstr "Preferences"
+
+msgid "MEN_PREFERENCES_GEOM"
+msgstr "Geometry"
+
+msgid "TOP_SHADING_COLOR"
+msgstr "Set shading color"
+
+msgid "MEN_SHADING_COLOR"
+msgstr "Shading color"
+
+msgid "STB_SHADING_COLOR"
+msgstr "Set shading color"
+
+msgid "TOP_ISOS"
+msgstr "Set number of isolines"
+
+msgid "MEN_ISOS"
+msgstr "Isos"
+
+msgid "STB_ISOS"
+msgstr "Set number of isolines"
+
+msgid "TOP_STEP_VALUE"
+msgstr "Set step value"
+
+msgid "MEN_STEP_VALUE"
+msgstr "Step value"
+
+msgid "STB_STEP_VALUE"
+msgstr "Set step value"
+
+msgid "MEN_VIEW"
+msgstr "View"
+
+msgid "MEN_DISPLAY_MODE"
+msgstr "Display mode"
+
+msgid "TOP_SHADING"
+msgstr "Shading"
+
+msgid "MEN_SHADING"
+msgstr "Shading"
+
+msgid "STB_SHADING"
+msgstr "Shading"
+
+msgid "TOP_DISPLAY_ALL"
+msgstr "Display all"
+
+msgid "MEN_DISPLAY_ALL"
+msgstr "Display all"
+
+msgid "STB_DISPLAY_ALL"
+msgstr "Display all"
+
+msgid "TOP_ERASE_ALL"
+msgstr "Erase all"
+
+msgid "MEN_ERASE_ALL"
+msgstr "Erase all"
+
+msgid "STB_ERASE_ALL"
+msgstr "Erase all"
+
+msgid "TOP_DISPLAY"
+msgstr "Display"
+
+msgid "MEN_DISPLAY"
+msgstr "Display"
+
+msgid "STB_DISPLAY"
+msgstr "Display"
+
+msgid "TOP_DISPLAY_ONLY"
+msgstr "Display only"
+
+msgid "MEN_DISPLAY_ONLY"
+msgstr "Display only"
+
+msgid "STB_DISPLAY_ONLY"
+msgstr "Display only"
+
+msgid "TOP_ERASE"
+msgstr "Erase"
+
+msgid "MEN_ERASE"
+msgstr "Erase"
+
+msgid "STB_ERASE"
+msgstr "Erase"
+
+msgid "TOP_POP_RENAME"
+msgstr "Rename"
+
+msgid "MEN_POP_RENAME"
+msgstr "Rename"
+
+msgid "STB_POP_RENAME"
+msgstr "Rename"
+
+msgid "TOP_POP_WIREFRAME"
+msgstr "Wireframe"
+
+msgid "MEN_POP_WIREFRAME"
+msgstr "Wireframe"
+
+msgid "STB_POP_WIREFRAME"
+msgstr "Wireframe"
+
+msgid "TOP_POP_SHADING"
+msgstr "Shading"
+
+msgid "MEN_POP_SHADING"
+msgstr "Shading"
+
+msgid "STB_POP_SHADING"
+msgstr "Shading"
+
+msgid "TOP_POP_COLOR"
+msgstr "Color"
+
+msgid "MEN_POP_COLOR"
+msgstr "Color"
+
+msgid "STB_POP_COLOR"
+msgstr "Color"
+
+msgid "TOP_POP_TRANSPARENCY"
+msgstr "Trancparency"
+
+msgid "MEN_POP_TRANSPARENCY"
+msgstr "Trancparency"
+
+msgid "STB_POP_TRANSPARENCY"
+msgstr "Trancparency"
+
+msgid "TOP_POP_ISOS"
+msgstr "Isolines"
+
+msgid "MEN_POP_ISOS"
+msgstr "Isos"
+
+msgid "STB_POP_ISOS"
+msgstr "Isolines"
+
+msgid "TOP_POP_CREATE_GROUP"
+msgstr "Create Group"
+
+msgid "MEN_POP_CREATE_GROUP"
+msgstr "Create Group"
+
+msgid "STB_POP_CREATE_GROUP"
+msgstr "Create Group"
+
+msgid "TOOL_BASIC"
+msgstr "Basic"
+
+msgid "TOOL_PRIMITIVES"
+msgstr "Primitives"
+
+msgid "TOOL_BOOLEAN"
+msgstr "Boolean operations"
+
+msgid "TOOL_GENERATION"
+msgstr "Generation"
+
+msgid "TOOL_TRANSFORMATION"
+msgstr "Transformation"
// $Header$
#include "GeometryGUI.h"
-
-// SALOME Includes
-#include "Utils_ORB_INIT.hxx"
-#include "Utils_SINGLETON.hxx"
-
-#include "QAD_Desktop.h"
-#include "QAD_Application.h"
-#include "QAD_RightFrame.h"
-#include "QAD_Config.h"
-#include "QAD_Tools.h"
-#include "QAD_MessageBox.h"
-#include "QAD_Resource.h"
-#include "SALOMEGUI_Desktop.h"
-
-#include "OCCViewer_Viewer3d.h"
-#include "OCCViewer_ViewFrame.h"
-#include "OCCViewer_ViewPort3d.h"
-#include "OCCViewer_Prs.h"
-
-#include "VTKViewer_ViewFrame.h"
-#include "VTKViewer_RenderWindowInteractor.h"
-#include "VTKViewer_InteractorStyleSALOME.h"
-#include "VTKViewer_Prs.h"
-#include "SALOME_Actor.h"
-
-#include "SALOME_Selection.h"
-#include "SALOME_ListIteratorOfListIO.hxx"
-#include "GEOM_AISShape.hxx"
-#include "GEOM_Displayer.h"
-
-#include "GEOMImpl_Types.hxx"
+#include "GEOMGUI_OCCSelector.h"
+#include "GEOMGUI_Selection.h"
+
+#include <SUIT_MessageBox.h>
+#include <SUIT_ResourceMgr.h>
+#include <SUIT_Session.h>
+#include <SUIT_ViewManager.h>
+
+#include <OCCViewer_ViewWindow.h>
+#include <OCCViewer_ViewPort3d.h>
+#include <OCCViewer_ViewModel.h>
+#include <OCCViewer_ViewManager.h>
+
+#include <VTKViewer_ViewWindow.h>
+#include <SVTK_RenderWindowInteractor.h>
+#include <SVTK_InteractorStyle.h>
+#include <SVTK_ViewModel.h>
+#include <VTKViewer_ViewManager.h>
+
+#include <SalomeApp_Application.h>
+#include <SalomeApp_SelectionMgr.h>
+#include <SalomeApp_VTKSelector.h>
+#include <SALOME_LifeCycleCORBA.hxx>
// External includes
#include <qfileinfo.h>
+#include <qpainter.h>
+
#include <Prs3d_Drawer.hxx>
#include <Prs3d_IsoAspect.hxx>
#include <OSD_SharedLibrary.hxx>
-#include "utilities.h"
+#include <utilities.h>
#include <vtkCamera.h>
#include <vtkRenderer.h>
-using namespace std;
-
extern "C" {
- Standard_EXPORT SALOMEGUI* GetComponentGUI() {
- return GeometryGUI::GetGeomGUI();
+ Standard_EXPORT CAM_Module* createModule() {
+ return new GeometryGUI();
}
}
+GEOM::GEOM_Gen_var GeometryGUI::myComponentGeom = GEOM::GEOM_Gen::_nil();
+
//=================================================================================
// class : CustomItem
// purpose : Set Font to a text.
QFont myFont;
};
-//=======================================================================
-// function : GeometryGUI::GetGeomGUI()
-// purpose : Gets the only object of GeometryGUI [ static ]
-//=======================================================================
-GeometryGUI* GeometryGUI::GetGeomGUI()
-{
- static GeometryGUI myContext;
- return &myContext;
-}
-
-//=======================================================================
-// function : GetORB
-// purpose : Returns a reference to ORB [ static ]
-//=======================================================================
-CORBA::ORB_var GeometryGUI::GetORB()
-{
- ORB_INIT& init = *SINGLETON_<ORB_INIT>::Instance();
- return init.orb();
-}
-
//=======================================================================
// function : GeometryGUI::GeometryGUI()
// purpose : Constructor
//=======================================================================
GeometryGUI::GeometryGUI() :
- SALOMEGUI()
+ SalomeApp_Module( "GEOM" )
{
- QAD_Desktop* desktop = QAD_Application::getDesktop();
- Engines::Component_var comp = desktop->getEngine( "FactoryServer", "GEOM" );
+ if ( CORBA::is_nil( myComponentGeom ) )
+ {
+ SALOME_LifeCycleCORBA* ls = new SALOME_LifeCycleCORBA( getApp()->namingService() );
+ Engines::Component_var comp = ls->FindOrLoad_Component( "FactoryServer", "GEOM" );
+ myComponentGeom = GEOM::GEOM_Gen::_narrow( comp );
+ }
- myComponentGeom = GEOM::GEOM_Gen::_narrow( comp );
myState = -1;
myActiveDialogBox = 0;
myFatherior = "";
gp_Pnt origin = gp_Pnt(0., 0., 0.);
gp_Dir direction = gp_Dir(0., 0., 1.);
myWorkingPlane = gp_Ax3(origin, direction);
+
+ myOCCSelectors.setAutoDelete( true );
+ myVTKSelectors.setAutoDelete( true );
}
//=======================================================================
// function : GeometryGUI::getLibrary()
// purpose : get or load GUI library by name [ internal ]
//=======================================================================
-typedef GEOMGUI* (*LibraryGUI)();
+typedef GEOMGUI* (*LibraryGUI)( GeometryGUI* );
GEOMGUI* GeometryGUI::getLibrary( const QString& libraryName )
{
if ( !myGUIMap.contains( libraryName ) ) {
QStringList dirList = QStringList::split( ":", libs, false ); // skip empty entries
for( int i = dirList.count()-1; i >= 0; i-- ) {
QString dir = dirList[ i ];
- QFileInfo fi( QAD_Tools::addSlash( dirList[ i ] ) + libraryName );
+ QFileInfo fi( Qtx::addSlash( dirList[ i ] ) + libraryName );
if( fi.exists() ) {
OSD_SharedLibrary aSharedLibrary( (char*)fi.fileName().latin1() );
bool res = aSharedLibrary.DlOpen( OSD_RTLD_LAZY );
}
OSD_Function osdF = aSharedLibrary.DlSymb( "GetLibGUI" );
if ( osdF != NULL ) {
- LibraryGUI func = (GEOMGUI* (*) ())osdF;
- GEOMGUI* libGUI = (*func)();
+ LibraryGUI func = (GEOMGUI* (*) (GeometryGUI*))osdF;
+ GEOMGUI* libGUI = (*func)(this);
if ( libGUI ) {
myGUIMap[ libraryName ] = libGUI;
break; // found and loaded!
gp_Dir DZ = myWorkingPlane.Direction();
gp_Dir DY = myWorkingPlane.YDirection();
- if( QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getTypeView() == VIEW_OCC) {
- OCCViewer_ViewPort* vp = ((OCCViewer_ViewFrame*)QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getRightFrame()->getViewFrame())->getViewPort();
- Handle(V3d_View) view3d = ((OCCViewer_ViewPort3d*)vp)->getView();
+ SUIT_ViewWindow* window = application()->desktop()->activeWindow();
+ bool ViewOCC = ( window && window->getViewManager()->getType() == OCCViewer_Viewer::Type() );
+ bool ViewVTK = ( window && window->getViewManager()->getType() == VTKViewer_Viewer::Type() );
+
+ if( ViewOCC ) {
+ OCCViewer_ViewWindow* vw = dynamic_cast<OCCViewer_ViewWindow*>( window );
+ if ( vw ) {
+ Handle(V3d_View) view3d = vw->getViewPort()->getView();
- view3d->SetProj(DZ.X(), DZ.Y(), DZ.Z());
- view3d->SetUp(DY.X(), DY.Y(), DY.Z());
+ view3d->SetProj(DZ.X(), DZ.Y(), DZ.Z());
+ view3d->SetUp(DY.X(), DY.Y(), DY.Z());
- ((OCCViewer_ViewFrame*)QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getRightFrame()->getViewFrame())->onViewFitAll();
+ vw->onViewFitAll();
+ }
}
- else if( QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getTypeView() == VIEW_VTK) {
- vtkRenderer* myRenderer = ((VTKViewer_ViewFrame*)QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getRightFrame()->getViewFrame())->getRenderer();
+ else if( ViewVTK ) {
+ VTKViewer_ViewWindow* vw = dynamic_cast<VTKViewer_ViewWindow*>( window );
+ if ( vw ) {
+ vtkCamera* camera = vw->getRenderer()->GetActiveCamera();
- vtkCamera* camera = myRenderer->GetActiveCamera();
- camera->SetPosition(DZ.X(), DZ.Y(), DZ.Z());
- camera->SetViewUp(DY.X(), DY.Y(), DY.Z());
- camera->SetFocalPoint(0,0,0);
+ camera->SetPosition(DZ.X(), DZ.Y(), DZ.Z());
+ camera->SetViewUp(DY.X(), DY.Y(), DY.Z());
+ camera->SetFocalPoint(0,0,0);
- ((OCCViewer_ViewFrame*)QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getRightFrame()->getViewFrame())->onViewFitAll();
+ vw->onFitAll();
+ }
}
-
}
//=======================================================================
//=======================================================================
// function : GeometryGUI::OnGUIEvent()
-// purpose : manage all events on GUI [static]
+// purpose : common slot for all menu/toolbar actions
//=======================================================================
-bool GeometryGUI::OnGUIEvent(int theCommandID, QAD_Desktop* parent)
+void GeometryGUI::OnGUIEvent()
{
- GeometryGUI* geomGUI = GeometryGUI::GetGeomGUI();
+ const QObject* obj = sender();
+ if ( !obj || !obj->inherits( "QAction" ) )
+ return;
+ int id = actionId((QAction*)obj);
+ if ( id != -1 )
+ OnGUIEvent( id );
+}
- // get main menu
- QMenuBar* Mb = parent->getMainMenuBar();
+//=======================================================================
+// function : GeometryGUI::OnGUIEvent()
+// purpose : manage all events on GUI [static]
+//=======================================================================
+void GeometryGUI::OnGUIEvent( int id )
+{
+ SUIT_Desktop* desk = application()->desktop();
// check if current viewframe is of OCC type
- bool ViewOCC = parent->getActiveStudy()->getActiveStudyFrame()->getTypeView() == VIEW_OCC;
+ SUIT_ViewWindow* window = desk->activeWindow();
+ bool ViewOCC = ( window && window->getViewManager()->getType() == OCCViewer_Viewer::Type() );
+ bool ViewVTK = ( window && window->getViewManager()->getType() == VTKViewer_Viewer::Type() );
// if current viewframe is not of OCC and not of VTK type - return immediately
- if( !ViewOCC && parent->getActiveStudy()->getActiveStudyFrame()->getTypeView() != VIEW_VTK)
- return false;
-
- // disable non-OCC viewframe menu commands
- //Mb->setItemEnabled( 404, ViewOCC ); // SKETCHER
- Mb->setItemEnabled( 603, ViewOCC ); // SuppressFace
- Mb->setItemEnabled( 604, ViewOCC ); // SuppressHole
- Mb->setItemEnabled( 606, ViewOCC ); // CloseContour
- Mb->setItemEnabled( 607, ViewOCC ); // RemoveInternalWires
- Mb->setItemEnabled( 608, ViewOCC ); // AddPointOnEdge
- //Mb->setItemEnabled( 609, ViewOCC ); // Free boundaries
- Mb->setItemEnabled( 413, ViewOCC ); // Isos Settings
-
- Mb->setItemEnabled( 800, ViewOCC ); // Create Group
- Mb->setItemEnabled( 801, ViewOCC ); // Edit Group
-
- Mb->setItemEnabled(9998, ViewOCC ); // MENU BLOCKS - MULTI-TRANSFORMATION
+ if( !ViewOCC && !ViewVTK )
+ return;
GEOMGUI* library = 0;
// try to get-or-load corresponding GUI library
- if( theCommandID == 111 || // MENU FILE - IMPORT BREP
- theCommandID == 112 || // MENU FILE - IMPORT IGES
- theCommandID == 113 || // MENU FILE - IMPORT STEP
- theCommandID == 121 || // MENU FILE - EXPORT BREP
- theCommandID == 122 || // MENU FILE - EXPORT IGES
- theCommandID == 123 || // MENU FILE - EXPORT STEP
- theCommandID == 31 || // MENU EDIT - COPY
- theCommandID == 33 || // MENU EDIT - DELETE
- theCommandID == 411 || // MENU SETTINGS - ADD IN STUDY
- theCommandID == 412 || // MENU SETTINGS - SHADING COLOR
- theCommandID == 413 || // MENU SETTINGS - ISOS
- theCommandID == 414 || // MENU SETTINGS - STEP VALUE FOR SPIN BOXES
- theCommandID == 5103 || // MENU TOOLS - CHECK GEOMETRY
- theCommandID == 5104 || // MENU TOOLS - LOAD SCRIPT
- theCommandID == 8032 || // POPUP VIEWER - COLOR
- theCommandID == 8033 || // POPUP VIEWER - TRANSPARENCY
- theCommandID == 8034 || // POPUP VIEWER - ISOS
- theCommandID == 804 || // POPUP VIEWER - ADD IN STUDY
- theCommandID == 901 || // OBJECT BROWSER - RENAME
- theCommandID == 9024 ) { // OBJECT BROWSER - OPEN
- library = geomGUI->getLibrary( "libGEOMToolsGUI.so" );
- }
- else if( theCommandID == 211 || // MENU VIEW - WIREFRAME/SHADING
- theCommandID == 212 || // MENU VIEW - DISPLAY ALL
- theCommandID == 213 || // MENU VIEW - DISPLAY ONLY
- theCommandID == 214 || // MENU VIEW - ERASE ALL
- theCommandID == 215 || // MENU VIEW - ERASE
- theCommandID == 216 || // MENU VIEW - DISPLAY
- theCommandID == 80311 || // POPUP VIEWER - WIREFRAME
- theCommandID == 80312 ) { // POPUP VIEWER - SHADING
- library = geomGUI->getLibrary( "libDisplayGUI.so" );
- }
- else if( theCommandID == 4011 || // MENU BASIC - POINT
- theCommandID == 4012 || // MENU BASIC - LINE
- theCommandID == 4013 || // MENU BASIC - CIRCLE
- theCommandID == 4014 || // MENU BASIC - ELLIPSE
- theCommandID == 4015 || // MENU BASIC - ARC
- theCommandID == 4016 || // MENU BASIC - VECTOR
- theCommandID == 4017 || // MENU BASIC - PLANE
- theCommandID == 4018 || // MENU BASIC - WPLANE
- theCommandID == 4019 || // MENU BASIC - CURVE
- theCommandID == 4020 ) { // MENU BASIC - REPAIR
- library = geomGUI->getLibrary( "libBasicGUI.so" );
- }
- else if( theCommandID == 4021 || // MENU PRIMITIVE - BOX
- theCommandID == 4022 || // MENU PRIMITIVE - CYLINDER
- theCommandID == 4023 || // MENU PRIMITIVE - SPHERE
- theCommandID == 4024 || // MENU PRIMITIVE - TORUS
- theCommandID == 4025 ) { // MENU PRIMITIVE - CONE
- library = geomGUI->getLibrary( "libPrimitiveGUI.so" );
- }
- else if( theCommandID == 4031 || // MENU GENERATION - PRISM
- theCommandID == 4032 || // MENU GENERATION - REVOLUTION
- theCommandID == 4033 || // MENU GENERATION - FILLING
- theCommandID == 4034 ) { // MENU GENERATION - PIPE
- library = geomGUI->getLibrary( "libGenerationGUI.so" );
- }
- else if( theCommandID == 404 || // MENU ENTITY - SKETCHER
- theCommandID == 407 ) { // MENU ENTITY - EXPLODE
- library = geomGUI->getLibrary( "libEntityGUI.so" );
- }
- else if( theCommandID == 4081 || // MENU BUILD - EDGE
- theCommandID == 4082 || // MENU BUILD - WIRE
- theCommandID == 4083 || // MENU BUILD - FACE
- theCommandID == 4084 || // MENU BUILD - SHELL
- theCommandID == 4085 || // MENU BUILD - SOLID
- theCommandID == 4086 ) { // MENU BUILD - COMPUND
- library = geomGUI->getLibrary( "libBuildGUI.so" );
- }
- else if( theCommandID == 5011 || // MENU BOOLEAN - FUSE
- theCommandID == 5012 || // MENU BOOLEAN - COMMON
- theCommandID == 5013 || // MENU BOOLEAN - CUT
- theCommandID == 5014 ) { // MENU BOOLEAN - SECTION
- library = geomGUI->getLibrary( "libBooleanGUI.so" );
- }
- else if( theCommandID == 5021 || // MENU TRANSFORMATION - TRANSLATION
- theCommandID == 5022 || // MENU TRANSFORMATION - ROTATION
- theCommandID == 5023 || // MENU TRANSFORMATION - LOCATION
- theCommandID == 5024 || // MENU TRANSFORMATION - MIRROR
- theCommandID == 5025 || // MENU TRANSFORMATION - SCALE
- theCommandID == 5026 || // MENU TRANSFORMATION - OFFSET
- theCommandID == 5027 || // MENU TRANSFORMATION - MULTI-TRANSLATION
- theCommandID == 5028 ) { // MENU TRANSFORMATION - MULTI-ROTATION
- library = geomGUI->getLibrary( "libTransformationGUI.so" );
- }
- else if( theCommandID == 503 || // MENU OPERATION - PARTITION
- theCommandID == 504 || // MENU OPERATION - ARCHIMEDE
- theCommandID == 505 || // MENU OPERATION - FILLET
- theCommandID == 506 || // MENU OPERATION - CHAMFER
- theCommandID == 507 ) { // MENU OPERATION - CLIPPING RANGE
- library = geomGUI->getLibrary( "libOperationGUI.so" );
- }
- else if( theCommandID == 601 || // MENU REPAIR - SEWING
- theCommandID == 603 || // MENU REPAIR - SUPPRESS FACES
- theCommandID == 604 || // MENU REPAIR - SUPPRESS HOLE
- theCommandID == 605 || // MENU REPAIR - SHAPE PROCESSING
- theCommandID == 606 || // MENU REPAIR - CLOSE CONTOUR
- theCommandID == 607 || // MENU REPAIR - REMOVE INTERNAL WIRES
- theCommandID == 608 || // MENU REPAIR - ADD POINT ON EDGE
- theCommandID == 609 || // MENU REPAIR - FREE BOUNDARIES
- theCommandID == 610 || // MENU REPAIR - FREE FACES
- theCommandID == 602 ) { // MENU REPAIR - GLUE FACES
- library = geomGUI->getLibrary( "libRepairGUI.so" );
- }
- else if( theCommandID == 701 || // MENU MEASURE - PROPERTIES
- theCommandID == 702 || // MENU MEASURE - CDG
- theCommandID == 703 || // MENU MEASURE - INERTIA
- theCommandID == 7041 || // MENU MEASURE - BOUNDING BOX
- theCommandID == 7042 || // MENU MEASURE - MIN DISTANCE
- theCommandID == 705 || // MENU MEASURE - TOLERANCE
- theCommandID == 706 || // MENU MEASURE - WHATIS
- theCommandID == 707 || // MENU MEASURE - CHECK
- theCommandID == 7072 || // MENU MEASURE - CHECK COMPOUND OF BLOCKS
- theCommandID == 708 ) { // MENU MEASURE - POINT COORDINATES
- library = geomGUI->getLibrary( "libMeasureGUI.so" );
- }
- else if( theCommandID == 800 || // MENU GROUP - CREATE
- theCommandID == 801 ) { // MENU GROUP - EDIT
- library = geomGUI->getLibrary( "libGroupGUI.so" );
- }
- else if( theCommandID == 9999 || // MENU BLOCKS - HEXAHEDRAL SOLID
- theCommandID == 9998 || // MENU BLOCKS - MULTI-TRANSFORMATION
- theCommandID == 9997 || // MENU BLOCKS - QUADRANGLE FACE
- theCommandID == 99991 || // MENU BLOCKS - PROPAGATE
- theCommandID == 9995 ) { // MENU BLOCKS - EXPLODE ON BLOCKS
- library = geomGUI->getLibrary( "libBlocksGUI.so" );
+ if( id == 111 || // MENU FILE - IMPORT BREP
+ id == 112 || // MENU FILE - IMPORT IGES
+ id == 113 || // MENU FILE - IMPORT STEP
+ id == 121 || // MENU FILE - EXPORT BREP
+ id == 122 || // MENU FILE - EXPORT IGES
+ id == 123 || // MENU FILE - EXPORT STEP
+ id == 31 || // MENU EDIT - COPY
+ id == 33 || // MENU EDIT - DELETE
+ id == 411 || // MENU SETTINGS - ADD IN STUDY
+ id == 412 || // MENU SETTINGS - SHADING COLOR
+ id == 413 || // MENU SETTINGS - ISOS
+ id == 414 || // MENU SETTINGS - STEP VALUE FOR SPIN BOXES
+ id == 5103 || // MENU TOOLS - CHECK GEOMETRY
+ id == 5104 || // MENU TOOLS - LOAD SCRIPT
+ id == 8032 || // POPUP VIEWER - COLOR
+ id == 8033 || // POPUP VIEWER - TRANSPARENCY
+ id == 8034 || // POPUP VIEWER - ISOS
+ id == 804 || // POPUP VIEWER - ADD IN STUDY
+ id == 901 || // OBJECT BROWSER - RENAME
+ id == 9024 ) { // OBJECT BROWSER - OPEN
+ library = getLibrary( "libGEOMToolsGUI.so" );
}
-
- // call method of corresponding GUI library
- if ( library ) {
- return library->OnGUIEvent( theCommandID, parent );
+ else if( id == 211 || // MENU VIEW - WIREFRAME/SHADING
+ id == 212 || // MENU VIEW - DISPLAY ALL
+ id == 213 || // MENU VIEW - DISPLAY ONLY
+ id == 214 || // MENU VIEW - ERASE ALL
+ id == 215 || // MENU VIEW - ERASE
+ id == 216 || // MENU VIEW - DISPLAY
+ id == 80311 || // POPUP VIEWER - WIREFRAME
+ id == 80312 ) { // POPUP VIEWER - SHADING
+ library = getLibrary( "libDisplayGUI.so" );
}
- else {
- QAD_MessageBox::error1( parent, tr( "GEOM_ERROR" ), tr( "GEOM_ERR_LIB_NOT_FOUND" ), tr( "GEOM_BUT_OK" ) );
+ else if( id == 4011 || // MENU BASIC - POINT
+ id == 4012 || // MENU BASIC - LINE
+ id == 4013 || // MENU BASIC - CIRCLE
+ id == 4014 || // MENU BASIC - ELLIPSE
+ id == 4015 || // MENU BASIC - ARC
+ id == 4016 || // MENU BASIC - VECTOR
+ id == 4017 || // MENU BASIC - PLANE
+ id == 4018 || // MENU BASIC - WPLANE
+ id == 4019 || // MENU BASIC - CURVE
+ id == 4020 ) { // MENU BASIC - REPAIR
+ library = getLibrary( "libBasicGUI.so" );
}
- return false;
+ else if( id == 4021 || // MENU PRIMITIVE - BOX
+ id == 4022 || // MENU PRIMITIVE - CYLINDER
+ id == 4023 || // MENU PRIMITIVE - SPHERE
+ id == 4024 || // MENU PRIMITIVE - TORUS
+ id == 4025 ) { // MENU PRIMITIVE - CONE
+ library = getLibrary( "libPrimitiveGUI.so" );
+ }
+ else if( id == 4031 || // MENU GENERATION - PRISM
+ id == 4032 || // MENU GENERATION - REVOLUTION
+ id == 4033 || // MENU GENERATION - FILLING
+ id == 4034 ) { // MENU GENERATION - PIPE
+ library = getLibrary( "libGenerationGUI.so" );
+ }
+ else if( id == 404 || // MENU ENTITY - SKETCHER
+ id == 407 ) { // MENU ENTITY - EXPLODE
+ library = getLibrary( "libEntityGUI.so" );
+ }
+ else if( id == 4081 || // MENU BUILD - EDGE
+ id == 4082 || // MENU BUILD - WIRE
+ id == 4083 || // MENU BUILD - FACE
+ id == 4084 || // MENU BUILD - SHELL
+ id == 4085 || // MENU BUILD - SOLID
+ id == 4086 ) { // MENU BUILD - COMPUND
+ library = getLibrary( "libBuildGUI.so" );
+ }
+ else if( id == 5011 || // MENU BOOLEAN - FUSE
+ id == 5012 || // MENU BOOLEAN - COMMON
+ id == 5013 || // MENU BOOLEAN - CUT
+ id == 5014 ) { // MENU BOOLEAN - SECTION
+ library = getLibrary( "libBooleanGUI.so" );
+ }
+ else if( id == 5021 || // MENU TRANSFORMATION - TRANSLATION
+ id == 5022 || // MENU TRANSFORMATION - ROTATION
+ id == 5023 || // MENU TRANSFORMATION - LOCATION
+ id == 5024 || // MENU TRANSFORMATION - MIRROR
+ id == 5025 || // MENU TRANSFORMATION - SCALE
+ id == 5026 || // MENU TRANSFORMATION - OFFSET
+ id == 5027 || // MENU TRANSFORMATION - MULTI-TRANSLATION
+ id == 5028 ) { // MENU TRANSFORMATION - MULTI-ROTATION
+ library = getLibrary( "libTransformationGUI.so" );
+ }
+ else if( id == 503 || // MENU OPERATION - PARTITION
+ id == 504 || // MENU OPERATION - ARCHIMEDE
+ id == 505 || // MENU OPERATION - FILLET
+ id == 506 || // MENU OPERATION - CHAMFER
+ id == 507 ) { // MENU OPERATION - CLIPPING RANGE
+ library = getLibrary( "libOperationGUI.so" );
+ }
+ else if( id == 601 || // MENU REPAIR - SEWING
+ id == 603 || // MENU REPAIR - SUPPRESS FACES
+ id == 604 || // MENU REPAIR - SUPPRESS HOLE
+ id == 605 || // MENU REPAIR - SHAPE PROCESSING
+ id == 606 || // MENU REPAIR - CLOSE CONTOUR
+ id == 607 || // MENU REPAIR - REMOVE INTERNAL WIRES
+ id == 608 || // MENU REPAIR - ADD POINT ON EDGE
+ id == 609 || // MENU REPAIR - FREE BOUNDARIES
+ id == 610 || // MENU REPAIR - FREE FACES
+ id == 602 ) { // MENU REPAIR - GLUE FACES
+ library = getLibrary( "libRepairGUI.so" );
+ }
+ else if( id == 701 || // MENU MEASURE - PROPERTIES
+ id == 702 || // MENU MEASURE - CDG
+ id == 703 || // MENU MEASURE - INERTIA
+ id == 7041 || // MENU MEASURE - BOUNDING BOX
+ id == 7042 || // MENU MEASURE - MIN DISTANCE
+ id == 705 || // MENU MEASURE - TOLERANCE
+ id == 706 || // MENU MEASURE - WHATIS
+ id == 707 || // MENU MEASURE - CHECK
+ id == 7072 || // MENU MEASURE - CHECK COMPOUND OF BLOCKS
+ id == 708 ) { // MENU MEASURE - POINT COORDINATES
+ library = getLibrary( "libMeasureGUI.so" );
+ }
+ else if( id == 800 || // MENU GROUP - CREATE
+ id == 8001 || // POPUP MENU - CREATE GROUP
+ id == 801 ) { // MENU GROUP - EDIT
+ library = getLibrary( "libGroupGUI.so" );
+ }
+ else if( id == 9999 || // MENU BLOCKS - HEXAHEDRAL SOLID
+ id == 9998 || // MENU BLOCKS - MULTI-TRANSFORMATION
+ id == 9997 || // MENU BLOCKS - QUADRANGLE FACE
+ id == 99991 || // MENU BLOCKS - PROPAGATE
+ id == 9995 ) { // MENU BLOCKS - EXPLODE ON BLOCKS
+ library = getLibrary( "libBlocksGUI.so" );
+ }
+
+ // call method of corresponding GUI library
+ if ( library )
+ library->OnGUIEvent( id, desk );
+ else
+ SUIT_MessageBox::error1( desk, tr( "GEOM_ERROR" ), tr( "GEOM_ERR_LIB_NOT_FOUND" ), tr( "GEOM_BUT_OK" ) );
}
// function : GeometryGUI::OnKeyPress()
// purpose : Called when any key is pressed by user [static]
//=================================================================================
-bool GeometryGUI::OnKeyPress(QKeyEvent* pe, QAD_Desktop* parent, QAD_StudyFrame* studyFrame)
+bool GeometryGUI::OnKeyPress( QKeyEvent* pe, SUIT_ViewWindow* win )
{
- GeometryGUI* geomGUI = GeometryGUI::GetGeomGUI();
GUIMap::Iterator it;
bool bOk = true;
- for ( it = geomGUI->myGUIMap.begin(); it != geomGUI->myGUIMap.end(); ++it )
- bOk = bOk && it.data()->OnKeyPress( pe, parent, studyFrame );
+ for ( it = myGUIMap.begin(); it != myGUIMap.end(); ++it )
+ bOk = bOk && it.data()->OnKeyPress( pe, application()->desktop(), win );
return bOk;
}
// function : GeometryGUI::OnMouseMove()
// purpose : Manages mouse move events [static]
//=================================================================================
-bool GeometryGUI::OnMouseMove(QMouseEvent* pe, QAD_Desktop* parent, QAD_StudyFrame* studyFrame)
-{
- GeometryGUI* geomGUI = GeometryGUI::GetGeomGUI();
+bool GeometryGUI::OnMouseMove( QMouseEvent* pe, SUIT_ViewWindow* win )
+{
GUIMap::Iterator it;
bool bOk = true;
- for ( it = geomGUI->myGUIMap.begin(); it != geomGUI->myGUIMap.end(); ++it )
- bOk = bOk && it.data()->OnMouseMove( pe, parent, studyFrame );
+ for ( it = myGUIMap.begin(); it != myGUIMap.end(); ++it )
+ bOk = bOk && it.data()->OnMouseMove( pe, application()->desktop(), win );
return bOk;
}
// function : GeometryGUI::0nMousePress()
// purpose : Manage mouse press events [static]
//=================================================================================
-bool GeometryGUI::OnMousePress(QMouseEvent* pe, QAD_Desktop* parent, QAD_StudyFrame* studyFrame)
+bool GeometryGUI::OnMousePress( QMouseEvent* pe, SUIT_ViewWindow* win )
{
- GeometryGUI* geomGUI = GeometryGUI::GetGeomGUI();
GUIMap::Iterator it;
// OnMousePress() should return false if this event should be processed further
// (see OCCViewer_Viewer3d::onMousePress() for explanation)
bool processed = false;
- for ( it = geomGUI->myGUIMap.begin(); it != geomGUI->myGUIMap.end(); ++it )
- processed = processed || it.data()->OnMousePress( pe, parent, studyFrame );
+ for ( it = myGUIMap.begin(); it != myGUIMap.end(); ++it )
+ processed = processed || it.data()->OnMousePress( pe, application()->desktop(), win );
return processed;
}
-static void UpdateVtkSelection(QAD_Desktop* parent)
+/*
+static void UpdateVtkSelection()
{
- if (!parent->getActiveStudy()) return;
-
- QList<QAD_StudyFrame> aFrameList = parent->getActiveStudy()->getStudyFrames();
-
- for (QAD_StudyFrame* aStudyFrame = aFrameList.first(); aStudyFrame; aStudyFrame = aFrameList.next()) {
- if (aStudyFrame->getTypeView() == VIEW_VTK) {
- QAD_ViewFrame* aViewFrame = aStudyFrame->getRightFrame()->getViewFrame();
- VTKViewer_ViewFrame* aVtkViewFrame = dynamic_cast<VTKViewer_ViewFrame*>(aViewFrame);
- if (!aVtkViewFrame) continue;
- VTKViewer_RenderWindowInteractor* anInteractor = aVtkViewFrame->getRWInteractor();
- if (anInteractor) {
+ QPtrList<SUIT_ViewWindow> winList = application()->desktop()->windows();
+ SUIT_ViewWindow* win = 0;
+ for ( win = winList.first(); win; win = winList.next() ) {
+ if ( win->getViewManager()->getTypeView() == VIEW_VTK ) {
+ VTKViewer_ViewWindow* vw = dynamic_cast<VTKViewer_ViewWindow*>( window );
+ if ( vw ) {
+ VTKViewer_RenderWindowInteractor* anInteractor = vw->getRWInteractor();
anInteractor->SetSelectionProp();
anInteractor->SetSelectionTolerance();
- VTKViewer_InteractorStyleSALOME* aStyle = anInteractor->GetInteractorStyleSALOME();
+ SVTK_InteractorStyleSALOME* aStyle = anInteractor->GetInteractorStyleSALOME();
if (aStyle) {
aStyle->setPreselectionProp();
}
// function : GeometryGUI::SetSettings()
// purpose : Called when GEOM module is activated [static]
//=================================================================================
-bool GeometryGUI::SetSettings(QAD_Desktop* parent)
+bool GeometryGUI::SetSettings()
{
- GeometryGUI* geomGUI = GetGeomGUI();
- QMenuBar* Mb = parent->getMainMenuBar();
- QAD_Study* ActiveStudy = parent->getActiveStudy();
+ QMenuBar* Mb = parent->getMainMenuBar();
+ SUIT_Study* ActiveStudy = application()->activeStudy();
-
-
- /* Wireframe or Shading */
+// Wireframe or Shading
int DisplayMode = 0;
- bool ViewOCC = false;
- if ( ActiveStudy->getActiveStudyFrame()->getTypeView() == VIEW_OCC ) {
- OCCViewer_Viewer3d* v3d = ((OCCViewer_ViewFrame*)ActiveStudy->getActiveStudyFrame()->getRightFrame()->getViewFrame())->getViewer();
- Handle(AIS_InteractiveContext) ic = v3d->getAISContext();
- DisplayMode = ic->DisplayMode();
- ViewOCC = true;
+ SUIT_ViewWindow* window = application()->desktop()->activeWindow();
+ bool ViewOCC = ( window && window->getViewManager()->getType() == VIEW_OCC );
+ bool ViewVTK = ( window && window->getViewManager()->getType() == VIEW_VTK );
+ if ( ViewOCC ) {
+ OCCViewer_ViewManager* vm = dynamic_cast<OCCViewer_ViewManager*>( window->getViewManager() );
+ if ( vm ) {
+ Handle(AIS_InteractiveContext) ic = vm->getOCCViewer()->getAISContext();
+ DisplayMode = ic->DisplayMode();
+ }
}
- else if (ActiveStudy->getActiveStudyFrame()->getTypeView() == VIEW_VTK ) {
- VTKViewer_RenderWindowInteractor* myRenderInter = ((VTKViewer_ViewFrame*)ActiveStudy->getActiveStudyFrame()->getRightFrame()->getViewFrame())->getRWInteractor();
- DisplayMode = myRenderInter->GetDisplayMode();
+ else if ( ViewVTK ) {
+ VTKViewer_ViewWindow* vw = dynamic_cast<VTKViewer_ViewWindow*>( window );
+ if ( vw ) {
+ VTKViewer_RenderWindowInteractor* myRenderInter = vw->getRWInteractor();
+ DisplayMode = myRenderInter->GetDisplayMode();
+ }
}
if( DisplayMode == 1 )
+ getApp()->
Mb->changeItem( 211, tr( "GEOM_MEN_WIREFRAME" ) );
else
Mb->changeItem( 211, tr( "GEOM_MEN_SHADING" ) );
- /* Add in Study - !!!ALWAYS TRUE!!! */ /////// VSR : TO BE REMOVED
+ // Add in Study - !!!ALWAYS TRUE!!! /////// VSR : TO BE REMOVED
QString AddInStudy = QAD_CONFIG->getSetting("Geometry:SettingsAddInStudy");
int Settings_AddInStudy;
- /*if(!AddInStudy.isEmpty())
- Settings_AddInStudy = AddInStudy.toInt();
- else
- */
+ // if(!AddInStudy.isEmpty())
+ // Settings_AddInStudy = AddInStudy.toInt();
+ // else
+
Settings_AddInStudy = 1;
Mb->setItemChecked(411, Settings_AddInStudy);
- /* step value */
+ // step value
QString S = QAD_CONFIG->getSetting("Geometry:SettingsGeomStep");
if(S.isEmpty())
QAD_CONFIG->addSetting("Geometry:SettingsGeomStep", "100");
- /* isos */
+ // isos
int count = ActiveStudy->getStudyFramesCount();
for(int i = 0; i < count; i++) {
if(ActiveStudy->getStudyFrame(i)->getTypeView() == VIEW_OCC) {
}
}
- //Mb->setItemEnabled(404, ViewOCC); // SKETCHER
- Mb->setItemEnabled(603, ViewOCC); // SuppressFace
- Mb->setItemEnabled(604, ViewOCC); // SuppressHole
- Mb->setItemEnabled(606, ViewOCC); // CloseContour
- Mb->setItemEnabled(607, ViewOCC); // RemoveInternalWires
- Mb->setItemEnabled(608, ViewOCC); // AddPointOnEdge
-// Mb->setItemEnabled(609, ViewOCC); // Free boundaries
- Mb->setItemEnabled(413, ViewOCC); // Isos Settings
-
- Mb->setItemEnabled( 800, ViewOCC ); // Create Group
- Mb->setItemEnabled( 801, ViewOCC ); // Edit Group
-
- Mb->setItemEnabled(9998, ViewOCC); // MENU BLOCKS - MULTI-TRANSFORMATION
+ setActionsEnabled();
-
// PAL5356: update VTK selection
- ::UpdateVtkSelection(parent);
+ ::UpdateVtkSelection();
bool bOk = true;
GUIMap::Iterator it;
- for ( it = geomGUI->myGUIMap.begin(); it != geomGUI->myGUIMap.end(); ++it )
+ for ( it = myGUIMap.begin(); it != myGUIMap.end(); ++it )
bOk = bOk && it.data()->SetSettings( parent );
// MZN: Enable/disable "Clipping range" menu item(from GEOM_CLIPPING variable)
return bOk;
}
+*/
+
+//=======================================================================
+// function : createGeomAction
+// purpose :
+//=======================================================================
+void GeometryGUI::createGeomAction( const int id, const QString& po_id, const QString& icon_id, const int key, const bool toggle )
+{
+ QIconSet icon;
+ QWidget* parent = application()->desktop();
+ SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
+ QPixmap pix;
+ if ( icon_id.length() )
+ pix = resMgr->loadPixmap( "GEOM", tr( icon_id ) );
+ else
+ pix = resMgr->loadPixmap( "GEOM", tr( QString( "ICO_" )+po_id ) );
+ if ( !pix.isNull() )
+ icon = QIconSet( pix );
+
+ QString tooltip = tr( QString( "TOP_" )+po_id ),
+ menu = tr( QString( "MEN_" )+po_id ),
+ status_bar = tr( QString( "STB_" )+po_id );
+
+ createAction( id, tooltip, icon, menu, status_bar, key, parent, toggle, this, SLOT( OnGUIEvent() ) );
+}
+
+
//=======================================================================
// function : GeometryGUI::Deactivate()
// purpose : Called when GEOM module is deactivated [ static ]
//=======================================================================
-void GeometryGUI::Deactivate()
+void GeometryGUI::initialize( CAM_Application* app )
{
- GeometryGUI* geomGUI = GetGeomGUI();
- GetGeomGUI()->EmitSignalCloseAllDialogs();
+ SalomeApp_Module::initialize( app );
+
+ // ----- create actions --------------
+
+ createGeomAction( 111, "IMPORT", "", (CTRL + Key_I) );
+ createGeomAction( 121, "EXPORT", "", (CTRL + Key_E) );
+
+ createGeomAction( 33, "DELETE" );
+
+ createGeomAction( 4011, "POINT" );
+ createGeomAction( 4012, "LINE" );
+ createGeomAction( 4013, "CIRCLE" );
+ createGeomAction( 4014, "ELLIPSE" );
+ createGeomAction( 4015, "ARC" );
+ createGeomAction( 4019, "CURVE" );
+ createGeomAction( 4016, "VECTOR" );
+ createGeomAction( 4017, "PLANE" );
+ createGeomAction( 4018, "WORK_PLANE" );
+ createGeomAction( 4020, "LOCAL_CS" );
+
+ createGeomAction( 4021, "BOX" );
+ createGeomAction( 4022, "CYLINDER" );
+ createGeomAction( 4023, "SPHERE" );
+ createGeomAction( 4024, "TORUS" );
+ createGeomAction( 4025, "CONE" );
+
+ createGeomAction( 4031, "EXTRUSION" );
+ createGeomAction( 4032, "REVOLUTION" );
+ createGeomAction( 4033, "FILLING" );
+ createGeomAction( 4034, "PIPE" );
+
+ createGeomAction( 800, "GROUP_CREATE" );
+ createGeomAction( 801, "GROUP_EDIT" );
+
+ createGeomAction( 9997, "Q_FACE" );
+ createGeomAction( 9999, "HEX_SOLID" );
+
+ createGeomAction( 404, "SKETCH" );
+ createGeomAction( 407, "EXPLODE" );
+
+ createGeomAction( 4081, "EDGE" );
+ createGeomAction( 4082, "WIRE" );
+ createGeomAction( 4083, "FACE" );
+ createGeomAction( 4084, "SHELL" );
+ createGeomAction( 4085, "SOLID" );
+ createGeomAction( 4086, "COMPOUND" );
+
+ createGeomAction( 5011, "FUSE" );
+ createGeomAction( 5012, "COMMON" );
+ createGeomAction( 5013, "CUT" );
+ createGeomAction( 50114, "SECTION" );
+
+ createGeomAction( 5021, "TRANSLATION" );
+ createGeomAction( 5022, "ROTATION" );
+ createGeomAction( 5023, "MODIFY_LOCATION" );
+ createGeomAction( 5024, "MIRROR" );
+ createGeomAction( 5025, "SCALE" );
+ createGeomAction( 5026, "OFFSET" );
+ createGeomAction( 5027, "MUL_TRANSLATION" );
+ createGeomAction( 5028, "MUL_ROTATION" );
+
+ createGeomAction( 503, "PARTITION" );
+ createGeomAction( 504, "ARCHIMEDE" );
+ createGeomAction( 505, "FILLET" );
+ createGeomAction( 506, "CHAMFER" );
+ createGeomAction( 507, "CLIPPING" );
+
+ createGeomAction( 9998, "MUL_TRANSFORM" );
+ createGeomAction( 9995, "EXPLODE_BLOCKS" );
+ createGeomAction( 99991, "PROPAGATE" );
+
+ createGeomAction( 601, "SEWING" );
+ createGeomAction( 602, "GLUE_FACES" );
+ createGeomAction( 603, "SUPPRESS_FACES" );
+ createGeomAction( 604, "SUPPERSS_HOLES" );
+ createGeomAction( 605, "SHAPE_PROCESS" );
+ createGeomAction( 606, "CLOSE_CONTOUR" );
+ createGeomAction( 607, "SUPPRESS_INT_WIRES" );
+ createGeomAction( 608, "POINT_ON_EDGE" );
+ createGeomAction( 609, "CHECK_FREE_BNDS" );
+ createGeomAction( 610, "CHECK_FREE_FACES" );
+
+ createGeomAction( 708, "POINT_COORDS" );
+ createGeomAction( 701, "BASIC_PROPS" );
+ createGeomAction( 702, "MASS_CENTER" );
+ createGeomAction( 703, "INERTIA" );
+ createGeomAction( 7041, "BND_BOX" );
+ createGeomAction( 7042, "MIN_DIST" );
+
+ createGeomAction( 705, "TOLERANCE" );
+ createGeomAction( 706, "WHAT_IS" );
+ createGeomAction( 707, "CHECK" );
+ createGeomAction( 7072, "CHECK_COMPOUND" );
+
+ createGeomAction( 5103, "CHECK_GEOMETRY" );
+ createGeomAction( 5104, "LOAD_SCRIPT" );
+
+ createGeomAction( 412, "SHADING_COLOR" );
+ createGeomAction( 413, "ISOS" );
+ createGeomAction( 414, "STEP_VALUE" );
+
+ createGeomAction( 211, "SHADING" );
+ createGeomAction( 212, "DISPLAY_ALL" );
+ createGeomAction( 214, "ERASE_ALL" );
+ createGeomAction( 216, "DISPLAY" );
+ createGeomAction( 213, "DISPLAY_ONLY" );
+ createGeomAction( 215, "ERASE" );
+
+ createGeomAction( 901, "POP_RENAME" );
+ createGeomAction( 80311, "POP_WIREFRAME", "", 0, true );
+ createGeomAction( 80312, "POP_SHADING", "", 0, true );
+ createGeomAction( 8032, "POP_COLOR" );
+ createGeomAction( 8033, "POP_TRANSPARENCY" );
+ createGeomAction( 8034, "POP_ISOS" );
+ createGeomAction( 8001, "POP_CREATE_GROUP" );
+
+ // make wireframe-shading items to be exclusive (only one at a time is selected)
+ //QActionGroup* dispModeGr = new QActionGroup( this, "", true );
+ //dispModeGr->add( action( 80311 ) );
+ //dispModeGr->add( action( 80312 ) );
+ // ---- create menu --------------------------
+
+ int fileId = createMenu( tr( "MEN_FILE" ), -1, -1 );
+ createMenu( separator(), fileId, 10 );
+ createMenu( 111, fileId, 10 );
+ createMenu( 121, fileId, 10 );
+ createMenu( separator(), fileId, -1 );
+
+ int editId = createMenu( tr( "MEN_EDIT" ), -1, -1 );
+ createMenu( 33, editId, -1 );
+
+ int newEntId = createMenu( tr( "MEN_NEW_ENTITY" ), -1, -1, 10 );
+
+ int basicId = createMenu( tr( "MEN_BASIC" ), newEntId, -1 );
+ createMenu( 4011, basicId, -1 );
+ createMenu( 4012, basicId, -1 );
+ createMenu( 4013, basicId, -1 );
+ createMenu( 4014, basicId, -1 );
+ createMenu( 4015, basicId, -1 );
+ createMenu( 4019, basicId, -1 );
+ createMenu( separator(), basicId, -1 );
+ createMenu( 4016, basicId, -1 );
+ createMenu( 4017, basicId, -1 );
+ createMenu( 4018, basicId, -1 );
+ createMenu( 4020, basicId, -1 );
+
+ int primId = createMenu( tr( "MEN_PRIMITIVES" ), newEntId, -1 );
+ createMenu( 4021, primId, -1 );
+ createMenu( 4022, primId, -1 );
+ createMenu( 4023, primId, -1 );
+ createMenu( 4024, primId, -1 );
+ createMenu( 4025, primId, -1 );
+
+ int genId = createMenu( tr( "MEN_GENERATION" ), newEntId, -1 );
+ createMenu( 4031, genId, -1 );
+ createMenu( 4032, genId, -1 );
+ createMenu( 4033, genId, -1 );
+ createMenu( 4034, genId, -1 );
+ createMenu( separator(), newEntId, -1 );
+
+ int groupId = createMenu( tr( "MEN_GROUP" ), newEntId, -1 );
+ createMenu( 800, groupId, -1 );
+ createMenu( 801, groupId, -1 );
+ createMenu( separator(), newEntId, -1 );
+
+ int blocksId = createMenu( tr( "MEN_BLOCKS" ), newEntId, -1 );
+ createMenu( 9997, blocksId, -1 );
+ createMenu( 9999, blocksId, -1 );
+
+ createMenu( separator(), newEntId, -1 );
+ createMenu( 404, newEntId, -1 );
+ createMenu( separator(), newEntId, -1 );
+ createMenu( 407, newEntId, -1 );
+
+ int buildId = createMenu( tr( "MEN_BUILD" ), newEntId, -1 );
+ createMenu( 4081, buildId, -1 );
+ createMenu( 4082, buildId, -1 );
+ createMenu( 4083, buildId, -1 );
+ createMenu( 4084, buildId, -1 );
+ createMenu( 4085, buildId, -1 );
+ createMenu( 4086, buildId, -1 );
+
+ int operId = createMenu( tr( "MEN_OPERATIONS" ), -1, -1, 10 );
+
+ int boolId = createMenu( tr( "MEN_BOOLEAN" ), operId, -1 );
+ createMenu( 5011, boolId, -1 );
+ createMenu( 5012, boolId, -1 );
+ createMenu( 5013, boolId, -1 );
+ createMenu( 5014, boolId, -1 );
+
+ int transId = createMenu( tr( "MEN_TRANSFORMATION" ), operId, -1 );
+ createMenu( 5021, transId, -1 );
+ createMenu( 5022, transId, -1 );
+ createMenu( 5023, transId, -1 );
+ createMenu( 5024, transId, -1 );
+ createMenu( 5025, transId, -1 );
+ createMenu( 5026, transId, -1 );
+ createMenu( separator(), transId, -1 );
+ createMenu( 5027, transId, -1 );
+ createMenu( 5028, transId, -1 );
+
+ createMenu( 503, operId, -1 );
+ createMenu( 504, operId, -1 );
+ createMenu( separator(), operId, -1 );
+ createMenu( 505, transId, -1 );
+ createMenu( 506, transId, -1 );
+ createMenu( 507, transId, -1 );
+
+ int blockId = createMenu( tr( "MEN_BLOCKS" ), operId, -1 );
+ createMenu( 9998, blockId, -1 );
+ createMenu( 9995, blockId, -1 );
+ createMenu( 99991, blockId, -1 );
+
+ int repairId = createMenu( tr( "MEN_REPAIR" ), -1, -1, 10 );
+ createMenu( 605, repairId, -1 );
+ createMenu( 603, repairId, -1 );
+ createMenu( 606, repairId, -1 );
+ createMenu( 607, repairId, -1 );
+ createMenu( 604, repairId, -1 );
+ createMenu( 601, repairId, -1 );
+ createMenu( 602, repairId, -1 );
+ createMenu( 608, repairId, -1 );
+ createMenu( 609, repairId, -1 );
+ createMenu( 610, repairId, -1 );
+
+ int measurId = createMenu( tr( "MEN_MEASURES" ), -1, -1, 10 );
+ createMenu( 708, measurId, -1 );
+ createMenu( 701, measurId, -1 );
+ createMenu( separator(), measurId, -1 );
+ createMenu( 702, measurId, -1 );
+ createMenu( 703, measurId, -1 );
+ createMenu( separator(), measurId, -1 );
+
+ int dimId = createMenu( tr( "MEN_DIMENSIONS" ), measurId, -1 );
+ createMenu( 7041, dimId, -1 );
+ createMenu( 7042, dimId, -1 );
+ createMenu( separator(), measurId, -1 );
+
+ createMenu( 705, measurId, -1 );
+ createMenu( separator(), measurId, -1 );
+ createMenu( 706, measurId, -1 );
+ createMenu( 707, measurId, -1 );
+ createMenu( 7072, measurId, -1 );
+
+ int toolsId = createMenu( tr( "MEN_TOOLS" ), -1, -1, 10 );
+ createMenu( separator(), toolsId, -1 );
+ createMenu( 5103, toolsId, -1 );
+ createMenu( 5104, toolsId, -1 );
+
+ int prefId = createMenu( tr( "MEN_PREFERENCES" ), -1, -1, 10 );
+ createMenu( separator(), prefId, -1 );
+
+ int geomId = createMenu( tr( "MEN_PREFERENCES_GEOM" ), prefId, -1 );
+ createMenu( 412, geomId, -1 );
+ createMenu( 413, geomId, -1 );
+ createMenu( 414, geomId, -1 );
+ createMenu( separator(), prefId, -1 );
+
+ int viewId = createMenu( tr( "MEN_VIEW" ), -1, -1 );
+ createMenu( separator(), viewId, -1 );
+
+ int dispmodeId = createMenu( tr( "MEN_DISPLAY_MODE" ), viewId, -1 );
+ createMenu( 211, dispmodeId, -1 );
+
+ createMenu( separator(), viewId, -1 );
+ createMenu( 212, viewId, -1 );
+ createMenu( 214, viewId, -1 );
+ createMenu( separator(), viewId, -1 );
+ createMenu( 216, viewId, -1 );
+ createMenu( 213, viewId, -1 );
+ createMenu( 215, viewId, -1 );
+
+ // ---- create toolbars --------------------------
+
+ int basicTbId = createTool( tr( "TOOL_BASIC" ) );
+ createTool( 4011, basicTbId );
+ createTool( 4012, basicTbId );
+ createTool( 4013, basicTbId );
+ createTool( 4014, basicTbId );
+ createTool( 4015, basicTbId );
+ createTool( 4019, basicTbId );
+ createTool( 4016, basicTbId );
+ createTool( 4017, basicTbId );
+ createTool( 4018, basicTbId );
+ createTool( 4020, basicTbId );
+
+ int primTbId = createTool( tr( "TOOL_PRIMITIVES" ) );
+ createTool( 4021, primTbId );
+ createTool( 4022, primTbId );
+ createTool( 4023, primTbId );
+ createTool( 4024, primTbId );
+ createTool( 4025, primTbId );
+
+ int boolTbId = createTool( tr( "TOOL_BOOLEAN" ) );
+ createTool( 5011, boolTbId );
+ createTool( 5012, boolTbId );
+ createTool( 5013, boolTbId );
+ createTool( 5014, boolTbId );
+
+ int genTbId = createTool( tr( "TOOL_GENERATION" ) );
+ createTool( 4031, genTbId );
+ createTool( 4032, genTbId );
+ createTool( 4033, genTbId );
+ createTool( 4034, genTbId );
+
+ int transTbId = createTool( tr( "TOOL_TRANSFORMATION" ) );
+ createTool( 5021, transTbId );
+ createTool( 5022, transTbId );
+ createTool( 5023, transTbId );
+ createTool( 5024, transTbId );
+ createTool( 5025, transTbId );
+ createTool( 5026, transTbId );
+ createTool( separator(), transTbId );
+ createTool( 5027, transTbId );
+ createTool( 5028, transTbId );
+
+ QtxPopupMgr* mgr = popupMgr();
+ mgr->insert( action( 901 ), -1, -1 ); // rename
+ mgr->setRule( action( 901 ), "$type in {'Shape' 'Group'} and selcount=1", true );
+ mgr->insert( action( 8001 ), -1, -1 ); // create group
+ mgr->setRule( action( 8001 ), "$client in {'ObjectBrowser'} and $type in {'Shape'} and selcount=1 and isOCC", true );
+ mgr->insert( action( 801 ), -1, -1 ); // edit group
+ mgr->setRule( action( 801 ), "$client in {'ObjectBrowser'} and $type in {'Group'} and selcount=1 and isOCC", true );
+ mgr->insert( separator(), -1, -1 ); // -----------
+ mgr->insert( action( 216 ), -1, -1 ); // display
+ mgr->setRule( action( 216 ), "$client in {'ObjectBrowser'} and selcount>0 and (($type in {'Shape' 'Group'} and ($isVisible in {false})) or $type in {'Component'})", true );
+ mgr->insert( action( 215 ), -1, -1 ); // erase
+ mgr->setRule( action( 215 ), "$client in {'ObjectBrowser'} and ((($type in {'Shape' 'Group'}) and ($isVisible in {true})) or ($type in {'Component'} and selcount=1))", true );
+ mgr->insert( action( 213 ), -1, -1 ); // display only
+ mgr->setRule( action( 213 ), "$client in {'ObjectBrowser'} and ($type in {'Shape' 'Group'} or ($type in {'Component'} and selcount=1))", true );
+ mgr->insert( separator(), -1, -1 );
+ dispmodeId = mgr->insert( tr( "MEN_DISPLAY_MODE" ), -1, -1 ); // display mode menu
+ mgr->insert( action( 80311 ), dispmodeId, -1 ); // wireframe
+ mgr->setRule( action( 80311 ), "$client in {'OCCViewer' 'VTKViewer'} and selcount>0", true );
+ mgr->setRule( action( 80311 ), "$displaymode in {'Wireframe'}", false );
+ mgr->insert( action( 80312 ), dispmodeId, -1 ); // shading
+ mgr->setRule( action( 80312 ), "$client in {'OCCViewer' 'VTKViewer'} and selcount>0", true );
+ mgr->setRule( action( 80312 ), "$displaymode in {'Shading'}", false );
+ mgr->insert( action( 8032 ), -1, -1 ); // color
+ mgr->setRule( action( 8032 ), "$client in {'OCCViewer' 'VTKViewer'} and selcount>0", true );
+ mgr->insert( action( 8033 ), -1, -1 ); // transparency
+ mgr->setRule( action( 8033 ), "$client in {'OCCViewer' 'VTKViewer'} and selcount>0", true );
+ mgr->insert( action( 8034 ), -1, -1 ); // isos
+ mgr->setRule( action( 8034 ), "$client in {'OCCViewer'} and selcount>0", true );
+ mgr->insert( separator(), -1, -1 ); // -----------
+}
+
+//=======================================================================
+// function : GeometryGUI::Deactivate()
+// purpose : Called when GEOM module is deactivated [ static ]
+//=======================================================================
+void GeometryGUI::activateModule( SUIT_Study* study )
+{
+ SalomeApp_Module::activateModule( study );
+
+ setMenuShown( true );
+ setToolShown( true );
+
+ connect( application()->desktop(), SIGNAL( windowActivated( SUIT_ViewWindow* ) ),
+ this, SLOT( onWindowActivated( SUIT_ViewWindow* ) ) );
+ connect( (STD_Application*)application(), SIGNAL( viewManagerAdded( SUIT_ViewManager* ) ),
+ this, SLOT( onViewManagerAdded( SUIT_ViewManager* ) ) );
+
GUIMap::Iterator it;
- for ( it = geomGUI->myGUIMap.begin(); it != geomGUI->myGUIMap.end(); ++it )
- it.data()->Deactivate();
+ for ( it = myGUIMap.begin(); it != myGUIMap.end(); ++it )
+ it.data()->activate( application()->desktop() );
+
+ SalomeApp_SelectionMgr* sm = getApp()->selectionMgr();
+ SUIT_ViewManager* vm;
+ ViewManagerList OCCViewManagers, VTKViewManagers;
+ application()->viewManagers( OCCViewer_Viewer::Type(), OCCViewManagers );
+ for ( vm = OCCViewManagers.first(); vm; vm = OCCViewManagers.next() )
+ myOCCSelectors.append( new GEOMGUI_OCCSelector( ((OCCViewer_ViewManager*)vm)->getOCCViewer(), sm ) );
+ application()->viewManagers( VTKViewer_Viewer::Type(), VTKViewManagers );
+ for ( vm = VTKViewManagers.first(); vm; vm = VTKViewManagers.next() )
+ myVTKSelectors.append( new SalomeApp_VTKSelector( (SVTK_Viewer*)vm->getViewModel(), sm ) );
+
+ // SetSettings() ?????????????
+}
+
+
+//=======================================================================
+// function : GeometryGUI::Deactivate()
+// purpose : Called when GEOM module is deactivated [ static ]
+//=======================================================================
+void GeometryGUI::deactivateModule( SUIT_Study* study )
+{
+ setMenuShown( false );
+ setToolShown( false );
+
+ disconnect( application()->desktop(), SIGNAL( windowActivated( SUIT_ViewWindow* ) ),
+ this, SLOT( onWindowActivated( SUIT_ViewWindow* ) ) );
+ disconnect( (STD_Application*)application(), SIGNAL( viewManagerAdded( SUIT_ViewManager* ) ),
+ this, SLOT( onViewManagerAdded( SUIT_ViewManager* ) ) );
+
+ EmitSignalCloseAllDialogs();
+
+ GUIMap::Iterator it;
+ for ( it = myGUIMap.begin(); it != myGUIMap.end(); ++it )
+ it.data()->deactivate();
+
+ myOCCSelectors.clear();
+ getApp()->selectionMgr()->setEnabled( true, OCCViewer_Viewer::Type() );
+
+ myVTKSelectors.clear();
+
+ SalomeApp_Module::deactivateModule( study );
}
//=================================================================================
// function : GeometryGUI::DefinePopup()
// purpose : Called from desktop to define popup menu [static]
//=================================================================================
+/*
void GeometryGUI::DefinePopup(QString& theContext, QString& theParent, QString& theObject)
{
- GeometryGUI* geomGUI = GetGeomGUI();
QAD_Study* ActiveStudy = QAD_Application::getDesktop()->getActiveStudy();
SALOME_Selection* Sel = SALOME_Selection::Selection(ActiveStudy->getSelection());
if( nbSel == 0 ) {
////// NOTHING SELECTED
popup->clear();
- }
+ }
else if ( nbSel == 1 ) {
////// SINGLE OBJECT SELECTION
if ( parentComponent != parent->getActiveComponent() ) {
return false;
}
-//=================================================================================
-// function : GeometryGUI::ActiveStudyChanged()
-// purpose : static
-//=================================================================================
-bool GeometryGUI::ActiveStudyChanged(QAD_Desktop* parent)
+*/
+
+//=======================================================================
+// function : GeometryGUI::BuildPresentation()
+// purpose :
+//=======================================================================
+void GeometryGUI::BuildPresentation( const Handle(SALOME_InteractiveObject)& io, SUIT_ViewWindow* win )
{
- GeometryGUI* geomGUI = GetGeomGUI();
- QAD_Study* ActiveStudy = parent->getActiveStudy();
- QMenuBar* Mb = QAD_Application::getDesktop()->getMainMenuBar();
- int DisplayMode = 0;
- bool ViewOCC = false;
+ //GEOM_Displayer().Display( io, false, win );
+}
- if( ActiveStudy->getActiveStudyFrame()->getTypeView() == VIEW_OCC ) {
- OCCViewer_Viewer3d* v3d = ((OCCViewer_ViewFrame*)ActiveStudy->getActiveStudyFrame()->getRightFrame()->getViewFrame())->getViewer();
- Handle(AIS_InteractiveContext) ic = v3d->getAISContext();
- DisplayMode = ic->DisplayMode();
- ViewOCC = true;
- }
- else if( ActiveStudy->getActiveStudyFrame()->getTypeView() == VIEW_VTK ) {
- VTKViewer_RenderWindowInteractor* myRenderInter = ((VTKViewer_ViewFrame*)ActiveStudy->getActiveStudyFrame()->getRightFrame()->getViewFrame())->getRWInteractor();
- DisplayMode = myRenderInter->GetDisplayMode();
- }
+//=======================================================================
+// function : setCommandsEnabled()
+// purpose : update menu items' status - disable non-OCC-viewer-compatible actions
+//=======================================================================
+void GeometryGUI::onWindowActivated( SUIT_ViewWindow* win )
+{
+ if ( !win )
+ return;
- if( DisplayMode == 1 )
- Mb->changeItem( 211, tr( "GEOM_MEN_WIREFRAME" ) );
- else
- Mb->changeItem( 211, tr( "GEOM_MEN_SHADING" ) );
+ const bool ViewOCC = ( win->getViewManager()->getType() == OCCViewer_Viewer::Type() );
+// const bool ViewVTK = ( win->getViewManager()->getType() == VTKViewer_Viewer::Type() );
- //Mb->setItemEnabled( 404, ViewOCC ); // SKETCHER
- Mb->setItemEnabled( 603, ViewOCC ); // SuppressFace
- Mb->setItemEnabled( 604, ViewOCC ); // SuppressHole
- Mb->setItemEnabled( 606, ViewOCC ); // CloseContour
- Mb->setItemEnabled( 413, ViewOCC ); // Isos Settings
- Mb->setItemEnabled( 800, ViewOCC ); // Create Group
- Mb->setItemEnabled( 801, ViewOCC ); // Edit Group
- Mb->setItemEnabled(9998, ViewOCC ); // MENU BLOCKS - MULTI-TRANSFORMATION
+ // disable OCC selectors
+ getApp()->selectionMgr()->setEnabled( false, OCCViewer_Viewer::Type() );
+ for ( GEOMGUI_OCCSelector* sr = myOCCSelectors.first(); sr; sr = myOCCSelectors.next() )
+ sr->setEnabled(true);
+
+ // disable non-OCC viewframe menu commands
+// action( 404 )->setEnabled( ViewOCC ); // SKETCHER
+ action( 603 )->setEnabled( ViewOCC ); // SuppressFace
+ action( 604 )->setEnabled( ViewOCC ); // SuppressHole
+ action( 606 )->setEnabled( ViewOCC ); // CloseContour
+ action( 607 )->setEnabled( ViewOCC ); // RemoveInternalWires
+ action( 608 )->setEnabled( ViewOCC ); // AddPointOnEdge
+// action( 609 )->setEnabled( ViewOCC ); // Free boundaries
+ action( 413 )->setEnabled( ViewOCC ); // Isos Settings
+
+ action( 800 )->setEnabled( ViewOCC ); // Create Group
+ action( 801 )->setEnabled( ViewOCC ); // Edit Group
+
+ action( 9998 )->setEnabled( ViewOCC ); // MENU BLOCKS - MULTI-TRANSFORMATION
+}
- geomGUI->EmitSignalCloseAllDialogs();
+void GeometryGUI::windows( QMap<int, int>& mappa ) const
+{
+ mappa.insert( SalomeApp_Application::WT_ObjectBrowser, Qt::DockLeft );
+ mappa.insert( SalomeApp_Application::WT_PyConsole, Qt::DockBottom );
+}
- // PAL5356: update VTK selection
- ::UpdateVtkSelection( parent );
+void GeometryGUI::viewManagers( QStringList& lst ) const
+{
+ lst.append( OCCViewer_Viewer::Type() );
+}
- bool bOk = true;
- GUIMap::Iterator it;
- for ( it = geomGUI->myGUIMap.begin(); it != geomGUI->myGUIMap.end(); ++it )
- bOk = bOk && it.data()->ActiveStudyChanged( parent );
- return bOk;
+void GeometryGUI::onViewManagerAdded( SUIT_ViewManager* vm )
+{
+ if ( vm->getType() == OCCViewer_Viewer::Type() )
+ {
+ SalomeApp_SelectionMgr* sm = getApp()->selectionMgr();
+ myOCCSelectors.append( new GEOMGUI_OCCSelector( ((OCCViewer_ViewManager*)vm)->getOCCViewer(), sm ) );
+ }
+ else if ( vm->getType() == VTKViewer_Viewer::Type() )
+ {
+ SalomeApp_SelectionMgr* sm = getApp()->selectionMgr();
+ myVTKSelectors.append( new SalomeApp_VTKSelector( (SVTK_Viewer*)vm->getViewModel(), sm ) );
+ }
}
-//=======================================================================
-// function : GeometryGUI::BuildPresentation()
-// purpose : static
-//=======================================================================
-void GeometryGUI::BuildPresentation( const Handle(SALOME_InteractiveObject)& theIO,
- QAD_ViewFrame* theViewFrame )
+void GeometryGUI::onViewManagerRemoved( SUIT_ViewManager* vm )
+{
+ SUIT_ViewModel* viewer = vm->getViewModel();
+ if ( vm->getType() == OCCViewer_Viewer::Type() )
+ {
+ for ( GEOMGUI_OCCSelector* sr = myOCCSelectors.first(); sr; sr = myOCCSelectors.next() )
+ if ( sr->viewer() == viewer )
+ {
+ myOCCSelectors.remove( sr );
+ break;
+ }
+ }
+ if ( vm->getType() == VTKViewer_Viewer::Type() )
+ {
+ for ( SalomeApp_VTKSelector* sr = myVTKSelectors.first(); sr; sr = myVTKSelectors.next() )
+ if ( sr->viewer() == viewer )
+ {
+ myVTKSelectors.remove( sr );
+ break;
+ }
+ }
+}
+
+QString GeometryGUI::engineIOR() const
{
- GEOM_Displayer().Display( theIO, false, theViewFrame );
+ if ( !CORBA::is_nil( GetGeomGen() ) )
+ return QString( getApp()->orb()->object_to_string( GetGeomGen() ) );
+ return QString( "" );
}
-void GeometryGUI::SupportedViewType(int* buffer, int bufferSize)
+SalomeApp_Selection* GeometryGUI::createSelection() const
{
- if(!buffer || !bufferSize) return;
- buffer[0] = (int)VIEW_OCC;
- if (--bufferSize) buffer[1] = (int)VIEW_VTK;
+ return new GEOMGUI_Selection();
}
+
#ifndef GEOMETRYGUI_H
#define GEOMETRYGUI_H
-#include "SALOMEGUI.h"
+#include "SalomeApp_Module.h"
#include "GEOMGUI.h"
#include "GEOM_Client.hxx"
class QDialog;
class QPopupMenu;
+class GEOMGUI_OCCSelector;
+class SalomeApp_VTKSelector;
+class SUIT_ViewManager;
+
//=================================================================================
// class : GeometryGUI
// purpose :
//=================================================================================
-class GeometryGUI : public SALOMEGUI
+class GeometryGUI : public SalomeApp_Module
{
Q_OBJECT;
-protected:
+public:
// Constructor
- GeometryGUI(); // hide constructor to avoid direct creation
- // get or load GUI library by name
- GEOMGUI* getLibrary( const QString& libraryName );
+ GeometryGUI();
-public:
// Destructor
~GeometryGUI();
- // Get the only GeometryGUI object
- static GeometryGUI* GetGeomGUI();
-
- static CORBA::ORB_var GetORB();
+ virtual void initialize( CAM_Application* );
+ virtual QString engineIOR() const;
- GEOM::GEOM_Gen_ptr GetGeomGen() { return myComponentGeom; }
+ static GEOM::GEOM_Gen_var GetGeomGen() { return myComponentGeom; }
+
GEOM_Client& GetShapeReader() { return myShapeReader; }
Standard_CString& GetFatherior() { return myFatherior; }
- void SetState( const int state ) { myState = state; }
- int GetState() const { return myState; }
+ //void SetState( const int state ) { myState = state; }
+ //int GetState() const { return myState; }
// Get active dialog box
QDialog* GetActiveDialogBox(){ return myActiveDialogBox; }
void EmitSignalCloseAllDialogs();
void EmitSignalDefaultStepValueChanged( double newVal );
- // The following methods are called from IAPP
- virtual bool OnGUIEvent(int theCommandID, QAD_Desktop* parent);
- virtual bool OnMousePress(QMouseEvent* pe, QAD_Desktop* parent, QAD_StudyFrame* studyFrame);
- virtual bool OnMouseMove(QMouseEvent* pe, QAD_Desktop* parent, QAD_StudyFrame* studyFrame);
- virtual bool OnKeyPress(QKeyEvent* pe, QAD_Desktop* parent, QAD_StudyFrame* studyFrame);
- virtual bool SetSettings(QAD_Desktop* parent);
- virtual bool ActiveStudyChanged(QAD_Desktop* parent);
- virtual void Deactivate();
- virtual void BuildPresentation( const Handle(SALOME_InteractiveObject)&,
- QAD_ViewFrame* = 0 );
- virtual void SupportedViewType (int* buffer, int bufferSize);
- virtual void DefinePopup(QString & theContext, QString & theParent, QString & theObject);
- virtual bool CustomPopup(QAD_Desktop* parent, QPopupMenu* popup, const QString& theContext,
- const QString& theParent, const QString& theObject);
+ void OnGUIEvent( int id );
+
+ virtual bool OnKeyPress( QKeyEvent*, SUIT_ViewWindow* );
+ virtual bool OnMousePress( QMouseEvent*, SUIT_ViewWindow* );
+ virtual bool OnMouseMove( QMouseEvent*, SUIT_ViewWindow* );
+
+// virtual bool SetSettings();
+// virtual void SupportedViewType ( int* buffer, int bufferSize );
+ virtual void BuildPresentation( const Handle(SALOME_InteractiveObject)&, SUIT_ViewWindow* = 0 );
+
+// virtual void DefinePopup( QString & theContext, QString & theParent, QString & theObject);
+// virtual bool CustomPopup( QAD_Desktop* parent, QPopupMenu* popup, const QString& theContext,
+// const QString& theParent, const QString& theObject );
// The Working Plane management
- void SetWorkingPlane(gp_Ax3 WorkingPlane) { myWorkingPlane = WorkingPlane; };
- gp_Ax3 GetWorkingPlane() { return myWorkingPlane; };
- void ActiveWorkingPlane();
+ void SetWorkingPlane( gp_Ax3 wp ) { myWorkingPlane = wp; }
+ gp_Ax3 GetWorkingPlane() { return myWorkingPlane; }
+ void ActiveWorkingPlane();
+
+ virtual void windows( QMap<int, int>& ) const;
+ virtual void viewManagers( QStringList& ) const;
+
+
+public slots:
+ virtual void deactivateModule( SUIT_Study* );
+ virtual void activateModule( SUIT_Study* );
+
+private slots:
+ void OnGUIEvent();
+ void onViewManagerAdded( SUIT_ViewManager* );
+ void onViewManagerRemoved( SUIT_ViewManager* );
+ void onWindowActivated( SUIT_ViewWindow* );
signals :
- void SignalDeactivateActiveDialog();
- void SignalCloseAllDialogs();
- void SignalDefaultStepValueChanged( double newVal );
+ void SignalDeactivateActiveDialog();
+ void SignalCloseAllDialogs();
+ void SignalDefaultStepValueChanged( double newVal );
+
+protected:
+ virtual SalomeApp_Selection* createSelection() const;
+
+private:
+ GEOMGUI* getLibrary( const QString& libraryName );
+ void createGeomAction( const int id, const QString& po_id, const QString& icon_id = QString(""), const int key = 0, const bool toggle = false );
+ void createPopupItem( const int, const QString& clients, const QString& types,
+ const bool isSingle = false, const int isVisible = -1,
+ const bool isExpandAll = false, const bool isOCC = false, const int parentId = -1 );
private:
- static GeometryGUI* myContext; // the only GeometryGUI object
-
- GUIMap myGUIMap; // GUI libraries map
- QDialog* myActiveDialogBox; // active dialog box
- GEOM_Client myShapeReader; // geom shape reader
- Standard_CString myFatherior;
- GEOM::GEOM_Gen_var myComponentGeom; // GEOM engine
- int myState; // identify a method
- gp_Ax3 myWorkingPlane;
+ static GEOM::GEOM_Gen_var myComponentGeom; // GEOM engine
+
+ GUIMap myGUIMap; // GUI libraries map
+ QDialog* myActiveDialogBox; // active dialog box
+ GEOM_Client myShapeReader; // geom shape reader
+ Standard_CString myFatherior;
+ int myState; // identify a method
+ gp_Ax3 myWorkingPlane;
+ QMap<int,QString> myRules; // popup rules
+
+ QPtrList<GEOMGUI_OCCSelector> myOCCSelectors;
+ QPtrList<SalomeApp_VTKSelector> myVTKSelectors;
};
#endif
#include "GeometryGUI_Swig.hxx"
#include "SALOMEGUI_Swig.hxx"
-#include "QAD_Application.h"
-#include "QAD_Desktop.h"
-#include "QAD_Study.h"
-#include "QAD_StudyFrame.h"
-#include "QAD_RightFrame.h"
-#include "SALOMEGUI_ImportOperation.h"
-
-#include "OCCViewer_Viewer3d.h"
-#include "OCCViewer_ViewFrame.h"
-#include <TopExp_Explorer.hxx>
-#include <TopTools_MapOfShape.hxx>
-#include <TopTools_ListOfShape.hxx>
-#include <TopTools_ListIteratorOfListOfShape.hxx>
-#include <BRepAdaptor_Surface.hxx>
-#include <BRepAdaptor_Curve.hxx>
-#include <GeomAbs_CurveType.hxx>
-#include <GeomAbs_SurfaceType.hxx>
-#include <TopoDS.hxx>
-#include <TopoDS_Edge.hxx>
-#include <TopoDS_Face.hxx>
-#include <TopoDS_Iterator.hxx>
-#include <AIS_ListOfInteractive.hxx>
-#include <AIS_ListIteratorOfListOfInteractive.hxx>
-#include <V3d_Viewer.hxx>
-
-#include "SALOME_Event.hxx"
-
-#include "VTKViewer_RenderWindowInteractor.h"
-#include "VTKViewer_ViewFrame.h"
#include "GEOM_Actor.h"
#include "GEOM_Client.hxx"
static GEOM_Client ShapeReader;
-template<class TViewFrame> inline TViewFrame* GetFrame(QAD_Study* theStudy){
- return dynamic_cast<TViewFrame*>(SALOME::GetViewFrame(theStudy));
-}
-
-
GEOM_Swig::GEOM_Swig()
{
// MESSAGE("Constructeur");
void GEOM_Swig::createAndDisplayGO(const char* Entry)
{
// MESSAGE("createAndDisplayGO");
- QAD_Study* ActiveStudy = QAD_Application::getDesktop()->getActiveStudy();
- SALOMEDS::Study_var aStudy = ActiveStudy->getStudyDocument();
- SALOMEDS::StudyBuilder_var aStudyBuilder = aStudy->NewBuilder();
-
- Engines::Component_var comp = QAD_Application::getDesktop()->getEngine("FactoryServer", "GEOM");
- GEOM::GEOM_Gen_var Geom = GEOM::GEOM_Gen::_narrow(comp);
-
- CORBA::String_var aFatherIOR;
- SALOMEDS::SComponent_var father = aStudy->FindComponent("GEOM");
- aStudyBuilder->DefineComponentInstance( father, Geom );
- father->ComponentIOR(aFatherIOR);
-
- SALOMEDS::SObject_var fatherSF = aStudy->FindObjectID(ActiveStudy->getActiveStudyFrame()->entry());
- SALOMEDS::SObject_var obj = aStudy->FindObjectID(Entry);
- SALOMEDS::GenericAttribute_var anAttr;
- SALOMEDS::AttributeIOR_var anIOR;
- // Create new actor
- if ( !obj->FindAttribute(anAttr, "AttributeIOR"))
- return;
- anIOR = SALOMEDS::AttributeIOR::_narrow(anAttr);
- CORBA::String_var anIORValue = anIOR->Value();
-
- GEOM::GEOM_Object_var aShape = Geom->GetIORFromString(anIORValue);
- TopoDS_Shape Shape = ShapeReader.GetShape(Geom,aShape);
-
- if ( !obj->_is_nil() ) {
- if (obj->FindAttribute(anAttr, "AttributeName")) {
- SALOMEDS::AttributeName_var aName = SALOMEDS::AttributeName::_narrow(anAttr);
- CORBA::String_var aNameValue = aName->Value();
- // open transaction
- QAD_Operation* op = new SALOMEGUI_ImportOperation( ActiveStudy );
- op->start();
-
- SALOMEDS::SObject_var newObj1 = aStudyBuilder->NewObject(fatherSF);
- aStudyBuilder->Addreference(newObj1, obj);
- // commit transaction
- op->finish();
-
- Handle(GEOM_InteractiveObject) anIO = new GEOM_InteractiveObject(const_cast<char*>(anIORValue.in()),
- const_cast<char*>(aFatherIOR.in()),
- "GEOM",
- const_cast<char*>(obj->GetID()));
-
- class TEvent: public SALOME_Event{
- QAD_Study* myStudy;
- TopoDS_Shape myShape;
- Handle(SALOME_InteractiveObject) myIO;
- const char* myName;
- public:
- TEvent(QAD_Study* theStudy, TopoDS_Shape theShape,
- const Handle(SALOME_InteractiveObject)& theIO,
- const char* theName):
- myStudy(theStudy), myShape(theShape),
- myIO(theIO), myName(theName)
- {}
- virtual void Execute(){
- if(VTKViewer_ViewFrame* aViewFrame = GetFrame<VTKViewer_ViewFrame>(myStudy)){
- VTKViewer_RenderWindowInteractor* myRenderInter= aViewFrame->getRWInteractor();
- int aMode = myRenderInter->GetDisplayMode();
-
- vtkActorCollection* theActors = GEOM_AssemblyBuilder::BuildActors(myShape,0,aMode,true);
- theActors->InitTraversal();
- while(vtkActor* anActor = theActors->GetNextActor()){
- GEOM_Actor* GActor = GEOM_Actor::SafeDownCast(anActor);
- GActor->setName(const_cast<char*>(myName));
- GActor->setIO(myIO);
- myRenderInter->Display(GActor);
- }
- myRenderInter->Update();
- }else if(OCCViewer_ViewFrame* aViewFrame = GetFrame<OCCViewer_ViewFrame>(myStudy)){
- Handle(AIS_InteractiveContext) ic = aViewFrame->getViewer()->getAISContext();
- Handle(GEOM_AISShape) aSh = new GEOM_AISShape(myShape,const_cast<char*>(myName));
- aSh->setName(const_cast<char*>(myName));
- aSh->setIO(myIO);
- ic->Display(aSh);
- ic->AddOrRemoveCurrentObject(aSh,true);
- }
- myStudy->updateObjBrowser(true);
- }
- };
- ProcessVoidEvent(new TEvent(ActiveStudy,Shape,anIO,aNameValue.in()));
- }
- }
}
int GEOM_Swig::getIndexTopology(const char* SubIOR, const char* IOR)
{
- Engines::Component_var comp = QAD_Application::getDesktop()->getEngine("FactoryServer", "GEOM");
- GEOM::GEOM_Gen_var Geom = GEOM::GEOM_Gen::_narrow(comp);
-
- GEOM::GEOM_Object_var aMainShape = Geom->GetIORFromString(IOR);
- TopoDS_Shape shape = ShapeReader.GetShape(Geom, aMainShape);
- GEOM::GEOM_Object_var aSubShape = Geom->GetIORFromString(SubIOR);
- TopoDS_Shape subshape = ShapeReader.GetShape(Geom, aSubShape);
-
- int index = 1;
- if(subshape.ShapeType() == TopAbs_COMPOUND) {
- TopoDS_Iterator it;
- TopTools_ListOfShape CL;
- CL.Append(shape);
- TopTools_ListIteratorOfListOfShape itC;
- for(itC.Initialize(CL); itC.More(); itC.Next()) {
- for(it.Initialize(itC.Value()); it.More(); it.Next()) {
- if (it.Value().ShapeType() == TopAbs_COMPOUND) {
- if (it.Value().IsSame(subshape))
- return index;
- else
- index++;
- CL.Append(it.Value());
- }
- }
- }
- }
- else {
- TopExp_Explorer Exp(shape, subshape.ShapeType());
- TopTools_MapOfShape M;
- while(Exp.More()) {
- if(M.Add(Exp.Current())) {
- if(Exp.Current().IsSame(subshape))
- return index;
- index++;
- }
- Exp.Next();
- }
- }
return -1;
}
const char* GEOM_Swig::getShapeTypeString(const char* IOR)
{
- Engines::Component_var comp = QAD_Application::getDesktop()->getEngine("FactoryServer", "GEOM");
- GEOM::GEOM_Gen_var Geom = GEOM::GEOM_Gen::_narrow(comp);
-
- GEOM::GEOM_Object_var aShape = Geom->GetIORFromString(IOR);
- TopoDS_Shape shape = ShapeReader.GetShape(Geom, aShape);
-
- if( shape.IsNull() ) {
- return "Null Shape" ;
- }
- switch (shape.ShapeType() )
- {
- case TopAbs_COMPOUND:
- { return "Compound" ;}
- case TopAbs_COMPSOLID:
- { return "Compound Solid" ;}
- case TopAbs_SOLID:
- { return "Solid" ;}
- case TopAbs_SHELL:
- { return "Shell" ;}
- case TopAbs_FACE:
- {
- BRepAdaptor_Surface surf(TopoDS::Face(shape));
- if ( surf.GetType() == GeomAbs_Plane ) {
- return "Plane" ;
- } else if ( surf.GetType() == GeomAbs_Cylinder ) {
- return "Cylindrical Face" ;
- } else if ( surf.GetType() == GeomAbs_Sphere ) {
- return "Spherical Face" ;
- } else if ( surf.GetType() == GeomAbs_Torus ) {
- return "Toroidal Face" ;
- } else if ( surf.GetType() == GeomAbs_Cone ) {
- return "Conical Face" ;
- } else {
- return "GEOM::FACE" ;
- }
- }
- case TopAbs_WIRE:
- { return "Wire" ;}
- case TopAbs_EDGE:
- {
- BRepAdaptor_Curve curv(TopoDS::Edge(shape));
- if ( curv.GetType() == GeomAbs_Line ) {
- if ( (Abs(curv.FirstParameter()) >= 1E6 ) ||
- (Abs(curv.LastParameter()) >= 1E6 )) {
- return "Line" ;
- } else
- return "Edge" ;
- } else if ( curv.GetType() == GeomAbs_Circle ) {
- if ( curv.IsClosed() )
- return "Circle" ;
- else
- return "Arc" ;
- } else {
- return "Edge" ;
- }
- }
- case TopAbs_VERTEX:
- { return "Vertex" ;}
- case TopAbs_SHAPE:
- { return "Shape" ;}
- }
return 0;
}
const char* GEOM_Swig::getShapeTypeIcon(const char* IOR)
{
- Engines::Component_var comp = QAD_Application::getDesktop()->getEngine("FactoryServer", "GEOM");
- GEOM::GEOM_Gen_var Geom = GEOM::GEOM_Gen::_narrow(comp);
-
- GEOM::GEOM_Object_var aShape = Geom->GetIORFromString(IOR);
- TopoDS_Shape shape = ShapeReader.GetShape(Geom, aShape);
-
- if( shape.IsNull() ) {
- return "None" ;
- }
-
- switch (shape.ShapeType() )
- {
- case TopAbs_COMPOUND:
- { return "ICON_OBJBROWSER_COMPOUND" ;}
- case TopAbs_COMPSOLID:
- { return "ICON_OBJBROWSER_COMPSOLID" ;}
- case TopAbs_SOLID:
- { return "ICON_OBJBROWSER_SOLID" ;}
- case TopAbs_SHELL:
- { return "ICON_OBJBROWSER_SHELL" ;}
- case TopAbs_FACE:
- { return "ICON_OBJBROWSER_FACE" ;}
- case TopAbs_WIRE:
- { return "ICON_OBJBROWSER_WIRE" ;}
- case TopAbs_EDGE:
- { return "ICON_OBJBROWSER_EDGE" ;}
- case TopAbs_VERTEX:
- { return "ICON_OBJBROWSER_VERTEX" ;}
- }
return "None";
}
void GEOM_Swig::setDisplayMode(const char* theEntry, int theMode)
{
- QAD_Study* aStudy = QAD_Application::getDesktop()->getActiveStudy();
- Handle(SALOME_InteractiveObject) anIO = SALOME::FindIObject(aStudy,theEntry);
-
- class TEvent: public SALOME_Event{
- QAD_Study* myStudy;
- Handle(SALOME_InteractiveObject) myIO;
- int myParam;
- public:
- TEvent(QAD_Study* theStudy, const Handle(SALOME_InteractiveObject)& theIO, int theParam):
- myStudy(theStudy), myIO(theIO), myParam(theParam)
- {}
- virtual void Execute(){
- if(VTKViewer_ViewFrame* aViewFrame = GetFrame<VTKViewer_ViewFrame>(myStudy)){
- VTKViewer_RenderWindowInteractor* myRenderInter= aViewFrame->getRWInteractor();
- myRenderInter->SetDisplayMode(myIO,myParam);
- myRenderInter->Update();
- }else if(OCCViewer_ViewFrame* aViewFrame = GetFrame<OCCViewer_ViewFrame>(myStudy)){
- OCCViewer_Viewer3d* v3d = aViewFrame->getViewer();
- v3d->SwitchRepresentation(myIO,myParam);
- }
- }
- };
-
- ProcessVoidEvent(new TEvent(aStudy,anIO,theMode));
}
void GEOM_Swig::setColor(const char* theEntry, int red, int green, int blue)
{
- QAD_Study* aStudy = QAD_Application::getDesktop()->getActiveStudy();
- Handle(SALOME_InteractiveObject) anIO = SALOME::FindIObject(aStudy,theEntry);
- QColor aColor(red,green,blue);
-
- class TEvent: public SALOME_Event{
- QAD_Study* myStudy;
- Handle(SALOME_InteractiveObject) myIO;
- QColor myParam;
- public:
- TEvent(QAD_Study* theStudy, const Handle(SALOME_InteractiveObject)& theIO, const QColor& theParam):
- myStudy(theStudy), myIO(theIO), myParam(theParam)
- {}
- virtual void Execute(){
- if(VTKViewer_ViewFrame* aViewFrame = GetFrame<VTKViewer_ViewFrame>(myStudy)){
- VTKViewer_RenderWindowInteractor* myRenderInter= aViewFrame->getRWInteractor();
- myRenderInter->SetColor(myIO,myParam);
- myRenderInter->Update();
- }else if(OCCViewer_ViewFrame* aViewFrame = GetFrame<OCCViewer_ViewFrame>(myStudy)){
- OCCViewer_Viewer3d* v3d = aViewFrame->getViewer();
- Handle(AIS_InteractiveContext) ic = aViewFrame->getViewer()->getAISContext();
- AIS_ListOfInteractive List;
- ic->DisplayedObjects(List);
- AIS_ListIteratorOfListOfInteractive ite(List);
- for ( ; ite.More(); ite.Next() ) {
- Handle(SALOME_InteractiveObject) anObj =
- Handle(SALOME_InteractiveObject)::DownCast( ite.Value()->GetOwner() );
- if ( !anObj.IsNull() && anObj->hasEntry() && anObj->isSame( myIO ) ) {
- Quantity_Color CSFColor = Quantity_Color ( myParam.red() / 255.,
- myParam.green() / 255.,
- myParam.blue() / 255.,
- Quantity_TOC_RGB );
- ite.Value()->SetColor( CSFColor );
- if ( ite.Value()->IsKind( STANDARD_TYPE(GEOM_AISShape) ) )
- Handle(GEOM_AISShape)::DownCast( ite.Value() )->SetShadingColor( CSFColor );
- ite.Value()->Redisplay( Standard_True );
- v3d->getViewer3d()->Update();
- break;
- }
- }
- }
- }
- };
-
- ProcessVoidEvent(new TEvent(aStudy,anIO,aColor));
}
void GEOM_Swig::setTransparency(const char* theEntry, float transp)
{
- QAD_Study* aStudy = QAD_Application::getDesktop()->getActiveStudy();
- Handle(SALOME_InteractiveObject) anIO = SALOME::FindIObject(aStudy,theEntry);
-
- class TEvent: public SALOME_Event{
- QAD_Study* myStudy;
- Handle(SALOME_InteractiveObject) myIO;
- float myParam;
- public:
- TEvent(QAD_Study* theStudy, const Handle(SALOME_InteractiveObject)& theIO, float theParam):
- myStudy(theStudy), myIO(theIO), myParam(theParam)
- {}
- virtual void Execute(){
- if(VTKViewer_ViewFrame* aViewFrame = GetFrame<VTKViewer_ViewFrame>(myStudy)){
- VTKViewer_RenderWindowInteractor* myRenderInter= aViewFrame->getRWInteractor();
- myRenderInter->SetTransparency(myIO,myParam);
- myRenderInter->Update();
- }else if(OCCViewer_ViewFrame* aViewFrame = GetFrame<OCCViewer_ViewFrame>(myStudy)){
- OCCViewer_Viewer3d* v3d = aViewFrame->getViewer();
- v3d->SetTransparency(myIO,myParam);
- }
- }
- };
-
- ProcessVoidEvent(new TEvent(aStudy,anIO,transp));
}
# ressources files
PO_FILES = \
- GEOM_icons.po \
+ GEOM_images.po \
GEOM_msg_en.po \
GEOM_msg_fr.po
# header files
EXPORT_HEADERS= GeometryGUI.h \
GEOMGUI.h \
+ GEOM_Displayer.h \
+ GEOMGUI_OCCSelector.h \
+ GEOMGUI_Selection.h \
GeometryGUI_Swig.hxx \
- GeometryGUI_Swig.i \
- GEOM_Displayer.h
+ GeometryGUI_Swig.i
# Libraries targets
-LIB = libGEOMGUI.la
+LIB = libGEOM.la
LIB_SRC = GeometryGUI.cxx \
- GeometryGUI_Swig.cxx \
- GEOM_Displayer.cxx \
- GEOMGUI.cxx
+ GEOMGUI.cxx \
+ GEOM_Displayer.cxx \
+ GEOMGUI_OCCSelector.cxx \
+ GEOMGUI_Selection.cxx \
+ GeometryGUI_Swig.cxx
-LIB_MOC = \
- GeometryGUI.h \
+LIB_MOC = GeometryGUI.h \
LIB_CLIENT_IDL = SALOME_Exception.idl \
SALOMEDS.idl \
SALOMEDS_Attributes.idl \
- SALOME_GenericObj.idl
+ SALOME_GenericObj.idl \
+ SALOME_Component.idl
LIB_SERVER_IDL =
# additionnal information to compil and link file
-CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome
-CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome
+CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) $(BOOST_CPPFLAGS) -I$(KERNEL_ROOT_DIR)/include/salome -I$(GUI_ROOT_DIR)/include/salome
+CXXFLAGS += $(BOOST_CPPFLAGS) -I$(KERNEL_ROOT_DIR)/include/salome -I$(GUI_ROOT_DIR)/include/salome
-LDFLAGS += -L$(KERNEL_ROOT_DIR)/lib/salome -lOCCViewer -lVTKViewer -lSalomeGUI -lGEOMClient -lGEOMObject -lGEOMFiltersSelection
+LDFLAGS += -L$(KERNEL_ROOT_DIR)/lib/salome -L$(GUI_ROOT_DIR)/lib/salome -lOCCViewer -lVTKViewer -lSalomeApp -lCAM -lGEOMClient -lSOCC -lSVTK -lGEOMObject -lToolsGUI
@CONCLUDE@
Standard_Real aTol = MF.G0Error();
TColgp_Array1OfPnt aPnts (1,nbEdges); // points of the given wire
- aWE = BRepTools_WireExplorer(theWire);
+ BRepTools_WireExplorer aWE1 (theWire);
Standard_Integer vi = 1;
- for (; aWE.More() && vi <= nbEdges; aWE.Next(), vi++) {
- aPnts(vi) = BRep_Tool::Pnt(TopoDS::Vertex(aWE.CurrentVertex()));
+ for (; aWE1.More() && vi <= nbEdges; aWE1.Next(), vi++) {
+ aPnts(vi) = BRep_Tool::Pnt(TopoDS::Vertex(aWE1.CurrentVertex()));
}
// Find maximum deviation in vertices
}
// build wire in right order, corresponding to edges connexity
- BRepBuilderAPI_MakeWire MW;
+ BRepBuilderAPI_MakeWire* MW;
if (isConnected12)
- MW = BRepBuilderAPI_MakeWire(anEdge1, anEdge2, anEdge3, anEdge4);
+ MW = new BRepBuilderAPI_MakeWire(anEdge1, anEdge2, anEdge3, anEdge4);
else
- MW = BRepBuilderAPI_MakeWire(anEdge1, anEdge3, anEdge2, anEdge4);
+ MW = new BRepBuilderAPI_MakeWire(anEdge1, anEdge3, anEdge2, anEdge4);
- if (!MW.IsDone()) {
+ if (!MW->IsDone()) {
Standard_ConstructionError::Raise
("Impossible to build a connected wire from the given edges");
}
- TopoDS_Wire aWire = MW;
+ TopoDS_Wire aWire = *MW;
+ delete MW;
if (!aWire.Closed()) {
Standard_ConstructionError::Raise
("Impossible to build a closed wire from the given edges");
#include <TDF_Tool.hxx>
#include "GEOM_Function.hxx"
+#include "GEOM_PythonDump.hxx"
+
#include "GEOMImpl_Types.hxx"
#include "GEOMImpl_BoxDriver.hxx"
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr("");
- TDF_Tool::Entry(aBox->GetEntry(), anEntry);
- aDescr += anEntry;
- aDescr += " = I3DPrimOperations.MakeBoxDXDYDZ(";
- aDescr += (TCollection_AsciiString(theDX)+", ");
- aDescr += (TCollection_AsciiString(theDY)+", ");
- aDescr += (TCollection_AsciiString(theDZ)+")");
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aBox << " = geompy.MakeBoxDXDYDZ("
+ << theDX << ", " << theDY << ", " << theDZ << ")";
SetErrorCode(OK);
return aBox;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr("");
- TDF_Tool::Entry(aBox->GetEntry(), anEntry);
- aDescr += anEntry;
- aDescr += " = I3DPrimOperations.MakeBoxTwoPnt(";
- TDF_Tool::Entry(thePnt1->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(thePnt2->GetEntry(), anEntry);
- aDescr += (anEntry+")");
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aBox << " = geompy.MakeBoxTwoPnt("
+ << thePnt1 << ", " << thePnt2 << ")";
SetErrorCode(OK);
return aBox;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr("");
- TDF_Tool::Entry(aCylinder->GetEntry(), anEntry);
- aDescr += anEntry;
- aDescr += " = I3DPrimOperations.MakeCylinderRH(";
- aDescr += (TCollection_AsciiString(theR)+", ");
- aDescr += (TCollection_AsciiString(theH)+")");
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aCylinder
+ << " = geompy.MakeCylinderRH(" << theR << ", " << theH << ")";
SetErrorCode(OK);
return aCylinder;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr("");
- TDF_Tool::Entry(aCylinder->GetEntry(), anEntry);
- aDescr += anEntry;
- aDescr += " = I3DPrimOperations.MakeCylinderPntVecRH(";
- TDF_Tool::Entry(thePnt->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(theVec->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- aDescr += (TCollection_AsciiString(theR)+", ");
- aDescr += (TCollection_AsciiString(theH)+")");
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aCylinder << " = geompy.MakeCylinder("
+ << thePnt << ", " << theVec << ", " << theR << ", " << theH << ")";
SetErrorCode(OK);
return aCylinder;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr("");
- TDF_Tool::Entry(aCone->GetEntry(), anEntry);
- aDescr += anEntry;
- aDescr += " = I3DPrimOperations.MakeConeR1R2H(";
- aDescr += (TCollection_AsciiString(theR1)+", ");
- aDescr += (TCollection_AsciiString(theR2)+", ");
- aDescr += (TCollection_AsciiString(theH)+")");
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aCone << " = geompy.MakeConeR1R2H("
+ << theR1 << ", " << theR2 << ", " << theH << ")";
SetErrorCode(OK);
return aCone;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr("");
- TDF_Tool::Entry(aCone->GetEntry(), anEntry);
- aDescr += anEntry;
- aDescr += " = I3DPrimOperations.MakeConePntVecR1R2H(";
- TDF_Tool::Entry(thePnt->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(theVec->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- aDescr += (TCollection_AsciiString(theR1)+", ");
- aDescr += (TCollection_AsciiString(theR2)+", ");
- aDescr += (TCollection_AsciiString(theH)+")");
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aCone << " = geompy.MakeCone(" << thePnt
+ << ", " << theVec << ", " << theR1 << ", " << theR2 << ", " << theH << ")";
SetErrorCode(OK);
return aCone;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr("");
- TDF_Tool::Entry(aSphere->GetEntry(), anEntry);
- aDescr += anEntry;
- aDescr += " = I3DPrimOperations.MakeSphereR(";
- aDescr += (TCollection_AsciiString(theR)+")");
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aSphere << " = geompy.MakeSphereR(" << theR << ")";
SetErrorCode(OK);
return aSphere;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr("");
- TDF_Tool::Entry(aSphere->GetEntry(), anEntry);
- aDescr += anEntry;
- aDescr += " = I3DPrimOperations.MakeSpherePntR(";
- TDF_Tool::Entry(thePnt->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- aDescr += (TCollection_AsciiString(theR)+")");
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aSphere
+ << " = geompy.MakeSpherePntR(" << thePnt << ", " << theR << ")";
SetErrorCode(OK);
return aSphere;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr("");
- TDF_Tool::Entry(anEll->GetEntry(), anEntry);
- aDescr += anEntry;
- aDescr += " = ICurvesOperations.MakeTorusRR(";
- aDescr += (TCollection_AsciiString(theRMajor)+", ");
- aDescr += (TCollection_AsciiString(theRMinor)+")");
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << anEll << " = geompy.MakeTorusRR("
+ << theRMajor << ", " << theRMinor << ")";
SetErrorCode(OK);
return anEll;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr("");
- TDF_Tool::Entry(anEll->GetEntry(), anEntry);
- aDescr += anEntry;
- aDescr += " = ICurvesOperations.MakeTorusPntVecRR(";
- TDF_Tool::Entry(thePnt->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(theVec->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- aDescr += (TCollection_AsciiString(theRMajor)+", ");
- aDescr += (TCollection_AsciiString(theRMinor)+")");
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << anEll << " = geompy.MakeTorus(" << thePnt
+ << ", " << theVec << ", " << theRMajor << ", " << theRMinor << ")";
SetErrorCode(OK);
return anEll;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr("");
- TDF_Tool::Entry(aPrism->GetEntry(), anEntry);
- aDescr += anEntry;
- aDescr += " = I3DPrimOperations.MakePrismVecH(";
- TDF_Tool::Entry(theBase->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(theVec->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- aDescr += (TCollection_AsciiString(theH)+")");
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aPrism << " = geompy.MakePrismVecH("
+ << theBase << ", " << theVec << ", " << theH << ")";
SetErrorCode(OK);
return aPrism;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr("");
- TDF_Tool::Entry(aPrism->GetEntry(), anEntry);
- aDescr += anEntry;
- aDescr += " = I3DPrimOperations.MakePrismVecH(";
- TDF_Tool::Entry(theBase->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(thePoint1->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(thePoint2->GetEntry(), anEntry);
- aDescr += (anEntry+")");
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aPrism << " = geompy.MakePrism("
+ << theBase << ", " << thePoint1 << ", " << thePoint2 << ")";
SetErrorCode(OK);
return aPrism;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aPipe->GetEntry(), anEntry);
- aDescr += (anEntry + " = I3DPrimOperations.MakePipe(");
- TDF_Tool::Entry(theBase->GetEntry(), anEntry);
- aDescr += (anEntry + ", ");
- TDF_Tool::Entry(thePath->GetEntry(), anEntry);
- aDescr += (anEntry + ")");
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aPipe << " = geompy.MakePipe("
+ << theBase << ", " << thePath << ")";
SetErrorCode(OK);
return aPipe;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr("");
- TDF_Tool::Entry(aRevolution->GetEntry(), anEntry);
- aDescr += anEntry;
- aDescr += " = I3DPrimOperations.MakeRevolutionAxisAngle(";
- TDF_Tool::Entry(theBase->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(theAxis->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- aDescr += (TCollection_AsciiString(theAngle)+")");
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aRevolution << " = geompy.MakeRevolution("
+ << theBase << ", " << theAxis << ", " << theAngle * 180.0 / PI << "*math.pi/180.0)";
SetErrorCode(OK);
return aRevolution;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr("");
- TDF_Tool::Entry(aSolid->GetEntry(), anEntry);
- aDescr += anEntry;
- aDescr += " = I3DPrimOperations.MakeSolidShell(";
- TDF_Tool::Entry(theShell->GetEntry(), anEntry);
- aDescr += (anEntry+")");
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aSolid << " = geompy.MakeSolid(" << theShell << ")";
SetErrorCode(OK);
return aSolid;
* MakeFilling
*/
//=============================================================================
-Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeFilling (Handle(GEOM_Object) theShape, int theMinDeg, int theMaxDeg, double theTol2D, double theTol3D, int theNbIter)
+Handle(GEOM_Object) GEOMImpl_I3DPrimOperations::MakeFilling
+ (Handle(GEOM_Object) theShape, int theMinDeg, int theMaxDeg,
+ double theTol2D, double theTol3D, int theNbIter)
{
SetErrorCode(KO);
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr("");
- TDF_Tool::Entry(aFilling->GetEntry(), anEntry);
- aDescr += anEntry;
- aDescr += " = ICurvesOperations.MakeFilling(";
- TDF_Tool::Entry(theShape->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- aDescr += (TCollection_AsciiString(theMinDeg)+", ");
- aDescr += (TCollection_AsciiString(theMaxDeg)+", ");
- aDescr += (TCollection_AsciiString(theTol2D)+", ");
- aDescr += (TCollection_AsciiString(theTol3D)+", ");
- aDescr += (TCollection_AsciiString(theNbIter)+")");
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aFilling << " = geompy.MakeFilling("
+ << theShape << ", " << theMinDeg << ", " << theMaxDeg << ", "
+ << theTol2D << ", " << theTol3D << ", " << theNbIter << ")";
SetErrorCode(OK);
return aFilling;
#include <TDF_Tool.hxx>
#include "GEOM_Function.hxx"
+#include "GEOM_PythonDump.hxx"
#include "GEOMImpl_PointDriver.hxx"
#include "GEOMImpl_VectorDriver.hxx"
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aPoint->GetEntry(), anEntry);
- aDescr += (anEntry+" = IBasicOperations.MakePointXYZ(");
- aDescr += (TCollection_AsciiString(theX)+", ");
- aDescr += (TCollection_AsciiString(theY)+", ");
- aDescr += (TCollection_AsciiString(theZ)+")");
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aPoint << " = geompy.MakeVertex("
+ << theX << ", " << theY << ", " << theZ << ")";
SetErrorCode(OK);
return aPoint;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aPoint->GetEntry(), anEntry);
- aDescr += (anEntry+" = IBasicOperations.MakePointReference(");
- TDF_Tool::Entry(theReference->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- aDescr += (TCollection_AsciiString(theX)+", ");
- aDescr += (TCollection_AsciiString(theY)+", ");
- aDescr += (TCollection_AsciiString(theZ)+")");
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aPoint << " = geompy.MakeVertexWithRef("
+ << theReference << ", " << theX << ", " << theY << ", " << theZ << ")";
SetErrorCode(OK);
return aPoint;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aPoint->GetEntry(), anEntry);
- aDescr += (anEntry+" = IBasicOperations.MakePointReference(");
- TDF_Tool::Entry(theCurve->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- aDescr += (TCollection_AsciiString(theParameter)+")");
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aPoint << " = geompy.MakeVertexOnCurve("
+ << theCurve << ", " << theParameter << ")";
SetErrorCode(OK);
return aPoint;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aVector->GetEntry(), anEntry);
- aDescr += (anEntry+" = IBasicOperations.MakeVectorDXDYDZ(");
- aDescr += (TCollection_AsciiString(theDX)+", ");
- aDescr += (TCollection_AsciiString(theDY)+", ");
- aDescr += (TCollection_AsciiString(theDZ)+")");
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aVector << " = geompy.MakeVectorDXDYDZ("
+ << theDX << ", " << theDY << ", " << theDZ << ")";
SetErrorCode(OK);
return aVector;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aVector->GetEntry(), anEntry);
- aDescr += (anEntry+" = IBasicOperations.MakeVectorTwoPnt(");
- TDF_Tool::Entry(thePnt1->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(thePnt2->GetEntry(), anEntry);
- aDescr += (anEntry+")");
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aVector << " = geompy.MakeVector("
+ << thePnt1 << ", " << thePnt2 << ")";
SetErrorCode(OK);
return aVector;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aLine->GetEntry(), anEntry);
- aDescr += (anEntry+" = IBasicOperations.MakeLine(");
- TDF_Tool::Entry(thePnt->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(theDir->GetEntry(), anEntry);
- aDescr += (anEntry+")");
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aLine << " = geompy.MakeLine("
+ << thePnt << ", " << theDir << ")";
SetErrorCode(OK);
return aLine;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aLine->GetEntry(), anEntry);
- aDescr += (anEntry+" = IBasicOperations.MakeLineTwoPnt(");
- TDF_Tool::Entry(thePnt1->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(thePnt2->GetEntry(), anEntry);
- aDescr += (anEntry+")");
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aLine << " = geompy.MakeLineTwoPnt("
+ << thePnt1 << ", " << thePnt2 << ")";
SetErrorCode(OK);
return aLine;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aPlane->GetEntry(), anEntry);
- aDescr += (anEntry+" = IBasicOperations.MakePlaneThreePnt(");
- TDF_Tool::Entry(thePnt1->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(thePnt2->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(thePnt3->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- aDescr += TCollection_AsciiString(theSize) + ")";
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aPlane << " = geompy.MakePlaneThreePnt("
+ << thePnt1 << ", " << thePnt2 << ", " << thePnt3 << ", " << theSize << ")";
SetErrorCode(OK);
return aPlane;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aPlane->GetEntry(), anEntry);
- aDescr += (anEntry+" = IBasicOperations.MakePlanePntVec(");
- TDF_Tool::Entry(thePnt->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(theVec->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- aDescr += TCollection_AsciiString(theSize) + ")";
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aPlane << " = geompy.MakePlane("
+ << thePnt << ", " << theVec << ", " << theSize << ")";
SetErrorCode(OK);
return aPlane;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aPlane->GetEntry(), anEntry);
- aDescr += (anEntry+" = IBasicOperations.MakePlaneFace(");
- TDF_Tool::Entry(theFace->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- aDescr += TCollection_AsciiString(theSize) + ")";
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aPlane << " = geompy.MakePlaneFace("
+ << theFace << ", " << theSize << ")";
SetErrorCode(OK);
return aPlane;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aMarker->GetEntry(), anEntry);
- aDescr += anEntry + " = IBasicOperations.MakeMarker(";
- aDescr += TCollection_AsciiString(theOX) + ", ";
- aDescr += TCollection_AsciiString(theOY) + ", ";
- aDescr += TCollection_AsciiString(theOZ) + ", ";
- aDescr += TCollection_AsciiString(theXDX) + ", ";
- aDescr += TCollection_AsciiString(theXDY) + ", ";
- aDescr += TCollection_AsciiString(theXDZ) + ", ";
- aDescr += TCollection_AsciiString(theYDX) + ", ";
- aDescr += TCollection_AsciiString(theYDY) + ", ";
- aDescr += TCollection_AsciiString(theYDZ) + ")";
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aMarker << " = geompy.MakeMarker("
+ << theOX << ", " << theOY << ", " << theOZ << ", "
+ << theXDX << ", " << theXDY << ", " << theXDZ << ", "
+ << theYDX << ", " << theYDY << ", " << theYDZ << ")";
SetErrorCode(OK);
return aMarker;
#include "GEOMImpl_Block6Explorer.hxx"
#include "GEOM_Function.hxx"
+#include "GEOM_PythonDump.hxx"
#include "GEOMAlgo_GlueAnalyser.hxx"
#include "GEOMAlgo_CoupleOfShapes.hxx"
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aFace->GetEntry(), anEntry);
- aDescr += anEntry + " = IBlocksOperations.MakeQuad(";
- TDF_Tool::Entry(theEdge1->GetEntry(), anEntry);
- aDescr += anEntry + ", ";
- TDF_Tool::Entry(theEdge2->GetEntry(), anEntry);
- aDescr += anEntry + ", ";
- TDF_Tool::Entry(theEdge3->GetEntry(), anEntry);
- aDescr += anEntry + ", ";
- TDF_Tool::Entry(theEdge4->GetEntry(), anEntry);
- aDescr += anEntry + ")";
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aFace << " = geompy.MakeQuad("
+ << theEdge1 << ", " << theEdge2 << ", " << theEdge3 << ", " << theEdge4 << ")";
SetErrorCode(OK);
return aFace;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aFace->GetEntry(), anEntry);
- aDescr += anEntry + " = IBlocksOperations.MakeQuad2Edges(";
- TDF_Tool::Entry(theEdge1->GetEntry(), anEntry);
- aDescr += anEntry + ", ";
- TDF_Tool::Entry(theEdge2->GetEntry(), anEntry);
- aDescr += anEntry + ")";
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aFace << " = geompy.MakeQuad2Edges("
+ << theEdge1 << ", " << theEdge2 << ")";
SetErrorCode(OK);
return aFace;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aFace->GetEntry(), anEntry);
- aDescr += anEntry + " = IBlocksOperations.MakeQuad4Vertices(";
- TDF_Tool::Entry(thePnt1->GetEntry(), anEntry);
- aDescr += anEntry + ", ";
- TDF_Tool::Entry(thePnt2->GetEntry(), anEntry);
- aDescr += anEntry + ", ";
- TDF_Tool::Entry(thePnt3->GetEntry(), anEntry);
- aDescr += anEntry + ", ";
- TDF_Tool::Entry(thePnt4->GetEntry(), anEntry);
- aDescr += anEntry + ")";
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aFace << " = geompy.MakeQuad4Vertices("
+ << thePnt1 << ", " << thePnt2 << ", " << thePnt3 << ", " << thePnt4 << ")";
SetErrorCode(OK);
return aFace;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aBlock->GetEntry(), anEntry);
- aDescr += anEntry + " = IBlocksOperations.MakeHexa(";
- TDF_Tool::Entry(theFace1->GetEntry(), anEntry);
- aDescr += anEntry + ", ";
- TDF_Tool::Entry(theFace2->GetEntry(), anEntry);
- aDescr += anEntry + ", ";
- TDF_Tool::Entry(theFace3->GetEntry(), anEntry);
- aDescr += anEntry + ", ";
- TDF_Tool::Entry(theFace4->GetEntry(), anEntry);
- aDescr += anEntry + ", ";
- TDF_Tool::Entry(theFace5->GetEntry(), anEntry);
- aDescr += anEntry + ", ";
- TDF_Tool::Entry(theFace6->GetEntry(), anEntry);
- aDescr += anEntry + ")";
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aBlock << " = geompy.MakeHexa("
+ << theFace1 << ", " << theFace2 << ", " << theFace3 << ", "
+ << theFace4 << ", " << theFace5 << ", " << theFace6 << ")";
SetErrorCode(OK);
return aBlock;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aBlock->GetEntry(), anEntry);
- aDescr += anEntry + " = IBlocksOperations.MakeHexa2Faces(";
- TDF_Tool::Entry(theFace1->GetEntry(), anEntry);
- aDescr += anEntry + ", ";
- TDF_Tool::Entry(theFace2->GetEntry(), anEntry);
- aDescr += anEntry + ")";
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aBlock << " = geompy.MakeHexa2Faces("
+ << theFace1 << ", " << theFace2 << ")";
SetErrorCode(OK);
return aBlock;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aBlockComp->GetEntry(), anEntry);
- aDescr += anEntry + " = IBlocksOperations.MakeBlockCompound(";
- TDF_Tool::Entry(theCompound->GetEntry(), anEntry);
- aDescr += anEntry + ")";
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aBlockComp
+ << " = geompy.MakeBlockCompound(" << theCompound << ")";
SetErrorCode(OK);
return aBlockComp;
//The GetPoint() doesn't change object so no new function is required.
Handle(GEOM_Function) aFunction = theShape->GetLastFunction();
+ TCollection_AsciiString anOldDescr = aFunction->GetDescription();
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aResult->GetEntry(), anEntry);
- aDescr += anEntry + " = IBlocksOperations.GetPoint(";
- TDF_Tool::Entry(theShape->GetEntry(), anEntry);
- aDescr += anEntry + ", ";
- aDescr += TCollection_AsciiString(theX) + ", ";
- aDescr += TCollection_AsciiString(theY) + ", ";
- aDescr += TCollection_AsciiString(theZ) + ", ";
- aDescr += TCollection_AsciiString(theEpsilon) + ")";
-
- TCollection_AsciiString aNewDescr = aFunction->GetDescription() + "\n";
- aNewDescr += aDescr;
- aFunction->SetDescription(aNewDescr);
+ GEOM::TPythonDump(aFunction) << anOldDescr.ToCString() << "\n\t"
+ << aResult << " = geompy.GetPoint(" << theShape << ", "
+ << theX << ", " << theY << ", " << theZ << ", " << theEpsilon << ")";
SetErrorCode(OK);
return aResult;
return NULL;
}
- //The GetEdge() doesn't change object so no new function is required.
- Handle(GEOM_Function) aFunction = theShape->GetLastFunction();
+ Handle(GEOM_Function) aFunction = aResult->GetLastFunction();
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aResult->GetEntry(), anEntry);
- aDescr += anEntry + " = IBlocksOperations.GetEdge(";
- TDF_Tool::Entry(theShape->GetEntry(), anEntry);
- aDescr += anEntry + ", ";
- TDF_Tool::Entry(thePoint1->GetEntry(), anEntry);
- aDescr += anEntry + ", ";
- TDF_Tool::Entry(thePoint2->GetEntry(), anEntry);
- aDescr += anEntry + ")";
-
- TCollection_AsciiString aNewDescr = aFunction->GetDescription() + "\n";
- aNewDescr += aDescr;
- aFunction->SetDescription(aNewDescr);
+ GEOM::TPythonDump(aFunction) << aResult << " = geompy.GetEdge("
+ << theShape << ", " << thePoint1 << ", " << thePoint2 << ")";
SetErrorCode(OK);
return aResult;
return NULL;
}
- //The GetEdgeNearPoint() doesn't change object so no new function is required.
- Handle(GEOM_Function) aFunction = theShape->GetLastFunction();
+ Handle(GEOM_Function) aFunction = aResult->GetLastFunction();
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aResult->GetEntry(), anEntry);
- aDescr += anEntry + " = IBlocksOperations.GetEdgeNearPoint(";
- TDF_Tool::Entry(theShape->GetEntry(), anEntry);
- aDescr += anEntry + ", ";
- TDF_Tool::Entry(thePoint->GetEntry(), anEntry);
- aDescr += anEntry + ")";
-
- TCollection_AsciiString aNewDescr = aFunction->GetDescription() + "\n";
- aNewDescr += aDescr;
- aFunction->SetDescription(aNewDescr);
+ GEOM::TPythonDump(aFunction) << aResult << " = geompy.GetEdgeNearPoint("
+ << theShape << ", " << thePoint << ")";
SetErrorCode(OK);
return aResult;
return NULL;
}
- //The GetFaceByPoints() doesn't change object so no new function is required.
- Handle(GEOM_Function) aFunction = theShape->GetLastFunction();
+ Handle(GEOM_Function) aFunction = aResult->GetLastFunction();
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aResult->GetEntry(), anEntry);
- aDescr += anEntry + " = IBlocksOperations.GetFaceByPoints(";
- TDF_Tool::Entry(theShape->GetEntry(), anEntry);
- aDescr += anEntry + ", ";
- TDF_Tool::Entry(thePoint1->GetEntry(), anEntry);
- aDescr += anEntry + ", ";
- TDF_Tool::Entry(thePoint2->GetEntry(), anEntry);
- aDescr += anEntry + ", ";
- TDF_Tool::Entry(thePoint3->GetEntry(), anEntry);
- aDescr += anEntry + ", ";
- TDF_Tool::Entry(thePoint4->GetEntry(), anEntry);
- aDescr += anEntry + ")";
-
- TCollection_AsciiString aNewDescr = aFunction->GetDescription() + "\n";
- aNewDescr += aDescr;
- aFunction->SetDescription(aNewDescr);
+ GEOM::TPythonDump(aFunction) << aResult << " = geompy.GetFaceByPoints("
+ << theShape << ", " << thePoint1 << ", " << thePoint2
+ << ", " << thePoint3 << ", " << thePoint4 << ")";
SetErrorCode(OK);
return aResult;
return NULL;
}
- //The GetFaceByEdges() doesn't change object so no new function is required.
- Handle(GEOM_Function) aFunction = theShape->GetLastFunction();
+ Handle(GEOM_Function) aFunction = aResult->GetLastFunction();
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aResult->GetEntry(), anEntry);
- aDescr += anEntry + " = IBlocksOperations.GetFaceByEdges(";
- TDF_Tool::Entry(theShape->GetEntry(), anEntry);
- aDescr += anEntry + ", ";
- TDF_Tool::Entry(theEdge1->GetEntry(), anEntry);
- aDescr += anEntry + ", ";
- TDF_Tool::Entry(theEdge2->GetEntry(), anEntry);
- aDescr += anEntry + ")";
-
- TCollection_AsciiString aNewDescr = aFunction->GetDescription() + "\n";
- aNewDescr += aDescr;
- aFunction->SetDescription(aNewDescr);
+ GEOM::TPythonDump(aFunction) << aResult << " = geompy.GetFaceByEdges("
+ << theShape << ", " << theEdge1 << ", " << theEdge2 << ")";
SetErrorCode(OK);
return aResult;
return NULL;
}
- //The GetOppositeFace() doesn't change object so no new function is required.
- Handle(GEOM_Function) aFunction = theShape->GetLastFunction();
+ Handle(GEOM_Function) aFunction = aResult->GetLastFunction();
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aResult->GetEntry(), anEntry);
- aDescr += anEntry + " = IBlocksOperations.GetOppositeFace(";
- TDF_Tool::Entry(theShape->GetEntry(), anEntry);
- aDescr += anEntry + ", ";
- TDF_Tool::Entry(theFace->GetEntry(), anEntry);
- aDescr += anEntry + ")";
-
- TCollection_AsciiString aNewDescr = aFunction->GetDescription() + "\n";
- aNewDescr += aDescr;
- aFunction->SetDescription(aNewDescr);
+ GEOM::TPythonDump(aFunction) << aResult << " = geompy.GetOppositeFace("
+ << theShape << ", " << theFace << ")";
SetErrorCode(OK);
return aResult;
(Handle(GEOM_Object) theShape,
Handle(GEOM_Object) thePoint)
{
-// OSD_Timer timer1, timer2, timer3, timer4, timer5;
-// timer1.Start();
-
SetErrorCode(KO);
//New object
Standard_Real PX, PY, PZ;
aPnt.Coord(PX, PY, PZ);
-// timer1.Stop();
-// timer2.Start();
-
// 1. Classify the point relatively each face
Standard_Integer nearest = 2, nbFound = 0;
TopTools_DataMapOfShapeInteger mapShapeDist;
} // if (!mapShapeDist.IsBound(aFace))
}
-// timer2.Stop();
-// timer3.Start();
-
// 2. Define face, containing the point or having minimum distance to it
if (nbFound > 1) {
if (nearest == 0) {
}
} // if (nbFound > 1)
-// timer3.Stop();
-// timer4.Start();
-
if (nbFound == 0) {
SetErrorCode("There are no faces near the given point");
return NULL;
anArray->SetValue(1, anIndices.FindIndex(aShape));
aResult = GetEngine()->AddSubShape(theShape, anArray);
}
-
-// timer4.Stop();
}
catch (Standard_Failure) {
Handle(Standard_Failure) aFail = Standard_Failure::Caught();
return NULL;
}
-// timer5.Start();
-
- //The GetFaceNearPoint() doesn't change object so no new function is required.
- Handle(GEOM_Function) aFunction = theShape->GetLastFunction();
+ Handle(GEOM_Function) aFunction = aResult->GetLastFunction();
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aResult->GetEntry(), anEntry);
- aDescr += anEntry + " = IBlocksOperations.GetFaceNearPoint(";
- TDF_Tool::Entry(theShape->GetEntry(), anEntry);
- aDescr += anEntry + ", ";
- TDF_Tool::Entry(thePoint->GetEntry(), anEntry);
- aDescr += anEntry + ")";
-
- TCollection_AsciiString aNewDescr = aFunction->GetDescription() + "\n";
- aNewDescr += aDescr;
- aFunction->SetDescription(aNewDescr);
+ GEOM::TPythonDump(aFunction) << aResult << " = geompy.GetFaceNearPoint("
+ << theShape << ", " << thePoint << ")";
SetErrorCode(OK);
-
-// timer5.Stop();
-//
-// cout << "Show current face times:" << endl;
-// timer1.Show();
-// timer2.Show();
-// timer3.Show();
-// timer4.Show();
-// timer5.Show();
-
return aResult;
}
return NULL;
}
- //The GetFaceByNormale() doesn't change object so no new function is required.
- Handle(GEOM_Function) aFunction = theShape->GetLastFunction();
+ Handle(GEOM_Function) aFunction = aResult->GetLastFunction();
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aResult->GetEntry(), anEntry);
- aDescr += anEntry + " = IBlocksOperations.GetFaceByNormale(";
- TDF_Tool::Entry(theShape->GetEntry(), anEntry);
- aDescr += anEntry + ", ";
- TDF_Tool::Entry(theVector->GetEntry(), anEntry);
- aDescr += anEntry + ")";
-
- TCollection_AsciiString aNewDescr = aFunction->GetDescription() + "\n";
- aNewDescr += aDescr;
- aFunction->SetDescription(aNewDescr);
+ GEOM::TPythonDump(aFunction) << aResult << " = geompy.GetFaceByNormale("
+ << theShape << ", " << theVector << ")";
SetErrorCode(OK);
return aResult;
switch (errStruct.error) {
case NOT_BLOCK:
- aDescr += "\nNot a Blocks: ";
+ aDescr += "\n\tNot a Blocks: ";
break;
case EXTRA_EDGE:
- aDescr += "\nHexahedral solids with degenerated and/or seam edges: ";
+ aDescr += "\n\tHexahedral solids with degenerated and/or seam edges: ";
break;
case INVALID_CONNECTION:
- aDescr += "\nInvalid connection between two blocks: ";
+ aDescr += "\n\tInvalid connection between two blocks: ";
break;
case NOT_CONNECTED:
- aDescr += "\nBlocks, not connected with main body: ";
+ aDescr += "\n\tBlocks, not connected with main body: ";
break;
case NOT_GLUED:
- aDescr += "\nNot glued blocks: ";
+ aDescr += "\n\tNot glued blocks: ";
break;
default:
break;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aCopy->GetEntry(), anEntry);
- aDescr += anEntry + " = IBlocksOperations.RemoveExtraEdges(";
- TDF_Tool::Entry(theObject->GetEntry(), anEntry);
- aDescr += anEntry + ")";
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aCopy
+ << " = geompy.RemoveExtraEdges(" << theObject << ")";
SetErrorCode(OK);
return aCopy;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aCopy->GetEntry(), anEntry);
- aDescr += anEntry + " = IBlocksOperations.CheckAndImprove(";
- TDF_Tool::Entry(theObject->GetEntry(), anEntry);
- aDescr += anEntry + ")";
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aCopy
+ << " = geompy.CheckAndImprove(" << theObject << ")";
SetErrorCode(OK);
return aCopy;
Handle(GEOM_Function) aFunction;
TopTools_MapOfShape mapShape;
- TCollection_AsciiString anAsciiList = "[", anEntry;
+ TCollection_AsciiString anAsciiList, anEntry;
// Map shapes
TopTools_IndexedMapOfShape anIndices;
//Make a Python command
TDF_Tool::Entry(anObj->GetEntry(), anEntry);
- anAsciiList += anEntry;
- anAsciiList += ",";
+ anAsciiList += anEntry + ", ";
}
}
}
return aBlocks;
}
- anAsciiList.Trunc(anAsciiList.Length() - 1);
- anAsciiList += "]";
+ anAsciiList.Trunc(anAsciiList.Length() - 2);
//The explode doesn't change object so no new function is required.
aFunction = theCompound->GetLastFunction();
+ TCollection_AsciiString anOldDescr = aFunction->GetDescription();
//Make a Python command
- TCollection_AsciiString aDescr (anAsciiList);
- aDescr += " = IBlocksOperations.ExplodeCompoundOfBlocks(";
- TDF_Tool::Entry(theCompound->GetEntry(), anEntry);
- aDescr += anEntry + ", ";
- aDescr += TCollection_AsciiString(theMinNbFaces) + ", ";
- aDescr += TCollection_AsciiString(theMaxNbFaces) + ")";
-
- TCollection_AsciiString aNewDescr = aFunction->GetDescription() + "\n";
- aNewDescr += aDescr;
- aFunction->SetDescription(aNewDescr);
+ GEOM::TPythonDump(aFunction) << anOldDescr.ToCString() << "\n\t["
+ << anAsciiList.ToCString() << "] = geompy.MakeBlockExplode("
+ << theCompound << ", " << theMinNbFaces << ", " << theMaxNbFaces << ")";
SetErrorCode(OK);
return aBlocks;
return NULL;
}
- //The GetBlockNearPoint() doesn't change object so no new function is required.
- Handle(GEOM_Function) aFunction = theCompound->GetLastFunction();
+ Handle(GEOM_Function) aFunction = aResult->GetLastFunction();
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aResult->GetEntry(), anEntry);
- aDescr += anEntry + " = IBlocksOperations.GetBlockNearPoint(";
- TDF_Tool::Entry(theCompound->GetEntry(), anEntry);
- aDescr += anEntry + ", ";
- TDF_Tool::Entry(thePoint->GetEntry(), anEntry);
- aDescr += anEntry + ")";
-
- TCollection_AsciiString aNewDescr = aFunction->GetDescription() + "\n";
- aNewDescr += aDescr;
- aFunction->SetDescription(aNewDescr);
+ GEOM::TPythonDump(aFunction) << aResult << " = geompy.GetBlockNearPoint("
+ << theCompound << ", " << thePoint << ")";
SetErrorCode(OK);
return aResult;
return NULL;
}
- //The GetBlockByParts() doesn't change object so no new function is required.
- Handle(GEOM_Function) aFunction = theCompound->GetLastFunction();
+ Handle(GEOM_Function) aFunction = aResult->GetLastFunction();
//Make a Python command
- TDF_Tool::Entry(aResult->GetEntry(), anEntry);
- TCollection_AsciiString aDescr (anEntry);
- aDescr += " = IBlocksOperations.GetBlockByParts(";
- TDF_Tool::Entry(theCompound->GetEntry(), anEntry);
- aDescr += anEntry + ", [";
- aDescr += aPartsDescr + "])";
-
- TCollection_AsciiString aNewDescr = aFunction->GetDescription() + "\n";
- aNewDescr += aDescr;
- aFunction->SetDescription(aNewDescr);
+ GEOM::TPythonDump(aFunction) << aResult << " = geompy.GetBlockByParts("
+ << theCompound << ", [" << aPartsDescr.ToCString() << "])";
SetErrorCode(OK);
return aResult;
//Get the parts
Standard_Integer argi, aLen = theParts->Length();
TopTools_Array1OfShape anArgs (1, aLen);
- TCollection_AsciiString anEntry, aPartsDescr, anAsciiList = "[";
+ TCollection_AsciiString anEntry, aPartsDescr, anAsciiList;
+
for (argi = 1; argi <= aLen; argi++) {
Handle(GEOM_Object) anObj = Handle(GEOM_Object)::DownCast(theParts->Value(argi));
Handle(GEOM_Function) aRef = anObj->GetLastFunction();
// For Python command
TDF_Tool::Entry(anObj->GetEntry(), anEntry);
- if (argi > 1) aPartsDescr += ", ";
- aPartsDescr += anEntry;
+ aPartsDescr += anEntry + ", ";
}
//Get the Blocks
anObj = GetEngine()->AddSubShape(theCompound, anArray);
aBlocks->Append(anObj);
- //Make a Python command
+ // For Python command
TDF_Tool::Entry(anObj->GetEntry(), anEntry);
- anAsciiList += anEntry;
- anAsciiList += ",";
+ anAsciiList += anEntry + ", ";
+ if (aFunction.IsNull())
+ aFunction = anObj->GetLastFunction();
}
}
}
return NULL;
}
- anAsciiList.Trunc(anAsciiList.Length() - 1);
- anAsciiList += "]";
-
- //The GetBlocksByParts() doesn't change object so no new function is required.
- aFunction = theCompound->GetLastFunction();
-
//Make a Python command
- TCollection_AsciiString aDescr (anAsciiList);
- aDescr += " = IBlocksOperations.GetBlocksByParts(";
- TDF_Tool::Entry(theCompound->GetEntry(), anEntry);
- aDescr += anEntry + ", [";
- aDescr += aPartsDescr + "])";
+ aPartsDescr.Trunc(aPartsDescr.Length() - 2);
+ anAsciiList.Trunc(anAsciiList.Length() - 2);
- TCollection_AsciiString aNewDescr = aFunction->GetDescription() + "\n";
- aNewDescr += aDescr;
- aFunction->SetDescription(aNewDescr);
+ GEOM::TPythonDump(aFunction) << "[" << anAsciiList.ToCString()
+ << "] = geompy.GetBlocksByParts(" << theCompound
+ << ", [" << aPartsDescr.ToCString() << "])";
SetErrorCode(OK);
return aBlocks;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aCopy->GetEntry(), anEntry);
- aDescr += anEntry + " = IBlocksOperations.MakeMultiTransformation1D(";
- TDF_Tool::Entry(theObject->GetEntry(), anEntry);
- aDescr += anEntry + ", ";
- aDescr += TCollection_AsciiString(theDirFace1) + ", ";
- aDescr += TCollection_AsciiString(theDirFace2) + ", ";
- aDescr += TCollection_AsciiString(theNbTimes) + ") ";
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aCopy << " = geompy.MakeMultiTransformation1D("
+ << theObject << ", " << theDirFace1 << ", " << theDirFace2 << ", " << theNbTimes << ")";
SetErrorCode(OK);
return aCopy;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aCopy->GetEntry(), anEntry);
- aDescr += anEntry + " = IBlocksOperations.MakeMultiTransformation2D(";
- TDF_Tool::Entry(theObject->GetEntry(), anEntry);
- aDescr += anEntry + ", ";
- aDescr += TCollection_AsciiString(theDirFace1U) + ", ";
- aDescr += TCollection_AsciiString(theDirFace2U) + ", ";
- aDescr += TCollection_AsciiString(theNbTimesU) + ", ";
- aDescr += TCollection_AsciiString(theDirFace1V) + ", ";
- aDescr += TCollection_AsciiString(theDirFace2V) + ", ";
- aDescr += TCollection_AsciiString(theNbTimesV) + ") ";
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aCopy << " = geompy.MakeMultiTransformation2D("
+ << theObject << ", " << theDirFace1U << ", " << theDirFace2U << ", " << theNbTimesU
+ << ", " << theDirFace1V << ", " << theDirFace2V << ", " << theNbTimesV << ")";
SetErrorCode(OK);
return aCopy;
Handle(TColStd_HSequenceOfTransient) aSeq = new TColStd_HSequenceOfTransient;
TopTools_MapOfShape mapAcceptedEdges;
+ TCollection_AsciiString aListRes, anEntry;
for (ie = 1; ie <= nbEdges; ie++) {
TopoDS_Shape curE = MEW.FindKey(ie);
// Add the chain to the result
aSeq->Append(aChain);
+
+ //Make a Python command
+ TDF_Tool::Entry(aChain->GetEntry(), anEntry);
+ aListRes += anEntry + ", ";
}
if (aSeq->IsEmpty()) {
return aSeq;
}
+ aListRes.Trunc(aListRes.Length() - 2);
+
// The Propagation doesn't change object so no new function is required.
Handle(GEOM_Function) aFunction = theShape->GetLastFunction();
+ TCollection_AsciiString anOldDescr = aFunction->GetDescription();
// Make a Python command
- TCollection_AsciiString aDescr
- ("\nlistPropagationChains = IShapesOperations.Propagate(");
- TCollection_AsciiString anEntry;
- TDF_Tool::Entry(theShape->GetEntry(), anEntry);
- aDescr += (anEntry + ")");
-
- TCollection_AsciiString anOldDescr = aFunction->GetDescription();
- anOldDescr = anOldDescr + aDescr;
- aFunction->SetDescription(anOldDescr);
+ GEOM::TPythonDump(aFunction) << anOldDescr.ToCString() << "\n\t["
+ << aListRes.ToCString() << "] = geompy.Propagate(" << theShape << ")";
SetErrorCode(OK);
return aSeq;
#include "GEOMImpl_IBooleanOperations.hxx"
#include "GEOM_Function.hxx"
+#include "GEOM_PythonDump.hxx"
+
#include "GEOMImpl_Types.hxx"
#include "GEOMImpl_BooleanDriver.hxx"
return NULL;
}
- //Make a Python command
- TCollection_AsciiString anEntry, aDescr("");
- TDF_Tool::Entry(aBool->GetEntry(), anEntry);
- aDescr += anEntry;
- aDescr += " = IBooleanOperations.MakeBoolean(";
- TDF_Tool::Entry(theShape1->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(theShape2->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- aDescr += (TCollection_AsciiString(theOp)+")");
-
- aFunction->SetDescription(aDescr);
+ //Make a Python command
+ GEOM::TPythonDump pd (aFunction);
+ pd << aBool;
+ if (theOp == 1) pd << " = geompy.MakeCommon(";
+ else if (theOp == 2) pd << " = geompy.MakeCut(";
+ else if (theOp == 3) pd << " = geompy.MakeFuse(";
+ else if (theOp == 4) pd << " = geompy.MakeSection(";
+ else {}
+ pd << theShape1 << ", " << theShape2 << ")";
SetErrorCode(OK);
return aBool;
}
//Make a Python command
- TCollection_AsciiString aDescr;
- TDF_Tool::Entry(aPartition->GetEntry(), anEntry);
- aDescr += anEntry;
- aDescr += " = IBooleanOperations.MakePartition([";
- // Shapes
- aDescr += aShapesDescr + "], [";
- // Tools
- aDescr += aToolsDescr + "], [";
- // Keep Ins
- aDescr += aKeepInsDescr + "], [";
- // Remove Ins
- aDescr += aRemoveInsDescr + "], ";
- // Limit
- aDescr += TCollection_AsciiString(theLimit) + ", ";
- // Remove Webs
- if (theRemoveWebs) aDescr += "1, [";
- else aDescr += "0, [";
+ GEOM::TPythonDump pd (aFunction);
+ pd << aPartition << " = geompy.MakePartition([";
+ // Shapes, Tools
+ pd << aShapesDescr.ToCString() << "], [" << aToolsDescr.ToCString() << "], [";
+ // Keep Ins, Remove Ins
+ pd << aKeepInsDescr.ToCString() << "], [" << aRemoveInsDescr.ToCString() << "], ";
+ // Limit, Remove Webs
+ pd << theLimit << ", " << (int)theRemoveWebs << ", [";
// Materials
if (theMaterials->Length() > 0) {
int i = theMaterials->Lower();
- aDescr += TCollection_AsciiString(theMaterials->Value(i));
+ pd << theMaterials->Value(i);
i++;
for (; i <= theMaterials->Upper(); i++) {
- aDescr += ", ";
- aDescr += TCollection_AsciiString(theMaterials->Value(i));
+ pd << ", " << theMaterials->Value(i);
}
}
- aDescr += "])";
-
- aFunction->SetDescription(aDescr);
+ pd << "])";
SetErrorCode(OK);
return aPartition;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aPart->GetEntry(), anEntry);
- aDescr += anEntry;
- aDescr += " = IBooleanOperations.MakePartition(";
- TDF_Tool::Entry(theShape->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(thePlane->GetEntry(), anEntry);
- aDescr += (anEntry+")");
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aPart << " = geompy.MakeHalfPartition("
+ << theShape << ", " << thePlane << ")";
SetErrorCode(OK);
return aPart;
#include "GEOMImpl_ICurvesOperations.hxx"
#include "GEOM_Function.hxx"
+#include "GEOM_PythonDump.hxx"
+
#include "GEOMImpl_Types.hxx"
#include "GEOMImpl_PolylineDriver.hxx"
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr("");
- TDF_Tool::Entry(aPolyline->GetEntry(), anEntry);
- aDescr += anEntry;
- aDescr += " = ICurvesOperations.MakePolyline([";
+ GEOM::TPythonDump pd (aFunction);
+ pd << aPolyline << " = geompy.MakePolyline([";
+
it = thePoints.begin();
- TDF_Tool::Entry((*it)->GetEntry(), anEntry);
- it++;
- aDescr += (anEntry+", ");
- for (; it != thePoints.end(); it++) {
- aDescr += ", ";
- TDF_Tool::Entry((*it)->GetEntry(), anEntry);
- aDescr += anEntry;
+ pd << (*it++);
+ while (it != thePoints.end()) {
+ pd << ", " << (*it++);
}
- aDescr += "])";
-
- aFunction->SetDescription(aDescr);
+ pd << "])";
SetErrorCode(OK);
return aPolyline;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr("");
- TDF_Tool::Entry(aCircle->GetEntry(), anEntry);
- aDescr += anEntry;
- aDescr += " = ICurvesOperations.MakeCircleThreePnt(";
- TDF_Tool::Entry(thePnt1->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(thePnt2->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(thePnt3->GetEntry(), anEntry);
- aDescr += (anEntry+")");
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aCircle << " = geompy.MakeCircleThreePnt("
+ << thePnt1 << ", " << thePnt2 << ", " << thePnt3 << ")";
SetErrorCode(OK);
return aCircle;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr("");
- TDF_Tool::Entry(aCircle->GetEntry(), anEntry);
- aDescr += anEntry;
- aDescr += " = ICurvesOperations.MakeCirclePntVecR(";
- TDF_Tool::Entry(thePnt->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(theVec->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- aDescr += (TCollection_AsciiString(theR)+")");
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aCircle << " = geompy.MakeCircle("
+ << thePnt << ", " << theVec << ", " << theR << ")";
SetErrorCode(OK);
return aCircle;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr("");
- TDF_Tool::Entry(anEll->GetEntry(), anEntry);
- aDescr += anEntry;
- aDescr += " = ICurvesOperations.MakeEllipse(";
- TDF_Tool::Entry(thePnt->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(theVec->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- aDescr += (TCollection_AsciiString(theRMajor)+", ");
- aDescr += (TCollection_AsciiString(theRMinor)+")");
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << anEll << " = geompy.MakeEllipse("
+ << thePnt << ", " << theVec << ", " << theRMajor << ", " << theRMinor << ")";
SetErrorCode(OK);
return anEll;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr("");
- TDF_Tool::Entry(anArc->GetEntry(), anEntry);
- aDescr += anEntry;
- aDescr += " = ICurvesOperations.MakeArc(";
- TDF_Tool::Entry(thePnt1->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(thePnt2->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(thePnt3->GetEntry(), anEntry);
- aDescr += (anEntry+")");
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << anArc << " = geompy.MakeArc("
+ << thePnt1 << ", " << thePnt2 << ", " << thePnt3 << ")";
SetErrorCode(OK);
return anArc;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr("");
- TDF_Tool::Entry(aSpline->GetEntry(), anEntry);
- aDescr += anEntry;
- aDescr += " = ICurvesOperations.MakeSplineBezier([";
+ GEOM::TPythonDump pd (aFunction);
+ pd << aSpline << " = geompy.MakeBezier([";
+
it = thePoints.begin();
- TDF_Tool::Entry((*it)->GetEntry(), anEntry);
- it++;
- aDescr += (anEntry+", ");
- for (; it != thePoints.end(); it++) {
- aDescr += ", ";
- TDF_Tool::Entry((*it)->GetEntry(), anEntry);
- aDescr += anEntry;
+ pd << (*it++);
+ while (it != thePoints.end()) {
+ pd << ", " << (*it++);
}
- aDescr += "])";
-
- aFunction->SetDescription(aDescr);
+ pd << "])";
SetErrorCode(OK);
return aSpline;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr("");
- TDF_Tool::Entry(aSpline->GetEntry(), anEntry);
- aDescr += anEntry;
- aDescr += " = ICurvesOperations.MakeSplineInterpolation([";
+ GEOM::TPythonDump pd (aFunction);
+ pd << aSpline << " = geompy.MakeInterpol([";
+
it = thePoints.begin();
- TDF_Tool::Entry((*it)->GetEntry(), anEntry);
- it++;
- aDescr += (anEntry+", ");
- for (; it != thePoints.end(); it++) {
- aDescr += ", ";
- TDF_Tool::Entry((*it)->GetEntry(), anEntry);
- aDescr += anEntry;
+ pd << (*it++);
+ while (it != thePoints.end()) {
+ pd << ", " << (*it++);
}
- aDescr += "])";
-
- aFunction->SetDescription(aDescr);
+ pd << "])";
SetErrorCode(OK);
return aSpline;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aSketcher->GetEntry(), anEntry);
- aDescr += anEntry;
- aDescr += " = ICurvesOperations.MakeSketcher(";
- aDescr += aCommand+", [";
+ GEOM::TPythonDump pd (aFunction);
+ pd << aSketcher << " = geompy.MakeSketcher(\"" << theCommand << "\", [";
it = theWorkingPlane.begin();
- aDescr += TCollection_AsciiString(*it);
- it++;
- for (; it != theWorkingPlane.end(); it++) {
- aDescr += ", ";
- aDescr += TCollection_AsciiString(*it);
+ pd << (*it++);
+ while (it != theWorkingPlane.end()) {
+ pd << ", " << (*it++);
}
-
- aDescr += "])";
-
- aFunction->SetDescription(aDescr);
+ pd << "])";
SetErrorCode(OK);
return aSketcher;
#include "GEOM_Function.hxx"
#include "GEOM_ISubShape.hxx"
+#include "GEOM_PythonDump.hxx"
#include "utilities.h"
#include "OpUtil.hxx"
* CreateGroup
*/
//=============================================================================
-Handle(GEOM_Object) GEOMImpl_IGroupOperations::CreateGroup(Handle(GEOM_Object) theMainShape, TopAbs_ShapeEnum theShapeType)
+Handle(GEOM_Object) GEOMImpl_IGroupOperations::CreateGroup
+ (Handle(GEOM_Object) theMainShape, TopAbs_ShapeEnum theShapeType)
{
SetErrorCode(KO);
Handle(TColStd_HArray1OfInteger) anArray = new TColStd_HArray1OfInteger(1,1);
anArray->SetValue(1, -1);
- //Add a new Fillet object
+ //Add a new Fillet object
Handle(GEOM_Object) aGroup = GetEngine()->AddSubShape(theMainShape, anArray);
//Set a GROUP type
//Set a sub shape type
TDF_Label aFreeLabel = aGroup->GetFreeLabel();
TDataStd_Integer::Set(aFreeLabel, (Standard_Integer)theShapeType);
-
- //Make a Python command
- TCollection_AsciiString anEntry, aDescr("");
- TDF_Tool::Entry(aGroup->GetEntry(), anEntry);
- aDescr = anEntry + " = IGroupOperations.CreateGroup(";
- TDF_Tool::Entry(theMainShape->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- aDescr += (TCollection_AsciiString((int)theShapeType)+")");
+ //Make a Python command
Handle(GEOM_Function) aFunction = aGroup->GetFunction(1);
- aFunction->SetDescription(aDescr);
+ //TCollection_AsciiString anOldDescr = aFunction->GetDescription();
+
+ //GEOM::TPythonDump(aFunction) << anOldDescr.ToCString() << "\n\t" << aGroup
+ GEOM::TPythonDump(aFunction) << aGroup
+ << " = geompy.CreateGroup(" << theMainShape << ", " << (int)theShapeType << ")";
SetErrorCode(OK);
return aGroup;
aSSI.SetIndices(aNewSeq);
}
+ //Make a Python command
+ TCollection_AsciiString anOldDescr = aFunction->GetDescription();
+
+ GEOM::TPythonDump(aFunction) << anOldDescr.ToCString() << "\n\t"
+ << "geompy.AddObject(" << theGroup << ", " << theSubShapeID << ")";
+
SetErrorCode(OK);
return;
}
* RemoveObject
*/
//=============================================================================
-void GEOMImpl_IGroupOperations::RemoveObject(Handle(GEOM_Object) theGroup, int theSubShapeID)
+void GEOMImpl_IGroupOperations::RemoveObject (Handle(GEOM_Object) theGroup, int theSubShapeID)
{
SetErrorCode(KO);
if(theGroup.IsNull()) return;
aSSI.SetIndices(aNewSeq);
}
+ //Make a Python command
+ TCollection_AsciiString anOldDescr = aFunction->GetDescription();
+
+ GEOM::TPythonDump(aFunction) << anOldDescr.ToCString() << "\n\t"
+ << "geompy.RemoveObject(" << theGroup << ", " << theSubShapeID << ")";
+
SetErrorCode(OK);
return;
}
aSSI.SetIndices(aNewSeq);
}
+ //Make a Python command
+ TCollection_AsciiString anOldDescr = aFunction->GetDescription();
+
+ GEOM::TPythonDump pd (aFunction);
+ pd << anOldDescr.ToCString() << "\n\t" << "geompy.UnionList(" << theGroup << ", [";
+
+ for (i = 1; i <= aLen; i++) {
+ Handle(GEOM_Object) anObj_i = Handle(GEOM_Object)::DownCast(theSubShapes->Value(i));
+ pd << anObj_i << (( i < aLen ) ? ", " : "])");
+ }
+
SetErrorCode(OK);
}
aSSI.SetIndices(aNewSeq);
}
+ //Make a Python command
+ TCollection_AsciiString anOldDescr = aFunction->GetDescription();
+
+ GEOM::TPythonDump pd (aFunction);
+ pd << anOldDescr.ToCString() << "\n\t" << "geompy.DifferenceList(" << theGroup << ", [";
+
+ for (i = 1; i <= aLen; i++) {
+ Handle(GEOM_Object) anObj_i = Handle(GEOM_Object)::DownCast(theSubShapes->Value(i));
+ pd << anObj_i << (( i < aLen ) ? ", " : "])");
+ }
+
SetErrorCode(OK);
}
-
//=============================================================================
/*!
* UnionIDs
* GetMainShape
*/
//=============================================================================
-Handle(GEOM_Object) GEOMImpl_IGroupOperations::GetMainShape(Handle(GEOM_Object) theGroup)
+Handle(GEOM_Object) GEOMImpl_IGroupOperations::GetMainShape (Handle(GEOM_Object) theGroup)
{
SetErrorCode(KO);
if(theGroup.IsNull()) return NULL;
- Handle(GEOM_Function) aFunction = theGroup->GetFunction(1);
- if(aFunction.IsNull()) return NULL;
-
- GEOM_ISubShape aSSI(aFunction);
- aFunction = aSSI.GetMainShape();
- if(aFunction.IsNull()) return NULL;
+ Handle(GEOM_Function) aGroupFunction = theGroup->GetFunction(1);
+ if (aGroupFunction.IsNull()) return NULL;
+
+ GEOM_ISubShape aSSI (aGroupFunction);
+ Handle(GEOM_Function) aMainShapeFunction = aSSI.GetMainShape();
+ if (aMainShapeFunction.IsNull()) return NULL;
- TDF_Label aLabel = aFunction->GetOwnerEntry();
+ TDF_Label aLabel = aMainShapeFunction->GetOwnerEntry();
Handle(GEOM_Object) aMainShape = GEOM_Object::GetObject(aLabel);
- if(aMainShape.IsNull()) return NULL;
-
+ if (aMainShape.IsNull()) return NULL;
+
+ //Make a Python command
+ TCollection_AsciiString anOldDescr = aGroupFunction->GetDescription();
+
+ GEOM::TPythonDump(aGroupFunction) << anOldDescr.ToCString() << "\n\t"
+ << aMainShape << " = geompy.GetMainShape(" << theGroup << ")";
+
SetErrorCode(OK);
return aMainShape;
}
#include "GEOMImpl_IHealingOperations.hxx"
+#include "GEOM_PythonDump.hxx"
+
#include "GEOMImpl_HealingDriver.hxx"
#include "GEOMImpl_Types.hxx"
#include "GEOMImpl_IHealing.hxx"
#include <TColStd_HSequenceOfTransient.hxx>
#include <TCollection_AsciiString.hxx>
+#include <TDF_Tool.hxx>
+
#include <Standard_ErrorHandler.hxx> // CAREFUL ! position of this file is critic : see Lucien PIGNOLONI / OCC
}
//Make a Python command
- // ...
- // ... missing ...
+ GEOM::TPythonDump pd (aFunction);
+ pd << aNewObject << " = geompy.ProcessShape(" << theObject << ", [";
+
+ // list of operators
+ int i = theOperators->Lower(), nb = theOperators->Upper();
+ for ( ; i <= nb; i++) {
+ pd << "\"" << TCollection_AsciiString(theOperators->Value( i )).ToCString()
+ << (( i < nb ) ? "\", " : "\"");
+ }
+ pd << "], [";
+ // list of parameters
+ i = theParams->Lower(); nb = theParams->Upper();
+ for ( ; i <= nb; i++) {
+ pd << "\"" << TCollection_AsciiString(theParams->Value( i )).ToCString()
+ << (( i < nb ) ? "\", " : "\"");
+ }
+ pd << "], [";
+ // list of values
+ i = theValues->Lower(); nb = theValues->Upper();
+ for ( ; i <= nb; i++) {
+ pd << "\"" << TCollection_AsciiString(theValues->Value( i )).ToCString()
+ << (( i < nb ) ? "\", " : "\"");
+ }
+ pd << "])";
SetErrorCode(OK);
return aNewObject;
* SuppressFaces
*/
//=============================================================================
-Handle(GEOM_Object) GEOMImpl_IHealingOperations::SuppressFaces (Handle(GEOM_Object) theObject,
- const Handle(TColStd_HArray1OfInteger)& theFaces)
+Handle(GEOM_Object) GEOMImpl_IHealingOperations::SuppressFaces
+ (Handle(GEOM_Object) theObject, const Handle(TColStd_HArray1OfInteger)& theFaces)
{
// set error code, check parameters
SetErrorCode(KO);
}
//Make a Python command
- // ...
- // ... missing ...
+ GEOM::TPythonDump pd (aFunction);
+ pd << aNewObject << " = geompy.SuppressFaces(" << theObject << ", [";
+
+ // list of face ids
+ int i = theFaces->Lower(), nb = theFaces->Upper();
+ for ( ; i <= nb; i++)
+ pd << theFaces->Value( i ) << (( i < nb ) ? ", " : "])");
SetErrorCode(OK);
return aNewObject;
* CloseContour
*/
//=============================================================================
-Handle(GEOM_Object) GEOMImpl_IHealingOperations::CloseContour (Handle(GEOM_Object) theObject,
- const Handle(TColStd_HArray1OfInteger)& theWires,
- bool isCommonVertex)
+Handle(GEOM_Object) GEOMImpl_IHealingOperations::CloseContour
+ (Handle(GEOM_Object) theObject,
+ const Handle(TColStd_HArray1OfInteger)& theWires,
+ bool isCommonVertex)
{
// set error code, check parameters
SetErrorCode(KO);
}
//Make a Python command
- // ...
- // ... missing ...
+ GEOM::TPythonDump pd (aFunction);
+ pd << aNewObject << " = geompy.CloseContour(" << theObject << ", [";
+
+ // list of wire ids
+ int i = theWires->Lower(), nb = theWires->Upper();
+ for ( ; i <= nb; i++)
+ pd << theWires->Value( i ) << (( i < nb ) ? ", " : "], ");
+
+ pd << (int)isCommonVertex << ")";
SetErrorCode(OK);
return aNewObject;
* RemoveIntWires
*/
//=============================================================================
-Handle(GEOM_Object) GEOMImpl_IHealingOperations::RemoveIntWires (Handle(GEOM_Object) theObject,
- const Handle(TColStd_HArray1OfInteger)& theWires)
+Handle(GEOM_Object) GEOMImpl_IHealingOperations::RemoveIntWires
+ (Handle(GEOM_Object) theObject, const Handle(TColStd_HArray1OfInteger)& theWires)
{
// set error code, check parameters
SetErrorCode(KO);
}
//Make a Python command
- // ...
- // ... missing ...
+ GEOM::TPythonDump pd (aFunction);
+ pd << aNewObject << " = geompy.SuppressInternalWires(" << theObject << ", [";
+
+ // list of wire ids
+ if (!theWires.IsNull()) {
+ int i = theWires->Lower(), nb = theWires->Upper();
+ for ( ; i <= nb; i++)
+ pd << theWires->Value( i ) << (( i < nb ) ? ", " : "])");
+ } else {
+ pd << "])";
+ }
SetErrorCode(OK);
return aNewObject;
}
//Make a Python command
- // ...
- // ... missing ...
+ GEOM::TPythonDump pd (aFunction);
+ pd << aNewObject << " = geompy.SuppressHoles(" << theObject << ", [";
+
+ // list of wire ids
+ int i = theWires->Lower(), nb = theWires->Upper();
+ for ( ; i <= nb; i++)
+ pd << theWires->Value( i ) << (( i < nb ) ? ", " : "])");
SetErrorCode(OK);
return aNewObject;
}
//Make a Python command
- // ...
- // ... missing ...
+ GEOM::TPythonDump(aFunction) << aNewObject << " = geompy.Sew("
+ << theObject << ", " << theTolerance << ")";
SetErrorCode(OK);
return aNewObject;
}
//Make a Python command
- // ...
- // ... missing ...
+ GEOM::TPythonDump(aFunction) << aNewObject << " = geompy.DivideEdge(" << theObject
+ << ", " << theIndex << ", " << theValue << ", " << (int)isByParameter << ")";
SetErrorCode(OK);
return aNewObject;
theOpen->Append(anObj);
}
+ //Make a Python command
+ GEOM::TPythonDump pd (aFunction);
+
+ Standard_Integer i, aLen = theClosed->Length();
+ if (aLen > 0) {
+ pd << "(isDone, [";
+ for (i = 1; i <= aLen; i++) {
+ Handle(GEOM_Object) anObj_i = Handle(GEOM_Object)::DownCast(theClosed->Value(i));
+ pd << anObj_i << ((i < aLen) ? ", " : "");
+ }
+ pd << "], ";
+ } else {
+ pd << "(isDone, empty_list, ";
+ }
+
+ aLen = theOpen->Length();
+ if (aLen > 0) {
+ pd << "[";
+ for (i = 1; i <= aLen; i++) {
+ Handle(GEOM_Object) anObj_i = Handle(GEOM_Object)::DownCast(theOpen->Value(i));
+ pd << anObj_i << ((i < aLen) ? ", " : "");
+ }
+ pd << "]";
+ } else {
+ pd << "empty_list";
+ }
+
+ pd << ") = geompy.GetFreeBoundary(" << theObject << ")";
+
SetErrorCode(OK);
return true;
}
#include <TDF_Tool.hxx>
#include "GEOM_Function.hxx"
+#include "GEOM_PythonDump.hxx"
#include "GEOMImpl_CopyDriver.hxx"
#include "GEOMImpl_ExportDriver.hxx"
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aCopy->GetEntry(), anEntry);
- aDescr += (anEntry+" = IInsertOperations.MakeCopy(");
- TDF_Tool::Entry(theOriginal->GetEntry(), anEntry);
- aDescr += (anEntry+")");
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aCopy << " = geompy.MakeCopy(" << theOriginal << ")";
SetErrorCode(OK);
return aCopy;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- aDescr = "IInsertOperations.Export(";
- TDF_Tool::Entry(theOriginal->GetEntry(), anEntry);
- aDescr += (anEntry + ", ");
- aDescr += (TCollection_AsciiString(aFileName) + ", ");
- aDescr += (TCollection_AsciiString(aFormatName) + ")");
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << "geompy.Export(" << theOriginal
+ << ", \"" << theFileName << "\", \"" << theFormatName << "\")";
SetErrorCode(OK);
}
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(result->GetEntry(), anEntry);
- aDescr += (anEntry + " = IInsertOperations.Import(");
- aDescr += (TCollection_AsciiString(aFileName) + ", ");
- aDescr += (TCollection_AsciiString(aFormatName) + ")");
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << result << " = geompy.Import(\""
+ << theFileName << "\", \"" << theFormatName << "\")";
SetErrorCode(OK);
return result;
#include "GEOMImpl_ILocalOperations.hxx"
#include "GEOM_Function.hxx"
+#include "GEOM_PythonDump.hxx"
+
#include "GEOMImpl_Types.hxx"
#include "GEOMImpl_FilletDriver.hxx"
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr("");
- TDF_Tool::Entry(aFillet->GetEntry(), anEntry);
- aDescr = anEntry + " = ILocalOperations.MakeFilletAll(";
- TDF_Tool::Entry(theShape->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- aDescr += (TCollection_AsciiString(theR)+")");
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aFillet << " = geompy.MakeFilletAll("
+ << theShape << ", " << theR << ")";
SetErrorCode(OK);
return aFillet;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr("");
- TDF_Tool::Entry(aFillet->GetEntry(), anEntry);
- aDescr = anEntry + " = ILocalOperations.MakeFilletEdges(";
- TDF_Tool::Entry(theShape->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- aDescr += (TCollection_AsciiString(theR)+", [");
+ GEOM::TPythonDump pd (aFunction);
+ pd << aFillet << " = geompy.MakeFillet(" << theShape
+ << ", " << theR << ", geompy.ShapeType[\"EDGE\"], [";
+
it = theEdges.begin();
- aDescr += (TCollection_AsciiString(*it)+", ");
- it++;
- for (; it != theEdges.end(); it++) {
- aDescr += ", ";
- aDescr += TCollection_AsciiString(*it);
+ pd << (*it++);
+ while (it != theEdges.end()) {
+ pd << ", " << (*it++);
}
- aDescr += "])";
-
- aFunction->SetDescription(aDescr);
+ pd << "])";
SetErrorCode(OK);
return aFillet;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr("");
- TDF_Tool::Entry(aFillet->GetEntry(), anEntry);
- aDescr = anEntry + " = ILocalOperations.MakeFilletFaces(";
- TDF_Tool::Entry(theShape->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- aDescr += (TCollection_AsciiString(theR)+", [");
+ GEOM::TPythonDump pd (aFunction);
+ pd << aFillet << " = geompy.MakeFillet(" << theShape
+ << ", " << theR << ", geompy.ShapeType[\"FACE\"], [";
+
it = theFaces.begin();
- aDescr += (TCollection_AsciiString(*it)+", ");
- it++;
- for (; it != theFaces.end(); it++) {
- aDescr += ", ";
- aDescr += TCollection_AsciiString(*it);
+ pd << (*it++);
+ while (it != theFaces.end()) {
+ pd << ", " << (*it++);
}
- aDescr += "])";
-
- aFunction->SetDescription(aDescr);
+ pd << "])";
SetErrorCode(OK);
return aFillet;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr("");
- TDF_Tool::Entry(aChamfer->GetEntry(), anEntry);
- aDescr += anEntry;
- aDescr += " = ILocalOperations.MakeChamferAll(";
- TDF_Tool::Entry(theShape->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- aDescr += (TCollection_AsciiString(theD)+")");
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aChamfer << " = geompy.MakeChamferAll("
+ << theShape << ", " << theD << ")";
SetErrorCode(OK);
return aChamfer;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr("");
- TDF_Tool::Entry(aChamfer->GetEntry(), anEntry);
- aDescr += anEntry;
- aDescr += " = ILocalOperations.MakeChamferEdge(";
- TDF_Tool::Entry(theShape->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- aDescr += (TCollection_AsciiString(theD1)+", ");
- aDescr += (TCollection_AsciiString(theD2)+", ");
- aDescr += (TCollection_AsciiString(theFace1)+", ");
- aDescr += (TCollection_AsciiString(theFace2)+")");
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aChamfer
+ << " = geompy.MakeChamferEdge(" << theShape << ", " << theD1
+ << ", " << theD2 << ", " << theFace1 << ", " << theFace2 << ")";
SetErrorCode(OK);
return aChamfer;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr("");
- TDF_Tool::Entry(aChamfer->GetEntry(), anEntry);
- aDescr += anEntry;
- aDescr += " = ILocalOperations.MakeChamferFaces(";
- TDF_Tool::Entry(theShape->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- aDescr += (TCollection_AsciiString(theD1)+", ");
- aDescr += (TCollection_AsciiString(theD2)+", [");
+ GEOM::TPythonDump pd (aFunction);
+ pd << aChamfer << " = geompy.MakeChamferFaces(" << theShape
+ << ", " << theD1 << ", " << theD2 << ", [";
+
it = theFaces.begin();
- aDescr += (TCollection_AsciiString(*it)+", ");
- it++;
- for (; it != theFaces.end(); it++) {
- aDescr += ", ";
- aDescr += TCollection_AsciiString(*it);
+ pd << (*it++);
+ while (it != theFaces.end()) {
+ pd << ", " << (*it++);
}
- aDescr += "])";
-
- aFunction->SetDescription(aDescr);
+ pd << "])";
SetErrorCode(OK);
return aChamfer;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr("");
- TDF_Tool::Entry(aChamfer->GetEntry(), anEntry);
- aDescr += anEntry;
- aDescr += " = ILocalOperations.MakeArchimede(";
- TDF_Tool::Entry(theShape->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- aDescr += (TCollection_AsciiString(theWeight)+", ");
- aDescr += (TCollection_AsciiString(theWaterDensity)+", ");
- aDescr += (TCollection_AsciiString(theMeshingDeflection)+")");
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aChamfer
+ << " = geompy.Archimede(" << theShape << ", " << theWeight << ", "
+ << theWaterDensity << ", " << theMeshingDeflection << ")";
SetErrorCode(OK);
return aChamfer;
#include "GEOMImpl_IMeasure.hxx"
#include "GEOM_Function.hxx"
+#include "GEOM_PythonDump.hxx"
#include "utilities.h"
#include "OpUtil.hxx"
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aCDG->GetEntry(), anEntry);
- aDescr += anEntry + " = IMeasureOperations.MakeCentreOfMass(";
- TDF_Tool::Entry(theShape->GetEntry(), anEntry);
- aDescr += anEntry + ")";
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aCDG << " = geompy.MakeCDG(" << theShape << ")";
SetErrorCode(OK);
return aCDG;
}
TopAbs_ShapeEnum styp = theShape.ShapeType();
BRepCheck_ListIteratorOfListOfStatus itl;
+ TopTools_ListOfShape empty;
if (!theMap.IsBound(theShape)) {
- theMap.Bind(theShape,TopTools_ListOfShape());
+ theMap.Bind(theShape,empty);
if (!theAna.Result(theShape).IsNull()) {
itl.Initialize(theAna.Result(theShape)->Status());
#include "GEOMImpl_Block6Explorer.hxx"
#include "GEOM_Function.hxx"
+#include "GEOM_PythonDump.hxx"
#include "GEOMAlgo_FinderShapeOn1.hxx"
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(anEdge->GetEntry(), anEntry);
- aDescr += (anEntry+" = IShapesOperations.MakeEdge(");
- TDF_Tool::Entry(thePnt1->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(thePnt2->GetEntry(), anEntry);
- aDescr += (anEntry+")");
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << anEdge << " = geompy.MakeEdge("
+ << thePnt1 << ", " << thePnt2 << ")";
SetErrorCode(OK);
return anEdge;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aFace->GetEntry(), anEntry);
- aDescr += anEntry;
- aDescr += " = IShapesOperations.MakeFace(";
- TDF_Tool::Entry(theWire->GetEntry(), anEntry);
- aDescr += anEntry;
- if (isPlanarWanted)
- aDescr += ", 1)";
-
- else
- aDescr += ", 0)";
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aFace << " = geompy.MakeFace("
+ << theWire << ", " << (int)isPlanarWanted << ")";
SetErrorCode(OK);
return aFace;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aShape->GetEntry(), anEntry);
- aDescr += (anEntry + " = IShapesOperations.MakeFaceWires([");
+ GEOM::TPythonDump pd (aFunction);
+ pd << aShape << " = geompy.MakeFaceWires([";
+
// Shapes
it = theShapes.begin();
if (it != theShapes.end()) {
- TDF_Tool::Entry((*it)->GetEntry(), anEntry);
- it++;
- aDescr += (anEntry+", ");
- for (; it != theShapes.end(); it++) {
- aDescr += ", ";
- TDF_Tool::Entry((*it)->GetEntry(), anEntry);
- aDescr += anEntry;
+ pd << (*it++);
+ while (it != theShapes.end()) {
+ pd << ", " << (*it++);
}
}
- if (isPlanarWanted)
- aDescr += "], 1)";
-
- else
- aDescr += "], 0)";
-
- aFunction->SetDescription(aDescr);
+ pd << "], " << (int)isPlanarWanted << ")";
SetErrorCode(OK);
return aShape;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr("");
- TDF_Tool::Entry(aSolid->GetEntry(), anEntry);
- aDescr += anEntry;
- aDescr += " = IShapesOperations.MakeSolidShell(";
- TDF_Tool::Entry(theShell->GetEntry(), anEntry);
- aDescr += (anEntry+")");
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aSolid
+ << " = geompy.MakeSolid(" << theShell << ")";
SetErrorCode(OK);
return aSolid;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr("");
- TDF_Tool::Entry(aShape->GetEntry(), anEntry);
- aDescr += (anEntry + " = IShapesOperations.");
- aDescr += (theMethodName + "([");
+ GEOM::TPythonDump pd (aFunction);
+ pd << aShape << " = geompy." << theMethodName.ToCString() << "([";
+
// Shapes
it = theShapes.begin();
if (it != theShapes.end()) {
- TDF_Tool::Entry((*it)->GetEntry(), anEntry);
- it++;
- aDescr += (anEntry+", ");
- for (; it != theShapes.end(); it++) {
- aDescr += ", ";
- TDF_Tool::Entry((*it)->GetEntry(), anEntry);
- aDescr += anEntry;
+ pd << (*it++);
+ while (it != theShapes.end()) {
+ pd << ", " << (*it++);
}
}
- aDescr += "])";
-
- aFunction->SetDescription(aDescr);
+ pd << "])";
SetErrorCode(OK);
return aShape;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aGlued->GetEntry(), anEntry);
- aDescr += anEntry;
- aDescr += " = IShapesOperations.MakeGlueFaces(";
- TDF_Tool::Entry(theShape->GetEntry(), anEntry);
- aDescr += anEntry + ", ";
- aDescr += TCollection_AsciiString(theTolerance) + ")";
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aGlued << " = geompy.MakeGlueFaces("
+ << theShape << ", " << theTolerance << ")";
// to provide warning
if (!isWarning) SetErrorCode(OK);
Handle(TColStd_HArray1OfInteger) anArray;
TopTools_ListIteratorOfListOfShape itSub (listShape);
- TCollection_AsciiString anAsciiList = "[", anEntry;
+ TCollection_AsciiString anAsciiList, anEntry;
for (int index = 1; itSub.More(); itSub.Next(), ++index) {
TopoDS_Shape aValue = itSub.Value();
anArray = new TColStd_HArray1OfInteger(1,1);
anObj = GetEngine()->AddSubShape(theShape, anArray);
aSeq->Append(anObj);
+ // for python command
TDF_Tool::Entry(anObj->GetEntry(), anEntry);
anAsciiList += anEntry;
anAsciiList += ",";
}
-// timer3.Stop();
-// timer4.Start();
-
+ //Make a Python command
anAsciiList.Trunc(anAsciiList.Length() - 1);
- anAsciiList += "]";
-
- anAsciiList = TCollection_AsciiString("\n") + anAsciiList;
- //The explode doesn't change object so no new function is requiered.
aFunction = theShape->GetLastFunction();
-
- //Make a Python command
- TCollection_AsciiString aDescr(anAsciiList);
- TDF_Tool::Entry(theShape->GetEntry(), anEntry);
- aDescr += " = IShapesOperations.MakeExplode(";
- aDescr += (anEntry + ",");
- if (isSorted)
- aDescr += (TCollection_AsciiString(theShapeType) + ", 1)");
- else
- aDescr += (TCollection_AsciiString(theShapeType) + ", 0)");
-
TCollection_AsciiString anOldDescr = aFunction->GetDescription();
- anOldDescr = anOldDescr + aDescr;
- aFunction->SetDescription(anOldDescr);
+
+ GEOM::TPythonDump pd (aFunction);
+ pd << anOldDescr.ToCString() << "\n\t[" << anAsciiList.ToCString();
+ pd << "] = geompy.SubShapeAll" << (isSorted ? "Sorted(" : "(");
+ pd << theShape << ", " << theShapeType << ")";
SetErrorCode(OK);
aSeq->Append(anIndices.FindIndex(aValue));
}
- //The explode doesn't change object so no new function is required.
Handle(GEOM_Function) aFunction = theShape->GetLastFunction();
+ TCollection_AsciiString anOldDescr = aFunction->GetDescription();
//Make a Python command
- TCollection_AsciiString aDescr
- ("\nlistSubShapeAllIDs = IShapesOperations.SubShapeAllIDs(");
- TCollection_AsciiString anEntry;
- TDF_Tool::Entry(theShape->GetEntry(), anEntry);
- aDescr += (anEntry + ",");
- if (isSorted)
- aDescr += (TCollection_AsciiString(theShapeType) + ", 1)");
- else
- aDescr += (TCollection_AsciiString(theShapeType) + ", 0)");
-
- TCollection_AsciiString anOldDescr = aFunction->GetDescription();
- anOldDescr = anOldDescr + aDescr;
- aFunction->SetDescription(anOldDescr);
+ GEOM::TPythonDump pd (aFunction);
+ pd << anOldDescr.ToCString() << "\n\tlistSubShapeIDs = geompy.SubShapeAll";
+ pd << (isSorted ? "SortedIDs(" : "IDs(");
+ pd << theShape << ", " << theShapeType << ")";
SetErrorCode(OK);
return aSeq;
Handle(TColStd_HArray1OfInteger) anArray = new TColStd_HArray1OfInteger(1,1);
anArray->SetValue(1, theID);
- Handle(GEOM_Object) anObj = GetEngine()->AddSubShape(theMainShape, anArray);
+ Handle(GEOM_Object) anObj = GetEngine()->AddSubShape(theMainShape, anArray,true);
if (anObj.IsNull()) {
SetErrorCode("Can not get a sub-shape with the given ID");
return NULL;
}
- //The GetSubShape() doesn't change object so no new function is requiered.
- Handle(GEOM_Function) aFunction = theMainShape->GetLastFunction();
+ Handle(GEOM_Function) aFunction = anObj->GetLastFunction();
//Make a Python command
- TCollection_AsciiString aDescr ("\n");
- TCollection_AsciiString anEntry;
- TDF_Tool::Entry(anObj->GetEntry(), anEntry);
- aDescr += anEntry + " = IShapesOperations.GetSubShape(";
- TDF_Tool::Entry(theMainShape->GetEntry(), anEntry);
- aDescr += anEntry + ", ";
- aDescr += TCollection_AsciiString(theID) + ")";
-
- TCollection_AsciiString anOldDescr = aFunction->GetDescription();
- anOldDescr = anOldDescr + aDescr;
- aFunction->SetDescription(anOldDescr);
+ GEOM::TPythonDump(aFunction) << anObj << " = geompy.GetSubShape("
+ << theMainShape << ", [" << theID << "])";
SetErrorCode(OK);
return anObj;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aReversed->GetEntry(), anEntry);
- aDescr += anEntry;
- aDescr += " = IShapesOperations.ReverseShape(";
- TDF_Tool::Entry(theShape->GetEntry(), anEntry);
- aDescr += anEntry + ")";
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aReversed
+ << " = geompy.ChangeOrientation(" << theShape << ")";
SetErrorCode(OK);
return aReversed;
//The explode doesn't change object so no new function is required.
Handle(GEOM_Function) aFunction = theShape->GetLastFunction();
+ TCollection_AsciiString anOldDescr = aFunction->GetDescription();
//Make a Python command
- TCollection_AsciiString aDescr ("\nlistFreeFacesIDs = IShapesOperations.GetFreeFacesIDs(");
- TCollection_AsciiString anEntry;
- TDF_Tool::Entry(theShape->GetEntry(), anEntry);
- aDescr += (anEntry + ")");
-
- TCollection_AsciiString anOldDescr = aFunction->GetDescription();
- anOldDescr = anOldDescr + aDescr;
- aFunction->SetDescription(anOldDescr);
+ GEOM::TPythonDump(aFunction) << anOldDescr.ToCString()
+ << "\n\tlistFreeFacesIDs = geompy.GetFreeFacesIDs(" << theShape << ")";
SetErrorCode(OK);
return aSeq;
Handle(GEOM_Object) anObj;
Handle(TColStd_HSequenceOfTransient) aSeq = new TColStd_HSequenceOfTransient;
+ TCollection_AsciiString anAsciiList, anEntry;
TopTools_MapOfShape mapShape2;
TopExp_Explorer exp (aShape2, TopAbs_ShapeEnum(theShapeType));
anArray->SetValue(1, anIndices.FindIndex(aSS));
anObj = GetEngine()->AddSubShape(theShape1, anArray);
aSeq->Append(anObj);
+
+ // for python command
+ TDF_Tool::Entry(anObj->GetEntry(), anEntry);
+ anAsciiList += anEntry;
+ anAsciiList += ",";
}
}
return aSeq;
}
- //The explode doesn't change object so no new function is required.
- Handle(GEOM_Function) aFunction = theShape1->GetLastFunction();
-
//Make a Python command
- TCollection_AsciiString aDescr
- ("\nlistSharedShapes = IShapesOperations.GetSharedShapes(");
- TCollection_AsciiString anEntry;
- TDF_Tool::Entry(theShape1->GetEntry(), anEntry);
- aDescr += (anEntry + ",");
- TDF_Tool::Entry(theShape2->GetEntry(), anEntry);
- aDescr += (anEntry + ",");
- aDescr += TCollection_AsciiString(theShapeType) + ")";
+ anAsciiList.Trunc(anAsciiList.Length() - 1);
- TCollection_AsciiString anOldDescr = aFunction->GetDescription();
- anOldDescr = anOldDescr + aDescr;
- aFunction->SetDescription(anOldDescr);
+ Handle(GEOM_Function) aFunction = anObj->GetLastFunction();
+
+ GEOM::TPythonDump(aFunction) << "[" << anAsciiList.ToCString()
+ << "] = geompy.GetSharedShapes(" << theShape1 << ", "
+ << theShape2 << ", " << theShapeType << ")";
SetErrorCode(OK);
return aSeq;
}
+//=============================================================================
+/*!
+ *
+ */
+//=============================================================================
+static GEOM::TPythonDump& operator<< (GEOM::TPythonDump& theDump,
+ const GEOMAlgo_State theState)
+{
+ switch (theState) {
+ case GEOMAlgo_ST_IN:
+ theDump << "geompy.GEOM.ST_IN";
+ break;
+ case GEOMAlgo_ST_OUT:
+ theDump << "geompy.GEOM.ST_OUT";
+ break;
+ case GEOMAlgo_ST_ON:
+ theDump << "geompy.GEOM.ST_ON";
+ break;
+ case GEOMAlgo_ST_ONIN:
+ theDump << "geompy.GEOM.ST_ONIN";
+ break;
+ case GEOMAlgo_ST_ONOUT:
+ theDump << "geompy.GEOM.ST_ONOUT";
+ break;
+ default:
+ theDump << "geompy.GEOM.ST_UNKNOWN";
+ break;
+ }
+ return theDump;
+}
+
//=============================================================================
/*!
* GetShapesOnPlane
Handle(GEOM_Object) anObj;
Handle(TColStd_HArray1OfInteger) anArray;
Handle(TColStd_HSequenceOfTransient) aSeq = new TColStd_HSequenceOfTransient;
+ TCollection_AsciiString anAsciiList, anEntry;
TopTools_ListIteratorOfListOfShape itSub (listSS);
for (int index = 1; itSub.More(); itSub.Next(), ++index) {
anArray->SetValue(1, id);
anObj = GetEngine()->AddSubShape(theShape, anArray);
aSeq->Append(anObj);
+
+ // for python command
+ TDF_Tool::Entry(anObj->GetEntry(), anEntry);
+ anAsciiList += anEntry;
+ anAsciiList += ",";
}
// timer1.Stop();
// timer1.Reset();
// timer1.Start();
- // The GetShapesOnPlane() doesn't change object so no new function is required.
- Handle(GEOM_Function) aFunction = theShape->GetLastFunction();
-
// Make a Python command
- TCollection_AsciiString anEntry, aDescr
- ("\nlistShapesOnPlane = IShapesOperations.GetShapesOnPlane(");
- TDF_Tool::Entry(theShape->GetEntry(), anEntry);
- aDescr += anEntry + TCollection_AsciiString(theShapeType) + ",";
- TDF_Tool::Entry(theAx1->GetEntry(), anEntry);
- aDescr += anEntry + ",";
- aDescr += TCollection_AsciiString(theState) + ")";
+ anAsciiList.Trunc(anAsciiList.Length() - 1);
- TCollection_AsciiString anOldDescr = aFunction->GetDescription();
- anOldDescr += aDescr;
- aFunction->SetDescription(anOldDescr);
+ Handle(GEOM_Function) aFunction = anObj->GetLastFunction();
-// timer1.Stop();
-// timer1.Show();
+ GEOM::TPythonDump(aFunction) << "[" << anAsciiList.ToCString()
+ << "] = geompy.GetShapesOnPlane(" << theShape << ", "
+ << theShapeType << ", " << theAx1 << ", " << theState << ")";
SetErrorCode(OK);
return aSeq;
Handle(GEOM_Object) anObj;
Handle(TColStd_HArray1OfInteger) anArray;
Handle(TColStd_HSequenceOfTransient) aSeq = new TColStd_HSequenceOfTransient;
+ TCollection_AsciiString anAsciiList, anEntry;
TopTools_ListIteratorOfListOfShape itSub (listSS);
for (int index = 1; itSub.More(); itSub.Next(), ++index) {
anArray->SetValue(1, id);
anObj = GetEngine()->AddSubShape(theShape, anArray);
aSeq->Append(anObj);
+
+ // for python command
+ TDF_Tool::Entry(anObj->GetEntry(), anEntry);
+ anAsciiList += anEntry;
+ anAsciiList += ",";
}
- // The GetShapesOnCylinder() doesn't change object so no new function is required.
- Handle(GEOM_Function) aFunction = theShape->GetLastFunction();
-
// Make a Python command
- TCollection_AsciiString anEntry, aDescr
- ("\nlistShapesOnCylinder = IShapesOperations.GetShapesOnCylinder(");
- TDF_Tool::Entry(theShape->GetEntry(), anEntry);
- aDescr += anEntry + TCollection_AsciiString(theShapeType) + ",";
- TDF_Tool::Entry(theAxis->GetEntry(), anEntry);
- aDescr += anEntry + ",";
- aDescr += TCollection_AsciiString(theRadius) + ",";
- aDescr += TCollection_AsciiString(theState) + ")";
+ anAsciiList.Trunc(anAsciiList.Length() - 1);
- TCollection_AsciiString anOldDescr = aFunction->GetDescription();
- anOldDescr += aDescr;
- aFunction->SetDescription(anOldDescr);
+ Handle(GEOM_Function) aFunction = anObj->GetLastFunction();
+
+ GEOM::TPythonDump(aFunction) << "[" << anAsciiList.ToCString()
+ << "] = geompy.GetShapesOnCylinder(" << theShape << ", " << theShapeType
+ << ", " << theAxis << ", " << theRadius << ", " << theState << ")";
SetErrorCode(OK);
return aSeq;
Handle(GEOM_Object) anObj;
Handle(TColStd_HArray1OfInteger) anArray;
Handle(TColStd_HSequenceOfTransient) aSeq = new TColStd_HSequenceOfTransient;
+ TCollection_AsciiString anAsciiList, anEntry;
TopTools_ListIteratorOfListOfShape itSub (listSS);
for (int index = 1; itSub.More(); itSub.Next(), ++index) {
anArray->SetValue(1, id);
anObj = GetEngine()->AddSubShape(theShape, anArray);
aSeq->Append(anObj);
+
+ // for python command
+ TDF_Tool::Entry(anObj->GetEntry(), anEntry);
+ anAsciiList += anEntry;
+ anAsciiList += ",";
}
- // The GetShapesOnSphere() doesn't change object so no new function is required.
- Handle(GEOM_Function) aFunction = theShape->GetLastFunction();
-
// Make a Python command
- TCollection_AsciiString anEntry, aDescr
- ("\nlistShapesOnSphere = IShapesOperations.GetShapesOnSphere(");
- TDF_Tool::Entry(theShape->GetEntry(), anEntry);
- aDescr += anEntry + TCollection_AsciiString(theShapeType) + ",";
- TDF_Tool::Entry(theCenter->GetEntry(), anEntry);
- aDescr += anEntry + ",";
- aDescr += TCollection_AsciiString(theRadius) + ",";
- aDescr += TCollection_AsciiString(theState) + ")";
+ anAsciiList.Trunc(anAsciiList.Length() - 1);
- TCollection_AsciiString anOldDescr = aFunction->GetDescription();
- anOldDescr += aDescr;
- aFunction->SetDescription(anOldDescr);
+ Handle(GEOM_Function) aFunction = anObj->GetLastFunction();
+
+ GEOM::TPythonDump(aFunction) << "[" << anAsciiList.ToCString()
+ << "] = geompy.GetShapesOnSphere(" << theShape << ", " << theShapeType
+ << ", " << theCenter << ", " << theRadius << ", " << theState << ")";
SetErrorCode(OK);
return aSeq;
}
-
//=============================================================================
/*!
* GetShapesOnPlaneIDs
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aResult->GetEntry(), anEntry);
- aDescr += anEntry;
- aDescr += " = IShapesOperations.GetInPlace(";
- TDF_Tool::Entry(theShapeWhere->GetEntry(), anEntry);
- aDescr += anEntry + ",";
- TDF_Tool::Entry(theShapeWhat->GetEntry(), anEntry);
- aDescr += anEntry + ")";
-
Handle(GEOM_Function) aFunction = aResult->GetFunction(1);
- aFunction->SetDescription(aDescr);
+
+ GEOM::TPythonDump(aFunction) << aResult << " = geompy.GetInPlace("
+ << theShapeWhere << ", " << theShapeWhat << ")";
SetErrorCode(OK);
return aResult;
#include <TDF_Tool.hxx>
#include "GEOM_Function.hxx"
+#include "GEOM_PythonDump.hxx"
#include "GEOMImpl_TranslateDriver.hxx"
#include "GEOMImpl_MirrorDriver.hxx"
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(theObject->GetEntry(), anEntry);
- aDescr += (anEntry+" = ITransformOperations.TranslateTwoPoints(");
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(thePoint1->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(thePoint2->GetEntry(), anEntry);
- aDescr += (anEntry+")");
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << "geompy.TrsfOp.TranslateTwoPoints("
+ << theObject << ", " << thePoint1 << ", " << thePoint2 << ")";
SetErrorCode(OK);
return theObject;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(theObject->GetEntry(), anEntry);
- aDescr += (anEntry+" = ITransformOperations.TranslateDXDXYDZ(");
- aDescr += (anEntry+", ");
- aDescr += (TCollection_AsciiString(theX)+", ");
- aDescr += (TCollection_AsciiString(theY)+", ");
- aDescr += (TCollection_AsciiString(theZ)+")");
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << "geompy.TrsfOp.TranslateDXDYDZ("
+ << theObject << ", " << theX << ", " << theY << ", " << theZ << ")";
SetErrorCode(OK);
return theObject;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aCopy->GetEntry(), anEntry);
- aDescr += (anEntry+" = ITransformOperations.TranslateTwoPointsCopy(");
- TDF_Tool::Entry(theObject->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(thePoint1->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(thePoint2->GetEntry(), anEntry);
- aDescr += (anEntry+")");
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aCopy << " = geompy.MakeTranslationTwoPoints("
+ << theObject << ", " << thePoint1 << ", " << thePoint2 << ")";
SetErrorCode(OK);
return aCopy;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aCopy->GetEntry(), anEntry);
- aDescr += (anEntry+" = ITransformOperations.TranslateDXDXYDZCopy(");
- TDF_Tool::Entry(theObject->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- aDescr += (TCollection_AsciiString(theX)+", ");
- aDescr += (TCollection_AsciiString(theY)+", ");
- aDescr += (TCollection_AsciiString(theZ)+")");
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aCopy << " = geompy.MakeTranslation("
+ << theObject << ", " << theX << ", " << theY << ", " << theZ << ")";
SetErrorCode(OK);
return aCopy;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(theObject->GetEntry(), anEntry);
- aDescr += (anEntry+" = ITransformOperations.TranslateVector(");
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(theVector->GetEntry(), anEntry);
- aDescr += (anEntry+") ");
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << "geompy.TrsfOp.TranslateVector("
+ << theObject << ", " << theVector << ")";
SetErrorCode(OK);
return theObject;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aCopy->GetEntry(), anEntry);
- aDescr += (anEntry+" = ITransformOperations.TranslateVectorCopy(");
- TDF_Tool::Entry(theObject->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(theVector->GetEntry(), anEntry);
- aDescr += (anEntry+")");
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aCopy << " = geompy.MakeTranslationVector("
+ << theObject << ", " << theVector << ")";
SetErrorCode(OK);
return aCopy;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aCopy->GetEntry(), anEntry);
- aDescr += (anEntry+" = ITransformOperations.Translate1D(");
- TDF_Tool::Entry(theObject->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(theVector->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- aDescr += (TCollection_AsciiString(theStep)+", ");
- aDescr += (TCollection_AsciiString(theNbTimes)+") ");
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aCopy << " = geompy.MakeMultiTranslation1D("
+ << theObject << ", " << theVector << ", " << theStep << ", " << theNbTimes << ")";
SetErrorCode(OK);
return aCopy;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aCopy->GetEntry(), anEntry);
- aDescr += (anEntry+" = ITransformOperations.Translate2D(");
- TDF_Tool::Entry(theObject->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(theVector->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- aDescr += (TCollection_AsciiString(theStep1)+", ");
- aDescr += (TCollection_AsciiString(theNbTimes2)+", ");
- TDF_Tool::Entry(theVector2->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- aDescr += (TCollection_AsciiString(theStep2)+", ");
- aDescr += (TCollection_AsciiString(theNbTimes2)+") ");
-
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aCopy << " = geompy.MakeMultiTranslation2D("
+ << theObject << ", " << theVector << ", " << theStep1 << ", " << theNbTimes1
+ << ", " << theVector2 << ", " << theStep2 << ", " << theNbTimes2 << ")";
SetErrorCode(OK);
return aCopy;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(theObject->GetEntry(), anEntry);
- aDescr += (anEntry + " = ITransformOperations.MirrorPlane(");
- aDescr += (anEntry + ", ");
- TDF_Tool::Entry(thePlane->GetEntry(), anEntry);
- aDescr += (anEntry + ") ");
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << "geompy.TrsfOp.MirrorPlane("
+ << theObject << ", " << thePlane << ")";
SetErrorCode(OK);
return theObject;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aCopy->GetEntry(), anEntry);
- aDescr += (anEntry + " = ITransformOperations.MirrorPlaneCopy(");
- TDF_Tool::Entry(theObject->GetEntry(), anEntry);
- aDescr += (anEntry + ", ");
- TDF_Tool::Entry(thePlane->GetEntry(), anEntry);
- aDescr += (anEntry + ")");
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aCopy << " = geompy.MakeMirrorByPlane("
+ << theObject << ", " << thePlane << ")";
SetErrorCode(OK);
return aCopy;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(theObject->GetEntry(), anEntry);
- aDescr += (anEntry + " = ITransformOperations.MirrorPoint(");
- aDescr += (anEntry + ", ");
- TDF_Tool::Entry(thePoint->GetEntry(), anEntry);
- aDescr += (anEntry + ") ");
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << "geompy.TrsfOp.MirrorPoint("
+ << theObject << ", " << thePoint << ")";
SetErrorCode(OK);
return NULL;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aCopy->GetEntry(), anEntry);
- aDescr += (anEntry + " = ITransformOperations.MirrorPointCopy(");
- TDF_Tool::Entry(theObject->GetEntry(), anEntry);
- aDescr += (anEntry + ", ");
- TDF_Tool::Entry(thePoint->GetEntry(), anEntry);
- aDescr += (anEntry + ")");
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aCopy << " = geompy.MakeMirrorByPoint("
+ << theObject << ", " << thePoint << ")";
SetErrorCode(OK);
return aCopy;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(theObject->GetEntry(), anEntry);
- aDescr += (anEntry + " = ITransformOperations.MirrorAxis(");
- aDescr += (anEntry + ", ");
- TDF_Tool::Entry(theAxis->GetEntry(), anEntry);
- aDescr += (anEntry + ") ");
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << "geompy.TrsfOp.MirrorAxis("
+ << theObject << ", " << theAxis << ")";
SetErrorCode(OK);
return NULL;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aCopy->GetEntry(), anEntry);
- aDescr += (anEntry + " = ITransformOperations.MirrorAxisCopy(");
- TDF_Tool::Entry(theObject->GetEntry(), anEntry);
- aDescr += (anEntry + ", ");
- TDF_Tool::Entry(theAxis->GetEntry(), anEntry);
- aDescr += (anEntry + ")");
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aCopy << " = geompy.MakeMirrorByAxis("
+ << theObject << ", " << theAxis << ")";
SetErrorCode(OK);
return aCopy;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(theObject->GetEntry(), anEntry);
- aDescr += (anEntry+" = ITransformOperations.OffsetShape(");
- aDescr += (anEntry+", ");
- aDescr += TCollection_AsciiString(theOffset)+")";
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << "geompy.TrsfOp.OffsetShape("
+ << theObject << ", " << theOffset << ")";
SetErrorCode(OK);
return theObject;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aCopy->GetEntry(), anEntry);
- aDescr += (anEntry+" = ITransformOperations.OffsetShapeCopy(");
- TDF_Tool::Entry(theObject->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- aDescr += TCollection_AsciiString(theOffset)+")";
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aCopy << " = geompy.MakeOffset("
+ << theObject << ", " << theOffset << ")";
SetErrorCode(OK);
return aCopy;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(theObject->GetEntry(), anEntry);
- aDescr += (anEntry+" = ITransformOperations.ScaleShape(");
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(thePoint->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- aDescr += TCollection_AsciiString(theFactor)+")";
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << "geompy.TrsfOp.ScaleShape("
+ << theObject << ", " << thePoint << ", " << theFactor << ")";
SetErrorCode(OK);
return theObject;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aCopy->GetEntry(), anEntry);
- aDescr += (anEntry+" = ITransformOperations.ScaleShapeCopy(");
- TDF_Tool::Entry(theObject->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(thePoint->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- aDescr += TCollection_AsciiString(theFactor)+")";
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aCopy << " = geompy.MakeScaleTransform("
+ << theObject << ", " << thePoint << ", " << theFactor << ")";
SetErrorCode(OK);
return aCopy;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(theObject->GetEntry(), anEntry);
- aDescr += (anEntry+" = ITransformOperations.PositionShape(");
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(theStartLCS->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(theEndLCS->GetEntry(), anEntry);
- aDescr += (anEntry+") ");
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << "geompy.TrsfOp.PositionShape("
+ << theObject << ", " << theStartLCS << ", " << theEndLCS << ")";
SetErrorCode(OK);
return theObject;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(aCopy->GetEntry(), anEntry);
- aDescr += (anEntry+" = ITransformOperations.PositionShapeCopy(");
- TDF_Tool::Entry(theObject->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(theStartLCS->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(theEndLCS->GetEntry(), anEntry);
- aDescr += (anEntry+")");
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aCopy << " = geompy.MakePosition("
+ << theObject << ", " << theStartLCS << ", " << theEndLCS << ")";
SetErrorCode(OK);
return aCopy;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(theObject->GetEntry(), anEntry);
- aDescr += (anEntry+" = ITransformOperations.Rotate(");
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(theAxis->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- aDescr += (TCollection_AsciiString(theAngle)+") ");
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << "geompy.TrsfOp.Rotate(" << theObject
+ << ", " << theAxis << ", " << theAngle * 180.0 / PI << "*math.pi/180.0)";
SetErrorCode(OK);
return theObject;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(theObject->GetEntry(), anEntry);
- aDescr += (anEntry+" = ITransformOperations.RotateCopy(");
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(theAxis->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- aDescr += (TCollection_AsciiString(theAngle)+") ");
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aCopy << " = geompy.MakeRotation(" << theObject
+ << ", " << theAxis << ", " << theAngle * 180.0 / PI << "*math.pi/180.0)";
SetErrorCode(OK);
return aCopy;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(theObject->GetEntry(), anEntry);
- aDescr += (anEntry+" = ITransformOperations.Rotate1D(");
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(theAxis->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- aDescr += (TCollection_AsciiString(theNbTimes)+") ");
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aCopy << " = geompy.MultiRotate1D("
+ << theObject << ", " << theAxis << ", " << theNbTimes << ")";
SetErrorCode(OK);
return aCopy;
}
//Make a Python command
- TCollection_AsciiString anEntry, aDescr;
- TDF_Tool::Entry(theObject->GetEntry(), anEntry);
- aDescr += (anEntry+" = ITransformOperations.Rotate2D(");
- aDescr += (anEntry+", ");
- TDF_Tool::Entry(theAxis->GetEntry(), anEntry);
- aDescr += (anEntry+", ");
- aDescr += (TCollection_AsciiString(theAngle)+", ");
- aDescr += (TCollection_AsciiString(theNbTimes1)+", ");
- aDescr += (TCollection_AsciiString(theStep)+", ");
- aDescr += (TCollection_AsciiString(theNbTimes2)+") ");
- aFunction->SetDescription(aDescr);
+ GEOM::TPythonDump(aFunction) << aCopy << " = geompy.MultiRotate2D("
+ << theObject << ", " << theAxis << ", " << theAngle << ", "
+ << theNbTimes1 << ", " << theStep << ", " << theNbTimes2 << ")";
SetErrorCode(OK);
return aCopy;
#include "GEOM_Operation.h"
#include "GEOM_Displayer.h"
-#include "QAD_Desktop.h"
-#include "QAD_FileDlg.h"
-#include "QAD_Tools.h"
-#include "QAD_MessageBox.h"
-#include "QAD_RightFrame.h"
-#include "QAD_WaitCursor.h"
-#include "SALOMEGUI_Desktop.h"
-
-#include "OCCViewer_Viewer3d.h"
-#include "VTKViewer_ViewFrame.h"
-#include "VTKViewer_RenderWindowInteractor.h"
+#include <SUIT_Session.h>
+#include <SUIT_Application.h>
+#include <SUIT_OverrideCursor.h>
+#include <SUIT_MessageBox.h>
+#include <SUIT_Tools.h>
+#include <SUIT_FileDlg.h>
+#include <SUIT_Desktop.h>
+
+#include <SalomeApp_Application.h>
+#include <SalomeApp_Study.h>
+
+//#include "OCCViewer_Viewer3d.h"
+//#include "VTKViewer_ViewWindow.h"
+//#include "VTKViewer_RenderWindowInteractor.h"
#include "SALOME_ListIteratorOfListIO.hxx"
-#include "SALOMEGUI_ImportOperation.h"
-#include "SALOMEGUI_QtCatchCorbaException.hxx"
+//#include "SALOMEGUI_ImportOperation.h"
+//#include "SALOMEGUI_QtCatchCorbaException.hxx"
#include <qapplication.h>
#include <qmap.h>
using namespace std;
-GEOMToolsGUI* GEOMToolsGUI::myGUIObject = 0;
-
typedef QMap<QString, QString> FilterMap;
+#include "SALOMEDSClient.hxx"
+#include "SALOMEDS_SObject.hxx"
+#include "SALOMEDS_Study.hxx"
+
+
+
+
//=======================================================================
// function : getFileName
// purpose : Selection of a file name for Import/Export. Returns also
for ( FilterMap::const_iterator it = filterMap.begin(); it != filterMap.end(); ++it )
filters.push_back( it.key() );
- QAD_FileDlg* fd = new QAD_FileDlg( parent, open, true, true );
+ SUIT_FileDlg* fd = new SUIT_FileDlg( parent, open, true, true );
if ( !caption.isEmpty() )
fd->setCaption( caption );
return filename;
}
-//=======================================================================
-// function : GetGEOMToolsGUI()
-// purpose : Get the only GEOMToolsGUI object [ static ]
-//=======================================================================
-GEOMToolsGUI* GEOMToolsGUI::GetGEOMToolsGUI()
-{
- if ( myGUIObject == 0 ) {
- // init GEOMToolsGUI only once
- myGUIObject = new GEOMToolsGUI();
- }
- return myGUIObject;
-}
-
//=======================================================================
// function : GEOMToolsGUI()
// purpose : Constructor
//=======================================================================
-GEOMToolsGUI::GEOMToolsGUI() : GEOMGUI()
+GEOMToolsGUI::GEOMToolsGUI( GeometryGUI* parent )
+: GEOMGUI( parent )
{
}
// function : OnGUIEvent()
// purpose :
//=======================================================================
-bool GEOMToolsGUI::OnGUIEvent(int theCommandID, QAD_Desktop* parent)
+bool GEOMToolsGUI::OnGUIEvent(int theCommandID, SUIT_Desktop* parent)
{
- GeometryGUI::GetGeomGUI()->EmitSignalDeactivateDialog();
- SALOME_Selection* Sel = SALOME_Selection::Selection(QAD_Application::getDesktop()->getActiveStudy()->getSelection());
+ getGeometryGUI()->EmitSignalDeactivateDialog();
- SALOMEDS::Study_var aStudy = QAD_Application::getDesktop()->getActiveStudy()->getStudyDocument();
switch (theCommandID)
{
case 31: // COPY
}
default:
{
- parent->putInfo(tr("GEOM_PRP_COMMAND").arg(theCommandID));
+ SUIT_Session::session()->activeApplication()->putInfo(tr("GEOM_PRP_COMMAND").arg(theCommandID));
break;
}
}
//===============================================================================
void GEOMToolsGUI::OnEditDelete()
{
+/*
SALOME_Selection* Sel = SALOME_Selection::Selection(
QAD_Application::getDesktop()->getActiveStudy()->getSelection() );
if ( Sel->IObjectCount() == 0 )
return;
- SALOMEDS::Study_var aStudy = QAD_Application::getDesktop()->getActiveStudy()->getStudyDocument();
+ _PTR(Study) aStudy = QAD_Application::getDesktop()->getActiveStudy()->getStudyDocument();
- bool aLocked = aStudy->GetProperties()->IsLocked();
+ bool aLocked = (_PTR(AttributeStudyProperties)(aStudy->GetProperties()))->IsLocked();
if ( aLocked ) {
QAD_MessageBox::warn1 ( (QWidget*)QAD_Application::getDesktop(),
QObject::tr("WRN_WARNING"),
int nbSf = QAD_Application::getDesktop()->getActiveStudy()->getStudyFramesCount();
Standard_Boolean found;
- SALOMEDS::GenericAttribute_var anAttr;
- SALOMEDS::AttributeIOR_var anIOR;
+ _PTR(GenericAttribute) anAttr;
SALOME_ListIteratorOfListIO It( Sel->StoredIObjects() );
if ( !IObject->hasEntry() )
continue;
- SALOMEDS::SObject_var SO = aStudy->FindObjectID( IObject->getEntry() );
+ _PTR(SObject) SO ( aStudy->FindObjectID( IObject->getEntry() ) );
+ _PTR(AttributeIOR) anIOR;
- /* Erase child graphical objects */
+ // Erase child graphical objects
- SALOMEDS::ChildIterator_var it = aStudy->NewChildIterator( SO );
+ _PTR(ChildIterator) it ( aStudy->NewChildIterator( SO ) );
for ( ; it->More();it->Next() )
{
- SALOMEDS::SObject_var CSO = it->Value();
+ _PTR(SObject) CSO ( it->Value() );
if ( CSO->FindAttribute( anAttr, "AttributeIOR" ) )
{
- anIOR = SALOMEDS::AttributeIOR::_narrow( anAttr );
+ anIOR = anAttr;
// Delete child( s ) shape in Client :
- const TCollection_AsciiString ASCior( anIOR->Value() ) ;
+ const TCollection_AsciiString ASCior( (char*)anIOR->Value().c_str() ) ;
GeometryGUI::GetGeomGUI()->GetShapeReader().RemoveShapeFromBuffer( ASCior );
for ( int i = 0; i < nbSf; i++ )
{
- GEOM::GEOM_Object_var aGeomObj = GEOM::GEOM_Object::_narrow( CSO->GetObject() );
+ GEOM::GEOM_Object_var aGeomObj = GEOM::GEOM_Object::_narrow( dynamic_cast<SALOMEDS_SObject*>(CSO.get())->GetObject() );
if ( !aGeomObj->_is_nil() )
GEOM_Displayer().Erase( aGeomObj, true );
}
}
}
- /* Erase main graphical object */
+ // Erase main graphical object
for ( int i = 0; i < nbSf; i++ )
{
GEOM_Displayer().Erase( IObject, true );
}
- /* Delete main shape in Client : */
+ // Delete main shape in Client :
if ( SO->FindAttribute( anAttr, "AttributeIOR" ) )
{
- anIOR = SALOMEDS::AttributeIOR::_narrow( anAttr );
- const TCollection_AsciiString ASCIor( anIOR->Value() ) ;
+ anIOR = anAttr;
+ const TCollection_AsciiString ASCIor( (char*)anIOR->Value().c_str() ) ;
GeometryGUI::GetGeomGUI()->GetShapeReader().RemoveShapeFromBuffer( ASCIor );
}
- /* Erase objects in Study */
+ // Erase objects in Study
- SALOMEDS::SObject_var obj = aStudy->FindObjectID( IObject->getEntry() );
- if ( !obj->_is_nil() )
+ _PTR(SObject) obj ( aStudy->FindObjectID( IObject->getEntry() ) );
+ if ( obj )
{
- SALOMEDS::StudyBuilder_var aStudyBuilder = aStudy->NewBuilder();
+ _PTR(StudyBuilder) aStudyBuilder (aStudy->NewBuilder());
aStudyBuilder->RemoveObject( obj );
- GEOM::GEOM_Object_var aGeomObj = GEOM::GEOM_Object::_narrow( obj->GetObject() );
+ GEOM::GEOM_Object_var aGeomObj = GEOM::GEOM_Object::_narrow(dynamic_cast<SALOMEDS_SObject*>(obj.get())->GetObject());
if ( !aGeomObj->_is_nil() )
GeometryGUI::GetGeomGUI()->GetGeomGen()->RemoveObject( aGeomObj );
else
op->abort();
- /* Clear any previous selection */
+ // Clear any previous selection
Sel->ClearIObjects();
QAD_Application::getDesktop()->getActiveStudy()->updateObjBrowser();
+ */
}
//=====================================================================================
bool GEOMToolsGUI::Import()
{
- QAD_Study* aDoc = QAD_Application::getDesktop()->getActiveStudy();
- SALOMEDS::Study_var aStudy = aDoc->getStudyDocument();
+ SUIT_Application* app = getGeometryGUI()->getApp();
+ if (! app) return false;
+
+ SalomeApp_Study* stud = dynamic_cast<SalomeApp_Study*> ( app->activeStudy() );
+ if ( !stud ) {
+ cout << "FAILED to cast active study to SalomeApp_Study" << endl;
+ return false;
+ }
+ _PTR(Study) aStudy = stud->studyDS();
- bool aLocked = aStudy->GetProperties()->IsLocked();
+ bool aLocked = (_PTR(AttributeStudyProperties)(aStudy->GetProperties()))->IsLocked();
if ( aLocked ) {
- QAD_MessageBox::warn1 ( (QWidget*)QAD_Application::getDesktop(),
- QObject::tr("WRN_WARNING"),
- QObject::tr("WRN_STUDY_LOCKED"),
- QObject::tr("BUT_OK") );
+ SUIT_MessageBox::warn1 ( app->desktop(),
+ QObject::tr("WRN_WARNING"),
+ QObject::tr("WRN_STUDY_LOCKED"),
+ QObject::tr("BUT_OK") );
return false;
}
- GEOM::GEOM_IInsertOperations_var aInsOp = GeometryGUI::GetGeomGUI()->GetGeomGen()->GetIInsertOperations( aStudy->StudyId() );
+ GEOM::GEOM_Gen_var eng = GeometryGUI::GetGeomGen();
+ if ( CORBA::is_nil( eng ) ) {
+ SUIT_MessageBox::error1( app->desktop(),
+ QObject::tr("WRN_WARNING"),
+ QObject::tr( "GEOM Engine is not started" ),
+ QObject::tr("BUT_OK") );
+ return false;
+ }
+
+ GEOM::GEOM_IInsertOperations_var aInsOp = eng->GetIInsertOperations( aStudy->StudyId() );
if ( aInsOp->_is_nil() )
return false;
FilterMap aMap;
GEOM::string_array_var aFormats, aPatterns;
aInsOp->ImportTranslators( aFormats, aPatterns );
+
for ( int i = 0, n = aFormats->length(); i < n; i++ )
aMap.insert( (char*)aPatterns[i], (char*)aFormats[i] );
QString fileType;
- QString file = getFileName(QAD_Application::getDesktop(), "", aMap, tr("GEOM_MEN_IMPORT"), true, fileType );
+ QString file = getFileName(app->desktop(), "", aMap, tr("GEOM_MEN_IMPORT"), true, fileType );
if( file.isEmpty() || fileType.isEmpty() )
return false;
- GEOM_Operation* anOp = new GEOM_Operation( aDoc, aInsOp.in() );
+ GEOM_Operation* anOp = new GEOM_Operation( app, aInsOp.in() );
try {
- QAD_WaitCursor wc;
- QAD_Application::getDesktop()->putInfo( tr("GEOM_PRP_LOADING").arg(QAD_Tools::getFileNameFromPath( file )) );
+ SUIT_OverrideCursor wc;
+
+ app->putInfo( tr("GEOM_PRP_LOADING").arg(SUIT_Tools::file( file, /*withExten=*/true )) );
anOp->start();
if ( !anObj->_is_nil() && aInsOp->IsDone() ) {
anObj->SetName( GEOMBase::GetDefaultName( QObject::tr( "GEOM_IMPORT" ) ).latin1() );
- QString aPublishObjName = GEOMBase::GetDefaultName( QAD_Tools::getFileNameFromPath( file ));
- GeometryGUI::GetGeomGUI()->GetGeomGen()->PublishInStudy(
- aStudy, SALOMEDS::SObject::_nil(), anObj, aPublishObjName );
+ QString aPublishObjName = GEOMBase::GetDefaultName( SUIT_Tools::file( file, /*withExten=*/true ));
+ GeometryGUI::GetGeomGen()->PublishInStudy(dynamic_cast<SALOMEDS_Study*>(aStudy.get())->GetStudy(),
+ SALOMEDS::SObject::_nil(),
+ anObj,
+ aPublishObjName );
- GEOM_Displayer().Display( anObj.in() );
+ GEOM_Displayer( stud ).Display( anObj.in() );
- anOp->finish();
+ anOp->commit();
}
else {
anOp->abort();
- wc.stop();
- QAD_MessageBox::error1( QAD_Application::getDesktop(),
- QObject::tr( "GEOM_ERROR" ),
- QObject::tr("GEOM_PRP_ABORT") + "\n" + QString( aInsOp->GetErrorCode() ),
- QObject::tr("BUT_OK") );
+ wc.suspend();
+ SUIT_MessageBox::error1( app->desktop(),
+ QObject::tr( "GEOM_ERROR" ),
+ QObject::tr("GEOM_PRP_ABORT") + "\n" + QString( aInsOp->GetErrorCode() ),
+ QObject::tr("BUT_OK") );
}
}
- catch(const SALOME::SALOME_Exception& S_ex) {
- QtCatchCorbaException(S_ex);
+ catch( const SALOME::SALOME_Exception& S_ex ) {
+ //QtCatchCorbaException(S_ex);
anOp->abort();
return false;
}
//=====================================================================================
bool GEOMToolsGUI::Export()
{
+/*
SALOMEDS::Study_var aStudy = QAD_Application::getDesktop()->getActiveStudy()->getStudyDocument();
GEOM::GEOM_IInsertOperations_var aInsOp = GeometryGUI::GetGeomGUI()->GetGeomGen()->GetIInsertOperations( aStudy->StudyId() );
if ( aInsOp->_is_nil() )
QtCatchCorbaException(S_ex);
}
}
-
+*/
return true;
}
//=====================================================================================
extern "C"
{
- GEOMGUI* GetLibGUI()
+ GEOMGUI* GetLibGUI( GeometryGUI* parent )
{
- return GEOMToolsGUI::GetGEOMToolsGUI();
+ return new GEOMToolsGUI( parent );
}
}
//=================================================================================
class GEOMToolsGUI : public GEOMGUI
{
-protected:
- GEOMToolsGUI(); // hide constructor to avoid direct creation
-
public :
+ GEOMToolsGUI( GeometryGUI* ); // hide constructor to avoid direct creation
~GEOMToolsGUI();
- // Get the only GEOMToolsGUI object
- static GEOMToolsGUI* GetGEOMToolsGUI();
-
- bool OnGUIEvent(int theCommandID, QAD_Desktop* parent);
+ bool OnGUIEvent( int theCommandID, SUIT_Desktop* parent );
private:
/* Import and export topology methods */
void OnTransparency();
void OnNbIsos();
void OnOpen();
-
-private:
- static GEOMToolsGUI* myGUIObject; // the only GEOMToolsGUI object
};
#endif
#include "GeometryGUI.h"
#include "GEOM_Actor.h"
#include "GEOMBase.h"
+#include "GEOMToolsGUI_TransparencyDlg.h"
+#include "GEOMToolsGUI_NbIsosDlg.h" // Method ISOS adjustement
+
+#include <SALOME_ListIO.hxx>
+#include <SALOME_ListIteratorOfListIO.hxx>
+
+#include <VTKViewer_ViewModel.h>
+#include <OCCViewer_ViewModel.h>
+#include <OCCViewer_ViewWindow.h>
-#include "QAD_Desktop.h"
-#include "QAD_Config.h"
-#include "QAD_FileDlg.h"
-#include "QAD_PyEditor.h"
-#include "QAD_RightFrame.h"
-#include "QAD_MessageBox.h"
-#include "SALOMEGUI_NameDlg.h"
+#include <SVTK_ViewWindow.h>
+#include <SVTK_RenderWindowInteractor.h>
-#include "OCCViewer_Viewer3d.h"
-#include "OCCViewer_ViewFrame.h"
-#include "VTKViewer_ViewFrame.h"
-#include "VTKViewer_RenderWindowInteractor.h"
+#include <SUIT_ViewManager.h>
+#include <SUIT_Application.h>
+#include <SUIT_Desktop.h>
+#include <SUIT_ResourceMgr.h>
+#include <SUIT_Session.h>
+#include <SUIT_OverrideCursor.h>
-#include "SALOME_ListIO.hxx"
-#include "SALOME_ListIteratorOfListIO.hxx"
+#include <SalomeApp_Application.h>
+#include <SalomeApp_SelectionMgr.h>
#include <AIS_Drawer.hxx>
#include <AIS_ListOfInteractive.hxx>
#include <qspinbox.h>
#include <qapplication.h>
-#include "GEOMToolsGUI_NbIsosDlg.h" // Method ISOS adjustement
-#include "GEOMToolsGUI_TransparencyDlg.h" // Method TRANSPARENCY adjustement
-
#include "utilities.h"
using namespace std;
+#include "SALOMEDSClient.hxx"
+#include "SALOMEDS_Study.hxx"
+
+
+
void GEOMToolsGUI::OnSettingsColor()
{
+ SUIT_Session* sess = SUIT_Session::session();
+ SUIT_ResourceMgr* resMgr = sess->resourceMgr();
+ SUIT_Desktop* desk = sess->activeApplication()->desktop();
+
+ QColor anInitColor = resMgr->colorValue( "Geometry:SettingsShadingColor", QColor( "yellow" ) );
- QString aSCr = QAD_CONFIG->getSetting("Geometry:SettingsShadingColorRed");
- QString aSCg = QAD_CONFIG->getSetting("Geometry:SettingsShadingColorGreen");
- QString aSCb = QAD_CONFIG->getSetting("Geometry:SettingsShadingColorBlue");
- QColor anInitColor;
- if(!aSCr.isEmpty() && !aSCg.isEmpty() && !aSCb.isEmpty()) {
- anInitColor = QColor (aSCr.toInt(), aSCg.toInt(), aSCb.toInt());
- }
- else {
- Quantity_Color aDefColor = Quantity_Color();
- anInitColor =
- QColor ((int)( aDefColor.Red() * 255.0 ), (int)( aDefColor.Green() * 255.0 ), (int)( aDefColor.Blue() * 255.0 ) );
- }
-
- QColor aDialogColor = QColorDialog::getColor(anInitColor, QAD_Application::getDesktop());
- if(aDialogColor.isValid()) {
- QApplication::setOverrideCursor(Qt::waitCursor);
-
- if( QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getTypeView() != VIEW_OCC &&
- QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getTypeView() != VIEW_VTK )
+ QColor aDialogColor = QColorDialog::getColor(anInitColor, desk );
+ if( aDialogColor.isValid() )
+ {
+ QString type = desk->activeWindow()->getViewManager()->getType();
+ if( type != OCCViewer_Viewer::Type() && type != VTKViewer_Viewer::Type() )
MESSAGE("Settings Color is not supported for current Viewer");
- QAD_CONFIG->addSetting("Geometry:SettingsShadingColorRed", aDialogColor.red());
- QAD_CONFIG->addSetting("Geometry:SettingsShadingColorGreen", aDialogColor.green());
- QAD_CONFIG->addSetting("Geometry:SettingsShadingColorBlue", aDialogColor.blue());
- QApplication::restoreOverrideCursor();
+ resMgr->setValue( "Geometry:SettingsShadingColor", aDialogColor );
}
}
void GEOMToolsGUI::OnSettingsIsos()
{
- if(QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getTypeView() > VIEW_OCC)
+/*
+ SUIT_Session* sess = SUIT_Session::session();
+ SUIT_ResourceMgr* resMgr = sess->resourceMgr();
+ SUIT_Desktop* desk = sess->activeApplication()->desktop();
+
+ SUIT_ViewManager* vman = desk->activeWindow()->getViewManager();
+ QString type = vman->getType();
+
+ if ( type != OCCViewer_Viewer::Type() )
return;
- OCCViewer_Viewer3d* v3d = ((OCCViewer_ViewFrame*)QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getRightFrame()->getViewFrame())->getViewer();
- Handle (AIS_InteractiveContext) ic = v3d->getAISContext();
+ OCCViewer_Viewer* vm = (OCCViewer_Viewer*)vman->getViewModel();
+ Handle (AIS_InteractiveContext) ic = vm->getAISContext();
- QString IsoU = QAD_CONFIG->getSetting("Geometry:SettingsIsoU");
- QString IsoV = QAD_CONFIG->getSetting("Geometry:SettingsIsoV");
+ int IsoU = resMgr->integerValue( "Geometry:SettingsIsoU", 1 );
+ int IsoV = resMgr->integerValue( "Geometry:SettingsIsoV", 1 );
- if(!IsoU.isEmpty())
- ic->DefaultDrawer()->UIsoAspect()->SetNumber(IsoU.toInt());
- else
- IsoU = "1";
- if (!IsoV.isEmpty())
- ic->DefaultDrawer()->VIsoAspect()->SetNumber(IsoV.toInt());
- else
- IsoV = "1";
+ ic->DefaultDrawer()->UIsoAspect()->SetNumber( IsoU );
+ ic->DefaultDrawer()->VIsoAspect()->SetNumber( IsoV );
- GEOMBase_NbIsosDlg* NbIsosDlg = new GEOMBase_NbIsosDlg(QAD_Application::getDesktop(), tr("GEOM_MEN_ISOS"), TRUE);
- int UIso = IsoU.toInt();
- int VIso = IsoV.toInt();
+ GEOMBase_NbIsosDlg* NbIsosDlg = new GEOMBase_NbIsosDlg(desk, tr("GEOM_MEN_ISOS"), TRUE);
- NbIsosDlg->SpinBoxU->setValue(UIso);
- NbIsosDlg->SpinBoxV->setValue(VIso);
+ NbIsosDlg->SpinBoxU->setValue(IsoU);
+ NbIsosDlg->SpinBoxV->setValue(IsoV);
if(NbIsosDlg->exec()) {
- UIso = NbIsosDlg->SpinBoxU->text().toInt();
- VIso = NbIsosDlg->SpinBoxV->text().toInt();
+ IsoU = NbIsosDlg->SpinBoxU->text().toInt();
+ IsoV = NbIsosDlg->SpinBoxV->text().toInt();
ic->DefaultDrawer()->UIsoAspect()->SetNumber(UIso);
ic->DefaultDrawer()->VIsoAspect()->SetNumber(VIso);
- QAD_CONFIG->addSetting("Geometry:SettingsIsoU", NbIsosDlg->SpinBoxU->text()); /* text format */
- QAD_CONFIG->addSetting("Geometry:SettingsIsoV", NbIsosDlg->SpinBoxV->text()); /* text format */
+ resMgr->setValue("Geometry:SettingsIsoU", isoU);
+ resMgr->setValue("Geometry:SettingsIsoV", isoV);
}
+*/
}
void GEOMToolsGUI::OnSettingsStep()
{
- QString step = QAD_CONFIG->getSetting("Geometry:SettingsGeomStep");
- if(step.isEmpty())
- step = "100.0";
+ SUIT_Session* sess = SUIT_Session::session();
+ SUIT_ResourceMgr* resMgr = sess->resourceMgr();
+
+ double step = resMgr->doubleValue( "Geometry:SettingsGeomStep", 100. );
Standard_Boolean res = false;
double dd = GEOMBase::Parameter(res, QString("%1").arg(step), tr("GEOM_MEN_STEP_LABEL"), tr("GEOM_STEP_TITLE"), 0.001, 10000.0, 3);
if(res) {
- QAD_CONFIG->addSetting("Geometry:SettingsGeomStep", QString("%1").arg(dd));
+ resMgr->setValue( "Geometry:SettingsGeomStep", dd );
/* Emit signal to GeometryGUI_SpinBoxes */
- GeometryGUI::GetGeomGUI()->EmitSignalDefaultStepValueChanged(dd);
+ getGeometryGUI()->EmitSignalDefaultStepValueChanged( dd );
}
else
- QAD_Application::getDesktop()->putInfo(tr("GEOM_PRP_ABORT"));
+ sess->activeApplication()->putInfo(tr("GEOM_PRP_ABORT"));
}
void GEOMToolsGUI::OnRename()
{
+/*
SALOME_Selection* Sel = SALOME_Selection::Selection(QAD_Application::getDesktop()->getActiveStudy()->getSelection());
- SALOMEDS::Study_var aStudy = QAD_Application::getDesktop()->getActiveStudy()->getStudyDocument();
+ _PTR(Study) aStudy = QAD_Application::getDesktop()->getActiveStudy()->getStudyDocument();
- bool aLocked = aStudy->GetProperties()->IsLocked();
+ bool aLocked = (_PTR(AttributeStudyProperties)(aStudy->GetProperties()))->IsLocked();
if ( aLocked ) {
QAD_MessageBox::warn1 ( (QWidget*)QAD_Application::getDesktop(),
QObject::tr("WRN_WARNING"),
for(; It.More(); It.Next()) {
Handle(SALOME_InteractiveObject) IObject = It.Value();
- SALOMEDS::SObject_var obj = aStudy->FindObjectID(IObject->getEntry());
- SALOMEDS::GenericAttribute_var anAttr;
- SALOMEDS::AttributeName_var aName;
- if(!obj->_is_nil()) {
+ _PTR(SObject) obj ( aStudy->FindObjectID(IObject->getEntry()) );
+ _PTR(GenericAttribute) anAttr;
+ if(obj) {
if(obj->FindAttribute(anAttr, "AttributeName")) {
- aName = SALOMEDS::AttributeName::_narrow(anAttr);
+ _PTR(AttributeName) aName (anAttr);
- QString nm = QString(aName->Value());
+ QString nm = QString(aName->Value().c_str());
nm = SALOMEGUI_NameDlg::getName(QAD_Application::getDesktop(), nm);
if(!nm.isEmpty()) {
QApplication::setOverrideCursor(Qt::waitCursor);
}
}
}
+*/
}
void GEOMToolsGUI::OnCheckGeometry()
{
+/*
QAD_PyEditor* PyEditor = QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getRightFrame()->getPyEditor();
PyEditor->setText("from GEOM_usinggeom import *\n");
PyEditor->handleReturn();
+*/
}
void GEOMToolsGUI::OnLoadScript()
{
- SALOMEDS::Study_var aStudy = QAD_Application::getDesktop()->getActiveStudy()->getStudyDocument();
- bool aLocked = aStudy->GetProperties()->IsLocked();
+/*
+ _PTR(Study) aStudy = QAD_Application::getDesktop()->getActiveStudy()->getStudyDocument();
+ bool aLocked = (_PTR(AttributeStudyProperties)(aStudy->GetProperties())->IsLocked();
if ( aLocked ) {
QAD_MessageBox::warn1 ( (QWidget*)QAD_Application::getDesktop(),
QObject::tr("WRN_WARNING"),
PyEditor->handleReturn();
}
QApplication::restoreOverrideCursor();
+*/
}
void GEOMToolsGUI::OnColor()
{
- SALOME_Selection* Sel = SALOME_Selection::Selection(
- QAD_Application::getDesktop()->getActiveStudy()->getSelection() );
+ SALOME_ListIO selected;
+ SalomeApp_Application* app = dynamic_cast< SalomeApp_Application* >( SUIT_Session::session()->activeApplication() );
+ if ( app ) {
+ SalomeApp_SelectionMgr* aSelMgr = app->selectionMgr();
+ if ( aSelMgr ) {
+ aSelMgr->selectedObjects( selected );
+ if ( !selected.IsEmpty() ) {
+ SUIT_ViewWindow* window = app->desktop()->activeWindow();
+ bool isOCC = ( window && window->getViewManager()->getType() == OCCViewer_Viewer::Type() );
+ bool isVTK = ( window && window->getViewManager()->getType() == VTKViewer_Viewer::Type() );
+ if ( isVTK ) {
+ SVTK_ViewWindow* vtkVW = dynamic_cast<SVTK_ViewWindow*>( window );
+ if ( !vtkVW )
+ return;
+ SVTK_RenderWindowInteractor* rwi = vtkVW->getRWInteractor();
+ QColor initcolor = rwi->GetColor( selected.First() );
+ QColor c = QColorDialog::getColor( QColor(), app->desktop() );
+ if ( c.isValid() ) {
+ SUIT_OverrideCursor();
+ for ( SALOME_ListIteratorOfListIO It( selected ); It.More(); It.Next() ) {
+ rwi->SetColor( It.Value(), c );
+ }
+ }
+ } // if ( isVTK )
+ else if ( isOCC ) {
+ Handle(AIS_InteractiveObject) io = GEOMBase::GetAIS( selected.First() );
+ if ( !io.IsNull() ) {
+ Quantity_Color aColor;
+ io->Color( aColor );
+ QColor initcolor( (int)( aColor.Red() * 255.0 ), (int)( aColor.Green() * 255.0 ), (int)( aColor.Blue() * 255.0 ) );
+ QColor c = QColorDialog::getColor( initcolor, app->desktop() );
+ if ( c.isValid() ) {
+ SUIT_OverrideCursor();
+ aColor = Quantity_Color( c.red() / 255., c.green() / 255., c.blue() / 255., Quantity_TOC_RGB );
+ for ( SALOME_ListIteratorOfListIO It( selected ); It.More(); It.Next() ) {
+ io = GEOMBase::GetAIS( It.Value(), true );
+ if ( !io.IsNull() ) {
+ io->SetColor( aColor );
+ if ( io->IsKind( STANDARD_TYPE(GEOM_AISShape) ) )
+ Handle(GEOM_AISShape)::DownCast( io )->SetShadingColor( aColor );
- if ( QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getTypeView() == VIEW_VTK )
- {
- VTKViewer_RenderWindowInteractor* myRenderInter =
- ( (VTKViewer_ViewFrame*)QAD_Application::getDesktop()->
- getActiveStudy()->getActiveStudyFrame()->getRightFrame()->getViewFrame())->getRWInteractor();
-
- SALOME_ListIteratorOfListIO It( Sel->StoredIObjects() );
- Handle(SALOME_InteractiveObject) FirstIOS = Sel->firstIObject();
- if ( !FirstIOS.IsNull() )
- {
- QColor initcolor = myRenderInter->GetColor(FirstIOS);
- QColor c = QColorDialog::getColor( initcolor, QAD_Application::getDesktop() );
-
- if ( c.isValid() )
- {
- QApplication::setOverrideCursor( Qt::waitCursor );
- for ( ;It.More();It.Next() )
- {
- Handle(SALOME_InteractiveObject) IOS = It.Value();
- myRenderInter->SetColor(IOS,c);
- }
- }
- QApplication::restoreOverrideCursor();
- }
- }
- else if( QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getTypeView() == VIEW_OCC )
- {
- Handle(AIS_InteractiveObject) anIO = GEOMBase::GetAIS( Sel->firstIObject() );
- if ( !anIO.IsNull() )
- {
- Quantity_Color aColor;
- anIO->Color( aColor );
-
- QColor qColor = QColorDialog::getColor( QColor( (int)( aColor.Red() * 255.0 ),
- (int)( aColor.Green() * 255.0 ),
- (int)( aColor.Blue() * 255.0 ) ),
- QAD_Application::getDesktop());
-
- if ( qColor.isValid() )
- {
- aColor = Quantity_Color( qColor.red() / 255.,
- qColor.green() / 255.,
- qColor.blue() / 255.,
- Quantity_TOC_RGB );
-
- QApplication::setOverrideCursor( Qt::waitCursor );
-
- SALOME_ListIteratorOfListIO anIter ( Sel->StoredIObjects() );
- for( ;anIter.More();anIter.Next() )
- {
- Handle(SALOME_InteractiveObject) IObject = anIter.Value();
- Handle(AIS_InteractiveObject) anIO = GEOMBase::GetAIS( IObject, true );
- if ( !anIO.IsNull() )
- {
- anIO->SetColor( aColor );
-
- if ( anIO->IsKind( STANDARD_TYPE(GEOM_AISShape) ) )
- Handle(GEOM_AISShape)::DownCast( anIO )->SetShadingColor( aColor );
-
- anIO->Redisplay( Standard_True );
- }
- }
- }
+ io->Redisplay( Standard_True );
+ }
+ }
+ } // if c.isValid()
+ } // first IO is not null
+ } // if ( isOCC )
+ } // if ( selection not empty )
}
}
-
- QApplication::restoreOverrideCursor();
}
void GEOMToolsGUI::OnTransparency()
{
- Handle(AIS_InteractiveContext) ic;
- SALOME_Selection* Sel = SALOME_Selection::Selection(QAD_Application::getDesktop()->getActiveStudy()->getSelection());
- if(QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getTypeView() == VIEW_OCC) {
- OCCViewer_Viewer3d* v3d = ((OCCViewer_ViewFrame*)QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getRightFrame()->getViewFrame())->getViewer();
- ic = v3d->getAISContext();
- }
- new GEOMBase_TransparencyDlg(QAD_Application::getDesktop(), "", Sel, ic);
+ GEOMToolsGUI_TransparencyDlg dlg( SUIT_Session::session()->activeApplication()->desktop() );
+ dlg.exec();
}
void GEOMToolsGUI::OnNbIsos()
{
- if(QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getTypeView() > VIEW_OCC)
+ SUIT_ViewWindow* window = SUIT_Session::session()->activeApplication()->desktop()->activeWindow();
+ bool isOCC = ( window && window->getViewManager()->getType() == OCCViewer_Viewer::Type() );
+
+ if ( !isOCC )
return;
- OCCViewer_Viewer3d* v3d = ((OCCViewer_ViewFrame*)QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getRightFrame()->getViewFrame())->getViewer();
- Handle (AIS_InteractiveContext) ic = v3d->getAISContext();
+ OCCViewer_Viewer* vm = dynamic_cast<OCCViewer_Viewer*>( window->getViewManager()->getViewModel() );
+ Handle (AIS_InteractiveContext) ic = vm->getAISContext();
ic->InitCurrent();
- if(ic->MoreCurrent()) {
+ if ( ic->MoreCurrent() ) {
Handle(GEOM_AISShape) CurObject = Handle(GEOM_AISShape)::DownCast(ic->Current());
Handle(AIS_Drawer) CurDrawer = CurObject->Attributes();
int UIso = CurDrawer->UIsoAspect()->Number();
int VIso = CurDrawer->VIsoAspect()->Number();
- GEOMBase_NbIsosDlg * NbIsosDlg =
- new GEOMBase_NbIsosDlg(QAD_Application::getDesktop(), tr("GEOM_MEN_ISOS"), TRUE);
+ GEOMToolsGUI_NbIsosDlg * NbIsosDlg =
+ new GEOMToolsGUI_NbIsosDlg( SUIT_Session::session()->activeApplication()->desktop() );
- NbIsosDlg->SpinBoxU->setValue( UIso );
- NbIsosDlg->SpinBoxV->setValue( VIso );
+ NbIsosDlg->setU( UIso );
+ NbIsosDlg->setV( VIso );
- if(NbIsosDlg->exec()) {
- QApplication::setOverrideCursor(Qt::waitCursor);
+ if ( NbIsosDlg->exec() ) {
+ SUIT_OverrideCursor();
for(; ic->MoreCurrent(); ic->NextCurrent()) {
CurObject = Handle(GEOM_AISShape)::DownCast(ic->Current());
Handle(AIS_Drawer) CurDrawer = CurObject->Attributes();
- int nbUIso = NbIsosDlg->SpinBoxU->text().toInt();
- int nbVIso = NbIsosDlg->SpinBoxV->text().toInt();
+ int nbUIso = NbIsosDlg->getU();
+ int nbVIso = NbIsosDlg->getV();
CurDrawer->SetUIsoAspect( new Prs3d_IsoAspect(Quantity_NOC_GRAY75, Aspect_TOL_SOLID, 0.5 , nbUIso) );
CurDrawer->SetVIsoAspect( new Prs3d_IsoAspect(Quantity_NOC_GRAY75, Aspect_TOL_SOLID, 0.5 , nbVIso) );
}
}
}
- QApplication::restoreOverrideCursor();
}
void GEOMToolsGUI::OnOpen()
{
+/*
SALOME_Selection* Sel = SALOME_Selection::Selection(QAD_Application::getDesktop()->getActiveStudy()->getSelection());
- SALOMEDS::Study_var aStudy = QAD_Application::getDesktop()->getActiveStudy()->getStudyDocument();
+ _PTR(Study) aStudy = QAD_Application::getDesktop()->getActiveStudy()->getStudyDocument();
SALOME_ListIteratorOfListIO It(Sel->StoredIObjects());
Handle(SALOME_InteractiveObject) anIObject;
for(;It.More();It.Next()) {
anIObject = It.Value();
- SALOMEDS::SObject_var obj = aStudy->FindObjectID(anIObject->getEntry());
- SALOMEDS::AttributePersistentRef_var aPersist;
- SALOMEDS::AttributeIOR_var anIOR;
- if(!obj->_is_nil()) {
+ _PTR(SObject) obj ( aStudy->FindObjectID(anIObject->getEntry()) );
+ _PTR(AttributePersistentRef) aPersist;
+ _PTR(AttributeIOR) anIOR;
+ if(obj) {
// this SObject may be GEOM module root SObject
- SALOMEDS::ChildIterator_var anIter = aStudy->NewChildIterator(obj);
- SALOMEDS::GenericAttribute_var anAttr;
+ _PTR(ChildIterator) anIter ( aStudy->NewChildIterator() );
+ _PTR(GenericAttribute) anAttr;
bool useSubItems = false;
while (anIter->More() && !useSubItems) {
- SALOMEDS::SObject_var subobj = anIter->Value();
+ _PTR(SObject) subobj ( anIter->Value() );
if (subobj->FindAttribute(anAttr, "AttributePersistentRef")) {
useSubItems = true;
- obj = subobj;
+ obj = subobj;
}
else
anIter->Next();
while(useSubItems?anIter->More():!anAttr->_is_nil()) {
if(!obj->FindAttribute(anAttr, "AttributeIOR") &&
obj->FindAttribute(anAttr, "AttributePersistentRef")) {
- SALOMEDS::SComponent_var FComp = obj->GetFatherComponent();
- if (!CORBA::is_nil(FComp)) {
+ _PTR(SComponent) FComp ( obj->GetFatherComponent() );
+ if (FComp) {
if (FComp->FindAttribute(anAttr, "AttributeName")) {
- SALOMEDS::AttributeName_var aName = SALOMEDS::AttributeName::_narrow(anAttr);
- QString compName = QAD_Application::getDesktop()->getComponentName(aName->Value());
+ _PTR(AttributeName) aName ( anAttr );
+ QString compName = QAD_Application::getDesktop()->getComponentName(aName->Value().c_str());
// parent->loadComponentData(parent->getComponentName(aName->Value()));
Engines::Component_var comp ;
if ( compName.compare("SUPERV") == 0 ) {
if (!CORBA::is_nil(comp)) {
SALOMEDS::Driver_var driver = SALOMEDS::Driver::_narrow(comp);
if (!CORBA::is_nil(driver)) {
- SALOMEDS::StudyBuilder_var B = aStudy->NewBuilder();
+ SALOMEDS::StudyBuilder_var B = dynamic_cast<SALOMEDS_Study*>(aStudy.get())->GetStudy()->NewBuilder();
if (!CORBA::is_nil(B)) {
B->LoadWith(FComp,driver);
} else {
}
if(useSubItems) {
anIter->Next();
- obj = anIter->Value();
+ obj.reset( anIter->Value() );
}
else
- anAttr = SALOMEDS::GenericAttribute::_nil();
+ anAttr = NULL;
}
}
}
+*/
}
using namespace std;
#include "GEOMToolsGUI_NbIsosDlg.h"
-#include "QAD_Tools.h"
+
+#include <SUIT_Tools.h>
#include <qlabel.h>
#include <qpushbutton.h>
#include <qspinbox.h>
//=================================================================================
-// class : GEOMBase_NbIsosDlg()
-// purpose : Constructs a GEOMBase_NbIsosDlg which is a child of 'parent', with the
+// class : GEOMToolsGUI_NbIsosDlg()
+// purpose : Constructs a GEOMToolsGUI_NbIsosDlg which is a child of 'parent', with the
// name 'name' and widget flags set to 'f'.
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-GEOMBase_NbIsosDlg::GEOMBase_NbIsosDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
- :QDialog( parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+GEOMToolsGUI_NbIsosDlg::GEOMToolsGUI_NbIsosDlg(QWidget* parent )
+ :QDialog( parent, "GEOMToolsGUI_NbIsosDlg", true, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
- if( !name )
- setName("GEOMBase_NbIsosDlg");
- setCaption(name);
+ setCaption( tr( "GEOM_MEN_ISOS" ) );
setSizeGripEnabled(TRUE);
QGridLayout* MyDialogLayout = new QGridLayout(this);
MyDialogLayout->setSpacing(6);
GroupC1Layout->setSpacing( 6 );
GroupC1Layout->setMargin( 11 );
- TextLabel1 = new QLabel( GroupC1, "TextLabel1" );
+ QLabel* TextLabel1 = new QLabel( GroupC1, "TextLabel1" );
TextLabel1->setText( tr( "GEOM_MEN_ISOU") );
GroupC1Layout->addWidget( TextLabel1, 0, 0 );
SpinBoxU->setValue( 1 );
GroupC1Layout->addWidget( SpinBoxU, 0, 1 );
- TextLabel2 = new QLabel( GroupC1, "TextLabel2" );
+ QLabel* TextLabel2 = new QLabel( GroupC1, "TextLabel2" );
TextLabel2->setText( tr( "GEOM_MEN_ISOV") ) ;
GroupC1Layout->addWidget( TextLabel2, 0, 2 );
GroupButtonsLayout->setSpacing( 6 );
GroupButtonsLayout->setMargin( 11 );
- buttonOk = new QPushButton( GroupButtons, "buttonOk" );
+ QPushButton* buttonOk = new QPushButton( GroupButtons, "buttonOk" );
buttonOk->setText( tr( "GEOM_BUT_OK" ) ) ;
buttonOk->setAutoDefault( TRUE );
buttonOk->setDefault( TRUE );
GroupButtonsLayout->addItem( new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ), 0, 1 );
- buttonCancel = new QPushButton( GroupButtons, "buttonCancel" );
+ QPushButton* buttonCancel = new QPushButton( GroupButtons, "buttonCancel" );
buttonCancel->setText( tr( "GEOM_BUT_CANCEL" ) ) ;
buttonCancel->setAutoDefault( TRUE );
GroupButtonsLayout->addWidget( buttonCancel, 0, 2 );
connect(buttonCancel, SIGNAL(clicked()), this, SLOT(reject()));
/* Move widget on the botton right corner of main widget */
- QAD_Tools::centerWidget(this, parent);
+ SUIT_Tools::centerWidget(this, parent);
}
//=================================================================================
-// function : ~GEOMBase_NbIsosDlg()
+// function : ~GEOMToolsGUI_NbIsosDlg()
// purpose : Destroys the object and frees any allocated resources
//=================================================================================
-GEOMBase_NbIsosDlg::~GEOMBase_NbIsosDlg()
+GEOMToolsGUI_NbIsosDlg::~GEOMToolsGUI_NbIsosDlg()
{
// no need to delete child widgets, Qt does it all for us
}
+
+int GEOMToolsGUI_NbIsosDlg::getU() const
+{
+ return SpinBoxU->text().toInt();
+}
+
+int GEOMToolsGUI_NbIsosDlg::getV() const
+{
+ return SpinBoxV->text().toInt();
+}
+
+void GEOMToolsGUI_NbIsosDlg::setU( const int v )
+{
+ SpinBoxU->setValue( v );
+}
+
+void GEOMToolsGUI_NbIsosDlg::setV( const int v )
+{
+ SpinBoxV->setValue( v );
+}
+
//
//
//
-// File : GEOMBase_NbIsosDlg.h
+// File : GEOMToolsGUI_NbIsosDlg.h
// Author :
// Module : GEOM
// $Header:
-#ifndef GEOMBASE_NBISOSDLG_H
-#define GEOMBASE_NBISOSDLG_H
+#ifndef GEOMTOOLSGUI_NBISOSDLG_H
+#define GEOMTOOLSGUI_NBISOSDLG_H
#include <qdialog.h>
-class QLabel;
class QSpinBox;
-class QPushButton;
//=================================================================================
-// class : GEOMBase_NbIsosDlg
+// class : GEOMToolsGUI_NbIsosDlg
// purpose :
//=================================================================================
-class GEOMBase_NbIsosDlg : public QDialog
+class GEOMToolsGUI_NbIsosDlg : public QDialog
{
Q_OBJECT
public:
- GEOMBase_NbIsosDlg(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
- ~GEOMBase_NbIsosDlg();
+ GEOMToolsGUI_NbIsosDlg( QWidget* parent );
+ ~GEOMToolsGUI_NbIsosDlg();
+
+ int getU() const;
+ int getV() const;
- QPushButton* buttonOk;
- QPushButton* buttonCancel;
- QLabel* TextLabel1;
- QLabel* TextLabel2;
+ void setU( const int );
+ void setV( const int );
+
+private:
QSpinBox* SpinBoxU;
QSpinBox* SpinBoxV;
};
-#endif // GEOMETRYGUI_NBISOSDLG_H
+#endif // GEOMTOOLSGUI_NBISOSDLG_H
using namespace std;
#include "GEOMToolsGUI_TransparencyDlg.h"
+#include "GEOMBase.h"
+#include "GEOM_AISShape.hxx"
-#include "QAD_Desktop.h"
-#include "QAD_RightFrame.h"
-#include "SALOME_ListIteratorOfListIO.hxx"
-#include "OCCViewer_Viewer3d.h"
-#include "OCCViewer_ViewFrame.h"
-#include <AIS_InteractiveContext.hxx>
+#include <SALOME_ListIO.hxx>
+#include <SALOME_ListIteratorOfListIO.hxx>
+
+#include <VTKViewer_ViewModel.h>
+#include <OCCViewer_ViewModel.h>
+#include <OCCViewer_ViewWindow.h>
+
+#include <SVTK_ViewWindow.h>
+#include <SVTK_RenderWindowInteractor.h>
+
+#include <SUIT_ViewManager.h>
+#include <SUIT_Application.h>
+#include <SUIT_Desktop.h>
+#include <SUIT_ResourceMgr.h>
+#include <SUIT_Session.h>
+#include <SUIT_OverrideCursor.h>
+
+#include <SalomeApp_Application.h>
+#include <SalomeApp_SelectionMgr.h>
#include <qframe.h>
#include <qlabel.h>
#include <qapplication.h>
#include <qgroupbox.h>
-#include "VTKViewer_ViewFrame.h"
-#include "VTKViewer_RenderWindowInteractor.h"
+#include <AIS_InteractiveContext.hxx>
+
//=================================================================================
// class : GEOMBase_TransparencyDlg()
// : WARNING : this dialog is modal !
//
//=================================================================================
-GEOMBase_TransparencyDlg::GEOMBase_TransparencyDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, const Handle(AIS_InteractiveContext)& ic, bool modal, WFlags fl)
- :QDialog(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+GEOMToolsGUI_TransparencyDlg::GEOMToolsGUI_TransparencyDlg( QWidget* parent )
+ :QDialog( parent, "GEOMBase_TransparencyDlg", true, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu )
{
- if(!name)
- setName("GEOMBase_TransparencyDlg");
resize(152, 107);
setCaption(tr("GEOM_TRANSPARENCY_TITLE"));
setSizeGripEnabled(TRUE);
- GEOMBase_TransparencyDlgLayout = new QGridLayout(this);
- GEOMBase_TransparencyDlgLayout->setSpacing(6);
- GEOMBase_TransparencyDlgLayout->setMargin(11);
+ QGridLayout* lay = new QGridLayout(this);
+ lay->setSpacing(6);
+ lay->setMargin(11);
/*************************************************************************/
QGroupBox* GroupButtons = new QGroupBox( this, "GroupButtons" );
GroupButtonsLayout->setSpacing( 6 );
GroupButtonsLayout->setMargin( 11 );
- buttonOk = new QPushButton( GroupButtons, "buttonOk" );
+ QPushButton* buttonOk = new QPushButton( GroupButtons, "buttonOk" );
buttonOk->setText( tr( "GEOM_BUT_OK" ) );
buttonOk->setAutoDefault( TRUE );
buttonOk->setDefault( TRUE );
GroupC1Layout->setSpacing( 6 );
GroupC1Layout->setMargin( 11 );
- TextLabelOpaque = new QLabel( GroupC1, "TextLabelOpaque" );
+ QLabel* TextLabelOpaque = new QLabel( GroupC1, "TextLabelOpaque" );
TextLabelOpaque->setText( tr( "GEOM_TRANSPARENCY_OPAQUE" ) );
TextLabelOpaque->setAlignment( int( QLabel::AlignLeft ) );
GroupC1Layout->addWidget( TextLabelOpaque, 0, 0 );
GroupC1Layout->addItem( new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ), 0, 1 );
- TextLabelTransparent = new QLabel( GroupC1, "TextLabelTransparent" );
+ QLabel* TextLabelTransparent = new QLabel( GroupC1, "TextLabelTransparent" );
TextLabelTransparent->setText( tr( "GEOM_TRANSPARENCY_TRANSPARENT" ) );
TextLabelTransparent->setAlignment( int( QLabel::AlignRight ) );
GroupC1Layout->addWidget( TextLabelTransparent, 0, 2 );
- Slider1 = new QSlider( 0, 10, 1, 5, Horizontal, GroupC1, "Slider1" );
- Slider1->setMinimumSize( 300, 0 );
- Slider1->setTickmarks( QSlider::Left );
- GroupC1Layout->addMultiCellWidget( Slider1, 1, 1, 0, 2 );
+ mySlider = new QSlider( 0, 10, 1, 5, Horizontal, GroupC1, "mySlider" );
+ mySlider->setMinimumSize( 300, 0 );
+ mySlider->setTickmarks( QSlider::Left );
+ GroupC1Layout->addMultiCellWidget( mySlider, 1, 1, 0, 2 );
/*************************************************************************/
- GEOMBase_TransparencyDlgLayout->addWidget(GroupC1, 0, 0);
- GEOMBase_TransparencyDlgLayout->addWidget(GroupButtons, 1, 0);
-
- /* Initialisations */
- this->myGeomBase = new GEOMBase();
- this->myIc = ic;
- this->mySel = Sel;
-
+ lay->addWidget(GroupC1, 0, 0);
+ lay->addWidget(GroupButtons, 1, 0);
+
/* First call valueChanged() method for initialisation */
/* The default value of transparency will change with the selection */
- this->myFirstInit = true;
-// Slider1->setMaxValue( 10 );
-// Slider1->setValue( 5 ) ;
- this->ValueHasChanged(Slider1->value());
+ myFirstInit = true;
+ // mySlider->setMaxValue( 10 );
+ // mySlider->setValue( 5 ) ;
+ ValueHasChanged(mySlider->value());
// signals and slots connections : after ValueHasChanged()
connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
- connect(Slider1, SIGNAL(valueChanged(int)), this, SLOT(ValueHasChanged(int)));
-
- /* Move widget on the botton right corner of main widget */
- int x, y ;
- myGeomBase->DefineDlgPosition(this, x, y);
- this->move(x, y) ;
- this->show() ; /* Displays this Dialog */
+ connect(mySlider, SIGNAL(valueChanged(int)), this, SLOT(ValueHasChanged(int)));
}
// function : ~GEOMBase_TransparencyDlg()
// purpose :
//=================================================================================
-GEOMBase_TransparencyDlg::~GEOMBase_TransparencyDlg()
+GEOMToolsGUI_TransparencyDlg::~GEOMToolsGUI_TransparencyDlg()
{
// no need to delete child widgets, Qt does it all for us
}
// function : ClickOnOk()
// purpose :
//=======================================================================
-void GEOMBase_TransparencyDlg::ClickOnOk()
+void GEOMToolsGUI_TransparencyDlg::ClickOnOk()
{
accept();
return;
// function : ClickOnClose()
// purpose :
//=======================================================================
-void GEOMBase_TransparencyDlg::ClickOnClose()
+void GEOMToolsGUI_TransparencyDlg::ClickOnClose()
{
accept();
return;
// purpose : Called when value of slider change
// : or the first time as initilisation
//=================================================================================
-void GEOMBase_TransparencyDlg::ValueHasChanged(int newValue)
+void GEOMToolsGUI_TransparencyDlg::ValueHasChanged( int newValue )
{
- if(QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getTypeView() == VIEW_VTK) {
- // VTK
- VTKViewer_RenderWindowInteractor* myRenderInter= ((VTKViewer_ViewFrame*)QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getRightFrame()->getViewFrame())->getRWInteractor();
- SALOME_ListIteratorOfListIO It(this->mySel->StoredIObjects());
-
- Handle(SALOME_InteractiveObject) FirstIOS = mySel->firstIObject();
- if(!FirstIOS.IsNull()) {
- /* The first time as initialisation */
- if(this->myFirstInit) {
- this->myFirstInit = false;
- float transp = (myRenderInter->GetTransparency(FirstIOS))*10.0;
- this->Slider1->setValue(int(transp));
- return;
- }
+ SalomeApp_Application* app = dynamic_cast< SalomeApp_Application* >( SUIT_Session::session()->activeApplication() );
+ if ( !app )
+ return;
+ SalomeApp_SelectionMgr* aSelMgr = app->selectionMgr();
+ if ( !aSelMgr )
+ return;
+ SALOME_ListIO selected;
+ aSelMgr->selectedObjects( selected );
+ if ( selected.IsEmpty() )
+ return;
+
+ Handle(SALOME_InteractiveObject) FirstIOS = selected.First();
+ if ( FirstIOS.IsNull() )
+ return;
+
+ SUIT_ViewWindow* window = app->desktop()->activeWindow();
+ bool isOCC = ( window && window->getViewManager()->getType() == OCCViewer_Viewer::Type() );
+ bool isVTK = ( window && window->getViewManager()->getType() == VTKViewer_Viewer::Type() );
+
+ if ( isVTK ) {
+ SVTK_ViewWindow* vtkVW = dynamic_cast<SVTK_ViewWindow*>( window );
+ if ( !vtkVW )
+ return;
+ SVTK_RenderWindowInteractor* rwi = vtkVW->getRWInteractor();
+ if ( myFirstInit ) {
+ myFirstInit = false;
+ float transp = (rwi->GetTransparency(FirstIOS))*10.0;
+ mySlider->setValue(int(transp));
+ return;
}
-
- QApplication::setOverrideCursor(Qt::waitCursor);
- for(;It.More(); It.Next()) {
- Handle(SALOME_InteractiveObject) IOS = It.Value();
- myRenderInter->SetTransparency(IOS, newValue/10.0);
+
+ SUIT_OverrideCursor();
+ for ( SALOME_ListIteratorOfListIO It( selected ); It.More(); It.Next() ) {
+ rwi->SetTransparency( It.Value(), newValue/10.0 );
}
- myRenderInter->Render();
- QApplication::restoreOverrideCursor();
- }
-
- else if(QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getTypeView() == VIEW_OCC) {
- // OCC
- SALOME_ListIteratorOfListIO It(this->mySel->StoredIObjects());
- Handle(SALOME_InteractiveObject) FirstIOS = mySel->firstIObject();
- if(!FirstIOS.IsNull()) {
-
- /* The first time as initialisation */
- if(this->myFirstInit) {
- this->myFirstInit = false;
- Standard_Boolean found;
- Handle(GEOM_AISShape) Shape = myGeomBase->ConvertIOinGEOMAISShape(FirstIOS, found);
- if(!found)
- return;
- float transp = (int(Shape->Transparency() * 10.0 + 0.001));
- this->Slider1->setValue(int(transp));
+ rwi->Render();
+ } // if ( isVTK )
+
+ else if ( isOCC ) {
+ GEOMBase* gb = new GEOMBase();
+ Standard_Boolean found;
+ Handle(GEOM_AISShape) aisShape;
+ if ( myFirstInit ) {
+ myFirstInit = false;
+ aisShape = gb->ConvertIOinGEOMAISShape( FirstIOS, found );
+ if( !found )
return;
- }
+ float transp = (int(aisShape->Transparency() * 10.0 + 0.001));
+ mySlider->setValue(int(transp));
+ return;
}
-
- QApplication::setOverrideCursor(Qt::waitCursor);
- OCCViewer_Viewer3d* v3d = ((OCCViewer_ViewFrame*)QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getRightFrame()->getViewFrame())->getViewer();
- Handle (AIS_InteractiveContext) ic = v3d->getAISContext();
- for(;It.More(); It.Next()) {
- Handle(SALOME_InteractiveObject) IObject = It.Value();
- Standard_Boolean found;
- Handle(GEOM_AISShape) Shape = myGeomBase->ConvertIOinGEOMAISShape(IObject, found);
- if(!found) {
- QApplication::restoreOverrideCursor();
- return;
+
+ SUIT_OverrideCursor();
+ OCCViewer_Viewer* vm = dynamic_cast<OCCViewer_Viewer*>( window->getViewManager()->getViewModel() );
+ if ( !vm )
+ return;
+ Handle(AIS_InteractiveContext) ic = vm->getAISContext();
+ for ( SALOME_ListIteratorOfListIO It( selected ); It.More(); It.Next() ) {
+ aisShape = gb->ConvertIOinGEOMAISShape( It.Value(), found );
+ if ( found ) {
+ ic->SetTransparency( aisShape, newValue / 10.0, false );
+ ic->Redisplay( aisShape, Standard_False, Standard_True );
}
- ic->SetTransparency(Shape, newValue / 10.0, false);
- ic->Redisplay(Shape, Standard_False, Standard_True);
- }
+ } // for...
ic->UpdateCurrentViewer();
- }
- QApplication::restoreOverrideCursor();
- return;
+ } // if ( isOCC )
}
#ifndef DIALOGBOX_TRANSPARENCYDLG_H
#define DIALOGBOX_TRANSPARENCYDLG_H
-#include <qvariant.h>
#include <qdialog.h>
-/* #include "SALOME_Selection.h" */
-/* #include "SALOME_InteractiveObject.hxx" */
-/* #include "GEOM_InteractiveObject.hxx" */
-/* #include "GEOM_AISShape.hxx" */
-
-#include "GEOMBase.h"
-
-
-class QVBoxLayout;
-class QHBoxLayout;
-class QGridLayout;
-class QFrame;
-class QLabel;
-class QPushButton;
class QSlider;
-
-
//=================================================================================
// class : GEOMBase_TransparencyDlg
// purpose :
// : WARNING : that is a MODAL dialog.
//=================================================================================
-class GEOMBase_TransparencyDlg : public QDialog
+class GEOMToolsGUI_TransparencyDlg : public QDialog
{
Q_OBJECT
public:
- GEOMBase_TransparencyDlg( QWidget* parent = 0,
- const char* name = 0,
- SALOME_Selection* Sel = 0,
- const Handle(AIS_InteractiveContext)& ic = 0,
- bool modal = TRUE,
- WFlags fl = 0 );
-
- ~GEOMBase_TransparencyDlg();
+ GEOMToolsGUI_TransparencyDlg( QWidget* parent );
+ ~GEOMToolsGUI_TransparencyDlg();
private :
+ bool myFirstInit ; /* Inform for the first init */
+ QSlider* mySlider;
- GEOMBase* myGeomBase ; /* Current GeomGUI object */
- bool myFirstInit ; /* Inform for the first init */
- SALOME_Selection* mySel; /* User selection */
- Handle(AIS_InteractiveContext) myIc ; /* Interactive context */
-
- QPushButton* buttonOk;
- QLabel* TextLabelOpaque;
- QLabel* TextLabelTransparent;
- QSlider* Slider1;
-
-public slots:
-
- void ClickOnOk();
- void ClickOnClose();
- void ValueHasChanged( int newValue ) ;
+private slots:
+ void ClickOnOk();
+ void ClickOnClose();
+ void ValueHasChanged( int ) ;
-protected:
- QGridLayout* GEOMBase_TransparencyDlgLayout;
- QHBoxLayout* Layout1;
- QHBoxLayout* Layout2;
};
#endif // DIALOGBOX_TRANSPARENCYDLG_H
LIB_SRC = GEOMToolsGUI.cxx \
GEOMToolsGUI_1.cxx \
- GEOMToolsGUI_NbIsosDlg.cxx \
- GEOMToolsGUI_TransparencyDlg.cxx
+ GEOMToolsGUI_TransparencyDlg.cxx \
+ GEOMToolsGUI_NbIsosDlg.cxx
-LIB_MOC = \
- GEOMToolsGUI.h \
- GEOMToolsGUI_NbIsosDlg.h \
- GEOMToolsGUI_TransparencyDlg.h
+LIB_MOC = GEOMToolsGUI.h \
+ GEOMToolsGUI_TransparencyDlg.h \
+ GEOMToolsGUI_NbIsosDlg.h
-LIB_CLIENT_IDL = SALOMEDS_Attributes.idl SALOME_GenericObj.idl
+LIB_CLIENT_IDL = SALOMEDS_Attributes.idl \
+ SALOME_GenericObj.idl \
+ SALOME_Exception.idl \
+ SALOME_Component.idl
LIB_SERVER_IDL =
# additionnal information to compil and link file
-CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome
-CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome
+CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) $(BOOST_CPPFLAGS) -I$(KERNEL_ROOT_DIR)/include/salome -I$(GUI_ROOT_DIR)/include/salome
+CXXFLAGS += $(BOOST_CPPFLAGS) -I$(KERNEL_ROOT_DIR)/include/salome -I$(GUI_ROOT_DIR)/include/salome
-LDFLAGS += -lGEOMFiltersSelection -lGEOMBase
+LDFLAGS += -L$(KERNEL_ROOT_DIR)/lib/salome -L$(GUI_ROOT_DIR)/lib/salome -lGEOMBase -lVTKViewer -lOCCViewer -lsuit -lSalomeApp
@CONCLUDE@
-#include <strstream>
-
-using namespace std;
-
#include "GEOM_Gen_i.hh"
#include "GEOM_Object_i.hh"
-#include "SALOMEDS_Tool.hxx"
+
+#include <strstream>
#include "Utils_CorbaException.hxx"
#include "OpUtil.hxx"
#include <TColStd_HArray1OfInteger.hxx>
#include <TopAbs_ShapeEnum.hxx>
+#include "SALOMEDS_Tool.hxx"
+using namespace std;
+
//============================================================================
// function : GEOM_Gen_i()
// purpose : constructor to be called for servant creation.
* AddSubShape
*/
//=============================================================================
-GEOM::GEOM_Object_ptr GEOM_Gen_i::AddSubShape(GEOM::GEOM_Object_ptr theMainShape, const GEOM::ListOfLong& theIndices)
+GEOM::GEOM_Object_ptr GEOM_Gen_i::AddSubShape (GEOM::GEOM_Object_ptr theMainShape,
+ const GEOM::ListOfLong& theIndices)
{
if(theMainShape == NULL || theIndices.length() < 1) return GEOM::GEOM_Object::_nil();
Handle(GEOM_Object) aMainsShape = _impl->GetObject(theMainShape->GetStudyID(), theMainShape->GetEntry());
Handle(TColStd_HArray1OfInteger) anArray = new TColStd_HArray1OfInteger(1, theIndices.length());
for(Standard_Integer i = 0; i<theIndices.length(); i++) anArray->SetValue(i+1, theIndices[i]);
- Handle(GEOM_Object) anObject = _impl->AddSubShape(aMainsShape, anArray);
+ Handle(GEOM_Object) anObject = _impl->AddSubShape(aMainsShape, anArray, true);
if(anObject.IsNull()) return GEOM::GEOM_Object::_nil();
TCollection_AsciiString anEntry;
#include CORBA_SERVER_HEADER(SALOMEDS)
#include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
+
#include "SALOME_Component_i.hxx"
#include "SALOME_NamingService.hxx"
-#include <Standard_ErrorHandler.hxx> // CAREFUL ! position of this file is critic : see Lucien PIGNOLONI / OCC
+//#include <Standard_ErrorHandler.hxx> // CAREFUL ! position of this file is critic : see Lucien PIGNOLONI / OCC
#include "GEOM_IBasicOperations_i.hh"
#include "GEOM_ITransformOperations_i.hh"
#include "GEOM_IMeasureOperations_i.hh"
#include "GEOM_IGroupOperations_i.hh"
+
//=====================================================================
// GEOM_Gen_i : class definition
//=====================================================================
virtual GEOM::GEOM_Object_ptr GetIORFromString(const char* stringIOR);
+ virtual Engines::TMPFile* DumpPython(CORBA::Object_ptr theStudy,
+ CORBA::Boolean isPublished,
+ CORBA::Boolean& isValidScript);
+
+ char* GetDumpName (const char* theStudyEntry);
+
+ GEOM::string_array* GetAllDumpNames();
+
//********************************************************************************************************//
// Internal methods
//********************************************************************************************************//
//Set a not done flag
GetOperations()->SetNotDone();
-
+
//Create the Box
Handle(GEOM_Object) anObject = GetOperations()->MakeBoxDXDYDZ(theDX, theDY, theDZ);
if (!GetOperations()->IsDone() || anObject.IsNull())
return aGEOMObject._retn();
-
+
return GetObject(anObject);
}
#include "GEOM_Engine.hxx"
-#include "GEOM_Gen_i.hh"
+//#include "GEOM_Gen_i.hh"
#include <TCollection_AsciiString.hxx>
#include <TDF_Tool.hxx>
using namespace std;
#include "GEOM_Object_i.hh"
-#include "GEOM_Gen_i.hh"
+//#include "GEOM_Gen_i.hh"
#include "GEOM_ISubShape.hxx"
#include "GEOMImpl_Types.hxx"
//=============================================================================
char* GEOM_Object_i::GetStudyEntry()
{
- char* anEntry = _impl->GetAuxData();
- if(anEntry) return strdup(anEntry);
+ TCollection_AsciiString anEntry = _impl->GetAuxData();
+ if(!anEntry.IsEmpty()) return strdup(anEntry.ToCString());
return strdup("");
}
GEOM_ITransformOperations_i.cc \
GEOM_IMeasureOperations_i.cc \
GEOM_IGroupOperations_i.cc \
- GEOM_Gen_i.cc
+ GEOM_Gen_i.cc \
+ GEOM_DumpPython.cc
+
LIB_SERVER_IDL = SALOME_Component.idl SALOMEDS.idl SALOME_Exception.idl \
GEOM_Gen.idl SALOME_GenericObj.idl
GEOM_Gen_i.hh
# additionnal information to compil and link file
-CPPFLAGS += $(OCC_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome $(BOOST_CPPFLAGS)
-CXXFLAGS += $(OCC_CXXFLAGS) -I${KERNEL_ROOT_DIR}/include/salome
+CPPFLAGS += $(OCC_INCLUDES) $(BOOST_CPPFLAGS) -I${KERNEL_ROOT_DIR}/include/salome
+CXXFLAGS += $(OCC_INCLUDES) $(BOOST_CPPFLAGS) -I${KERNEL_ROOT_DIR}/include/salome
LDFLAGS += -lTOOLSDS -lSalomeNS -lSalomeContainer -lGEOMArchimede -lGEOMbasic -lGEOMimpl $(CAS_LDPATH) -lTKIGES -lTKSTEP -lTKFillet -lTKOffset -lGEOMSketcher -L${KERNEL_ROOT_DIR}/lib/salome -lSalomeGenericObj
# additional file to be cleaned
using namespace std;
#include "GEOM_Superv_i.hh"
+#include "SALOME_LifeCycleCORBA.hxx"
//=============================================================================
// constructor:
#include "GEOM_Gen_i.hh"
#include "GEOM_List_i.hh"
-#include "QAD_Study.h"
-#include "QAD_Application.h"
-#include "QAD_Desktop.h"
-
class GEOM_Superv_i : public virtual POA_GEOM::GEOM_Superv,
public Engines_Component_i
{
CPPFLAGS+=$(QT_INCLUDES) $(PYTHON_INCLUDES) $(OCC_INCLUDES) $(VTK_INCLUDES) $(OGL_INCLUDES) -DHAVE_CONFIG_H
LIBS+= $(PYTHON_LIBS)
-LDFLAGS+= -lGEOMGUI
+LDFLAGS+= -lGEOM
@CONCLUDE@
step = step + 1
time.sleep(4)
geom = g._narrow( GEOM.GEOM_Gen )
-myBuilder = myStudy.NewBuilder()
-father = myStudy.FindComponent("GEOM")
-if father is None:
+myBuilder = None
+myStudyId = 0
+father = None
+
+BasicOp = None
+CurvesOp = None
+PrimOp = None
+ShapesOp = None
+HealOp = None
+InsertOp = None
+BoolOp = None
+TrsfOp = None
+LocalOp = None
+MeasuOp = None
+BlocksOp = None
+GroupOp = None
+
+def init_geom(theStudy):
+
+ global myStudy, myBuilder, myStudyId, BasicOp, CurvesOp, PrimOp, ShapesOp, HealOp
+ global InsertOp, BoolOp, TrsfOp, LocalOp, MeasuOp, BlocksOp, GroupOp, father
+
+ myStudy = theStudy
+ myStudyId = myStudy._get_StudyId()
+ myBuilder = myStudy.NewBuilder()
+ father = myStudy.FindComponent("GEOM")
+ if father is None:
father = myBuilder.NewComponent("GEOM")
A1 = myBuilder.FindOrCreateAttribute(father, "AttributeName")
FName = A1._narrow(SALOMEDS.AttributeName)
aPixmap = A2._narrow(SALOMEDS.AttributePixMap)
aPixmap.SetPixMap("ICON_OBJBROWSER_Geometry")
myBuilder.DefineComponentInstance(father,geom)
+ pass
+
+ # -----------------------------------------------------------------------------
+ # Assign Operations Interfaces
+ # -----------------------------------------------------------------------------
+
+ BasicOp = geom.GetIBasicOperations (myStudyId)
+ CurvesOp = geom.GetICurvesOperations (myStudyId)
+ PrimOp = geom.GetI3DPrimOperations (myStudyId)
+ ShapesOp = geom.GetIShapesOperations (myStudyId)
+ HealOp = geom.GetIHealingOperations (myStudyId)
+ InsertOp = geom.GetIInsertOperations (myStudyId)
+ BoolOp = geom.GetIBooleanOperations (myStudyId)
+ TrsfOp = geom.GetITransformOperations(myStudyId)
+ LocalOp = geom.GetILocalOperations (myStudyId)
+ MeasuOp = geom.GetIMeasureOperations (myStudyId)
+ BlocksOp = geom.GetIBlocksOperations (myStudyId)
+ GroupOp = geom.GetIGroupOperations (myStudyId)
+ pass
+
+init_geom(myStudy)
# * Get name for sub-shape aSubObj of shape aMainObj
#
ShapeType = {"COMPOUND":0, "COMPSOLID":1, "SOLID":2, "SHELL":3, "FACE":4, "WIRE":5, "EDGE":6, "VERTEX":7, "SHAPE":8}
-# -----------------------------------------------------------------------------
-# Get Operations Interfaces
-# -----------------------------------------------------------------------------
-
-BasicOp = geom.GetIBasicOperations (myStudyId)
-CurvesOp = geom.GetICurvesOperations (myStudyId)
-PrimOp = geom.GetI3DPrimOperations (myStudyId)
-ShapesOp = geom.GetIShapesOperations (myStudyId)
-HealOp = geom.GetIHealingOperations (myStudyId)
-InsertOp = geom.GetIInsertOperations (myStudyId)
-BoolOp = geom.GetIBooleanOperations (myStudyId)
-TrsfOp = geom.GetITransformOperations(myStudyId)
-LocalOp = geom.GetILocalOperations (myStudyId)
-MeasuOp = geom.GetIMeasureOperations (myStudyId)
-BlocksOp = geom.GetIBlocksOperations (myStudyId)
-GroupOp = geom.GetIGroupOperations (myStudyId)
-
# -----------------------------------------------------------------------------
# Basic primitives
# -----------------------------------------------------------------------------
g = lcc.FindOrLoadComponent("FactoryServer", "GEOM")
geom = g._narrow( GEOM.GEOM_Gen )
-myBuilder = myStudy.NewBuilder()
-
-father = myStudy.FindComponent("GEOM")
-if father is None:
+gg = ImportComponentGUI("GEOM")
+
+#SRN: modified on Mar 18, 2005
+
+myBuilder = None
+myStudyId = 0
+father = None
+
+BasicOp = None
+CurvesOp = None
+PrimOp = None
+ShapesOp = None
+HealOp = None
+InsertOp = None
+BoolOp = None
+TrsfOp = None
+LocalOp = None
+MeasuOp = None
+BlocksOp = None
+GroupOp = None
+
+def init_geom(theStudy):
+
+ global myStudy, myBuilder, myStudyId, BasicOp, CurvesOp, PrimOp, ShapesOp, HealOp
+ global InsertOp, BoolOp, TrsfOp, LocalOp, MeasuOp, BlocksOp, GroupOp, father
+
+ myStudy = theStudy
+ myStudyId = myStudy._get_StudyId()
+ myBuilder = myStudy.NewBuilder()
+ father = myStudy.FindComponent("GEOM")
+ if father is None:
father = myBuilder.NewComponent("GEOM")
A1 = myBuilder.FindOrCreateAttribute(father, "AttributeName")
FName = A1._narrow(SALOMEDS.AttributeName)
aPixmap = A2._narrow(SALOMEDS.AttributePixMap)
aPixmap.SetPixMap("ICON_OBJBROWSER_Geometry")
myBuilder.DefineComponentInstance(father,geom)
-
-gg = ImportComponentGUI("GEOM")
+ pass
+
+ # -----------------------------------------------------------------------------
+ # Assign Operations Interfaces
+ # -----------------------------------------------------------------------------
+
+ BasicOp = geom.GetIBasicOperations (myStudyId)
+ CurvesOp = geom.GetICurvesOperations (myStudyId)
+ PrimOp = geom.GetI3DPrimOperations (myStudyId)
+ ShapesOp = geom.GetIShapesOperations (myStudyId)
+ HealOp = geom.GetIHealingOperations (myStudyId)
+ InsertOp = geom.GetIInsertOperations (myStudyId)
+ BoolOp = geom.GetIBooleanOperations (myStudyId)
+ TrsfOp = geom.GetITransformOperations(myStudyId)
+ LocalOp = geom.GetILocalOperations (myStudyId)
+ MeasuOp = geom.GetIMeasureOperations (myStudyId)
+ BlocksOp = geom.GetIBlocksOperations (myStudyId)
+ GroupOp = geom.GetIGroupOperations (myStudyId)
+ pass
+
+init_geom(myStudy)
+
+#SRN: end of modifications
def SubShapeName(aSubObj, aMainObj):
"""
ShapeType = {"COMPOUND":0, "COMPSOLID":1, "SOLID":2, "SHELL":3, "FACE":4, "WIRE":5, "EDGE":6, "VERTEX":7, "SHAPE":8}
-# -----------------------------------------------------------------------------
-# Get Operations Interfaces
-# -----------------------------------------------------------------------------
-
-BasicOp = geom.GetIBasicOperations (myStudyId)
-CurvesOp = geom.GetICurvesOperations (myStudyId)
-PrimOp = geom.GetI3DPrimOperations (myStudyId)
-ShapesOp = geom.GetIShapesOperations (myStudyId)
-HealOp = geom.GetIHealingOperations (myStudyId)
-InsertOp = geom.GetIInsertOperations (myStudyId)
-BoolOp = geom.GetIBooleanOperations (myStudyId)
-TrsfOp = geom.GetITransformOperations(myStudyId)
-LocalOp = geom.GetILocalOperations (myStudyId)
-MeasuOp = geom.GetIMeasureOperations (myStudyId)
-BlocksOp = geom.GetIBlocksOperations (myStudyId)
-GroupOp = geom.GetIGroupOperations (myStudyId)
-
# -----------------------------------------------------------------------------
# Basic primitives
# -----------------------------------------------------------------------------
using namespace std;
#include "GenerationGUI.h"
-#include "SALOMEGUI_QtCatchCorbaException.hxx"
-#include "QAD_Desktop.h"
+#include "SUIT_Session.h"
+#include "SUIT_Desktop.h"
#include "GenerationGUI_PrismDlg.h" // Method PRISM
#include "GenerationGUI_RevolDlg.h" // Method REVOL
// function : GetGenerationGUI()
// purpose : Get the only GenerationGUI object [ static ]
//=======================================================================
-GenerationGUI* GenerationGUI::GetGenerationGUI()
+GenerationGUI* GenerationGUI::GetGenerationGUI(GeometryGUI* parent)
{
if ( myGUIObject == 0 )
- myGUIObject = new GenerationGUI();
+ myGUIObject = new GenerationGUI(parent);
return myGUIObject;
}
// function : GenerationGUI()
// purpose : Constructor
//=======================================================================
-GenerationGUI::GenerationGUI() : GEOMGUI()
+GenerationGUI::GenerationGUI(GeometryGUI* parent) : GEOMGUI(parent)
{
}
// function : OnGUIEvent()
// purpose :
//=======================================================================
-bool GenerationGUI::OnGUIEvent( int theCommandID, QAD_Desktop* parent )
+bool GenerationGUI::OnGUIEvent( int theCommandID, SUIT_Desktop* parent )
{
- GeometryGUI::GetGeomGUI()->EmitSignalDeactivateDialog();
-
- SALOME_Selection* Sel = SALOME_Selection::Selection(
- QAD_Application::getDesktop()->getActiveStudy()->getSelection() );
+ getGeometryGUI()->EmitSignalDeactivateDialog();
QDialog* aDlg = NULL;
switch ( theCommandID )
- {
- case 4031: aDlg = new GenerationGUI_PrismDlg ( parent, "", Sel ); break;
- case 4032: aDlg = new GenerationGUI_RevolDlg ( parent, "", Sel ); break;
- case 4033: aDlg = new GenerationGUI_FillingDlg ( parent, "", Sel ); break;
- case 4034: aDlg = new GenerationGUI_PipeDlg ( parent, "", Sel ); break;
+ {
+ case 4031: aDlg = new GenerationGUI_PrismDlg ( getGeometryGUI(), parent, ""); break;
+ case 4032: aDlg = new GenerationGUI_RevolDlg ( getGeometryGUI(), parent, ""); break;
+ case 4033: aDlg = new GenerationGUI_FillingDlg ( getGeometryGUI(), parent, ""); break;
+ case 4034: aDlg = new GenerationGUI_PipeDlg ( parent, ""); break;
- default: parent->putInfo( tr( "GEOM_PRP_COMMAND" ).arg( theCommandID ) ); break;
+ default: SUIT_Session::session()->activeApplication()->putInfo( tr( "GEOM_PRP_COMMAND" ).arg( theCommandID ) ); break;
}
if ( aDlg != NULL )
//=====================================================================================
extern "C"
{
- GEOMGUI* GetLibGUI()
+ GEOMGUI* GetLibGUI(GeometryGUI* parent)
{
- return GenerationGUI::GetGenerationGUI();
+ return GenerationGUI::GetGenerationGUI(parent);
}
}
class GenerationGUI : public GEOMGUI
{
protected:
- GenerationGUI(); // hide constructor to avoid direct creation
+ GenerationGUI(GeometryGUI* parent); // hide constructor to avoid direct creation
public :
~GenerationGUI();
// Get the only GenerationGUI object
- static GenerationGUI* GetGenerationGUI();
+ static GenerationGUI* GetGenerationGUI(GeometryGUI* parent);
- bool OnGUIEvent( int theCommandID, QAD_Desktop* parent );
+ bool OnGUIEvent( int theCommandID, SUIT_Desktop* parent );
private:
static GenerationGUI* myGUIObject; // the only GenerationGUI object
#include "GenerationGUI_FillingDlg.h"
-#include "QAD_WaitCursor.h"
-#include "QAD_Config.h"
-#include "QAD_Desktop.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
#include <GeomFill_SectionGenerator.hxx>
#include <GeomFill_Line.hxx>
#include <Standard_ErrorHandler.hxx>
#include "GEOMImpl_Types.hxx"
+#include <qlabel.h>
+
#include "utilities.h"
//=================================================================================
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-GenerationGUI_FillingDlg::GenerationGUI_FillingDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+GenerationGUI_FillingDlg::GenerationGUI_FillingDlg(GeometryGUI* theGeometryGUI, QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_FILLING")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_FILLING")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_FILLING_TITLE"));
connect(GroupPoints->SpinBox_4, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
connect(GroupPoints->SpinBox_5, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_1, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_2, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_3, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_4, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_5, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_1, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_2, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_3, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_4, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_5, SLOT(SetStep(double)));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
initName(tr("GEOM_FILLING"));
}
erasePreview();
myEditCurrentArgument->setText("");
- if(mySelection->IObjectCount() != 1) {
+ if(IObjectCount() != 1) {
if(myEditCurrentArgument == GroupPoints->LineEdit1)
myOkCompound = false;
return;
// nbSel == 1
Standard_Boolean testResult = Standard_False;
- GEOM::GEOM_Object_ptr aSelectedObject = GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), testResult );
+ GEOM::GEOM_Object_ptr aSelectedObject = GEOMBase::ConvertIOinGEOMObject(firstIObject(), testResult );
if (!testResult)
return;
void GenerationGUI_FillingDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
globalSelection( GEOM_COMPOUND );
displayPreview();
}
Q_OBJECT
public:
- GenerationGUI_FillingDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ GenerationGUI_FillingDlg(GeometryGUI* theGeometryGUI, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~GenerationGUI_FillingDlg();
protected:
void Init();
void enterEvent(QEvent* e);
+ GeometryGUI* myGeometryGUI;
+
GEOM::GEOM_Object_var myCompound; /* compound of curves */
Standard_Integer myMinDeg;
Standard_Integer myMaxDeg;
#include "GenerationGUI_PipeDlg.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
+#include <qlabel.h>
+
#include <TopoDS_Edge.hxx>
#include <BRepBuilderAPI_MakeWire.hxx>
#include <BRepOffsetAPI_MakePipe.hxx>
#include "GEOMImpl_Types.hxx"
-#include "QAD_Desktop.h"
#include "utilities.h"
//=================================================================================
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-GenerationGUI_PipeDlg::GenerationGUI_PipeDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+GenerationGUI_PipeDlg::GenerationGUI_PipeDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_PIPE")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_PIPE")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_PIPE_TITLE"));
connect(GroupPoints->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
connect(GroupPoints->LineEdit2, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
initName(tr("GEOM_PIPE"));
erasePreview();
myEditCurrentArgument->setText("");
- if(mySelection->IObjectCount() != 1) {
+ if(IObjectCount() != 1) {
if(myEditCurrentArgument == GroupPoints->LineEdit1)
myOkBase = false;
else if(myEditCurrentArgument == GroupPoints->LineEdit2)
// nbSel == 1
Standard_Boolean testResult = Standard_False;
- GEOM::GEOM_Object_ptr aSelectedObject = GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), testResult );
+ GEOM::GEOM_Object_ptr aSelectedObject = GEOMBase::ConvertIOinGEOMObject(firstIObject(), testResult );
if (!testResult)
return;
{
GEOMBase_Skeleton::ActivateThisDialog();
globalSelection( GEOM_ALLSHAPES );
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
displayPreview();
}
Q_OBJECT
public:
- GenerationGUI_PipeDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ GenerationGUI_PipeDlg(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~GenerationGUI_PipeDlg();
protected:
#include "GenerationGUI_PrismDlg.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
#include <BRepPrimAPI_MakePrism.hxx>
#include <BRepAdaptor_Curve.hxx>
#include <gp_Lin.hxx>
-#include "QAD_Config.h"
-#include "QAD_Desktop.h"
#include "GEOMImpl_Types.hxx"
+#include <qlabel.h>
#include <qcheckbox.h>
#include "utilities.h"
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-GenerationGUI_PrismDlg::GenerationGUI_PrismDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+GenerationGUI_PrismDlg::GenerationGUI_PrismDlg(GeometryGUI* theGeometryGUI, QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu), myGeometryGUI(theGeometryGUI)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_PRISM")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_PRISM")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_PRISM_TITLE"));
myOkBase = myOkVec = false;
/* Get setting of step value from file configuration */
- QString St = QAD_CONFIG->getSetting("Geometry:SettingsGeomStep");
- double step = St.toDouble();
+ SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
+ double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
/* min, max, step and decimals for spin boxes & initial values */
GroupPoints->SpinBox_DX->RangeStepAndValidator(-999.999, +999.999, step, 3);
connect(GroupPoints->LineEdit2, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
connect(GroupPoints->SpinBox_DX, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox()));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DX, SLOT(SetStep(double)));
connect(GroupPoints->CheckButton2, SIGNAL(toggled(bool)), this, SLOT(onReverse()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
initName(tr("GEOM_PRISM"));
erasePreview();
myEditCurrentArgument->setText("");
- if(mySelection->IObjectCount() != 1)
+ if(IObjectCount() != 1)
{
if(myEditCurrentArgument == GroupPoints->LineEdit1)
myOkBase = false;
// nbSel == 1
Standard_Boolean testResult = Standard_False;
- GEOM::GEOM_Object_ptr aSelectedObject = GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), testResult );
+ GEOM::GEOM_Object_ptr aSelectedObject = GEOMBase::ConvertIOinGEOMObject( firstIObject(), testResult );
if (!testResult)
return;
{
GEOMBase_Skeleton::ActivateThisDialog();
globalSelection( GEOM_ALLSHAPES );
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
GroupPoints->LineEdit1->setFocus();
myEditCurrentArgument = GroupPoints->LineEdit1;
displayPreview();
Q_OBJECT
public:
- GenerationGUI_PrismDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ GenerationGUI_PrismDlg(GeometryGUI* theGeometryGUI, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~GenerationGUI_PrismDlg();
protected:
void Init();
void enterEvent(QEvent* e);
double getHeight() const;
+
+ GeometryGUI* myGeometryGUI;
GEOM::GEOM_Object_var myBase; /* Base shape */
GEOM::GEOM_Object_var myVec; /* Vector, defining the direction */
#include "GenerationGUI_RevolDlg.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
#include <gp_Lin.hxx>
#include <BRepAdaptor_Curve.hxx>
#include <BRepPrimAPI_MakeRevol.hxx>
-#include "QAD_Config.h"
-#include "QAD_Desktop.h"
#include <TopExp_Explorer.hxx>
#include <Standard_ErrorHandler.hxx>
#include "GEOMImpl_Types.hxx"
+#include <qlabel.h>
#include <qcheckbox.h>
#include "utilities.h"
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-GenerationGUI_RevolDlg::GenerationGUI_RevolDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+GenerationGUI_RevolDlg::GenerationGUI_RevolDlg(GeometryGUI* theGeometryGUI, QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu), myGeometryGUI(theGeometryGUI)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_REVOL")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_REVOL")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_REVOLUTION_TITLE"));
connect(GroupPoints->SpinBox_DX, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox()));
connect(GroupPoints->CheckButton2, SIGNAL(toggled(bool)), this, SLOT(onReverse()));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DX, SLOT(SetStep(double)));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
initName(tr("GEOM_REVOLUTION"));
erasePreview();
myEditCurrentArgument->setText("");
- if(mySelection->IObjectCount() != 1) {
+ if(IObjectCount() != 1) {
if(myEditCurrentArgument == GroupPoints->LineEdit1)
myOkBase = false;
else if(myEditCurrentArgument == GroupPoints->LineEdit2)
// nbSel == 1
Standard_Boolean testResult = Standard_False;
- GEOM::GEOM_Object_ptr aSelectedObject = GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), testResult );
+ GEOM::GEOM_Object_ptr aSelectedObject = GEOMBase::ConvertIOinGEOMObject( firstIObject(), testResult );
if (!testResult)
return;
{
GEOMBase_Skeleton::ActivateThisDialog();
globalSelection( GEOM_ALLSHAPES );
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
GroupPoints->LineEdit1->setFocus();
myEditCurrentArgument = GroupPoints->LineEdit1;
displayPreview();
Q_OBJECT
public:
- GenerationGUI_RevolDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ GenerationGUI_RevolDlg(GeometryGUI* theGeometryGUI, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~GenerationGUI_RevolDlg();
protected:
void enterEvent(QEvent* e);
double getAngle() const;
+ GeometryGUI* myGeometryGUI;
+
GEOM::GEOM_Object_var myBase; /* Base shape */
GEOM::GEOM_Object_var myAxis; /* Axis of the revolution */
bool myOkBase;
GenerationGUI_FillingDlg.h \
GenerationGUI_PipeDlg.h
-LIB_CLIENT_IDL = SALOME_GenericObj.idl SALOME_Component.idl
+LIB_CLIENT_IDL = SALOME_GenericObj.idl SALOME_Component.idl SALOME_Exception.idl
LIB_SERVER_IDL =
# additionnal information to compil and link file
-CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome
-CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome
+CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) $(BOOST_CPPFLAGS) -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
+CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
LDFLAGS += -lGEOMFiltersSelection -lGEOMBase $(CAS_LDPATH) -lTKOffset
#include "GEOMImpl_Types.hxx"
-#include "SALOMEGUI_QtCatchCorbaException.hxx"
-#include "QAD_Desktop.h"
-#include "QAD_MessageBox.h"
+#include "SUIT_Session.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_MessageBox.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_Study.h"
+#include "SalomeApp_SelectionMgr.h"
GroupGUI* GroupGUI::myGUIObject = 0;
// function : GetGroupGUI()
// purpose : Get the only GroupGUI object [ static ]
//=======================================================================
-GroupGUI* GroupGUI::GetGroupGUI()
+GroupGUI* GroupGUI::GetGroupGUI(GeometryGUI* parent)
{
if ( myGUIObject == 0 )
- myGUIObject = new GroupGUI();
+ myGUIObject = new GroupGUI(parent);
return myGUIObject;
}
// function : GroupGUI()
// purpose : Constructor
//=======================================================================
-GroupGUI::GroupGUI()
-: GEOMGUI()
+GroupGUI::GroupGUI(GeometryGUI* parent)
+: GEOMGUI(parent)
{
}
// function : OnGUIEvent()
// purpose :
//=======================================================================
-bool GroupGUI::OnGUIEvent( int theCommandID, QAD_Desktop* parent )
+bool GroupGUI::OnGUIEvent( int theCommandID, SUIT_Desktop* parent )
{
- GeometryGUI::GetGeomGUI()->EmitSignalDeactivateDialog();
+ getGeometryGUI()->EmitSignalDeactivateDialog();
- SALOME_Selection* Sel = SALOME_Selection::Selection(
- QAD_Application::getDesktop()->getActiveStudy()->getSelection() );
-
QDialog* aDlg = NULL;
- if ( QAD_Application::getDesktop()->getActiveStudy()->isLocked() ) {
- QAD_MessageBox::warn1 ( QAD_Application::getDesktop(),
- QObject::tr("WRN_WARNING"),
- QObject::tr("WRN_STUDY_LOCKED"),
- QObject::tr("BUT_OK") );
+ SalomeApp_Study* appStudy = dynamic_cast<SalomeApp_Study*>( SUIT_Session::session()->activeApplication()->activeStudy() );
+ if ( !appStudy ) return false;
+ _PTR(Study) aStudy = appStudy->studyDS();
+
+ if ( aStudy->GetProperties()->IsLocked() ) {
+ SUIT_MessageBox::warn1 ( parent,
+ QObject::tr("WRN_WARNING"),
+ QObject::tr("WRN_STUDY_LOCKED"),
+ QObject::tr("BUT_OK") );
return false;
}
switch ( theCommandID ) {
case 800:
- aDlg = new GroupGUI_GroupDlg( GroupGUI_GroupDlg::CreateGroup, parent, "", Sel );
+ aDlg = new GroupGUI_GroupDlg( GroupGUI_GroupDlg::CreateGroup, parent, "");
break;
case 801:
{
- if ( Sel->IObjectCount() == 1 ) {
+ SALOME_ListIO aList;
+ aList.Clear();
+
+ SalomeApp_Application* app = dynamic_cast< SalomeApp_Application* >( SUIT_Session::session()->activeApplication() );
+ if ( app ) {
+ SalomeApp_SelectionMgr* aSelMgr = app->selectionMgr();
+ if ( aSelMgr )
+ aSelMgr->selectedObjects( aList );
+ }
+
+ if ( aList.Extent() == 1 ) {
Standard_Boolean aResult = Standard_False;
GEOM::GEOM_Object_var anObj =
- GEOMBase::ConvertIOinGEOMObject( Sel->firstIObject(), aResult );
+ GEOMBase::ConvertIOinGEOMObject( aList.First(), aResult );
if ( aResult && !CORBA::is_nil( anObj ) && anObj->GetType() == GEOM_GROUP ) {
- aDlg = new GroupGUI_GroupDlg( GroupGUI_GroupDlg::EditGroup, parent, "", Sel );
+ aDlg = new GroupGUI_GroupDlg( GroupGUI_GroupDlg::EditGroup, parent, "" );
break;
}
}
- QAD_MessageBox::warn1 ( QAD_Application::getDesktop(),
- tr("WRN_WARNING"),
- tr("NO_GROUP"),
- tr("BUT_OK") );
+ SUIT_MessageBox::warn1 ( parent,
+ tr("WRN_WARNING"),
+ tr("NO_GROUP"),
+ tr("BUT_OK") );
break;
}
default:
- parent->putInfo( tr( "GEOM_PRP_COMMAND" ).arg( theCommandID ) );
+ SUIT_Session::session()->activeApplication()->putInfo( tr( "GEOM_PRP_COMMAND" ).arg( theCommandID ) );
break;
}
//=====================================================================================
extern "C"
{
- GEOMGUI* GetLibGUI()
+ GEOMGUI* GetLibGUI(GeometryGUI* p)
{
- return GroupGUI::GetGroupGUI();
+ return GroupGUI::GetGroupGUI(p);
}
}
Q_OBJECT
protected:
- GroupGUI(); // hide constructor to avoid direct creation
+ GroupGUI(GeometryGUI* parent); // hide constructor to avoid direct creation
public :
~GroupGUI();
// Get the only GroupGUI object
- static GroupGUI* GetGroupGUI();
+ static GroupGUI* GetGroupGUI(GeometryGUI* parent);
- bool OnGUIEvent( int theCommandID, QAD_Desktop* parent );
+ bool OnGUIEvent( int theCommandID, SUIT_Desktop* parent );
private:
static GroupGUI* myGUIObject; // the only GroupGUI object
#include "GroupGUI_GroupDlg.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_Study.h"
+#include "SalomeApp_SelectionMgr.h"
+
#include "GEOMBase.h"
#include "GEOMImpl_Types.hxx"
-#include "QAD_Desktop.h"
-
#include <qlabel.h>
#include <qlistbox.h>
#include <qlineedit.h>
#include <TColStd_IndexedMapOfInteger.hxx>
#include <TColStd_MapOfInteger.hxx>
+
+
+
GroupGUI_GroupDlg::GroupGUI_GroupDlg(Mode mode,
QWidget* parent,
const char* name,
- SALOME_Selection* Sel,
bool modal,
WFlags fl)
- :GEOMBase_Skeleton( parent, "GroupGUI_GroupDlg", Sel, false,
- WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu),
+ :GEOMBase_Skeleton( parent, "GroupGUI_GroupDlg", false,
+ WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu),
myMode( mode ),
myBusy( false )
{
- QPixmap image0( QAD_Desktop::getResourceManager()->loadPixmap( "GEOM", tr( "ICON_OBJBROWSER_VERTEX" ) ) );
- QPixmap image1( QAD_Desktop::getResourceManager()->loadPixmap( "GEOM", tr( "ICON_OBJBROWSER_EDGE" ) ) );
- QPixmap image2( QAD_Desktop::getResourceManager()->loadPixmap( "GEOM", tr( "ICON_OBJBROWSER_FACE" ) ) );
- QPixmap image3( QAD_Desktop::getResourceManager()->loadPixmap( "GEOM", tr( "ICON_OBJBROWSER_SOLID" ) ) );
+ QPixmap image0( SUIT_Session::session()->resourceMgr()->loadPixmap( "GEOM", tr( "ICON_OBJBROWSER_VERTEX" ) ) );
+ QPixmap image1( SUIT_Session::session()->resourceMgr()->loadPixmap( "GEOM", tr( "ICON_OBJBROWSER_EDGE" ) ) );
+ QPixmap image2( SUIT_Session::session()->resourceMgr()->loadPixmap( "GEOM", tr( "ICON_OBJBROWSER_FACE" ) ) );
+ QPixmap image3( SUIT_Session::session()->resourceMgr()->loadPixmap( "GEOM", tr( "ICON_OBJBROWSER_SOLID" ) ) );
- QPixmap iconSelect( QAD_Desktop::getResourceManager()->loadPixmap( "GEOM", tr( "ICON_SELECT" ) ) );
+ QPixmap iconSelect( SUIT_Session::session()->resourceMgr()->loadPixmap( "GEOM", tr( "ICON_SELECT" ) ) );
setCaption( myMode == CreateGroup ? tr( "CREATE_GROUP_TITLE" ) : tr( "EDIT_GROUP_TITLE" ) );
aMedLayout->addWidget( myAddBtn, 2, 3 );
aMedLayout->addWidget( myRemBtn, 3, 3 );
- Init( Sel );
+ Init();
}
GroupGUI_GroupDlg::~GroupGUI_GroupDlg()
// function : Init()
// purpose :
//=================================================================================
-void GroupGUI_GroupDlg::Init( SALOME_Selection* Sel )
+void GroupGUI_GroupDlg::Init()
{
- mySelection = Sel;
-
// san -- TODO: clear selected sub-shapes...
if ( myMode == CreateGroup ) {
connect( GroupConstructors, SIGNAL( clicked( int ) ), this, SLOT( ConstructorsClicked( int ) ) );
connect( mySelBtn, SIGNAL( clicked() ), this, SLOT(SetEditCurrentArgument()));
}
- else if ( myMode == EditGroup && Sel->IObjectCount() ) {
+ else if ( myMode == EditGroup && IObjectCount() ) {
Standard_Boolean aResult = Standard_False;
GEOM::GEOM_Object_var anObj =
- GEOMBase::ConvertIOinGEOMObject( Sel->firstIObject(), aResult );
+ GEOMBase::ConvertIOinGEOMObject( firstIObject(), aResult );
if ( aResult && !CORBA::is_nil( anObj ) && anObj->GetType() == GEOM_GROUP ) {
myGroup = anObj;
connect( mySelSubBtn, SIGNAL( clicked() ), this, SLOT( SetEditCurrentArgument() ) );
connect( mySelAllBtn, SIGNAL( clicked() ), this, SLOT( SetEditCurrentArgument() ) );
- connect( mySelection,SIGNAL( currentSelectionChanged() ), this, SLOT( SelectionIntoArgument() ) );
+ connect( ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL( currentSelectionChanged() ), this, SLOT( SelectionIntoArgument() ) );
connect( mySelAllBtn, SIGNAL( clicked() ), this, SLOT( selectAllSubShapes() ) );
connect( myAddBtn, SIGNAL( clicked() ), this, SLOT( add() ) );
connect( myRemBtn, SIGNAL( clicked() ), this, SLOT( remove() ) );
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect( mySelection, SIGNAL( currentSelectionChanged() ), this, SLOT( SelectionIntoArgument() ) );
+ connect( ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL( currentSelectionChanged() ), this, SLOT( SelectionIntoArgument() ) );
activateSelection();
}
if ( myEditCurrentArgument ) { // Selection of a main shape is active
myEditCurrentArgument->setText( "" );
- if ( mySelection->IObjectCount() == 1 ) {
+ if ( IObjectCount() == 1 ) {
Standard_Boolean aResult = Standard_False;
GEOM::GEOM_Object_var anObj =
- GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), aResult );
+ GEOMBase::ConvertIOinGEOMObject( firstIObject(), aResult );
if ( aResult && !anObj->_is_nil() && GEOMBase::IsShape( anObj ) ) {
myMainObj = anObj;
myIdList->blockSignals( true );
myIdList->clearSelection();
- if ( mySelection->IObjectCount() == 1 ) {
+ if ( IObjectCount() == 1 ) {
Standard_Boolean aResult = Standard_False;
GEOM::GEOM_Object_var anObj =
- GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), aResult );
+ GEOMBase::ConvertIOinGEOMObject( firstIObject(), aResult );
if ( aResult && !anObj->_is_nil() ) {
QMap<int, int> aMap;
aMap.insert( myIdList->item( i )->text().toInt(), i );
TColStd_IndexedMapOfInteger aMapIndex;
- mySelection->GetIndex( mySelection->firstIObject(), aMapIndex );
+ ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr()->GetIndexes( firstIObject(), aMapIndex );
for ( int ii = 1, nn = aMapIndex.Extent(); ii <= nn; ii++ ) {
if ( aMap.contains( aMapIndex( ii ) ) )
myIdList->setSelected( aMap[aMapIndex( ii )], true );
for ( int i = 0, n = myIdList->count(); i < n; i++ )
aMap.Add( myIdList->item( i )->text().toInt() );
- if ( mySelection->IObjectCount() == 1 ) {
+ if ( IObjectCount() == 1 ) {
Standard_Boolean aResult = Standard_False;
GEOM::GEOM_Object_var anObj =
- GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), aResult );
+ GEOMBase::ConvertIOinGEOMObject( firstIObject(), aResult );
if ( aResult && !anObj->_is_nil() ) {
TColStd_IndexedMapOfInteger aMapIndex;
- mySelection->GetIndex( mySelection->firstIObject(), aMapIndex );
+ ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr()->GetIndexes( firstIObject(), aMapIndex );
QListBoxItem* anItem;
bool isBlocked = myIdList->signalsBlocked();
myIdList->blockSignals( true );
void GroupGUI_GroupDlg::updateState()
{
bool isAdd = false;
- if ( mySelection->IObjectCount() == 1 ) {
+ if ( IObjectCount() == 1 ) {
Standard_Boolean aResult = Standard_False;
GEOM::GEOM_Object_var anObj =
- GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), aResult );
+ GEOMBase::ConvertIOinGEOMObject( firstIObject(), aResult );
if ( aResult && !anObj->_is_nil() ) {
TColStd_IndexedMapOfInteger aMapIndex;
- mySelection->GetIndex( mySelection->firstIObject(), aMapIndex );
+ ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr()->GetIndexes( firstIObject(), aMapIndex );
isAdd = aMapIndex.Extent() > 0;
}
}
if ( myIdList->isSelected( ii ) )
anIds.Add( myIdList->item( ii )->text().toInt() );
- mySelection->ClearIObjects();
- mySelection->AddOrRemoveIndex( aSh->getIO(), anIds, false, true );
+ SalomeApp_SelectionMgr* aSelMgr = ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr();
+ aSelMgr->clearSelected();
+ aSelMgr->AddOrRemoveIndex( aSh->getIO(), anIds, false );
myBusy = false;
//=================================================================================
bool GroupGUI_GroupDlg::isValid( QString& theMessage )
{
- QAD_Study* study = getStudy();
+ SalomeApp_Study* study = getStudy();
ASSERT(study);
- RETURN_WITH_MSG ( !study->getStudyDocument()->GetProperties()->IsLocked(), tr( "GEOM_STUDY_LOCKED" ) )
+ RETURN_WITH_MSG ( !study->studyDS()->GetProperties()->IsLocked(), tr( "GEOM_STUDY_LOCKED" ) )
if ( myMode == CreateGroup ) {
RETURN_WITH_MSG( !CORBA::is_nil( myMainObj ), tr( "NO_MAIN_OBJ" ) )
return false;
}
- QAD_Study* study = getStudy();
+ SalomeApp_Study* study = getStudy();
if ( study ) {
string IOR = GEOMBase::GetIORFromObject( aGroup );
if ( IOR != "" ) {
- SALOMEDS::SObject_var SO = study->getStudyDocument()->FindObjectIOR( IOR.c_str() );
- if ( !SO->_is_nil() ) {
- SALOMEDS::StudyBuilder_var aBuilder = study->getStudyDocument()->NewBuilder();
+ _PTR(SObject) SO ( study->studyDS()->FindObjectIOR( IOR ) );
+ if ( SO ) {
+ _PTR(StudyBuilder) aBuilder (study->studyDS()->NewBuilder());
aBuilder->SetName( SO, getNewObjectName() );
}
}
EditGroup
} Mode;
- GroupGUI_GroupDlg(Mode mode, QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ GroupGUI_GroupDlg(Mode mode, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~GroupGUI_GroupDlg();
protected:
void selectionChanged();
private:
- void Init( SALOME_Selection* );
+ void Init();
void enterEvent( QEvent* e );
int getConstructorId() const;
TopAbs_ShapeEnum getShapeType() const;
LIB_MOC = GroupGUI.h \
GroupGUI_GroupDlg.h
-LIB_CLIENT_IDL = SALOME_GenericObj.idl SALOME_Component.idl
+LIB_CLIENT_IDL = SALOME_GenericObj.idl SALOME_Component.idl SALOME_Exception.idl
LIB_SERVER_IDL =
# additionnal information to compil and link file
-CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome
-CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome
+CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) $(BOOST_CPPFLAGS) -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
+CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
LDFLAGS += -lGEOMFiltersSelection -lGEOMBase
@COMMENCE@
-SUBDIRS = OBJECT ARCHIMEDE NMTDS NMTTools NMTAlgo GEOMAlgo SKETCHER GEOM BREPExport BREPImport IGESExport IGESImport STEPExport STEPImport ShHealOper GEOMImpl GEOM_I GEOMClient DlgRef GEOMFiltersSelection GEOMGUI GEOMBase DisplayGUI GEOMToolsGUI BasicGUI PrimitiveGUI GenerationGUI EntityGUI BuildGUI BooleanGUI TransformationGUI OperationGUI RepairGUI MeasureGUI GroupGUI BlocksGUI GEOM_SWIG GEOM_I_Superv
+SUBDIRS = OBJECT ARCHIMEDE NMTDS NMTTools NMTAlgo GEOMAlgo SKETCHER GEOM BREPExport BREPImport IGESExport IGESImport STEPExport STEPImport ShHealOper GEOMImpl GEOM_I GEOMClient DlgRef GEOMFiltersSelection GEOMGUI GEOMBase GEOMToolsGUI DisplayGUI BasicGUI PrimitiveGUI GenerationGUI EntityGUI BuildGUI BooleanGUI TransformationGUI OperationGUI RepairGUI MeasureGUI GroupGUI BlocksGUI GEOM_I_Superv GEOM_SWIG
@MODULE@
MeasureGUI_CheckCompoundOfBlocksDlg.h \
MeasureGUI_PointDlg.h
-LIB_CLIENT_IDL = SALOME_GenericObj.idl SALOME_Component.idl
+LIB_CLIENT_IDL = SALOME_Exception.idl SALOME_GenericObj.idl SALOME_Component.idl
LIB_SERVER_IDL =
# additionnal information to compil and link file
-CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome
-CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome
+CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) $(BOOST_CPPFLAGS) -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
+CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
LDFLAGS += -lGEOMBase
// $Header$
#include "MeasureGUI.h"
-#include "QAD_Desktop.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
-#include "SALOMEGUI_QtCatchCorbaException.hxx"
+#include "SalomeApp_Tools.h"
#include "MeasureGUI_PropertiesDlg.h" // Method PROPERTIES
#include "MeasureGUI_CenterMassDlg.h" // Method CENTER MASS
// function : GetMeasureGUI()
// purpose : Get the only MeasureGUI object [ static ]
//=======================================================================
-MeasureGUI* MeasureGUI::GetMeasureGUI()
+MeasureGUI* MeasureGUI::GetMeasureGUI( GeometryGUI* parent )
{
if ( myGUIObject == 0 ) {
// init MeasureGUI only once
- myGUIObject = new MeasureGUI();
+ myGUIObject = new MeasureGUI( parent );
}
return myGUIObject;
}
// function : MeasureGUI()
// purpose : Constructor
//=======================================================================
-MeasureGUI::MeasureGUI() : GEOMGUI()
+MeasureGUI::MeasureGUI( GeometryGUI* parent ) : GEOMGUI( parent )
{
}
// function : OnGUIEvent()
// purpose :
//=======================================================================
-bool MeasureGUI::OnGUIEvent( int theCommandID, QAD_Desktop* parent )
+bool MeasureGUI::OnGUIEvent( int theCommandID, SUIT_Desktop* parent )
{
- MeasureGUI* myMeasureGUI = GetMeasureGUI();
- GeometryGUI::GetGeomGUI()->EmitSignalDeactivateDialog();
- SALOME_Selection* Sel = SALOME_Selection::Selection(
- QAD_Application::getDesktop()->getActiveStudy()->getSelection() );
+ MeasureGUI* myMeasureGUI = GetMeasureGUI( getGeometryGUI() );
+ getGeometryGUI()->EmitSignalDeactivateDialog();
switch ( theCommandID )
{
- case 701 : new MeasureGUI_PropertiesDlg ( parent, Sel ); break; // LENGTH, AREA AND VOLUME
- case 702 : new MeasureGUI_CenterMassDlg ( parent, Sel ); break; // CENTER MASS
- case 703 : new MeasureGUI_InertiaDlg ( parent, Sel ); break; // INERTIA
- case 7041 : new MeasureGUI_BndBoxDlg ( parent, Sel ); break; // BOUNDING BOX
- case 7042 : new MeasureGUI_DistanceDlg ( parent, Sel ); break; // MIN DISTANCE
- case 705 : new MeasureGUI_MaxToleranceDlg( parent, Sel ); break; // MAXTOLERANCE
- case 706 : new MeasureGUI_WhatisDlg ( parent, Sel ); break; // WHATIS
- case 707 : new MeasureGUI_CheckShapeDlg ( parent, Sel ); break; // CHECKSHAPE
- case 7072 : new MeasureGUI_CheckCompoundOfBlocksDlg ( parent, Sel ); break; // CHECKCOMPOUND
- case 708 : new MeasureGUI_PointDlg ( parent, Sel ); break; // POINT COORDINATES
+ case 701 : new MeasureGUI_PropertiesDlg ( getGeometryGUI(), parent ); break; // LENGTH, AREA AND VOLUME
+ case 702 : new MeasureGUI_CenterMassDlg ( parent ); break; // CENTER MASS
+ case 703 : new MeasureGUI_InertiaDlg ( getGeometryGUI(), parent ); break; // INERTIA
+ case 7041 : new MeasureGUI_BndBoxDlg ( getGeometryGUI(), parent ); break; // BOUNDING BOX
+ case 7042 : new MeasureGUI_DistanceDlg ( getGeometryGUI(), parent ); break; // MIN DISTANCE
+ case 705 : new MeasureGUI_MaxToleranceDlg( getGeometryGUI(), parent ); break; // MAXTOLERANCE
+ case 706 : new MeasureGUI_WhatisDlg ( getGeometryGUI(), parent ); break; // WHATIS
+ case 707 : new MeasureGUI_CheckShapeDlg ( getGeometryGUI(), parent ); break; // CHECKSHAPE
+ case 7072 : new MeasureGUI_CheckCompoundOfBlocksDlg ( getGeometryGUI(), parent ); break; // CHECKCOMPOUND
+ case 708 : new MeasureGUI_PointDlg ( getGeometryGUI(), parent ); break; // POINT COORDINATES
- default: parent->putInfo( tr( "GEOM_PRP_COMMAND" ).arg( theCommandID ) ); break;
+ default:
+ SUIT_Session::session()->activeApplication()->putInfo( tr( "GEOM_PRP_COMMAND" ).arg( theCommandID ) );
+ break;
}
return true;
}
QAD_Application::getDesktop()->putInfo(tr("GEOM_PRP_DONE"));
}
catch(const SALOME::SALOME_Exception& S_ex) {
- QtCatchCorbaException(S_ex);
+ SalomeApp_Tools::QtCatchCorbaException(S_ex);
}
return;
//=====================================================================================
extern "C"
{
- GEOMGUI* GetLibGUI()
+ GEOMGUI* GetLibGUI( GeometryGUI* parent )
{
- return MeasureGUI::GetMeasureGUI();
+ return MeasureGUI::GetMeasureGUI( parent );
}
}
class MeasureGUI : public GEOMGUI
{
protected:
- MeasureGUI();
+ MeasureGUI( GeometryGUI* parent );
public :
~MeasureGUI();
- static MeasureGUI* GetMeasureGUI();
- bool OnGUIEvent( int , QAD_Desktop* );
+ static MeasureGUI* GetMeasureGUI( GeometryGUI* parent );
+ bool OnGUIEvent( int , SUIT_Desktop* );
private:
static MeasureGUI* myGUIObject;
#include "MeasureGUI_BndBoxDlg.h"
#include "MeasureGUI_1Sel6LineEdit_QTD.h"
-#include "SALOMEGUI_QtCatchCorbaException.hxx"
#include "GEOMBase.h"
#include "GEOM_Displayer.h"
#include <BRepPrimAPI_MakeBox.hxx>
#include "utilities.h"
-#include "QAD_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Tools.h"
#include <qlineedit.h>
+#include <qlabel.h>
#include <qlayout.h>
#include <qpushbutton.h>
#include <qradiobutton.h>
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-MeasureGUI_BndBoxDlg::MeasureGUI_BndBoxDlg( QWidget* parent, SALOME_Selection* Sel )
-: MeasureGUI_Skeleton( parent, "MeasureGUI_PropertiesDlg", Sel )
+MeasureGUI_BndBoxDlg::MeasureGUI_BndBoxDlg( GeometryGUI* GUI, QWidget* parent )
+: MeasureGUI_Skeleton( GUI, parent, "MeasureGUI_PropertiesDlg" )
{
- QPixmap image0( QAD_Desktop::getResourceManager()->loadPixmap(
+ QPixmap image0( SUIT_Session::session()->resourceMgr()->loadPixmap(
"GEOM",tr( "ICON_DLG_BOUNDING_BOX" ) ) );
- QPixmap image1( QAD_Desktop::getResourceManager()->loadPixmap(
+ QPixmap image1( SUIT_Session::session()->resourceMgr()->loadPixmap(
"GEOM",tr( "ICON_SELECT" ) ) );
setCaption( tr( "GEOM_BNDBOX_TITLE" ) );
/***************************************************************/
/* Initialisation */
- Init( Sel );
+ Init();
}
// function : Init()
// purpose :
//=================================================================================
-void MeasureGUI_BndBoxDlg::Init( SALOME_Selection* Sel )
+void MeasureGUI_BndBoxDlg::Init()
{
mySelBtn = myGrp->PushButton1;
mySelEdit = myGrp->LineEdit1;
- MeasureGUI_Skeleton::Init( Sel );
+ MeasureGUI_Skeleton::Init();
}
//=================================================================================
}
catch( const SALOME::SALOME_Exception& e )
{
- QtCatchCorbaException( e );
+ SalomeApp_Tools::QtCatchCorbaException( e );
return false;
}
Q_OBJECT
public:
- MeasureGUI_BndBoxDlg( QWidget* parent,
- SALOME_Selection* Sel );
+ MeasureGUI_BndBoxDlg( GeometryGUI* GUI,
+ QWidget* parent );
~MeasureGUI_BndBoxDlg();
protected:
private:
- void Init( SALOME_Selection* Sel );
+ void Init();
bool getParameters( double& Xmin, double& Xmax,
double& Ymin, double& Ymax,
double& Zmin, double& Zmax );
#include "MeasureGUI_CenterMassDlg.h"
#include "MeasureGUI_1Sel3LineEdit_QTD.h"
-#include "SALOMEGUI_QtCatchCorbaException.hxx"
+
#include "utilities.h"
-#include "QAD_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+#include "SalomeApp_Tools.h"
#include <BRep_Tool.hxx>
#include <TopoDS_Vertex.hxx>
#include <TopoDS.hxx>
#include <gp_Pnt.hxx>
+#include <qlabel.h>
+
//=================================================================================
// class : MeasureGUI_CenterMassDlg()
// purpose : Constructs a MeasureGUI_CenterMassDlg which is a child of 'parent', with the
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-MeasureGUI_CenterMassDlg::MeasureGUI_CenterMassDlg( QWidget* parent, SALOME_Selection* Sel )
-: GEOMBase_Skeleton( parent, "MeasureGUI_CenterMassDlg", Sel, false,
+MeasureGUI_CenterMassDlg::MeasureGUI_CenterMassDlg( QWidget* parent )
+: GEOMBase_Skeleton( parent, "MeasureGUI_CenterMassDlg", false,
WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
- QPixmap image0( QAD_Desktop::getResourceManager()->loadPixmap( "GEOM",tr( "ICON_DLG_CENTERMASS" ) ) );
- QPixmap image1( QAD_Desktop::getResourceManager()->loadPixmap( "GEOM",tr( "ICON_SELECT" ) ) );
+ QPixmap image0( SUIT_Session::session()->resourceMgr()->loadPixmap( "GEOM",tr( "ICON_DLG_CENTERMASS" ) ) );
+ QPixmap image1( SUIT_Session::session()->resourceMgr()->loadPixmap( "GEOM",tr( "ICON_SELECT" ) ) );
setCaption( tr( "GEOM_CMASS_TITLE" ) );
/***************************************************************/
/* Initialisation */
- Init( Sel );
+ Init();
}
// function : Init()
// purpose :
//=================================================================================
-void MeasureGUI_CenterMassDlg::Init( SALOME_Selection* Sel )
+void MeasureGUI_CenterMassDlg::Init()
{
/* init variables */
- mySelection = Sel;
myEditCurrentArgument = myGrp->LineEdit1;
/* signals and slots connections */
connect( myGrp->LineEdit1, SIGNAL( returnPressed() ), this, SLOT( LineEditReturnPressed() ) );
connect( myGrp->PushButton1, SIGNAL( clicked() ), this, SLOT( SetEditCurrentArgument() ) );
- connect( mySelection, SIGNAL( currentSelectionChanged() ), this, SLOT( SelectionIntoArgument() ) );
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
initName( tr( "GEOM_POINT") );
globalSelection();
erasePreview();
myObj = GEOM::GEOM_Object::_nil();
- if ( mySelection->IObjectCount() != 1 )
+ if ( IObjectCount() != 1 )
{
processObject();
return;
Standard_Boolean testResult = Standard_False;
GEOM::GEOM_Object_var aSelectedObject =
- GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), testResult );
+ GEOMBase::ConvertIOinGEOMObject( firstIObject(), testResult );
if ( !testResult || aSelectedObject->_is_nil() )
{
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect( mySelection, SIGNAL( currentSelectionChanged() ),
- this, SLOT ( SelectionIntoArgument() ) );
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
globalSelection();
displayPreview();
}
catch( const SALOME::SALOME_Exception& e )
{
- QtCatchCorbaException( e );
+ SalomeApp_Tools::QtCatchCorbaException( e );
return false;
}
}
Q_OBJECT
public:
- MeasureGUI_CenterMassDlg( QWidget* parent,
- SALOME_Selection* Sel );
+ MeasureGUI_CenterMassDlg( QWidget* parent );
~MeasureGUI_CenterMassDlg();
protected:
private:
- void Init( SALOME_Selection* );
+ void Init( );
void enterEvent( QEvent* e );
void processObject();
bool getParameters( double&, double&, double& );
#include "MeasureGUI_CheckCompoundOfBlocksDlg.h"
#include "MeasureGUI_1Sel1TextView_QTD.h"
-#include "SALOMEGUI_QtCatchCorbaException.hxx"
#include "utilities.h"
-#include "QAD_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Tools.h"
+
#include <TopTools_IndexedMapOfShape.hxx>
#include <TopExp.hxx>
+#include <TColStd_MapOfInteger.hxx>
#include "GEOMBase.h"
#include "GEOMImpl_Types.hxx"
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-MeasureGUI_CheckCompoundOfBlocksDlg::MeasureGUI_CheckCompoundOfBlocksDlg( QWidget* parent, SALOME_Selection* Sel )
-: MeasureGUI_Skeleton( parent, "MeasureGUI_CheckCompoundOfBlocksDlg", Sel )
+MeasureGUI_CheckCompoundOfBlocksDlg::MeasureGUI_CheckCompoundOfBlocksDlg( GeometryGUI* GUI, QWidget* parent )
+: MeasureGUI_Skeleton( GUI, parent, "MeasureGUI_CheckCompoundOfBlocksDlg" )
{
- QPixmap image0( QAD_Desktop::getResourceManager()->loadPixmap(
+ QPixmap image0( SUIT_Session::session()->resourceMgr()->loadPixmap(
"GEOM",tr( "ICON_DLG_CHECK_COMPOUND_OF_BLOCKS" ) ) );
- QPixmap image1( QAD_Desktop::getResourceManager()->loadPixmap(
+ QPixmap image1( SUIT_Session::session()->resourceMgr()->loadPixmap(
"GEOM",tr( "ICON_SELECT" ) ) );
setCaption( tr( "GEOM_CHECK_BLOCKS_COMPOUND" ) );
connect( myErrorsLBox, SIGNAL( selectionChanged() ), SLOT( onErrorsListSelectionChanged() ) );
connect( mySubShapesLBox, SIGNAL( selectionChanged() ), SLOT( onSubShapesListSelectionChanged() ) );
/* Initialisation */
- Init( Sel );
+ Init();
}
// function : Init()
// purpose :
//=================================================================================
-void MeasureGUI_CheckCompoundOfBlocksDlg::Init( SALOME_Selection* Sel )
+void MeasureGUI_CheckCompoundOfBlocksDlg::Init()
{
activateSelection();
mySelBtn = myGrp->PushButton1;
mySelEdit = myGrp->LineEdit1;
- MeasureGUI_Skeleton::Init( Sel );
+ MeasureGUI_Skeleton::Init();
}
//=================================================================================
}
catch( const SALOME::SALOME_Exception& e )
{
- QtCatchCorbaException( e );
+ SalomeApp_Tools::QtCatchCorbaException( e );
return false;
}
}
catch( const SALOME::SALOME_Exception& e )
{
- QtCatchCorbaException( e );
+ SalomeApp_Tools::QtCatchCorbaException( e );
}
}
}
Q_OBJECT
public:
- MeasureGUI_CheckCompoundOfBlocksDlg( QWidget* theParent,
- SALOME_Selection* theSel );
+ MeasureGUI_CheckCompoundOfBlocksDlg( GeometryGUI* GUI,
+ QWidget* theParent );
~MeasureGUI_CheckCompoundOfBlocksDlg();
protected:
private:
- void Init( SALOME_Selection* theSel );
+ void Init();
bool getBCErrors( bool& theIsCompoundOfBlocks,
GEOM::GEOM_IBlocksOperations::BCErrors& theErrors);
void activateSelection();
#include "MeasureGUI_CheckShapeDlg.h"
#include "MeasureGUI_1Sel1TextView_QTD.h"
-#include "SALOMEGUI_QtCatchCorbaException.hxx"
#include "utilities.h"
-#include "QAD_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Tools.h"
#include <qtextedit.h>
#include <qlineedit.h>
+#include <qlabel.h>
#include <qlayout.h>
#include <qpushbutton.h>
#include <qradiobutton.h>
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-MeasureGUI_CheckShapeDlg::MeasureGUI_CheckShapeDlg( QWidget* parent, SALOME_Selection* Sel )
-: MeasureGUI_Skeleton( parent, "MeasureGUI_CheckShapeDlg", Sel )
+MeasureGUI_CheckShapeDlg::MeasureGUI_CheckShapeDlg( GeometryGUI* GUI, QWidget* parent )
+: MeasureGUI_Skeleton( GUI, parent, "MeasureGUI_CheckShapeDlg" )
{
- QPixmap image0( QAD_Desktop::getResourceManager()->loadPixmap(
+ QPixmap image0( SUIT_Session::session()->resourceMgr()->loadPixmap(
"GEOM",tr( "ICON_DLG_CHECKSHAPE" ) ) );
- QPixmap image1( QAD_Desktop::getResourceManager()->loadPixmap(
+ QPixmap image1( SUIT_Session::session()->resourceMgr()->loadPixmap(
"GEOM",tr( "ICON_SELECT" ) ) );
setCaption( tr( "GEOM_CHECK_TITLE" ) );
/***************************************************************/
/* Initialisation */
- Init( Sel );
+ Init();
}
// function : Init()
// purpose :
//=================================================================================
-void MeasureGUI_CheckShapeDlg::Init( SALOME_Selection* Sel )
+void MeasureGUI_CheckShapeDlg::Init()
{
mySelBtn = myGrp->PushButton1;
mySelEdit = myGrp->LineEdit1;
- MeasureGUI_Skeleton::Init( Sel );
+ MeasureGUI_Skeleton::Init();
}
//=================================================================================
}
catch( const SALOME::SALOME_Exception& e )
{
- QtCatchCorbaException( e );
+ SalomeApp_Tools::QtCatchCorbaException( e );
return false;
}
Q_OBJECT
public:
- MeasureGUI_CheckShapeDlg( QWidget* parent,
- SALOME_Selection* Sel );
+ MeasureGUI_CheckShapeDlg( GeometryGUI* GUI,
+ QWidget* parent );
~MeasureGUI_CheckShapeDlg();
protected:
private:
- void Init( SALOME_Selection* Sel );
+ void Init();
bool getParameters( bool& theIsValid,
QString& theMsg);
#include "MeasureGUI_2Sel1LineEdit_QTD.h"
#include "GEOMBase.h"
#include "GEOM_Displayer.h"
-#include "QAD_RightFrame.h"
-#include "QAD_Desktop.h"
-#include "OCCViewer_Viewer3d.h"
-#include "OCCViewer_Prs.h"
-#include "SALOMEGUI_QtCatchCorbaException.hxx"
+
+#include "SUIT_Session.h"
+#include "SUIT_ViewWindow.h"
+#include "SOCC_Prs.h"
+#include "SOCC_ViewModel.h"
+#include "SalomeApp_Tools.h"
#include <Geom_Plane.hxx>
#include <TopoDS_Edge.hxx>
#include "utilities.h"
#include <qlineedit.h>
+#include <qlabel.h>
#include <qlayout.h>
#include <qpushbutton.h>
#include <qradiobutton.h>
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-MeasureGUI_DistanceDlg::MeasureGUI_DistanceDlg( QWidget* parent, SALOME_Selection* Sel )
-: MeasureGUI_Skeleton( parent, "MeasureGUI_DistanceDlg", Sel )
+MeasureGUI_DistanceDlg::MeasureGUI_DistanceDlg( GeometryGUI* GUI, QWidget* parent )
+: MeasureGUI_Skeleton( GUI, parent, "MeasureGUI_DistanceDlg" )
{
- QPixmap image0( QAD_Desktop::getResourceManager()->loadPixmap(
+ QPixmap image0( SUIT_Session::session()->resourceMgr()->loadPixmap(
"GEOM",tr( "ICON_DLG_MINDIST" ) ) );
- QPixmap image1( QAD_Desktop::getResourceManager()->loadPixmap(
+ QPixmap image1( SUIT_Session::session()->resourceMgr()->loadPixmap(
"GEOM",tr( "ICON_SELECT" ) ) );
setCaption( tr( "GEOM_MINDIST_TITLE" ) );
/***************************************************************/
/* Initialisation */
- Init( Sel );
+ Init();
}
// function : Init()
// purpose :
//=================================================================================
-void MeasureGUI_DistanceDlg::Init( SALOME_Selection* Sel )
+void MeasureGUI_DistanceDlg::Init()
{
mySelBtn = myGrp->PushButton1;
mySelEdit = myGrp->LineEdit1;
connect( mySelEdit2, SIGNAL( returnPressed() ), this, SLOT( LineEditReturnPressed() ) );
connect( mySelBtn2, SIGNAL( clicked() ), this, SLOT( SetEditCurrentArgument() ) );
- MeasureGUI_Skeleton::Init( Sel );
+ MeasureGUI_Skeleton::Init();
}
{
Standard_Boolean testResult = Standard_False;
GEOM::GEOM_Object_var aSelectedObject =
- GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), testResult );
+ GEOMBase::ConvertIOinGEOMObject( firstIObject(), testResult );
if ( !testResult )
aSelectedObject = GEOM::GEOM_Object::_nil();
}
catch( const SALOME::SALOME_Exception& e )
{
- QtCatchCorbaException( e );
+ SalomeApp_Tools::QtCatchCorbaException( e );
return false;
}
else
myEditCurrentArgument = mySelEdit2;
- if ( GEOMBase::SelectionByNameInDialogs( this, mySelEdit->text(), mySelection ) )
+ if ( GEOMBase::SelectionByNameInDialogs( this, mySelEdit->text(), selectedIO() ) )
mySelEdit->setText( mySelEdit->text() );
}
gp_Pnt aPnt1( 0, 0, 0 ), aPnt2( 0, 0, 0 );
if ( myObj->_is_nil() || myObj2->_is_nil() || !getParameters( aDist, aPnt1, aPnt2 ) ||
- QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getTypeView() != VIEW_OCC )
+ SUIT_Session::session()->activeApplication()->desktop()->activeWindow()->getViewManager()->getType()
+ != OCCViewer_Viewer::Type() )
return 0;
try
Handle( AIS_LengthDimension ) anIO = new AIS_LengthDimension(
aVert1, aVert2, P, aDist, TCollection_ExtendedString( (Standard_CString)aLabel.latin1() ) );
- QAD_ViewFrame* vf = GEOM_Displayer::GetActiveView();
- OCCViewer_Prs* aPrs = dynamic_cast<OCCViewer_Prs*>( vf->CreatePrs( 0 ) );
+ SUIT_ViewWindow* vw = SUIT_Session::session()->activeApplication()->desktop()->activeWindow();
+ SOCC_Prs* aPrs = dynamic_cast<SOCC_Prs*>( ((SOCC_Viewer*)(vw->getViewManager()->getViewModel()))->CreatePrs( 0 ) );
+
+ //QAD_ViewFrame* vf = GEOM_Displayer::GetActiveView();
+ //OCCViewer_Prs* aPrs = dynamic_cast<OCCViewer_Prs*>( vf->CreatePrs( 0 ) );
if ( aPrs )
aPrs->AddObject( anIO );
Q_OBJECT
public:
- MeasureGUI_DistanceDlg( QWidget* parent,
- SALOME_Selection* Sel );
+ MeasureGUI_DistanceDlg( GeometryGUI* GUI,
+ QWidget* parent );
~MeasureGUI_DistanceDlg();
protected:
private:
- void Init( SALOME_Selection* Sel );
+ void Init();
bool getParameters( double& theDistance,
gp_Pnt& thePnt1,
gp_Pnt& thePnt2 );
#include "MeasureGUI_InertiaDlg.h"
#include "MeasureGUI_1Sel12LineEdit_QTD.h"
-#include "SALOMEGUI_QtCatchCorbaException.hxx"
#include "GEOMBase.h"
#include <TopoDS_Shape.hxx>
#include "utilities.h"
-#include "QAD_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Tools.h"
#include <qlineedit.h>
+#include <qlabel.h>
#include <qlayout.h>
#include <qpushbutton.h>
#include <qradiobutton.h>
// TRUE to construct a modal dialog.
//=================================================================================
-MeasureGUI_InertiaDlg::MeasureGUI_InertiaDlg( QWidget* parent, SALOME_Selection* Sel )
-: MeasureGUI_Skeleton( parent, "MeasureGUI_InertiaDlg", Sel )
+MeasureGUI_InertiaDlg::MeasureGUI_InertiaDlg( GeometryGUI* GUI, QWidget* parent )
+: MeasureGUI_Skeleton( GUI, parent, "MeasureGUI_InertiaDlg" )
{
- QPixmap image0( QAD_Desktop::getResourceManager()->loadPixmap(
+ QPixmap image0( SUIT_Session::session()->resourceMgr()->loadPixmap(
"GEOM",tr( "ICON_DLG_INERTIA" ) ) );
- QPixmap image1( QAD_Desktop::getResourceManager()->loadPixmap(
+ QPixmap image1( SUIT_Session::session()->resourceMgr()->loadPixmap(
"GEOM",tr( "ICON_SELECT" ) ) );
setCaption( tr( "GEOM_INERTIA_TITLE" ) );
/***************************************************************/
/* Initialisation */
- Init( Sel );
+ Init();
}
// function : Init()
// purpose :
//=================================================================================
-void MeasureGUI_InertiaDlg::Init( SALOME_Selection* Sel )
+void MeasureGUI_InertiaDlg::Init()
{
mySelBtn = myGrp->PushButton1;
mySelEdit = myGrp->LineEdit1;
- MeasureGUI_Skeleton::Init( Sel );
+ MeasureGUI_Skeleton::Init();
}
//=================================================================================
}
catch( const SALOME::SALOME_Exception& e )
{
- QtCatchCorbaException( e );
+ SalomeApp_Tools::QtCatchCorbaException( e );
return false;
}
Q_OBJECT
public:
- MeasureGUI_InertiaDlg( QWidget* parent,
- SALOME_Selection* Sel );
+ MeasureGUI_InertiaDlg( GeometryGUI* GUI,
+ QWidget* parent );
~MeasureGUI_InertiaDlg();
protected:
private:
- void Init( SALOME_Selection* Sel );
+ void Init();
bool getParameters( gp_Mat& theMatrix,
gp_XYZ& theMoment );
#include "MeasureGUI_MaxToleranceDlg.h"
#include "MeasureGUI_1Sel6LineEdit_QTD.h"
-#include "SALOMEGUI_QtCatchCorbaException.hxx"
#include "utilities.h"
-#include "QAD_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Tools.h"
#include <qlineedit.h>
+#include <qlabel.h>
#include <qlayout.h>
#include <qpushbutton.h>
#include <qradiobutton.h>
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-MeasureGUI_MaxToleranceDlg::MeasureGUI_MaxToleranceDlg( QWidget* parent, SALOME_Selection* Sel )
-: MeasureGUI_Skeleton( parent, "MeasureGUI_MaxToleranceDlg", Sel )
+MeasureGUI_MaxToleranceDlg::MeasureGUI_MaxToleranceDlg( GeometryGUI* GUI, QWidget* parent )
+: MeasureGUI_Skeleton( GUI, parent, "MeasureGUI_MaxToleranceDlg" )
{
- QPixmap image0( QAD_Desktop::getResourceManager()->loadPixmap(
+ QPixmap image0( SUIT_Session::session()->resourceMgr()->loadPixmap(
"GEOM",tr( "ICON_DLG_TOLERANCE" ) ) );
- QPixmap image1( QAD_Desktop::getResourceManager()->loadPixmap(
+ QPixmap image1( SUIT_Session::session()->resourceMgr()->loadPixmap(
"GEOM",tr( "ICON_SELECT" ) ) );
setCaption( tr( "GEOM_TOLERANCE_TITLE" ) );
/***************************************************************/
/* Initialisation */
- Init( Sel );
+ Init();
}
// function : Init()
// purpose :
//=================================================================================
-void MeasureGUI_MaxToleranceDlg::Init( SALOME_Selection* Sel )
+void MeasureGUI_MaxToleranceDlg::Init()
{
mySelBtn = myGrp->PushButton1;
mySelEdit = myGrp->LineEdit1;
- MeasureGUI_Skeleton::Init( Sel );
+ MeasureGUI_Skeleton::Init();
}
//=================================================================================
}
catch( const SALOME::SALOME_Exception& e )
{
- QtCatchCorbaException( e );
+ SalomeApp_Tools::QtCatchCorbaException( e );
return false;
}
Q_OBJECT
public:
- MeasureGUI_MaxToleranceDlg( QWidget* parent,
- SALOME_Selection* );
+ MeasureGUI_MaxToleranceDlg( GeometryGUI* GUI,
+ QWidget* parent );
~MeasureGUI_MaxToleranceDlg();
protected:
private:
- void Init( SALOME_Selection* Sel );
+ void Init();
bool getParameters( double& theMinFaceToler,
double& theMaxFaceToler,
double& theMinEdgeToler,
// $Header$
#include "MeasureGUI_PointDlg.h"
-#include "utilities.h"
-#include "QAD_Desktop.h"
#include "GEOMBase.h"
+#include "utilities.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
#include <TColStd_MapOfInteger.hxx>
#include <TopAbs_ShapeEnum.hxx>
#include <TopoDS_Shape.hxx>
// purpose : Constructs a MeasureGUI_PointDlg which is a child of 'parent'
//
//=================================================================================
-MeasureGUI_PointDlg::MeasureGUI_PointDlg( QWidget* parent, SALOME_Selection* Sel )
-: MeasureGUI_Skeleton( parent, "MeasureGUI_PointDlg", Sel )
+MeasureGUI_PointDlg::MeasureGUI_PointDlg( GeometryGUI* GUI, QWidget* parent )
+: MeasureGUI_Skeleton( GUI, parent, "MeasureGUI_PointDlg" )
{
- QPixmap iconPnt( QAD_Desktop::getResourceManager()->loadPixmap(
+ QPixmap iconPnt( SUIT_Session::session()->resourceMgr()->loadPixmap(
"GEOM",tr( "ICON_DLG_POINT" ) ) );
- QPixmap iconSelect( QAD_Desktop::getResourceManager()->loadPixmap(
+ QPixmap iconSelect( SUIT_Session::session()->resourceMgr()->loadPixmap(
"GEOM",tr( "ICON_SELECT" ) ) );
setCaption( tr( "CAPTION" ) );
Layout1->addWidget( aGrp, 1, 0 );
- Init( Sel );
+ Init();
}
// function : Init()
// purpose :
//=================================================================================
-void MeasureGUI_PointDlg::Init( SALOME_Selection* Sel )
+void MeasureGUI_PointDlg::Init()
{
QSize aSize( size() );
resize( (int)(aSize.width() *0.75 ), aSize.height() );
- MeasureGUI_Skeleton::Init( Sel );
+ MeasureGUI_Skeleton::Init();
}
//=================================================================================
Standard_Boolean testResult = Standard_False;
GEOM::GEOM_Object_var aSelectedObject =
- GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), testResult );
+ GEOMBase::ConvertIOinGEOMObject( firstIObject(), testResult );
if( !testResult || aSelectedObject->_is_nil() )
return;
myObj = aSelectedObject;
TColStd_IndexedMapOfInteger anIndexes;
- mySelection->GetIndex( mySelection->firstIObject(), anIndexes );
+ ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->
+ selectionMgr()->GetIndexes( firstIObject(), anIndexes );
TopoDS_Shape aShape;
if ( anIndexes.Extent() > 1 || !GEOMBase::GetShape( myObj, aShape ) || aShape.IsNull() )
Q_OBJECT
public:
- MeasureGUI_PointDlg( QWidget* parent,
- SALOME_Selection* Sel );
+ MeasureGUI_PointDlg( GeometryGUI* GUI,
+ QWidget* parent );
~MeasureGUI_PointDlg();
protected:
private:
- void Init( SALOME_Selection* Sel );
+ void Init();
private:
QLineEdit* myX;
QLineEdit* myY;
#include "MeasureGUI_PropertiesDlg.h"
#include "MeasureGUI_1Sel3LineEdit_QTD.h"
-#include "SALOMEGUI_QtCatchCorbaException.hxx"
#include "GEOM_Displayer.h"
-#include "utilities.h"
-#include "QAD_Desktop.h"
#include "GEOMImpl_Types.hxx"
#include "GEOMBase.h"
+#include "SalomeApp_Tools.h"
+#include "utilities.h"
+#include "SUIT_Session.h"
+
#include <TColStd_MapOfInteger.hxx>
#include <qlineedit.h>
+#include <qlabel.h>
#include <qlayout.h>
#include <qpushbutton.h>
#include <qradiobutton.h>
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-MeasureGUI_PropertiesDlg::MeasureGUI_PropertiesDlg( QWidget* parent, SALOME_Selection* Sel )
-: MeasureGUI_Skeleton( parent, "MeasureGUI_PropertiesDlg", Sel )
+MeasureGUI_PropertiesDlg::MeasureGUI_PropertiesDlg( GeometryGUI* GUI, QWidget* parent )
+: MeasureGUI_Skeleton( GUI, parent, "MeasureGUI_PropertiesDlg" )
{
- QPixmap image0( QAD_Desktop::getResourceManager()->loadPixmap(
+ QPixmap image0( SUIT_Session::session()->resourceMgr()->loadPixmap(
"GEOM",tr( "ICON_DLG_BASICPROPERTIES" ) ) );
- QPixmap image1( QAD_Desktop::getResourceManager()->loadPixmap(
+ QPixmap image1( SUIT_Session::session()->resourceMgr()->loadPixmap(
"GEOM",tr( "ICON_SELECT" ) ) );
setCaption( tr( "GEOM_PROPERTIES_TITLE" ) );
/***************************************************************/
/* Initialisation */
- Init( Sel );
+ Init();
}
// function : Init()
// purpose :
//=================================================================================
-void MeasureGUI_PropertiesDlg::Init( SALOME_Selection* Sel )
+void MeasureGUI_PropertiesDlg::Init()
{
mySelBtn = myGrp->PushButton1;
mySelEdit = myGrp->LineEdit1;
- MeasureGUI_Skeleton::Init( Sel );
+ MeasureGUI_Skeleton::Init();
}
//=================================================================================
}
catch( const SALOME::SALOME_Exception& e )
{
- QtCatchCorbaException( e );
+ SalomeApp_Tools::QtCatchCorbaException( e );
return false;
}
Q_OBJECT
public:
- MeasureGUI_PropertiesDlg( QWidget* parent,
- SALOME_Selection* Sel );
+ MeasureGUI_PropertiesDlg( GeometryGUI* GUI,
+ QWidget* parent );
~MeasureGUI_PropertiesDlg();
protected:
private:
- void Init( SALOME_Selection* Sel );
+ void Init();
bool getParameters( double& theLength,
double& theArea,
double& theVolume );
// $Header$
#include "MeasureGUI_Skeleton.h"
-#include "QAD_Desktop.h"
-#include "QAD_WaitCursor.h"
#include "GEOMBase.h"
#include "GEOM_Displayer.h"
#include "GeometryGUI.h"
-#include "SALOMEGUI_QtCatchCorbaException.hxx"
+
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+#include "SalomeApp_Tools.h"
+#include "SUIT_Session.h"
#include <qlineedit.h>
#include <qlayout.h>
#include <qpushbutton.h>
#include <qradiobutton.h>
#include <qbuttongroup.h>
+#include <qapplication.h>
//=================================================================================
// class : MeasureGUI_Skeleton()
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-MeasureGUI_Skeleton::MeasureGUI_Skeleton( QWidget* parent,
- const char* name,
- SALOME_Selection* Sel )
+MeasureGUI_Skeleton::MeasureGUI_Skeleton( GeometryGUI* GUI,
+ QWidget* parent,
+ const char* name )
: MeasureGUI_Skeleton_QTD( parent, name, false,
- WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu | WDestructiveClose )
+ WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu | WDestructiveClose ),
+ myGeomGUI( GUI )
{
mySelBtn = 0;
// function : Init()
// purpose :
//=================================================================================
-void MeasureGUI_Skeleton::Init( SALOME_Selection* Sel )
+void MeasureGUI_Skeleton::Init()
{
- myGeomGUI = GeometryGUI::GetGeomGUI();
-
/* init variables */
- mySelection = Sel;
-
myGeomGUI->SetActiveDialogBox((QDialog*)this);
/* signals and slots connections */
connect( mySelBtn, SIGNAL( clicked() ),
this, SLOT ( SetEditCurrentArgument() ) );
- if ( mySelection )
- connect( mySelection, SIGNAL( currentSelectionChanged() ),
- this, SLOT ( SelectionIntoArgument() ) );
+ SalomeApp_SelectionMgr* aSel = ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr();
+ if ( aSel )
+ connect( aSel, SIGNAL( currentSelectionChanged() ),
+ this, SLOT ( SelectionIntoArgument() ) ) ;
/* displays Dialog */
RadioButton1->setChecked( TRUE );
const QString objectUserName = mySelEdit->text();
QWidget* thisWidget = ( QWidget* )this;
- if ( GEOMBase::SelectionByNameInDialogs( thisWidget, objectUserName, mySelection ) )
+ if ( GEOMBase::SelectionByNameInDialogs( thisWidget, objectUserName, selectedIO() ) )
mySelEdit->setText( objectUserName );
}
{
setEnabled( false );
- if ( mySelection )
- disconnect( mySelection, 0, this, 0 );
-
+ SalomeApp_SelectionMgr* aSel = ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr();
+ if ( aSel )
+ disconnect( aSel, 0, this, 0 );
+
myGeomGUI->SetActiveDialogBox( 0 );
globalSelection();
myGeomGUI->SetActiveDialogBox( ( QDialog* )this );
- if ( mySelection )
- connect( mySelection, SIGNAL( currentSelectionChanged() ),
- this, SLOT ( SelectionIntoArgument() ) );
+ SalomeApp_SelectionMgr* aSel = ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr();
+ if ( aSel )
+ connect( aSel, SIGNAL( currentSelectionChanged() ),
+ this, SLOT ( SelectionIntoArgument() ) ) ;
redisplayPreview();
activateSelection();
Standard_Boolean testResult = Standard_False;
GEOM::GEOM_Object_var aSelectedObject =
- GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), testResult );
+ GEOMBase::ConvertIOinGEOMObject( firstIObject(), testResult );
if( !testResult || aSelectedObject->_is_nil() )
{
//=================================================================================
void MeasureGUI_Skeleton::closeEvent( QCloseEvent* e )
{
- disconnect( mySelection, 0, this, 0 );
+ SalomeApp_SelectionMgr* aSel = ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr();
+ if ( aSel )
+ disconnect( aSel, 0, this, 0 );
QDialog::closeEvent( e );
}
try
{
- QAD_WaitCursor wc;
+ QApplication::setOverrideCursor( Qt::waitCursor );
getDisplayer()->SetColor( Quantity_NOC_VIOLET );
getDisplayer()->SetToActivate( false );
}
catch( const SALOME::SALOME_Exception& e )
{
- QtCatchCorbaException( e );
+ SalomeApp_Tools::QtCatchCorbaException( e );
}
}
GEOM_Displayer* MeasureGUI_Skeleton::getDisplayer()
{
if ( !myDisplayer )
- myDisplayer = new GEOM_Displayer();
+ myDisplayer = new GEOM_Displayer( getStudy() );
return myDisplayer;
}
return getGeomEngine()->GetIMeasureOperations( getStudyId() );
}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+//=================================================================================
+// function : getDesktop()
+// purpose :
+//=================================================================================
+SUIT_Desktop* MeasureGUI_Skeleton::getDesktop() const
+{
+ return dynamic_cast<SUIT_Desktop*>( parentWidget() );
+}
class QWidget;
class QLineEdit;
class QPushButton;
-class SALOME_Selection;
class GEOM_Displayer;
class MeasureGUI_Skeleton : public MeasureGUI_Skeleton_QTD,
Q_OBJECT
public:
- MeasureGUI_Skeleton( QWidget* parent,
- const char* name,
- SALOME_Selection* Sel = 0 );
+ MeasureGUI_Skeleton( GeometryGUI* GUI,
+ QWidget* parent,
+ const char* name );
~MeasureGUI_Skeleton();
protected slots:
protected:
- void Init( SALOME_Selection* Sel );
+ void Init();
void enterEvent( QEvent* e );
void closeEvent( QCloseEvent* e );
virtual GEOM::GEOM_IOperations_ptr createOperation();
+ virtual SUIT_Desktop* getDesktop() const;
+
protected:
QPushButton* mySelBtn;
QLineEdit* mySelEdit;
GEOM::GEOM_Object_var myObj;
- SALOME_Selection* mySelection;
GeometryGUI* myGeomGUI;
GEOM_Displayer* myDisplayer;
};
#include "MeasureGUI_WhatisDlg.h"
#include "MeasureGUI_1Sel1TextView_QTD.h"
-#include "SALOMEGUI_QtCatchCorbaException.hxx"
#include "GEOMBase.h"
#include <TopTools_MapOfShape.hxx>
#include <BRep_Tool.hxx>
#include "utilities.h"
-#include "QAD_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Tools.h"
#include <qtextedit.h>
#include <qlineedit.h>
+#include <qlabel.h>
#include <qlayout.h>
#include <qpushbutton.h>
#include <qradiobutton.h>
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-MeasureGUI_WhatisDlg::MeasureGUI_WhatisDlg( QWidget* parent, SALOME_Selection* Sel )
-: MeasureGUI_Skeleton( parent, "MeasureGUI_WhatisDlg", Sel )
+MeasureGUI_WhatisDlg::MeasureGUI_WhatisDlg( GeometryGUI* GUI, QWidget* parent )
+: MeasureGUI_Skeleton( GUI, parent, "MeasureGUI_WhatisDlg" )
{
- QPixmap image0( QAD_Desktop::getResourceManager()->loadPixmap(
+ QPixmap image0( SUIT_Session::session()->resourceMgr()->loadPixmap(
"GEOM",tr( "ICON_DLG_WHATIS" ) ) );
- QPixmap image1( QAD_Desktop::getResourceManager()->loadPixmap(
+ QPixmap image1( SUIT_Session::session()->resourceMgr()->loadPixmap(
"GEOM",tr( "ICON_SELECT" ) ) );
setCaption( tr( "GEOM_WHATIS_TITLE" ) );
/***************************************************************/
/* Initialisation */
- Init( Sel );
+ Init();
}
// function : Init()
// purpose :
//=================================================================================
-void MeasureGUI_WhatisDlg::Init( SALOME_Selection* Sel )
+void MeasureGUI_WhatisDlg::Init()
{
mySelBtn = myGrp->PushButton1;
mySelEdit = myGrp->LineEdit1;
- MeasureGUI_Skeleton::Init( Sel );
+ MeasureGUI_Skeleton::Init();
}
//=================================================================================
}
catch( const SALOME::SALOME_Exception& e )
{
- QtCatchCorbaException( e );
+ SalomeApp_Tools::QtCatchCorbaException( e );
return false;
}
Q_OBJECT
public:
- MeasureGUI_WhatisDlg( QWidget* parent,
- SALOME_Selection* Sel );
+ MeasureGUI_WhatisDlg( GeometryGUI* GUI,
+ QWidget* parent );
~MeasureGUI_WhatisDlg();
protected:
private:
- void Init( SALOME_Selection* Sel );
+ void Init();
bool getParameters( QString& );
private:
BIN =
BIN_SRC =
-CPPFLAGS+=$(QT_INCLUDES) $(PYTHON_INCLUDES) $(OCC_INCLUDES) $(VTK_INCLUDES) $(OGL_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome
-CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome
-LDFLAGS+=$(PYTHON_LIBS) $(QT_MT_LIBS) $(VTK_LIBS) $(OGL_LIBS) -lSalomeObject -L${KERNEL_ROOT_DIR}/lib/salome
+CPPFLAGS+=$(QT_INCLUDES) $(PYTHON_INCLUDES) $(OCC_INCLUDES) $(VTK_INCLUDES) $(OGL_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
+CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
+LDFLAGS+=$(PYTHON_LIBS) $(QT_MT_LIBS) $(VTK_LIBS) $(OGL_LIBS) -lSalomeObject -L${KERNEL_ROOT_DIR}/lib/salome -L${GUI_ROOT_DIR}/lib/salome
%_moc.cxx: %.h
$(MOC) $< -o $@
OperationGUI_ChamferDlg.h \
OperationGUI_ClippingDlg.h
-LIB_CLIENT_IDL = SALOME_GenericObj.idl SALOME_Component.idl
+LIB_CLIENT_IDL = SALOME_GenericObj.idl SALOME_Component.idl SALOME_Exception.idl
LIB_SERVER_IDL =
# additionnal information to compil and link file
-CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome
-CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome
+CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) $(BOOST_CPPFLAGS) -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
+CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
LDFLAGS += $(CAS_LDPATH) -lTKFillet -lGEOMBase
using namespace std;
#include "OperationGUI.h"
-#include "QAD_RightFrame.h"
-#include "QAD_Desktop.h"
-#include "OCCViewer_Viewer3d.h"
-#include "OCCViewer_ViewFrame.h"
-#include "SALOMEGUI_QtCatchCorbaException.hxx"
+#include "SUIT_Session.h"
+#include "SUIT_Desktop.h"
#include <TopTools_MapOfShape.hxx>
#include <TopExp_Explorer.hxx>
// function : GetOperationGUI()
// purpose : Get the only OperationGUI object [ static ]
//=======================================================================
-OperationGUI* OperationGUI::GetOperationGUI()
+OperationGUI* OperationGUI::GetOperationGUI( GeometryGUI* parent )
{
if ( myGUIObject == 0 ) {
// init OperationGUI only once
- myGUIObject = new OperationGUI();
+ myGUIObject = new OperationGUI( parent );
}
return myGUIObject;
}
// function : OperationGUI()
// purpose : Constructor
//=======================================================================
-OperationGUI::OperationGUI() : GEOMGUI()
+OperationGUI::OperationGUI(GeometryGUI* parent) : GEOMGUI(parent)
{
}
// function : OnGUIEvent()
// purpose :
//=======================================================================
-bool OperationGUI::OnGUIEvent( int theCommandID, QAD_Desktop* parent )
+bool OperationGUI::OnGUIEvent( int theCommandID, SUIT_Desktop* parent )
{
- OperationGUI* myOperationGUI = GetOperationGUI();
- GeometryGUI::GetGeomGUI()->EmitSignalDeactivateDialog();
- SALOME_Selection* Sel = SALOME_Selection::Selection(
- QAD_Application::getDesktop()->getActiveStudy()->getSelection() );
+ getGeometryGUI()->EmitSignalDeactivateDialog();
switch ( theCommandID )
{
case 503: // PARTITION
- ( new OperationGUI_PartitionDlg( parent, "", Sel ) )->show();
+ ( new OperationGUI_PartitionDlg( parent, "" ) )->show();
break;
case 504: // ARCHIMEDE
- new OperationGUI_ArchimedeDlg( parent, Sel );
+ new OperationGUI_ArchimedeDlg( getGeometryGUI(), parent );
break;
case 505: // FILLET
- new OperationGUI_FilletDlg( parent, Sel );
+ new OperationGUI_FilletDlg( parent );
break;
case 506: // CHAMFER
- new OperationGUI_ChamferDlg( parent, Sel );
+ new OperationGUI_ChamferDlg( parent );
break;
case 507: // CLIPPING RANGE
( new OperationGUI_ClippingDlg( parent, "" ) )->show();
break;
default:
- parent->putInfo(tr("GEOM_PRP_COMMAND").arg(theCommandID));
+ SUIT_Session::session()->activeApplication()->putInfo(tr("GEOM_PRP_COMMAND").arg(theCommandID));
break;
}
//=====================================================================================
extern "C"
{
- GEOMGUI* GetLibGUI()
+ GEOMGUI* GetLibGUI(GeometryGUI* parent)
{
- return OperationGUI::GetOperationGUI();
+ return OperationGUI::GetOperationGUI(parent);
}
}
class OperationGUI : public GEOMGUI
{
protected:
- OperationGUI(); // hide constructor to avoid direct creation
+ OperationGUI( GeometryGUI* parent ); // hide constructor to avoid direct creation
public :
~OperationGUI();
// Get the only OperationGUI object
- static OperationGUI* GetOperationGUI();
+ static OperationGUI* GetOperationGUI( GeometryGUI* parent );
- bool OnGUIEvent(int theCommandID, QAD_Desktop* parent);
+ bool OnGUIEvent(int theCommandID, SUIT_Desktop* parent);
private:
static OperationGUI* myGUIObject; // the only OperationGUI object
#include "OperationGUI_ArchimedeDlg.h"
#include "DlgRef_1Sel3Spin.h"
-#include "QAD_Config.h"
-#include "QAD_Desktop.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
+#include <qlabel.h>
//=================================================================================
// class : OperationGUI_ArchimedeDlg()
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-OperationGUI_ArchimedeDlg::OperationGUI_ArchimedeDlg( QWidget* parent, SALOME_Selection* Sel )
-: GEOMBase_Skeleton( parent, "ArchimedeDlg", Sel, false,
- WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+OperationGUI_ArchimedeDlg::OperationGUI_ArchimedeDlg( GeometryGUI* theGeometryGUI, QWidget* parent )
+: GEOMBase_Skeleton( parent, "ArchimedeDlg", false,
+ WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu), myGeometryGUI(theGeometryGUI)
{
- mySelection = Sel;
-
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_ARCHIMEDE")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_ARCHIMEDE")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_ARCHIMEDE_TITLE"));
/***************************************************************/
/* Initialisations */
- Init( mySelection );
+ Init();
}
// function : Init()
// purpose :
//=================================================================================
-void OperationGUI_ArchimedeDlg::Init( SALOME_Selection* Sel )
+void OperationGUI_ArchimedeDlg::Init()
{
- mySelection = Sel;
-
/* init variables */
myEditCurrentArgument = GroupPoints->LineEdit1;
/* Get setting of myStep value from file configuration */
- QString St = QAD_CONFIG->getSetting( "Geometry:SettingsGeomStep" );
- myStep = !St.isEmpty() ? St.toDouble() : 100;
+ SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
+ double myStep = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
double SpecificStep1 = 0.1;
double SpecificStep2 = 0.01;
connect(GroupPoints->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DX, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DY, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DZ, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DY, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DZ, SLOT(SetStep(double)));
+
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
-
initName( tr( "GEOM_ARCHIMEDE" ) );
-
+
globalSelection( GEOM_ALLSHAPES );
SelectionIntoArgument();
myEditCurrentArgument->setText( "" );
myShape = GEOM::GEOM_Object::_nil();
- if ( mySelection->IObjectCount() != 1 )
+ if ( IObjectCount() != 1 )
return;
Standard_Boolean testResult = Standard_False;
- myShape = GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), testResult );
+ myShape = GEOMBase::ConvertIOinGEOMObject( firstIObject(), testResult );
if ( !testResult || myShape->_is_nil() || !GEOMBase::IsShape( myShape ) )
{
{
GEOMBase_Skeleton::ActivateThisDialog();
globalSelection( GEOM_ALLSHAPES );
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
return;
}
Q_OBJECT
public:
- OperationGUI_ArchimedeDlg( QWidget* parent,
- SALOME_Selection* Sel );
- ~OperationGUI_ArchimedeDlg();
+ OperationGUI_ArchimedeDlg( GeometryGUI* theGeometryGUI, QWidget* parent );
+ ~OperationGUI_ArchimedeDlg();
protected:
virtual bool execute( ObjectList& objects );
private:
- void Init( SALOME_Selection* );
+ void Init();
void enterEvent(QEvent* e);
private:
GEOM::GEOM_Object_var myShape;
DlgRef_1Sel3Spin* GroupPoints;
double myStep;
+ GeometryGUI* myGeometryGUI;
private slots:
void ClickOnOk();
#include "OperationGUI_ChamferDlg.h"
#include "DlgRef_SpinBox.h"
-#include "QAD_Desktop.h"
+
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+#include "OCCViewer_ViewModel.h"
+
+#include <TColStd_MapOfInteger.hxx>
+
+#include <qlabel.h>
#include "qpixmap.h"
#include <list>
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-OperationGUI_ChamferDlg::OperationGUI_ChamferDlg( QWidget* parent, SALOME_Selection* Sel )
-: GEOMBase_Skeleton(parent, "ChamferDlg", Sel, false,
+OperationGUI_ChamferDlg::OperationGUI_ChamferDlg( QWidget* parent )
+: GEOMBase_Skeleton(parent, "ChamferDlg", false,
WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
-
- mySelection = Sel;
myConstructorId = -1;
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_CHAMFER_ALL")));
- QPixmap image2(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_CHAMFER_EDGE")));
- QPixmap image3(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_CHAMFER_FACE")));
- QPixmap iconSelect(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_CHAMFER_ALL")));
+ QPixmap image2(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_CHAMFER_EDGE")));
+ QPixmap image3(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_CHAMFER_FACE")));
+ QPixmap iconSelect(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption( tr( "GEOM_CHAMFER_TITLE" ) );
anIter.data()->RangeStepAndValidator( 0.001, 999.999, SpecificStep, 3 );
/* Initialisations */
- Init( mySelection );
+ Init();
}
// function : Init()
// purpose :
//=================================================================================
-void OperationGUI_ChamferDlg::Init( SALOME_Selection* Sel )
+void OperationGUI_ChamferDlg::Init()
{
- mySelection = Sel;
myConstructorId = -1;
reset();
RadioButton1->setChecked( true );
this, SLOT( ValueChangedInSpinBox( double ) ) );
// selection
- connect( mySelection, SIGNAL( currentSelectionChanged() ),
- this, SLOT( SelectionIntoArgument() ) );
+ connect( ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL( currentSelectionChanged() ), this, SLOT( SelectionIntoArgument() ) );
initName( tr( "GEOM_CHAMFER" ) );
void OperationGUI_ChamferDlg::ConstructorsClicked( int constructorId )
{
// Activate next widget
- if ( QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getTypeView() != VIEW_OCC )
- {
- RadioButton1->setChecked( true );
- return;
- }
+ if ( SUIT_Session::session()->activeApplication()->desktop()->activeWindow()->getViewManager()->getType()
+ != OCCViewer_Viewer::Type() )
+ {
+ RadioButton1->setChecked( true );
+ return;
+ }
if ( myConstructorId == constructorId )
return;
// If selection of main object is activated
if ( aCurrFocus == MainObj1 || aCurrFocus == MainObj2 || aCurrFocus == MainObj3 )
{
- if ( mySelection->IObjectCount() == 1 )
+ if ( IObjectCount() == 1 )
{
Standard_Boolean aResult = Standard_False;
GEOM::GEOM_Object_var anObj =
- GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), aResult );
+ GEOMBase::ConvertIOinGEOMObject( firstIObject(), aResult );
if ( aResult && !anObj->_is_nil() )
{
// If face selection of second tab is activated
else if ( aCurrFocus == Face1 || aCurrFocus == Face2 )
{
- if ( mySelection->IObjectCount() == 1 )
+ if ( IObjectCount() == 1 )
{
Standard_Boolean aResult = Standard_False;
GEOM::GEOM_Object_var anObj =
- GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), aResult );
+ GEOMBase::ConvertIOinGEOMObject( firstIObject(), aResult );
if ( aResult && !anObj->_is_nil() )
{
TColStd_IndexedMapOfInteger anIndexes;
- mySelection->GetIndex( mySelection->firstIObject(), anIndexes );
+ ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr()->GetIndexes( firstIObject(), anIndexes );
if ( anIndexes.Extent() == 1 )
{
// If face selection of third tab is activated
else if ( aCurrFocus == Faces )
{
- if ( mySelection->IObjectCount() == 1 )
+ if ( IObjectCount() == 1 )
{
Standard_Boolean aResult = Standard_False;
GEOM::GEOM_Object_var anObj =
- GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), aResult );
+ GEOMBase::ConvertIOinGEOMObject( firstIObject(), aResult );
if ( aResult && !anObj->_is_nil() )
{
TColStd_IndexedMapOfInteger anIndexes;
- mySelection->GetIndex( mySelection->firstIObject(), anIndexes );
+ ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr()->GetIndexes( firstIObject(), anIndexes );
if ( anIndexes.Extent() > 0 )
{
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect( mySelection, SIGNAL(currentSelectionChanged()),
- this, SLOT( SelectionIntoArgument() ) );
+ connect( ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT( SelectionIntoArgument() ) );
activateSelection();
displayPreview();
enum { SpinBox1, SpinBox21, SpinBox22, SpinBox31, SpinBox32 };
public:
- OperationGUI_ChamferDlg( QWidget* parent,
- SALOME_Selection* Sel );
+ OperationGUI_ChamferDlg( QWidget* parent );
virtual ~OperationGUI_ChamferDlg();
protected:
private :
- void Init( SALOME_Selection* );
+ void Init();
void enterEvent( QEvent* e );
void reset();
void createSelWg( const QString&, QPixmap&, QWidget*, const int );
#include "OperationGUI_ClippingDlg.h"
#include "DlgRef_SpinBox.h"
-#include "QAD_Application.h"
-#include "QAD_Desktop.h"
-#include "QAD_RightFrame.h"
-#include "VTKViewer_ViewFrame.h"
-#include "OCCViewer_ViewFrame.h"
-#include "QAD_MessageBox.h"
-#include "utilities.h"
+#include "SUIT_Session.h"
+#include "SUIT_ViewWindow.h"
+#include "VTKViewer_ViewWindow.h"
+#include "VTKViewer_ViewModel.h"
+#include "OCCViewer_ViewWindow.h"
#include "OCCViewer_ViewPort3d.h"
-#include "OCCViewer_Viewer3d.h"
+
+#include "utilities.h"
#include <V3d_View.hxx>
#include <V3d.hxx>
// class : OperationGUI_ClippingDlg()
// purpose :
//=================================================================================
-OperationGUI_ClippingDlg::OperationGUI_ClippingDlg( QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl )
- : GEOMBase_Skeleton( parent, "OperationGUI_ClippingDlg", 0, false,
+OperationGUI_ClippingDlg::OperationGUI_ClippingDlg( QWidget* parent, const char* name, bool modal, WFlags fl )
+ : GEOMBase_Skeleton( parent, "OperationGUI_ClippingDlg", false,
WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
setCaption( tr( "Change clipping range" ) );
// Controls
TextLabelNear = new QLabel( GroupArguments, "TextLabelNear" );
TextLabelNear->setText( tr( "Near" ) );
- //mzn TextLabelNear->setFixedWidth(74);
+ TextLabelNear->setFixedWidth(74);
GroupArgumentsLayout->addWidget( TextLabelNear, 0, 0 );
SpinBox_Near = new DlgRef_SpinBox( GroupArguments, "SpinBox_Near");
TextLabelFar = new QLabel( GroupArguments, "TextLabelFar" );
TextLabelFar->setText( tr( "Far" ) );
- //mzn TextLabelFar->setFixedWidth(74);
+ TextLabelFar->setFixedWidth(74);
GroupArgumentsLayout->addWidget( TextLabelFar, 0, 2 );
SpinBox_Far = new DlgRef_SpinBox( GroupArguments, "SpinBox_Far");
//=================================================================================
void OperationGUI_ClippingDlg::Init()
{
- QAD_ViewFrame* aFrame = QAD_Application::getDesktop()->getActiveApp()->
- getActiveStudy()->getActiveStudyFrame()->getRightFrame()->getViewFrame();
+ SUIT_ViewWindow* anActiveWindow = SUIT_Session::session()->activeApplication()->desktop()->activeWindow();
+ if (!anActiveWindow)
+ return;
- VTKViewer_ViewFrame* aVTKFrame = dynamic_cast<VTKViewer_ViewFrame*>( aFrame );
- if ( aVTKFrame )
- {
+ if ( anActiveWindow->getViewManager()->getType() == VTKViewer_Viewer::Type() )
+ {
+ VTKViewer_ViewWindow* aVTKFrame = dynamic_cast<VTKViewer_ViewWindow*>( anActiveWindow );
+
TextLabelNear->setText( tr( "Near" ) );
TextLabelFar->setText( tr( "Far" ) );
return;
}
-
- OCCViewer_ViewFrame* aOCCFrame = dynamic_cast<OCCViewer_ViewFrame*>( aFrame );
- if ( aOCCFrame )
+ else if ( anActiveWindow->getViewManager()->getType() == OCCViewer_Viewer::Type() )
{
+ OCCViewer_ViewWindow* aOCCFrame = dynamic_cast<OCCViewer_ViewWindow*>( anActiveWindow );
+
TextLabelNear->setText( tr( "Depth" ) );
TextLabelFar->setText( tr( "Thickness" ) );
//=================================================================================
bool OperationGUI_ClippingDlg::ClickOnApply()
{
- QAD_ViewFrame* aFrame = QAD_Application::getDesktop()->getActiveApp()->
- getActiveStudy()->getActiveStudyFrame()->getRightFrame()->getViewFrame();
+ SUIT_ViewWindow* anActiveWindow = SUIT_Session::session()->activeApplication()->desktop()->activeWindow();
+ if (!anActiveWindow)
+ return false;
- VTKViewer_ViewFrame* aVTKFrame = dynamic_cast<VTKViewer_ViewFrame*>( aFrame );
- if ( aVTKFrame )
+ if ( anActiveWindow->getViewManager()->getType() == VTKViewer_Viewer::Type() )
{
+ VTKViewer_ViewWindow* aVTKFrame = dynamic_cast<VTKViewer_ViewWindow*>( anActiveWindow );
+
vtkRenderer* aRenderer = aVTKFrame->getRenderer();
if(!aRenderer) return false;
return true;
}
-
- OCCViewer_ViewFrame* aOCCFrame = dynamic_cast<OCCViewer_ViewFrame*>( aFrame );
- if ( aOCCFrame )
+ else if ( anActiveWindow->getViewManager()->getType() == OCCViewer_Viewer::Type() )
{
+ OCCViewer_ViewWindow* aOCCFrame = dynamic_cast<OCCViewer_ViewWindow*>( anActiveWindow );
+
Handle(V3d_View) view3d = ((OCCViewer_ViewPort3d*)aOCCFrame->getViewPort())->getView();
double depth = SpinBox_Near->GetValue();
//=================================================================================
void OperationGUI_ClippingDlg::onReset()
{
- QAD_ViewFrame* aFrame = QAD_Application::getDesktop()->getActiveApp()->
- getActiveStudy()->getActiveStudyFrame()->getRightFrame()->getViewFrame();
+ SUIT_ViewWindow* anActiveWindow = SUIT_Session::session()->activeApplication()->desktop()->activeWindow();
+ if (!anActiveWindow)
+ return;
- VTKViewer_ViewFrame* aVTKFrame = dynamic_cast<VTKViewer_ViewFrame*>( aFrame );
- if ( aVTKFrame )
+ if ( anActiveWindow->getViewManager()->getType() == VTKViewer_Viewer::Type() )
{
+ VTKViewer_ViewWindow* aVTKFrame = dynamic_cast<VTKViewer_ViewWindow*>( anActiveWindow );
+
vtkRenderer* aRenderer = aVTKFrame->getRenderer();
if(!aRenderer) return;
return;
}
-
- OCCViewer_ViewFrame* aOCCFrame = dynamic_cast<OCCViewer_ViewFrame*>( aFrame );
- if ( aOCCFrame )
+ else if ( anActiveWindow->getViewManager()->getType() == OCCViewer_Viewer::Type() )
{
+ OCCViewer_ViewWindow* aOCCFrame = dynamic_cast<OCCViewer_ViewWindow*>( anActiveWindow );
+
TextLabelNear->setText( tr( "Depth" ) );
TextLabelFar->setText( tr( "Thickness" ) );
Q_OBJECT
public:
- OperationGUI_ClippingDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ OperationGUI_ClippingDlg(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~OperationGUI_ClippingDlg();
private :
#include "OperationGUI_FilletDlg.h"
#include "DlgRef_1Sel1Spin.h"
#include "DlgRef_2Sel1Spin.h"
-#include "QAD_Desktop.h"
+
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+#include "OCCViewer_ViewModel.h"
+
+#include "qlabel.h"
#include "qpixmap.h"
+#include <TColStd_MapOfInteger.hxx>
#include <TColStd_IndexedMapOfInteger.hxx>
#include <list>
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-OperationGUI_FilletDlg::OperationGUI_FilletDlg( QWidget* parent, SALOME_Selection* Sel )
- :GEOMBase_Skeleton( parent, "OperationGUI_FilletDlg", Sel, false,
- WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+OperationGUI_FilletDlg::OperationGUI_FilletDlg( QWidget* parent )
+ :GEOMBase_Skeleton( parent, "OperationGUI_FilletDlg", false,
+ WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
myConstructorId = -1;
- mySelection = Sel;
- QPixmap image0( QAD_Desktop::getResourceManager()->loadPixmap( "GEOM", tr( "ICON_DLG_FILLET_ALL" ) ) );
- QPixmap image1( QAD_Desktop::getResourceManager()->loadPixmap( "GEOM", tr( "ICON_DLG_FILLET_EDGE" ) ) );
- QPixmap image2( QAD_Desktop::getResourceManager()->loadPixmap( "GEOM", tr( "ICON_DLG_FILLET_FACE" ) ) );
+ QPixmap image0( SUIT_Session::session()->resourceMgr()->loadPixmap( "GEOM", tr( "ICON_DLG_FILLET_ALL" ) ) );
+ QPixmap image1( SUIT_Session::session()->resourceMgr()->loadPixmap( "GEOM", tr( "ICON_DLG_FILLET_EDGE" ) ) );
+ QPixmap image2( SUIT_Session::session()->resourceMgr()->loadPixmap( "GEOM", tr( "ICON_DLG_FILLET_FACE" ) ) );
- QPixmap iconSelect( QAD_Desktop::getResourceManager()->loadPixmap( "GEOM", tr( "ICON_SELECT" ) ) );
+ QPixmap iconSelect( SUIT_Session::session()->resourceMgr()->loadPixmap( "GEOM", tr( "ICON_SELECT" ) ) );
setCaption( tr( "GEOM_FILLET_TITLE" ) );
Group3->SpinBox_DX->RangeStepAndValidator(0.001, 999.999, SpecificStep, 3);
/* Initialisations */
- Init( mySelection );
+ Init();
}
// function : Init()
// purpose :
//=================================================================================
-void OperationGUI_FilletDlg::Init( SALOME_Selection* Sel )
+void OperationGUI_FilletDlg::Init()
{
- mySelection = Sel;
myConstructorId = -1;
reset();
RadioButton1->setChecked( true );
connect(Group3->SpinBox_DX, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
// selection
- connect( mySelection, SIGNAL( currentSelectionChanged() ), this, SLOT( SelectionIntoArgument() ) );
+ connect( ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL( currentSelectionChanged() ), this, SLOT( SelectionIntoArgument() ) );
initName( tr( "GEOM_FILLET" ) );
//=================================================================================
void OperationGUI_FilletDlg::ConstructorsClicked( int constructorId )
{
- if ( QAD_Application::getDesktop()->getActiveStudy()->getActiveStudyFrame()->getTypeView() != VIEW_OCC )
+ if ( SUIT_Session::session()->activeApplication()->desktop()->activeWindow()->getViewManager()->getType()
+ != OCCViewer_Viewer::Type() )
{
RadioButton1->setChecked( true );
return;
myEditCurrentArgument == Group2->LineEdit1 ||
myEditCurrentArgument == Group3->LineEdit1 )
{
- if ( mySelection->IObjectCount() == 1 )
+ if ( IObjectCount() == 1 )
{
Standard_Boolean aResult = Standard_False;
GEOM::GEOM_Object_var anObj =
- GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), aResult );
+ GEOMBase::ConvertIOinGEOMObject( firstIObject(), aResult );
if ( aResult && !anObj->_is_nil() )
{
else if ( myEditCurrentArgument == Group2->LineEdit2 ||
myEditCurrentArgument == Group3->LineEdit2 )
{
- if ( mySelection->IObjectCount() == 1 )
+ if ( IObjectCount() == 1 )
{
Standard_Boolean aResult = Standard_False;
GEOM::GEOM_Object_var anObj =
- GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), aResult );
+ GEOMBase::ConvertIOinGEOMObject( firstIObject(), aResult );
if ( aResult && !anObj->_is_nil() )
{
TColStd_IndexedMapOfInteger anIndexes;
- mySelection->GetIndex( mySelection->firstIObject(), anIndexes );
+ ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr()->GetIndexes( firstIObject(), anIndexes );
if ( anIndexes.Extent() > 0 )
{
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect( mySelection, SIGNAL(currentSelectionChanged()),
- this, SLOT( SelectionIntoArgument() ) );
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT( SelectionIntoArgument() ) );
activateSelection();
displayPreview();
Q_OBJECT
public:
- OperationGUI_FilletDlg( QWidget* parent,
- SALOME_Selection* Sel );
+ OperationGUI_FilletDlg( QWidget* parent );
~OperationGUI_FilletDlg();
protected:
private :
- void Init( SALOME_Selection* );
+ void Init();
void enterEvent( QEvent* e );
void reset();
int getConstructorId() const;
#include "OperationGUI_MaterialDlg.h"
#include "OperationGUI_PartitionDlg.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
#include "utilities.h"
-#include "QAD_Desktop.h"
+#include <qlabel.h>
#include <qlistview.h>
#include <qspinbox.h>
// TRUE to construct a modal dialog.
//=================================================================================
OperationGUI_MaterialDlg::OperationGUI_MaterialDlg (QWidget* parent, const char* name,
- SALOME_Selection* Sel,
- GEOM::ListOfGO ListShapes,
+ GEOM::ListOfGO ListShapes,
bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
myListShapes = ListShapes;
myParentDlg = parent;
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_PARTITION")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_PARTITION")));
setCaption(tr("GEOM_MATERIAL_TITLE"));
// connect(GroupPoints->ListView1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
// connect(GroupPoints->SpinBox1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
/* displays Dialog */
MESSAGE("GroupPoints->show() ...");
//=================================================================================
void OperationGUI_MaterialDlg::ClickOnOk()
{
- QAD_Application::getDesktop()->putInfo(tr(""));
+ SUIT_Session::session()->activeApplication()->putInfo(tr(""));
int nbSh = myListShapes.length();
myListMaterials.length(nbSh);
{
QString aString = ""; /* name of selection */
- int nbSel = myGeomBase->GetNameOfSelectedIObjects(mySelection, aString);
+ int nbSel = myGeomBase->GetNameOfSelectedIObjects(selectedIO(), aString);
if(nbSel < 1) {
return;
}
-// myGeomBase->ConvertListOfIOInListOfIOR(mySelection->StoredIObjects(), myListShapes);
+ //myGeomBase->ConvertListOfIOInListOfIOR(selectedIO(), myListShapes);
/* no simulation */
return;
void OperationGUI_MaterialDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
return;
}
Q_OBJECT
public:
- OperationGUI_MaterialDlg (QWidget* parent, const char* name,
- SALOME_Selection* Sel,
+ OperationGUI_MaterialDlg (QWidget* parent, const char* name,
GEOM::ListOfGO ListShapes,
bool modal = FALSE, WFlags fl = 0);
~OperationGUI_MaterialDlg();
#include "GEOMImpl_Types.hxx"
-#include "QAD_Desktop.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
#include <qcheckbox.h>
+#include <qcombobox.h>
+#include <qlabel.h>
#include "utilities.h"
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-OperationGUI_PartitionDlg::OperationGUI_PartitionDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+OperationGUI_PartitionDlg::OperationGUI_PartitionDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_PARTITION")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_PARTITION_PLANE")));
- QPixmap image2(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_PARTITION")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_PARTITION_PLANE")));
+ QPixmap image2(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_PARTITION_TITLE"));
connect(GroupPoints->ComboBox1, SIGNAL(activated(int)), this, SLOT(ComboTextChanged()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
initName( tr( "GEOM_PARTITION" ) );
ConstructorsClicked( 0 );
//=================================================================================
void OperationGUI_PartitionDlg::ConstructorsClicked(int constructorId)
{
- disconnect(mySelection, 0, this, 0);
+ disconnect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 0, this, 0);
globalSelection();
myListShapes.length(0);
onRemoveWebs(false);
myEditCurrentArgument->setFocus();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
MESSAGE(width()<<" "<<height());
}
myEditCurrentArgument->setText( "" );
QString aString = "";
- int nbSel = GEOMBase::GetNameOfSelectedIObjects( mySelection, aString, true );
+ int nbSel = GEOMBase::GetNameOfSelectedIObjects( selectedIO(), aString, true );
if ( nbSel < 1 )
{
if ( myEditCurrentArgument == GroupPoints->LineEdit1 )
{
- GEOMBase::ConvertListOfIOInListOfGO( mySelection->StoredIObjects(), myListShapes, true );
+ GEOMBase::ConvertListOfIOInListOfGO( selectedIO(), myListShapes, true );
myListMaterials.length( 0 );
if ( !myListShapes.length() )
return;
}
else if ( myEditCurrentArgument == GroupPoints->LineEdit2 )
{
- GEOMBase::ConvertListOfIOInListOfGO( mySelection->StoredIObjects(), myListTools, true );
+ GEOMBase::ConvertListOfIOInListOfGO( selectedIO(), myListTools, true );
if ( !myListTools.length() )
return;
}
else if(myEditCurrentArgument == GroupPoints->LineEdit3)
{
- GEOMBase::ConvertListOfIOInListOfGO( mySelection->StoredIObjects(), myListRemoveInside, true );
+ GEOMBase::ConvertListOfIOInListOfGO( selectedIO(), myListRemoveInside, true );
if (!myListRemoveInside.length())
return;
}
else if(myEditCurrentArgument == GroupPoints->LineEdit4)
{
- GEOMBase::ConvertListOfIOInListOfGO( mySelection->StoredIObjects(), myListKeepInside, true );
+ GEOMBase::ConvertListOfIOInListOfGO( selectedIO(), myListKeepInside, true );
if ( !myListKeepInside.length() )
return;
}
void OperationGUI_PartitionDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
ConstructorsClicked( getConstructorId() );
}
//=================================================================================
void OperationGUI_PartitionDlg::SetMaterials()
{
- SALOME_Selection* Sel =
- SALOME_Selection::Selection(QAD_Application::getDesktop()->getActiveStudy()->getSelection());
MESSAGE("OperationGUI_MaterialDlg ...");
OperationGUI_MaterialDlg *aDlg =
- new OperationGUI_MaterialDlg(this, "", Sel, myListShapes, true);
+ new OperationGUI_MaterialDlg(this, "", myListShapes, true);
MESSAGE("OperationGUI_MaterialDlg");
return;
}
Q_OBJECT
public:
- OperationGUI_PartitionDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ OperationGUI_PartitionDlg(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~OperationGUI_PartitionDlg();
void SetListMaterials(GEOM::ListOfLong ListMaterials)
PrimitiveGUI_TorusDlg.h \
PrimitiveGUI_ConeDlg.h
-LIB_CLIENT_IDL = SALOME_GenericObj.idl SALOME_Component.idl
+LIB_CLIENT_IDL = SALOME_GenericObj.idl SALOME_Component.idl SALOME_Exception.idl
LIB_SERVER_IDL =
# additionnal information to compil and link file
-CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome
-CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome
+CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) $(BOOST_CPPFLAGS) -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
+CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
LDFLAGS += -lGEOMFiltersSelection -lGEOMBase
#include "PrimitiveGUI.h"
#include "GeometryGUI.h"
-#include "QAD_Application.h"
-#include "QAD_Desktop.h"
-
-#include "SALOMEGUI_QtCatchCorbaException.hxx"
+#include "SUIT_Session.h"
+#include "SUIT_Desktop.h"
#include "PrimitiveGUI_BoxDlg.h" // Method BOX
#include "PrimitiveGUI_CylinderDlg.h" // Method CYLINDER
// function : GetPrimitiveGUI()
// purpose : Get the only PrimitiveGUI object [ static ]
//=======================================================================
-PrimitiveGUI* PrimitiveGUI::GetPrimitiveGUI()
+PrimitiveGUI* PrimitiveGUI::GetPrimitiveGUI( GeometryGUI* parent )
{
if ( myGUIObject == 0 ) {
// init PrimitiveGUI only once
- myGUIObject = new PrimitiveGUI();
+ myGUIObject = new PrimitiveGUI( parent );
}
return myGUIObject;
}
// function : PrimitiveGUI()
// purpose : Constructor
//=======================================================================
-PrimitiveGUI::PrimitiveGUI() : GEOMGUI()
+PrimitiveGUI::PrimitiveGUI(GeometryGUI* parent) : GEOMGUI(parent)
{
}
// function : OnGUIEvent()
// purpose :
//=======================================================================
-bool PrimitiveGUI::OnGUIEvent(int theCommandID, QAD_Desktop* parent)
+bool PrimitiveGUI::OnGUIEvent(int theCommandID, SUIT_Desktop* parent)
{
- PrimitiveGUI* aPrimitiveGUI = GetPrimitiveGUI();
- GeometryGUI::GetGeomGUI()->EmitSignalDeactivateDialog();
- SALOME_Selection* Sel = SALOME_Selection::Selection(QAD_Application::getDesktop()->getActiveStudy()->getSelection());
+ getGeometryGUI()->EmitSignalDeactivateDialog();
QDialog* aDlg = NULL;
{
case 4021: // BOX
{
- aDlg = new PrimitiveGUI_BoxDlg(parent, "", Sel);
+ aDlg = new PrimitiveGUI_BoxDlg(getGeometryGUI(), parent, "");
break;
}
case 4022: // CYLINDER
{
- aDlg = new PrimitiveGUI_CylinderDlg(parent, "", Sel);
+ aDlg = new PrimitiveGUI_CylinderDlg(getGeometryGUI(), parent, "");
break;
}
case 4023: // SPHERE
{
- aDlg = new PrimitiveGUI_SphereDlg(parent, "", Sel);
+ aDlg = new PrimitiveGUI_SphereDlg(getGeometryGUI(), parent, "");
break;
}
case 4024: // TORUS
{
- aDlg = new PrimitiveGUI_TorusDlg(parent, "", Sel);
+ aDlg = new PrimitiveGUI_TorusDlg(getGeometryGUI(), parent, "");
break;
}
case 4025: // CONE
{
- aDlg = new PrimitiveGUI_ConeDlg(parent, "", Sel);
+ aDlg = new PrimitiveGUI_ConeDlg(getGeometryGUI(), parent, "");
break;
}
default:
{
- parent->putInfo(tr("GEOM_PRP_COMMAND").arg(theCommandID));
+ SUIT_Session::session()->activeApplication()->putInfo(tr("GEOM_PRP_COMMAND").arg(theCommandID));
break;
}
}
//=====================================================================================
extern "C"
{
- GEOMGUI* GetLibGUI()
+ GEOMGUI* GetLibGUI( GeometryGUI* parent )
{
- return PrimitiveGUI::GetPrimitiveGUI();
+ return PrimitiveGUI::GetPrimitiveGUI( parent );
}
}
class PrimitiveGUI : public GEOMGUI
{
protected:
- PrimitiveGUI(); // hide constructor to avoid direct creation
+ PrimitiveGUI(GeometryGUI* parent); // hide constructor to avoid direct creation
public :
~PrimitiveGUI();
// Get the only PrimitiveGUI object
- static PrimitiveGUI* GetPrimitiveGUI();
+ static PrimitiveGUI* GetPrimitiveGUI(GeometryGUI* parent);
- bool OnGUIEvent(int theCommandID, QAD_Desktop* parent);
+ bool OnGUIEvent(int theCommandID, SUIT_Desktop* parent);
private:
static PrimitiveGUI* myGUIObject; // the only PrimitiveGUI object
#include "PrimitiveGUI_BoxDlg.h"
-#include "QAD_Config.h"
-#include "QAD_Desktop.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
+#include <qlabel.h>
#include "GEOMImpl_Types.hxx"
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-PrimitiveGUI_BoxDlg::PrimitiveGUI_BoxDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+PrimitiveGUI_BoxDlg::PrimitiveGUI_BoxDlg(GeometryGUI* theGeometryGUI, QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu), myGeometryGUI(theGeometryGUI)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM", tr("ICON_DLG_BOX_2P")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM", tr("ICON_DLG_BOX_DXYZ")));
- QPixmap image2(QAD_Desktop::getResourceManager()->loadPixmap("GEOM", tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM", tr("ICON_DLG_BOX_2P")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM", tr("ICON_DLG_BOX_DXYZ")));
+ QPixmap image2(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM", tr("ICON_SELECT")));
setCaption(tr("GEOM_BOX_TITLE"));
myPoint1 = myPoint2 = GEOM::GEOM_Object::_nil();
/* Get setting of step value from file configuration */
- QString St = QAD_CONFIG->getSetting("Geometry:SettingsGeomStep");
- double step = St.toDouble();
-
+ SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
+ double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
+
/* min, max, step and decimals for spin boxes */
GroupDimensions->SpinBox_DX->RangeStepAndValidator(-999.999, 999.999, step, 3);
GroupDimensions->SpinBox_DY->RangeStepAndValidator(-999.999, 999.999, step, 3);
connect(GroupDimensions->SpinBox_DY, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox()));
connect(GroupDimensions->SpinBox_DZ, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox()));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DX, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DY, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DZ, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DY, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DZ, SLOT(SetStep(double)));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
initName( tr( "GEOM_BOX" ) );
ConstructorsClicked(0);
//=================================================================================
void PrimitiveGUI_BoxDlg::ConstructorsClicked(int constructorId)
{
- disconnect(mySelection, 0, this, 0);
+ disconnect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 0, this, 0);
switch (constructorId)
{
GroupPoints->LineEdit2->setText("");
myPoint1 = myPoint2 = GEOM::GEOM_Object::_nil();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
break;
}
case 1:
myEditCurrentArgument->setText("");
- if (mySelection->IObjectCount() != 1)
+ if (IObjectCount() != 1)
{
if (myEditCurrentArgument == GroupPoints->LineEdit1)
myPoint1 = GEOM::GEOM_Object::_nil();
// nbSel == 1
Standard_Boolean testResult = Standard_False;
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject(mySelection->firstIObject(), testResult );
+ GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject(firstIObject(), testResult );
if(!testResult || CORBA::is_nil( aSelectedObject ))
return;
void PrimitiveGUI_BoxDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
ConstructorsClicked( getConstructorId() );
}
anObj = GEOM::GEOM_I3DPrimOperations::_narrow( getOperation() )->MakeBoxDXDYDZ( x, y, z );
res = true;
-
break;
}
}
Q_OBJECT
public:
- PrimitiveGUI_BoxDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ PrimitiveGUI_BoxDlg(GeometryGUI* theGeometryGUI, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~PrimitiveGUI_BoxDlg();
protected:
private :
void Init();
void enterEvent(QEvent* e);
+
+ GeometryGUI* myGeometryGUI;
GEOM::GEOM_Object_var myPoint1, myPoint2; /* Points containing the vector */
#include "PrimitiveGUI_ConeDlg.h"
-#include "QAD_Config.h"
-#include "QAD_Desktop.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
+#include <qlabel.h>
#include "GEOMImpl_Types.hxx"
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-PrimitiveGUI_ConeDlg::PrimitiveGUI_ConeDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+PrimitiveGUI_ConeDlg::PrimitiveGUI_ConeDlg(GeometryGUI* theGeometryGUI, QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu), myGeometryGUI(theGeometryGUI)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_CONE_PV")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_CONE_DXYZ")));
- QPixmap image2(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_CONE_PV")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_CONE_DXYZ")));
+ QPixmap image2(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_CONE_TITLE"));
myPoint = myDir = GEOM::GEOM_Object::_nil();
/* Get setting of step value from file configuration */
- QString St = QAD_CONFIG->getSetting("Geometry:SettingsGeomStep");
- double step = St.toDouble();
-
+ SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
+ double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
+
/* min, max, step and decimals for spin boxes & initial values */
GroupPoints->SpinBox_DX->RangeStepAndValidator(0.000, 999.999, step, 3);
GroupPoints->SpinBox_DY->RangeStepAndValidator(0.000, 999.999, step, 3);
connect(GroupDimensions->SpinBox_DY, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox()));
connect(GroupDimensions->SpinBox_DZ, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox()));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DX, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DY, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DZ, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DX, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DY, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DZ, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DY, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DZ, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DY, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DZ, SLOT(SetStep(double)));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
initName( tr( "GEOM_CONE" ) );
ConstructorsClicked(0);
//=================================================================================
void PrimitiveGUI_ConeDlg::ConstructorsClicked(int constructorId)
{
- disconnect(mySelection, 0, this, 0);
+ disconnect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 0, this, 0);
switch(constructorId)
{
GroupPoints->LineEdit2->setText(tr(""));
myPoint = myDir = GEOM::GEOM_Object::_nil();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
break;
}
case 1 :
if ( getConstructorId() != 0 )
return;
- if(mySelection->IObjectCount() != 1)
+ if(IObjectCount() != 1)
{
if(myEditCurrentArgument == GroupPoints->LineEdit1)
myPoint = GEOM::GEOM_Object::_nil();
/* nbSel == 1 */
Standard_Boolean testResult = Standard_False;
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), testResult );
+ GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( firstIObject(), testResult );
if(!testResult || CORBA::is_nil( aSelectedObject ))
return;
void PrimitiveGUI_ConeDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
ConstructorsClicked( getConstructorId() );
}
//=================================================================================
void PrimitiveGUI_ConeDlg::closeEvent( QCloseEvent* e )
{
- myGeomGUI->SetState( -1 );
+ // myGeomGUI->SetState( -1 );
GEOMBase_Skeleton::closeEvent( e );
}
Q_OBJECT
public:
- PrimitiveGUI_ConeDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ PrimitiveGUI_ConeDlg(GeometryGUI* theGeometryGUI, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~PrimitiveGUI_ConeDlg();
protected:
double getRadius1() const;
double getRadius2() const;
double getHeight() const;
+
+ GeometryGUI* myGeometryGUI;
GEOM::GEOM_Object_var myPoint, myDir;
#include "PrimitiveGUI_CylinderDlg.h"
-#include "QAD_Config.h"
-#include "QAD_Desktop.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
+#include <qlabel.h>
#include "GEOMImpl_Types.hxx"
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-PrimitiveGUI_CylinderDlg::PrimitiveGUI_CylinderDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+PrimitiveGUI_CylinderDlg::PrimitiveGUI_CylinderDlg(GeometryGUI* theGeometryGUI, QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu), myGeometryGUI(theGeometryGUI)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_CYLINDER_PV")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_CYLINDER_DXYZ")));
- QPixmap image2(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_CYLINDER_PV")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_CYLINDER_DXYZ")));
+ QPixmap image2(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_CYLINDER_TITLE"));
myPoint = myDir = GEOM::GEOM_Object::_nil();
/* Get setting of step value from file configuration */
- QString St = QAD_CONFIG->getSetting("Geometry:SettingsGeomStep");
- double step = St.toDouble();
+ SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
+ double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
/* min, max, step and decimals for spin boxes & initial values */
/* First constructor : radius */
connect(GroupDimensions->SpinBox_DX, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox()));
connect(GroupDimensions->SpinBox_DY, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox()));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DX, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DY, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DX, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DY, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DY, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DY, SLOT(SetStep(double)));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
initName( tr( "GEOM_CYLINDER" ) );
ConstructorsClicked(0);
//=================================================================================
void PrimitiveGUI_CylinderDlg::ConstructorsClicked(int constructorId)
{
- disconnect(mySelection, 0, this, 0);
+ disconnect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 0, this, 0);
switch(constructorId)
{
GroupPoints->LineEdit2->setText(tr(""));
myPoint = myDir = GEOM::GEOM_Object::_nil();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
break;
}
case 1 :
myEditCurrentArgument->setText("");
- if(mySelection->IObjectCount() != 1)
+ if(IObjectCount() != 1)
{
if(myEditCurrentArgument == GroupPoints->LineEdit1)
myPoint = GEOM::GEOM_Object::_nil();
/* nbSel == 1 */
Standard_Boolean testResult = Standard_False;
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), testResult );
+ GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( firstIObject(), testResult );
if(!testResult || CORBA::is_nil( aSelectedObject ))
return;
void PrimitiveGUI_CylinderDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
ConstructorsClicked( getConstructorId() );
}
Q_OBJECT
public:
- PrimitiveGUI_CylinderDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ PrimitiveGUI_CylinderDlg(GeometryGUI* theGeometryGUI, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~PrimitiveGUI_CylinderDlg();
protected:
void enterEvent(QEvent* e);
double getRadius() const;
double getHeight() const;
+
+ GeometryGUI* myGeometryGUI;
GEOM::GEOM_Object_var myPoint, myDir;
using namespace std;
#include "PrimitiveGUI_SphereDlg.h"
-#include "QAD_Config.h"
-#include "QAD_Desktop.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
+#include <qlabel.h>
#include "GEOMImpl_Types.hxx"
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-PrimitiveGUI_SphereDlg::PrimitiveGUI_SphereDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+PrimitiveGUI_SphereDlg::PrimitiveGUI_SphereDlg(GeometryGUI* theGeometryGUI, QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu), myGeometryGUI(theGeometryGUI)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_SPHERE_P")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_SPHERE_DXYZ")));
- QPixmap image2(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_SPHERE_P")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_SPHERE_DXYZ")));
+ QPixmap image2(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_SPHERE_TITLE"));
myPoint = GEOM::GEOM_Object::_nil();
/* Get setting of step value from file configuration */
- QString St = QAD_CONFIG->getSetting("Geometry:SettingsGeomStep");
- double step = St.toDouble();
+ SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
+ double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
/* min, max, step and decimals for spin boxes */
GroupPoints->SpinBox_DX->RangeStepAndValidator(0.001, 999.999, step, 3);
connect(GroupDimensions->SpinBox_DX, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox()));
connect(GroupPoints->SpinBox_DX, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox()));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DX, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DX, SLOT(SetStep(double)));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
initName(tr("GEOM_SPHERE"));
ConstructorsClicked(0);
//=================================================================================
void PrimitiveGUI_SphereDlg::ConstructorsClicked(int constructorId)
{
- disconnect(mySelection, 0, this, 0);
+ disconnect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 0, this, 0);
switch (constructorId)
{
GroupPoints->LineEdit1->setText("");
myPoint = GEOM::GEOM_Object::_nil();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
break;
}
case 1:
myEditCurrentArgument->setText("");
- if(mySelection->IObjectCount() != 1)
+ if(IObjectCount() != 1)
{
myPoint = GEOM::GEOM_Object::_nil();
return;
/* nbSel == 1 ! */
Standard_Boolean testResult = Standard_False;
- GEOM::GEOM_Object_ptr aSelectedObject = GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), testResult );
+ GEOM::GEOM_Object_ptr aSelectedObject = GEOMBase::ConvertIOinGEOMObject( firstIObject(), testResult );
if (!testResult || CORBA::is_nil( aSelectedObject ))
return;
void PrimitiveGUI_SphereDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
ConstructorsClicked( getConstructorId() );
}
//=================================================================================
void PrimitiveGUI_SphereDlg::closeEvent( QCloseEvent* e )
{
- myGeomGUI->SetState( -1 );
+ //myGeomGUI->SetState( -1 );
GEOMBase_Skeleton::closeEvent( e );
}
Q_OBJECT
public:
- PrimitiveGUI_SphereDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ PrimitiveGUI_SphereDlg(GeometryGUI* theGeometryGUI, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~PrimitiveGUI_SphereDlg();
protected:
void Init();
void enterEvent(QEvent* e);
double getRadius() const;
+
+ GeometryGUI* myGeometryGUI;
GEOM::GEOM_Object_var myPoint; /* Center point */
#include "PrimitiveGUI_TorusDlg.h"
-#include "QAD_Config.h"
-#include "QAD_Desktop.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
+#include <qlabel.h>
#include "GEOMImpl_Types.hxx"
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-PrimitiveGUI_TorusDlg::PrimitiveGUI_TorusDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+PrimitiveGUI_TorusDlg::PrimitiveGUI_TorusDlg(GeometryGUI* theGeometryGUI, QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu), myGeometryGUI(theGeometryGUI)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_TORUS_PV")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_TORUS_DXYZ")));
- QPixmap image2(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_TORUS_PV")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_TORUS_DXYZ")));
+ QPixmap image2(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_TORUS_TITLE"));
myPoint = myDir = GEOM::GEOM_Object::_nil();
/* Get setting of step value from file configuration */
- QString St = QAD_CONFIG->getSetting("Geometry:SettingsGeomStep");
- double step = St.toDouble();
+ SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
+ double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
/* min, max, step and decimals for spin boxes & initial values */
GroupPoints->SpinBox_DX->RangeStepAndValidator(0.001, 999.999, step, 3);
connect(GroupDimensions->SpinBox_DX, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox()));
connect(GroupDimensions->SpinBox_DY, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox()));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DX, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DY, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DX, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DY, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DY, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DY, SLOT(SetStep(double)));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
initName( tr( "GEOM_TORUS" ) );
ConstructorsClicked(0);
//=================================================================================
void PrimitiveGUI_TorusDlg::ConstructorsClicked(int constructorId)
{
- disconnect(mySelection, 0, this, 0);
+ disconnect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 0, this, 0);
switch(constructorId)
{
GroupPoints->LineEdit2->setText(tr(""));
myPoint = myDir = GEOM::GEOM_Object::_nil();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
break ;
}
case 1 :
myEditCurrentArgument->setText("");
- if(mySelection->IObjectCount() != 1)
+ if(IObjectCount() != 1)
{
if(myEditCurrentArgument == GroupPoints->LineEdit1)
myPoint = GEOM::GEOM_Object::_nil();
/* nbSel == 1 */
Standard_Boolean testResult = Standard_False;
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), testResult );
+ GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( firstIObject(), testResult );
if(!testResult || CORBA::is_nil( aSelectedObject ))
return;
void PrimitiveGUI_TorusDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
ConstructorsClicked( getConstructorId() );
}
Q_OBJECT
public:
- PrimitiveGUI_TorusDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ PrimitiveGUI_TorusDlg(GeometryGUI* theGeometryGUI, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~PrimitiveGUI_TorusDlg();
protected:
void enterEvent(QEvent* e);
double getRadius1() const;
double getRadius2() const;
+
+ GeometryGUI* myGeometryGUI;
GEOM::GEOM_Object_var myPoint, myDir;
RepairGUI_FreeFacesDlg.h \
RepairGUI_GlueDlg.h
-LIB_CLIENT_IDL = SALOME_GenericObj.idl SALOME_Component.idl
+LIB_CLIENT_IDL = SALOME_Exception.idl SALOME_GenericObj.idl SALOME_Component.idl
LIB_SERVER_IDL =
# additionnal information to compil and link file
-CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome
-CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome
+CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) $(BOOST_CPPFLAGS) -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
+CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
LDFLAGS += -lGEOMBase
#include "RepairGUI.h"
-#include "QAD_RightFrame.h"
-#include "QAD_Desktop.h"
-#include "OCCViewer_Viewer3d.h"
-#include "SALOMEGUI_QtCatchCorbaException.hxx"
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
#include "RepairGUI_SewingDlg.h" // Method SEWING
#include "RepairGUI_SuppressFacesDlg.h" // Method SUPPRESS FACES
// function : GetRepairGUI()
// purpose : Get the only RepairGUI object [ static ]
//=======================================================================
-RepairGUI* RepairGUI::GetRepairGUI()
+RepairGUI* RepairGUI::GetRepairGUI( GeometryGUI* parent )
{
if ( myGUIObject == 0 ) {
// init RepairGUI only once
- myGUIObject = new RepairGUI();
+ myGUIObject = new RepairGUI( parent );
}
return myGUIObject;
}
// function : RepairGUI()
// purpose : Constructor
//=======================================================================
-RepairGUI::RepairGUI() : GEOMGUI()
+RepairGUI::RepairGUI( GeometryGUI* parent ) : GEOMGUI( parent )
{
}
// function : OnGUIEvent()
// purpose :
//=======================================================================
-bool RepairGUI::OnGUIEvent(int theCommandID, QAD_Desktop* parent)
+bool RepairGUI::OnGUIEvent(int theCommandID, SUIT_Desktop* parent)
{
- GeometryGUI::GetGeomGUI()->EmitSignalDeactivateDialog();
- SALOME_Selection* Sel = SALOME_Selection::Selection(QAD_Application::getDesktop()->getActiveStudy()->getSelection());
-
+ getGeometryGUI()->EmitSignalDeactivateDialog();
+
QDialog* aDlg = NULL;
switch (theCommandID) {
case 601: // SEWING
- aDlg = new RepairGUI_SewingDlg( parent, "", Sel );
+ aDlg = new RepairGUI_SewingDlg( parent, "" );
break;
case 602: // GLUE FACES
- aDlg = new RepairGUI_GlueDlg( parent, "", Sel );
+ aDlg = new RepairGUI_GlueDlg( parent, "" );
break;
case 603: // SUPPRESS FACES
- aDlg = new RepairGUI_SuppressFacesDlg( parent, "", Sel);
+ aDlg = new RepairGUI_SuppressFacesDlg( parent, "" );
break;
case 604: // SUPPRESS HOLES
- aDlg = new RepairGUI_RemoveHolesDlg( parent, "", Sel );
+ aDlg = new RepairGUI_RemoveHolesDlg( parent, "" );
break;
case 605: // SHAPE PROCESSING
- aDlg = new RepairGUI_ShapeProcessDlg( parent, "", Sel );
+ aDlg = new RepairGUI_ShapeProcessDlg( parent, "" );
break;
case 606: // CLOSE CONTOUR
- aDlg = new RepairGUI_CloseContourDlg( parent, "", Sel );
+ aDlg = new RepairGUI_CloseContourDlg( parent, "" );
break;
case 607: // REMOVE INTERNAL WIRES
- aDlg = new RepairGUI_RemoveIntWiresDlg( parent, "", Sel );
+ aDlg = new RepairGUI_RemoveIntWiresDlg( parent, "" );
break;
case 608: // ADD POINT ON EDGE
- aDlg = new RepairGUI_DivideEdgeDlg( parent, "", Sel );
+ aDlg = new RepairGUI_DivideEdgeDlg( parent, "" );
break;
case 609: // FREE BOUNDARIES
- aDlg = new RepairGUI_FreeBoundDlg( parent, Sel );
+ aDlg = new RepairGUI_FreeBoundDlg( getGeometryGUI(), parent );
break;
case 610: // FREE FACES
- aDlg = new RepairGUI_FreeFacesDlg( parent, "", Sel );
+ aDlg = new RepairGUI_FreeFacesDlg( getGeometryGUI(), parent, "" );
break;
default:
- parent->putInfo(tr("GEOM_PRP_COMMAND").arg(theCommandID));
+ SUIT_Session::session()->activeApplication()->putInfo(tr("GEOM_PRP_COMMAND").arg(theCommandID));
break;
}
//=====================================================================================
extern "C"
{
- GEOMGUI* GetLibGUI()
+ GEOMGUI* GetLibGUI( GeometryGUI* parent )
{
- return RepairGUI::GetRepairGUI();
+ return RepairGUI::GetRepairGUI( parent );
}
}
class RepairGUI : public GEOMGUI
{
protected:
- RepairGUI(); // hide constructor to avoid direct creation
+ RepairGUI( GeometryGUI* parent ); // hide constructor to avoid direct creation
public :
~RepairGUI();
// Get the only RepairGUI object
- static RepairGUI* GetRepairGUI();
+ static RepairGUI* GetRepairGUI( GeometryGUI* parent );
- bool OnGUIEvent(int theCommandID, QAD_Desktop* parent);
+ bool OnGUIEvent(int theCommandID, SUIT_Desktop* parent);
private:
static RepairGUI* myGUIObject; // the only RepairGUI object
using namespace std;
#include "RepairGUI_CloseContourDlg.h"
-#include "QAD_RightFrame.h"
-#include "QAD_Desktop.h"
-#include "OCCViewer_Viewer3d.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+#include "SUIT_Session.h"
#include "SALOME_ListIteratorOfListIO.hxx"
#include "GEOMImpl_Types.hxx"
#include <TopAbs.hxx>
+#include <TColStd_IndexedMapOfInteger.hxx>
+#include <TColStd_MapOfInteger.hxx>
+#include <qlabel.h>
//=================================================================================
// class : RepairGUI_CloseContourDlg()
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-RepairGUI_CloseContourDlg::RepairGUI_CloseContourDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+RepairGUI_CloseContourDlg::RepairGUI_CloseContourDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_CLOSECONTOUR")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_CLOSECONTOUR")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_CLOSECONTOUR_TITLE"));
myWiresInd = new GEOM::short_array();
myWiresInd->length( 0 );
- myGeomGUI->SetState( 0 );
+ //myGeomGUI->SetState( 0 );
initSelection();
/* signals and slots connections */
connect(mySelectWiresBtn, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
connect(mySelectWiresEdt, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
initName( tr( "CLOSE_CONTOUR_NEW_OBJ_NAME" ) );
}
else if ( myEditCurrentArgument == mySelectWiresEdt )
myWiresInd->length( 0 );
- if ( mySelection->IObjectCount() == 1 )
+ if ( IObjectCount() == 1 )
{
- Handle(SALOME_InteractiveObject) anIO = mySelection->firstIObject();
+ Handle(SALOME_InteractiveObject) anIO = firstIObject();
if ( myEditCurrentArgument == GroupPoints->LineEdit1 ) // face selection
{
else if ( myEditCurrentArgument == mySelectWiresEdt )
{
TColStd_IndexedMapOfInteger aMap;
- mySelection->GetIndex( anIO, aMap );
+ ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr()->GetIndexes( anIO, aMap );
const int n = aMap.Extent();
myWiresInd->length( n );
for ( int i = 1; i <= n; i++ )
//=================================================================================
void RepairGUI_CloseContourDlg::DeactivateActiveDialog()
{
- myGeomGUI->SetState( -1 );
+ //myGeomGUI->SetState( -1 );
GEOMBase_Skeleton::DeactivateActiveDialog();
}
void RepairGUI_CloseContourDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
myEditCurrentArgument = GroupPoints->LineEdit1;
myEditCurrentArgument->setText("");
myObject = GEOM::GEOM_Object::_nil();
myWiresInd->length( 0 );
- myGeomGUI->SetState( 0 );
+ //myGeomGUI->SetState( 0 );
initSelection();
}
//=================================================================================
void RepairGUI_CloseContourDlg::closeEvent(QCloseEvent* e)
{
- myGeomGUI->SetState( -1 );
+ //myGeomGUI->SetState( -1 );
GEOMBase_Skeleton::closeEvent( e );
}
Q_OBJECT
public:
- RepairGUI_CloseContourDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ RepairGUI_CloseContourDlg(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~RepairGUI_CloseContourDlg();
protected:
using namespace std;
#include "RepairGUI_DivideEdgeDlg.h"
-#include "QAD_RightFrame.h"
-#include "QAD_Desktop.h"
-#include "OCCViewer_Viewer3d.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+#include "SUIT_Session.h"
#include "SALOME_ListIteratorOfListIO.hxx"
#include "GEOMImpl_Types.hxx"
#include <TopAbs.hxx>
+#include <qlabel.h>
//=================================================================================
// class : RepairGUI_DivideEdgeDlg()
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-RepairGUI_DivideEdgeDlg::RepairGUI_DivideEdgeDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+RepairGUI_DivideEdgeDlg::RepairGUI_DivideEdgeDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_DIVIDE_EDGE")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_DIVIDE_EDGE")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_DIVIDE_EDGE_TITLE"));
myIsParameterGr->find( 0 )->toggle();
QGridLayout* aLay = new QGridLayout( 0, 1, 2, 0, 6, "aLay" );
- myValEdt = new QAD_SpinBoxDbl( GroupPoints->GroupBox1, 0., 1., 0.1, 3 );
+ myValEdt = new QtxDblSpinBox(0., 1., 0.1, GroupPoints->GroupBox1);// QAD_SpinBoxDbl( GroupPoints->GroupBox1, 0., 1., 0.1, 3 );
+ myValEdt->setPrecision( 3 );
myValEdt->setValue( 0.5 );
QLabel* aLbl1 = new QLabel( tr( "GEOM_VALUE" ), GroupPoints->GroupBox1 );
aLay->addWidget( aLbl1, 0, 0 );
myObject = GEOM::GEOM_Object::_nil();
myIndex = -1;
- myGeomGUI->SetState( 0 );
+ //myGeomGUI->SetState( 0 );
initSelection();
/* signals and slots connections */
connect(GroupPoints->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
connect(GroupPoints->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
initName( tr( "DEVIDE_EDGE_NEW_OBJECT_NAME" ) );
}
myObject = GEOM::GEOM_Object::_nil();
myIndex = -1;
- if ( mySelection->IObjectCount() == 1 )
+ if ( IObjectCount() == 1 )
{
- Handle(SALOME_InteractiveObject) anIO = mySelection->firstIObject();
+ Handle(SALOME_InteractiveObject) anIO = firstIObject();
Standard_Boolean aRes;
GEOM::GEOM_Object_var aSelectedObj = GEOMBase::ConvertIOinGEOMObject( anIO, aRes );
if ( !CORBA::is_nil( aSelectedObj ) && aRes )
if ( myGeomBase->GetShape( aSelectedObj, aShape, TopAbs_SHAPE ) )
{
const int aType = aShape.ShapeType();
- if ( aType <= TopAbs_EDGE ) // edge, wire, face, shell, solid, compound
- {
- GEOM::short_array anIndexes;
- if ( mySelection->HasIndex( anIO ) ) // subshape selection
- {
- TColStd_IndexedMapOfInteger aMap;
- mySelection->GetIndex( anIO, aMap );
- myIndex = aMap( 1 );
- myObject = aSelectedObj;
- myEditCurrentArgument->setText( tr( "GEOM_EDGE" ) + "_1" );
- }
- else if ( aType == TopAbs_EDGE ) // single shape selection
- {
- myIndex = -1;
- myObject = aSelectedObj;
- myEditCurrentArgument->setText( GEOMBase::GetName( myObject ) );
- }
- else // face, shell, solid or compound was selected, and NOT its subshape.
- {
- myIndex = -1;
- myObject = GEOM::GEOM_Object::_nil();
- }
- }
+ if ( aType <= TopAbs_EDGE ) // edge, wire, face, shell, solid, compound
+ {
+ GEOM::short_array anIndexes;
+
+ TColStd_IndexedMapOfInteger aMap;
+ ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr()->GetIndexes( anIO, aMap );
+
+ if ( !aMap.IsEmpty() ) // subshape selection
+ {
+ myIndex = aMap( 1 );
+ myObject = aSelectedObj;
+ myEditCurrentArgument->setText( tr( "GEOM_EDGE" ) + "_1" );
+ }
+ else if ( aType == TopAbs_EDGE ) // single shape selection
+ {
+ myIndex = -1;
+ myObject = aSelectedObj;
+ myEditCurrentArgument->setText( GEOMBase::GetName( myObject ) );
+ }
+ else // face, shell, solid or compound was selected, and NOT its subshape.
+ {
+ myIndex = -1;
+ myObject = GEOM::GEOM_Object::_nil();
+ }
+ }
}
}
}
//=================================================================================
void RepairGUI_DivideEdgeDlg::DeactivateActiveDialog()
{
- myGeomGUI->SetState( -1 );
+ //myGeomGUI->SetState( -1 );
GEOMBase_Skeleton::DeactivateActiveDialog();
}
void RepairGUI_DivideEdgeDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
myObject = GEOM::GEOM_Object::_nil();
myIndex = -1;
- myGeomGUI->SetState( 0 );
+ //myGeomGUI->SetState( 0 );
initSelection();
}
//=================================================================================
void RepairGUI_DivideEdgeDlg::closeEvent(QCloseEvent* e)
{
- myGeomGUI->SetState( -1 );
+ //myGeomGUI->SetState( -1 );
GEOMBase_Skeleton::closeEvent( e );
}
#include "GEOMBase_Skeleton.h"
#include "DlgRef_1Sel_Ext.h"
-#include "QAD_SpinBoxDbl.h"
+#include "QtxDblSpinBox.h"
#include <TColStd_IndexedMapOfInteger.hxx>
Q_OBJECT
public:
- RepairGUI_DivideEdgeDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ RepairGUI_DivideEdgeDlg(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~RepairGUI_DivideEdgeDlg();
protected:
int myIndex;
DlgRef_1Sel_Ext* GroupPoints;
- QButtonGroup* myIsParameterGr;
- QAD_SpinBoxDbl* myValEdt;
+ QButtonGroup* myIsParameterGr;
+ QtxDblSpinBox* myValEdt;
private slots:
void ClickOnOk();
// $Header$
#include "RepairGUI_FreeBoundDlg.h"
-#include "QAD_Desktop.h"
#include "GEOMBase.h"
#include "GeometryGUI.h"
#include "GEOM_Displayer.h"
-#include "SALOMEGUI_QtCatchCorbaException.hxx"
#include "GEOMImpl_Types.hxx"
-#include "SALOME_Prs.h"
-#include "SALOME_Selection.h"
+
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+#include "SUIT_Session.h"
+
+#include <TColStd_MapOfInteger.hxx>
#include <qlineedit.h>
#include <qlabel.h>
// function : RepairGUI_FreeBoundDlg
// purpose : Constructor
//=================================================================================
-RepairGUI_FreeBoundDlg::RepairGUI_FreeBoundDlg( QWidget* theParen, SALOME_Selection* theSelection )
-: QDialog( theParen, "RepairGUI_FreeBoundDlg", false,
- WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu | WDestructiveClose )
+RepairGUI_FreeBoundDlg::RepairGUI_FreeBoundDlg( GeometryGUI* theGUI, QWidget* theParent )
+: QDialog( theParent, "RepairGUI_FreeBoundDlg", false,
+ WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu | WDestructiveClose ),
+ myGeomGUI ( theGUI )
{
setCaption( tr( "CAPTION" ) );
- QPixmap iconSelect( QAD_Desktop::getResourceManager()->loadPixmap( "GEOM",tr( "ICON_SELECT" ) ) );
+ QPixmap iconSelect( SUIT_Session::session()->resourceMgr()->loadPixmap( "GEOM",tr( "ICON_SELECT" ) ) );
QGroupBox* aMainGrp = new QGroupBox( 1, Qt::Horizontal, tr( "FREE_BOUND" ), this );
connect( aCloseBtn, SIGNAL( clicked() ), SLOT( onClose() ) );
- Init( theSelection );
+ Init();
}
//=================================================================================
void RepairGUI_FreeBoundDlg::onClose()
{
globalSelection();
- disconnect( mySelection, 0, this, 0 );
- GeometryGUI::GetGeomGUI()->SetActiveDialogBox( 0 );
+ disconnect( ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 0, this, 0 );
+ myGeomGUI->SetActiveDialogBox( 0 );
reject();
erasePreview();
}
{
setEnabled(false);
globalSelection();
- disconnect( mySelection, 0, this, 0 );
- GeometryGUI::GetGeomGUI()->SetActiveDialogBox( 0 );
+ disconnect( ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 0, this, 0 );
+ myGeomGUI->SetActiveDialogBox( 0 );
}
//=================================================================================
//=================================================================================
void RepairGUI_FreeBoundDlg::onActivate()
{
- GeometryGUI::GetGeomGUI()->EmitSignalDeactivateDialog();
+ myGeomGUI->EmitSignalDeactivateDialog();
setEnabled( true );
- GeometryGUI::GetGeomGUI()->SetActiveDialogBox( this );
- connect( mySelection, SIGNAL( currentSelectionChanged() ), SLOT ( onSelectionDone() ) );
+ myGeomGUI->SetActiveDialogBox( this );
+ connect( ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL( currentSelectionChanged() ), SLOT( onSelectionDone() ) );
activateSelection();
onSelectionDone();
}
//=================================================================================
void RepairGUI_FreeBoundDlg::onSelectionDone()
{
- if( mySelection->IObjectCount() != 1 )
+ if( IObjectCount() != 1 )
return;
Standard_Boolean isOk = Standard_False;
GEOM::GEOM_Object_var anObj =
- GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), isOk );
+ GEOMBase::ConvertIOinGEOMObject( firstIObject(), isOk );
if ( !isOk || anObj->_is_nil() || !GEOMBase::IsShape( anObj ) )
return;
// function : Init
// purpose : Initialize dialog fields
//=================================================================================
-void RepairGUI_FreeBoundDlg::Init( SALOME_Selection* theSel )
+void RepairGUI_FreeBoundDlg::Init()
{
myNbClosed = myNbOpen = 0;
myObj = GEOM::GEOM_Object::_nil();
- mySelection = theSel;
- GeometryGUI* aGeomGUI = GeometryGUI::GetGeomGUI();
- connect( aGeomGUI, SIGNAL( SignalDeactivateActiveDialog() ), SLOT ( onDeactivate() ) );
- connect( mySelection, SIGNAL( currentSelectionChanged() ), SLOT ( onSelectionDone() ) );
+ connect( myGeomGUI, SIGNAL( SignalDeactivateActiveDialog() ), SLOT ( onDeactivate() ) );
+ connect( ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL( currentSelectionChanged() ), SLOT( onSelectionDone() ) );
activateSelection();
onSelectionDone();
return result;
}
-
-
-
-
-
-
-
-
-
-
+//=================================================================================
+// function : getDesktop()
+// purpose :
+//=================================================================================
+SUIT_Desktop* RepairGUI_FreeBoundDlg::getDesktop() const
+{
+ return dynamic_cast<SUIT_Desktop*>( parentWidget() );
+}
#include <qdialog.h>
#include "GEOMBase_Helper.h"
-class SALOME_Prs;
-class SALOME_Selection;
class QLineEdit;
class QLabel;
class GEOM_Displayer;
+class GeometryGUI;
//=================================================================================
// class : RepairGUI_FreeBoundDlg
Q_OBJECT
public:
- RepairGUI_FreeBoundDlg( QWidget*, SALOME_Selection* );
+ RepairGUI_FreeBoundDlg( GeometryGUI*, QWidget* );
~RepairGUI_FreeBoundDlg();
private slots:
private:
- void Init( SALOME_Selection* );
+ void Init();
void enterEvent( QEvent* e );
void closeEvent( QCloseEvent* e );
void activateSelection();
virtual GEOM::GEOM_IOperations_ptr createOperation();
virtual bool execute( ObjectList& objects );
virtual bool isValid( QString& );
+ virtual SUIT_Desktop* getDesktop() const;
private:
QLabel* myClosedLbl;
QLabel* myOpenLbl;
GEOM::GEOM_Object_var myObj;
- SALOME_Selection* mySelection;
+ GeometryGUI* myGeomGUI;
int myNbClosed;
int myNbOpen;
};
using namespace std;
#include "RepairGUI_FreeFacesDlg.h"
-#include "QAD_Desktop.h"
-#include "QAD_WaitCursor.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+#include "SalomeApp_Tools.h"
+#include "SUIT_Session.h"
#include "SALOME_ListIteratorOfListIO.hxx"
#include "GEOMImpl_Types.hxx"
#include <TopTools_IndexedMapOfShape.hxx>
+#include <TColStd_MapOfInteger.hxx>
#include <TopExp.hxx>
#include "GEOMBase.h"
#include "GeometryGUI.h"
#include "GEOM_Displayer.h"
-#include "SALOMEGUI_QtCatchCorbaException.hxx"
-#include "SALOME_Selection.h"
-#include "SALOME_Prs.h"
-
+#include <qapplication.h>
#include <qlineedit.h>
#include <qlabel.h>
#include <qlayout.h>
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-RepairGUI_FreeFacesDlg::RepairGUI_FreeFacesDlg(QWidget* parent, const char* name, SALOME_Selection* theSelection, bool modal, WFlags fl)
+RepairGUI_FreeFacesDlg::RepairGUI_FreeFacesDlg(GeometryGUI* GUI, QWidget* parent, const char* name, bool modal, WFlags fl)
:QDialog( parent, "RepairGUI_FreeBoundDlg", false,
- WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu | WDestructiveClose )
+ WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu | WDestructiveClose ),
+ myGeomGUI( GUI )
{
myDisplayer = 0;
setSizeGripEnabled( TRUE );
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_FREE_FACES_TITLE"));
this, SLOT ( onSetEditCurrentArgument() ) );
/***************************************************************/
- Init( theSelection );
+ Init();
}
void RepairGUI_FreeFacesDlg::onClose()
{
globalSelection();
- disconnect( mySelection, 0, this, 0 );
- GeometryGUI::GetGeomGUI()->SetActiveDialogBox( 0 );
+ disconnect( ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 0, this, 0 );
+ myGeomGUI->SetActiveDialogBox( 0 );
reject();
erasePreview();
}
{
setEnabled(false);
globalSelection();
- disconnect( mySelection, 0, this, 0 );
- GeometryGUI::GetGeomGUI()->SetActiveDialogBox( 0 );
+ disconnect( ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 0, this, 0 );
+ myGeomGUI->SetActiveDialogBox( 0 );
}
//=================================================================================
//=================================================================================
void RepairGUI_FreeFacesDlg::onActivate()
{
- GeometryGUI::GetGeomGUI()->EmitSignalDeactivateDialog();
+ myGeomGUI->EmitSignalDeactivateDialog();
setEnabled( true );
- GeometryGUI::GetGeomGUI()->SetActiveDialogBox( this );
- connect( mySelection, SIGNAL( currentSelectionChanged() ), SLOT ( onSelectionDone() ) );
+ myGeomGUI->SetActiveDialogBox( this );
+ connect( ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL( currentSelectionChanged() ), SLOT ( onSelectionDone() ) );
activateSelection();
}
// function : Init()
// purpose :
//=================================================================================
-void RepairGUI_FreeFacesDlg::Init(SALOME_Selection* theSel)
+void RepairGUI_FreeFacesDlg::Init()
{
myObj = GEOM::GEOM_Object::_nil();
- mySelection = theSel;
-
/* signals and slots connections */
- GeometryGUI* aGeomGUI = GeometryGUI::GetGeomGUI();
- connect( aGeomGUI, SIGNAL( SignalDeactivateActiveDialog() ), SLOT ( onDeactivate() ) );
- connect( mySelection, SIGNAL( currentSelectionChanged() ), SLOT ( onSelectionDone() ) );
+ connect( myGeomGUI, SIGNAL( SignalDeactivateActiveDialog() ), SLOT ( onDeactivate() ) );
+ connect( ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL( currentSelectionChanged() ), SLOT ( onSelectionDone() ) );
activateSelection();
onSelectionDone();
void RepairGUI_FreeFacesDlg::onSelectionDone()
{
erasePreview();
- if( mySelection->IObjectCount() != 1 )
+ if( IObjectCount() != 1 )
{
myEdit->setText( "" );
return;
Standard_Boolean isOk = Standard_False;
GEOM::GEOM_Object_var anObj =
- GEOMBase::ConvertIOinGEOMObject( mySelection->firstIObject(), isOk );
+ GEOMBase::ConvertIOinGEOMObject( firstIObject(), isOk );
if ( !isOk || anObj->_is_nil() || !GEOMBase::IsShape( anObj ) )
{
TopExp::MapShapes( aSelShape, anIndices);
SALOME_Prs* aPrs = 0;
- QAD_WaitCursor wc;
+ QApplication::setOverrideCursor( Qt::waitCursor );
for ( int i = 0, n = aFaceLst->length(); i < n; i++ )
{
}
catch( const SALOME::SALOME_Exception& e )
{
- QtCatchCorbaException( e );
+ SalomeApp_Tools::QtCatchCorbaException( e );
}
}
}
GEOM_Displayer* RepairGUI_FreeFacesDlg::getDisplayer()
{
if ( !myDisplayer )
- myDisplayer = new GEOM_Displayer();
+ myDisplayer = new GEOM_Displayer( getStudy() );
return myDisplayer;
}
onSelectionDone();
}
+//=================================================================================
+// function : getDesktop()
+// purpose :
+//=================================================================================
+SUIT_Desktop* RepairGUI_FreeFacesDlg::getDesktop() const
+{
+ return dynamic_cast<SUIT_Desktop*>( parentWidget() );
+}
#include "GEOMBase_Helper.h"
class GEOM_Displayer;
-class SALOME_Selection;
-class SALOME_Prs;
class QPushButton;
class QLineEdit;
+class GeometryGUI;
//=================================================================================
// class : RepairGUI_FreeFacesDlg
Q_OBJECT
public:
- RepairGUI_FreeFacesDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ RepairGUI_FreeFacesDlg(GeometryGUI* GUI, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~RepairGUI_FreeFacesDlg();
protected:
virtual GEOM::GEOM_IOperations_ptr createOperation();
virtual bool isValid( QString& );
virtual bool execute( ObjectList& objects );
+ virtual SUIT_Desktop* getDesktop() const;
private :
- void Init(SALOME_Selection*);
+ void Init();
void enterEvent(QEvent* e);
void closeEvent(QCloseEvent* e);
void activateSelection();
void onDeactivate();
void onActivate();
void onSelectionDone();
- void onSetEditCurrentArgument();
+ void onSetEditCurrentArgument();
private :
GEOM_Displayer* myDisplayer;
GEOM::GEOM_Object_var myObj;
- SALOME_Selection* mySelection;
QPushButton* mySelBtn;
QLineEdit* myEdit;
+ GeometryGUI* myGeomGUI;
};
using namespace std;
#include "RepairGUI_GlueDlg.h"
-
#include "DlgRef_1Sel_Ext.h"
+#include "GEOMImpl_Types.hxx"
-#include "QAD_Desktop.h"
-#include "QAD_SpinBoxDbl.h"
-#include "QAD_MessageBox.h"
-#include "QAD_WaitCursor.h"
+#include "QtxDblSpinBox.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+#include "SalomeApp_Study.h"
+#include "SalomeApp_Tools.h"
+#include "SUIT_Session.h"
+#include "SUIT_MessageBox.h"
-#include "OCCViewer_Viewer3d.h"
#include "SALOME_ListIteratorOfListIO.hxx"
-#include "SALOMEGUI_QtCatchCorbaException.hxx"
-#include "GEOMImpl_Types.hxx"
+#include <TCollection_AsciiString.hxx>
+
+#include <qapplication.h>
+#include <qlabel.h>
#define DEFAULT_TOLERANCE_VALUE 1e-07
+
+
//=================================================================================
// class : RepairGUI_GlueDlg()
// purpose : Constructs a RepairGUI_GlueDlg which is a child of 'parent', with the
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-RepairGUI_GlueDlg::RepairGUI_GlueDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+RepairGUI_GlueDlg::RepairGUI_GlueDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_GLUE_FACES")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_GLUE_FACES")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_GLUE_TITLE"));
QGridLayout* aLay = new QGridLayout( 0, 2, 2, 0, 6, "aLay" );
QLabel* aLbl1 = new QLabel( tr( "GEOM_TOLERANCE" ), GroupPoints->GroupBox1 );
- myTolEdt = new QAD_SpinBoxDbl( GroupPoints->GroupBox1, 0, 100, 1e-7, 10, 1e-10 );
+ myTolEdt = new QtxDblSpinBox( 0, 100, 1e-7, GroupPoints->GroupBox1 );//QAD_SpinBoxDbl( GroupPoints->GroupBox1, 0, 100, 1e-7, 10, 1e-10 );
+ myTolEdt->setPrecision( 10 );
myTolEdt->setValue( DEFAULT_TOLERANCE_VALUE );
aLay->addWidget( aLbl1, 0, 0 );
myObject = GEOM::GEOM_Object::_nil();
- myGeomGUI->SetState( 0 );
+ //myGeomGUI->SetState( 0 );
globalSelection( GEOM_COMPOUND );
/* signals and slots connections */
connect(GroupPoints->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
connect(GroupPoints->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
initName( tr( "GLUE_NEW_OBJ_NAME" ) );
}
myEditCurrentArgument->setText("");
myObject = GEOM::GEOM_Object::_nil();
- if ( mySelection->IObjectCount() == 1 ) {
- Handle(SALOME_InteractiveObject) anIO = mySelection->firstIObject();
+ if ( IObjectCount() == 1 ) {
+ Handle(SALOME_InteractiveObject) anIO = firstIObject();
Standard_Boolean aRes;
myObject = GEOMBase::ConvertIOinGEOMObject( anIO, aRes );
if ( aRes )
//=================================================================================
void RepairGUI_GlueDlg::DeactivateActiveDialog()
{
- myGeomGUI->SetState( -1 );
+ //myGeomGUI->SetState( -1 );
GEOMBase_Skeleton::DeactivateActiveDialog();
}
void RepairGUI_GlueDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
GroupPoints->LineEdit1->setText("");
myObject = GEOM::GEOM_Object::_nil();
- myGeomGUI->SetState( 0 );
+ //myGeomGUI->SetState( 0 );
globalSelection( GEOM_COMPOUND );
}
//=================================================================================
void RepairGUI_GlueDlg::closeEvent(QCloseEvent* e)
{
- myGeomGUI->SetState( -1 );
+ //myGeomGUI->SetState( -1 );
GEOMBase_Skeleton::closeEvent( e );
}
if ( CORBA::is_nil( theObj ) )
return;
- string IOR = GeometryGUI::GetORB()->object_to_string( theObj );
+ string IOR = myGeomGUI->getApp()->orb()->object_to_string( theObj );
TCollection_AsciiString asciiIOR( strdup( IOR.c_str() ) );
- GeometryGUI::GetGeomGUI()->GetShapeReader().RemoveShapeFromBuffer( asciiIOR );
+ myGeomGUI->GetShapeReader().RemoveShapeFromBuffer( asciiIOR );
- if ( !getStudy() || CORBA::is_nil( getStudy()->getStudyDocument() ) )
+ if ( !getStudy() || !( getStudy()->studyDS() ) )
return;
- SALOMEDS::Study_var aStudy = getStudy()->getStudyDocument();
- SALOMEDS::SObject_var aSObj = aStudy->FindObjectIOR( IOR.c_str() );
- if ( CORBA::is_nil( aSObj ) )
+ _PTR(Study) aStudy = getStudy()->studyDS();
+ _PTR(SObject) aSObj ( aStudy->FindObjectIOR( IOR ) );
+ if ( !aSObj )
return;
- SALOMEDS::ChildIterator_var anIt = aStudy->NewChildIterator( aSObj );
+ _PTR(ChildIterator) anIt ( aStudy->NewChildIterator( aSObj ) );
for ( anIt->InitEx( true ); anIt->More(); anIt->Next() ) {
- SALOMEDS::GenericAttribute_var anAttr;
+ _PTR(GenericAttribute) anAttr;
if ( anIt->Value()->FindAttribute(anAttr, "AttributeIOR") ) {
- SALOMEDS::AttributeIOR_var anIOR = SALOMEDS::AttributeIOR::_narrow(anAttr);
- TCollection_AsciiString asciiIOR( anIOR->Value() );
- GeometryGUI::GetGeomGUI()->GetShapeReader().RemoveShapeFromBuffer( asciiIOR );
+ _PTR(AttributeIOR) anIOR ( anAttr );
+ TCollection_AsciiString asciiIOR( (char*)anIOR->Value().c_str() );
+ myGeomGUI->GetShapeReader().RemoveShapeFromBuffer( asciiIOR );
}
}
}
//================================================================
bool RepairGUI_GlueDlg::onAcceptLocal( const bool publish, const bool useTransaction )
{
- QAD_Study* aDoc = QAD_Application::getDesktop()->getActiveStudy();
- SALOMEDS::Study_var aStudy = aDoc->getStudyDocument();
+ if ( !getStudy() || !( getStudy()->studyDS() ) )
+ return false;
+
+ _PTR(Study) aStudy = getStudy()->studyDS();
bool aLocked = aStudy->GetProperties()->IsLocked();
if ( aLocked ) {
MESSAGE("GEOMBase_Helper::onAccept - ActiveStudy is locked");
- QAD_MessageBox::warn1 ( (QWidget*)QAD_Application::getDesktop(),
- QObject::tr("WRN_WARNING"),
- QObject::tr("WRN_STUDY_LOCKED"),
- QObject::tr("BUT_OK") );
+ SUIT_MessageBox::warn1 ( (QWidget*)(SUIT_Session::session()->activeApplication()->desktop()),
+ QObject::tr("WRN_WARNING"),
+ QObject::tr("WRN_STUDY_LOCKED"),
+ QObject::tr("BUT_OK") );
return false;
}
try {
if ( ( !publish && !useTransaction ) || openCommand() ) {
- QAD_WaitCursor wc;
- QAD_Application::getDesktop()->putInfo( "" );
+ QApplication::setOverrideCursor( Qt::waitCursor );
+ SUIT_Session::session()->activeApplication()->putInfo( "" );
ObjectList objects;
// JFA 28.12.2004 if ( !execute( objects ) || !getOperation()->IsDone() ) {
if ( !execute( objects ) ) { // JFA 28.12.2004 // To enable warnings
- wc.stop();
+ while( QApplication::overrideCursor() )
+ QApplication::restoreOverrideCursor();
abortCommand();
showError();
}
if ( nbObjs ) {
commitCommand();
updateObjBrowser();
- QAD_Application::getDesktop()->putInfo( QObject::tr("GEOM_PRP_DONE") );
+ SUIT_Session::session()->activeApplication()->putInfo( QObject::tr("GEOM_PRP_DONE") );
}
else {
abortCommand();
// JFA 28.12.2004 BEGIN // To enable warnings
if ( !getOperation()->_is_nil() ) {
if ( !getOperation()->IsDone() ) {
- wc.stop();
+ while( QApplication::overrideCursor() )
+ QApplication::restoreOverrideCursor();
QString msgw = QObject::tr( getOperation()->GetErrorCode() );
- QAD_MessageBox::warn1(QAD_Application::getDesktop(),
- QObject::tr( "WRN_WARNING" ),
- msgw,
- QObject::tr( "BUT_OK" ));
+ SUIT_MessageBox::warn1((QWidget*)(SUIT_Session::session()->activeApplication()->desktop()),
+ QObject::tr( "WRN_WARNING" ),
+ msgw,
+ QObject::tr( "BUT_OK" ));
}
}
// JFA 28.12.2004 END
}
}
catch( const SALOME::SALOME_Exception& e ) {
- QtCatchCorbaException( e );
+ SalomeApp_Tools::QtCatchCorbaException( e );
abortCommand();
}
#include "GEOMBase_Skeleton.h"
-class QAD_SpinBoxDbl;
+class QtxDblSpinBox;
class DlgRef_1Sel_Ext;
//=================================================================================
Q_OBJECT
public:
- RepairGUI_GlueDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ RepairGUI_GlueDlg(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~RepairGUI_GlueDlg();
protected:
GEOM::GEOM_Object_var myObject;
DlgRef_1Sel_Ext* GroupPoints;
- QAD_SpinBoxDbl* myTolEdt;
+ QtxDblSpinBox* myTolEdt;
private slots:
void ClickOnOk();
using namespace std;
#include "RepairGUI_RemoveHolesDlg.h"
-#include "QAD_RightFrame.h"
-#include "QAD_Desktop.h"
-#include "QAD_MessageBox.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+#include "SUIT_MessageBox.h"
+#include "SUIT_Session.h"
-#include "GEOM_Displayer.h"
-#include "OCCViewer_Viewer3d.h"
#include "SALOME_ListIteratorOfListIO.hxx"
#include "GEOMImpl_Types.hxx"
#include <TopAbs.hxx>
+#include <TColStd_MapOfInteger.hxx>
//=================================================================================
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-RepairGUI_RemoveHolesDlg::RepairGUI_RemoveHolesDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+RepairGUI_RemoveHolesDlg::RepairGUI_RemoveHolesDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_SUPPRESS_HOLES")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_SUPPRESS_HOLES")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_REMOVE_HOLES_TITLE"));
myWiresInd = new GEOM::short_array();
myWiresInd->length( 0 );
- myGeomGUI->SetState( 0 );
+ //myGeomGUI->SetState( 0 );
initSelection();
myClosed = -1;
connect(mySelectWiresBtn, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
connect(mySelectWiresEdt, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
connect( myAllChk, SIGNAL( clicked() ), this, SLOT( onRemoveAllClicked() ) );
connect( myFreeBoundBtn, SIGNAL(clicked()), this, SLOT(onDetect()) );
if ( myEditCurrentArgument == GroupPoints->LineEdit1 ) myObject = GEOM::GEOM_Object::_nil();
else if ( myEditCurrentArgument == mySelectWiresEdt ) myWiresInd->length( 0 );
- if ( mySelection->IObjectCount() == 1 )
+ if ( IObjectCount() == 1 )
{
- Handle(SALOME_InteractiveObject) anIO = mySelection->firstIObject();
+ Handle(SALOME_InteractiveObject) anIO = firstIObject();
if ( myEditCurrentArgument == GroupPoints->LineEdit1 ) // face selection
{
else if ( myEditCurrentArgument == mySelectWiresEdt && !myAllChk->isChecked() )
{
TColStd_IndexedMapOfInteger aMap;
- mySelection->GetIndex( anIO, aMap );
+ ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr()->GetIndexes( anIO, aMap );
const int n = aMap.Extent();
myWiresInd->length( n );
for ( int i = 1; i <= n; i++ )
//=================================================================================
void RepairGUI_RemoveHolesDlg::DeactivateActiveDialog()
{
- myGeomGUI->SetState( -1 );
+ //myGeomGUI->SetState( -1 );
GEOMBase_Skeleton::DeactivateActiveDialog();
}
void RepairGUI_RemoveHolesDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
myEditCurrentArgument = GroupPoints->LineEdit1;
myEditCurrentArgument->setText("");
myClosed = -1;
myOpen = -1;
- myGeomGUI->SetState( 0 );
+ //myGeomGUI->SetState( 0 );
initSelection();
}
//=================================================================================
void RepairGUI_RemoveHolesDlg::closeEvent(QCloseEvent* e)
{
- myGeomGUI->SetState( -1 );
+ //myGeomGUI->SetState( -1 );
GEOMBase_Skeleton::closeEvent( e );
}
msg = tr( "GEOM_FREE_BOUNDS_MSG" ).arg( myClosed + myOpen ).arg( myClosed ).arg( myOpen );
else
msg = tr( "GEOM_FREE_BOUNDS_ERROR" );
- QAD_MessageBox::info1( this, tr( "GEOM_FREE_BOUNDS_TLT" ), msg, "Close" );
+ SUIT_MessageBox::info1( this, tr( "GEOM_FREE_BOUNDS_TLT" ), msg, "Close" );
}
Q_OBJECT
public:
- RepairGUI_RemoveHolesDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ RepairGUI_RemoveHolesDlg(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~RepairGUI_RemoveHolesDlg();
protected:
using namespace std;
#include "RepairGUI_RemoveIntWiresDlg.h"
-#include "QAD_RightFrame.h"
-#include "QAD_Desktop.h"
-#include "OCCViewer_Viewer3d.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+#include "SUIT_Session.h"
#include "SALOME_ListIteratorOfListIO.hxx"
#include "GEOMImpl_Types.hxx"
#include <TopAbs.hxx>
+#include <TColStd_MapOfInteger.hxx>
//=================================================================================
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-RepairGUI_RemoveIntWiresDlg::RepairGUI_RemoveIntWiresDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+RepairGUI_RemoveIntWiresDlg::RepairGUI_RemoveIntWiresDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_SUPPRESS_INT_WIRES")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_SUPPRESS_INT_WIRES")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_REMOVE_INTERNAL_WIRES_TITLE"));
myWiresInd = new GEOM::short_array();
myWiresInd->length( 0 );
- myGeomGUI->SetState( 0 );
+ //myGeomGUI->SetState( 0 );
initSelection();
/* signals and slots connections */
connect(mySelectWiresBtn, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
connect(mySelectWiresEdt, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
connect( myAllChk, SIGNAL( clicked() ), this, SLOT( onRemoveAllClicked() ) );
if ( myEditCurrentArgument == GroupPoints->LineEdit1 ) myObject = GEOM::GEOM_Object::_nil();
else if ( myEditCurrentArgument == mySelectWiresEdt ) myWiresInd->length( 0 );
- if ( mySelection->IObjectCount() == 1 )
+ if ( IObjectCount() == 1 )
+ {
+ Handle(SALOME_InteractiveObject) anIO = firstIObject();
+
+ if ( myEditCurrentArgument == GroupPoints->LineEdit1 ) // face selection
{
- Handle(SALOME_InteractiveObject) anIO = mySelection->firstIObject();
-
- if ( myEditCurrentArgument == GroupPoints->LineEdit1 ) // face selection
- {
- Standard_Boolean aRes;
- myObject = GEOMBase::ConvertIOinGEOMObject( anIO, aRes );
- if ( aRes && GEOMBase::IsShape( myObject ) )
- myEditCurrentArgument->setText( GEOMBase::GetName( myObject ) );
- else
- myObject = GEOM::GEOM_Object::_nil();
- }
- else if ( myEditCurrentArgument == mySelectWiresEdt && !myAllChk->isChecked() )
- {
- TColStd_IndexedMapOfInteger aMap;
- mySelection->GetIndex( anIO, aMap );
- const int n = aMap.Extent();
- myWiresInd->length( n );
- for ( int i = 1; i <= n; i++ )
- myWiresInd[i-1] = aMap( i );
- if ( n )
- myEditCurrentArgument->setText( QString::number( n ) + "_" + tr( "GEOM_WIRE" ) + tr( "_S_" ) );
- }
+ Standard_Boolean aRes;
+ myObject = GEOMBase::ConvertIOinGEOMObject( anIO, aRes );
+ if ( aRes && GEOMBase::IsShape( myObject ) )
+ myEditCurrentArgument->setText( GEOMBase::GetName( myObject ) );
+ else
+ myObject = GEOM::GEOM_Object::_nil();
}
+ else if ( myEditCurrentArgument == mySelectWiresEdt && !myAllChk->isChecked() )
+ {
+ TColStd_IndexedMapOfInteger aMap;
+ ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr()->GetIndexes( anIO, aMap );
+ const int n = aMap.Extent();
+ myWiresInd->length( n );
+ for ( int i = 1; i <= n; i++ )
+ myWiresInd[i-1] = aMap( i );
+ if ( n )
+ myEditCurrentArgument->setText( QString::number( n ) + "_" + tr( "GEOM_WIRE" ) + tr( "_S_" ) );
+ }
+ }
}
//=================================================================================
//=================================================================================
void RepairGUI_RemoveIntWiresDlg::DeactivateActiveDialog()
{
- myGeomGUI->SetState( -1 );
+ //myGeomGUI->SetState( -1 );
GEOMBase_Skeleton::DeactivateActiveDialog();
}
void RepairGUI_RemoveIntWiresDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
myEditCurrentArgument = GroupPoints->LineEdit1;
myEditCurrentArgument->setText("");
myObject = GEOM::GEOM_Object::_nil();
myWiresInd->length( 0 );
- myGeomGUI->SetState( 0 );
- initSelection();
+ //myGeomGUI->SetState( 0 );
+ initSelection();
}
//=================================================================================
void RepairGUI_RemoveIntWiresDlg::closeEvent(QCloseEvent* e)
{
- myGeomGUI->SetState( -1 );
+ //myGeomGUI->SetState( -1 );
GEOMBase_Skeleton::closeEvent( e );
}
Q_OBJECT
public:
- RepairGUI_RemoveIntWiresDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ RepairGUI_RemoveIntWiresDlg(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~RepairGUI_RemoveIntWiresDlg();
protected:
using namespace std;
#include "RepairGUI_SewingDlg.h"
-#include "QAD_RightFrame.h"
-#include "QAD_Desktop.h"
-#include "QAD_MessageBox.h"
-#include "OCCViewer_Viewer3d.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+#include "SUIT_Session.h"
+#include "SUIT_MessageBox.h"
#include "SALOME_ListIteratorOfListIO.hxx"
#include "GEOMImpl_Types.hxx"
#include <TopAbs.hxx>
+#include <TColStd_MapOfInteger.hxx>
#define DEFAULT_TOLERANCE_VALUE 1e-07
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-RepairGUI_SewingDlg::RepairGUI_SewingDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+RepairGUI_SewingDlg::RepairGUI_SewingDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_SEWING")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_SEWING")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_SEWING_TITLE"));
Layout1->addWidget(GroupPoints, 2, 0);
QGridLayout* aLay = new QGridLayout( 0, 2, 2, 0, 6, "aLay" );
- myTolEdt = new QAD_SpinBoxDbl( GroupPoints->GroupBox1, 0, 100, 1e-7, 10, 1e-10 );
+ myTolEdt = new QtxDblSpinBox( 0, 100, 1e-7, GroupPoints->GroupBox1 );//QAD_SpinBoxDbl( GroupPoints->GroupBox1, 0, 100, 1e-7, 10, 1e-10 );
+ myTolEdt->setPrecision( 10 );
myTolEdt->setValue( DEFAULT_TOLERANCE_VALUE );
QLabel* aLbl1 = new QLabel( tr( "GEOM_TOLERANCE" ), GroupPoints->GroupBox1 );
myFreeBoundBtn = new QPushButton( tr( "GEOM_DETECT" ), GroupPoints->GroupBox1 );
myObject = GEOM::GEOM_Object::_nil();
- myGeomGUI->SetState( 0 );
+ //myGeomGUI->SetState( 0 );
initSelection();
myClosed = -1;
connect(GroupPoints->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
connect(GroupPoints->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
connect(myFreeBoundBtn, SIGNAL(clicked()), this, SLOT(onDetect()));
myEditCurrentArgument->setText("");
myObject = GEOM::GEOM_Object::_nil();
- if ( mySelection->IObjectCount() == 1 )
+ if ( IObjectCount() == 1 )
{
- Handle(SALOME_InteractiveObject) anIO = mySelection->firstIObject();
+ Handle(SALOME_InteractiveObject) anIO = firstIObject();
Standard_Boolean aRes;
myObject = GEOMBase::ConvertIOinGEOMObject( anIO, aRes );
if ( aRes )
//=================================================================================
void RepairGUI_SewingDlg::DeactivateActiveDialog()
{
- myGeomGUI->SetState( -1 );
+ //myGeomGUI->SetState( -1 );
GEOMBase_Skeleton::DeactivateActiveDialog();
}
void RepairGUI_SewingDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
GroupPoints->LineEdit1->setText("");
myObject = GEOM::GEOM_Object::_nil();
myClosed = -1;
myOpen = -1;
- myGeomGUI->SetState( 0 );
+ //myGeomGUI->SetState( 0 );
initSelection();
}
//=================================================================================
void RepairGUI_SewingDlg::closeEvent(QCloseEvent* e)
{
- myGeomGUI->SetState( -1 );
+ //myGeomGUI->SetState( -1 );
GEOMBase_Skeleton::closeEvent( e );
}
msg = tr( "GEOM_FREE_BOUNDS_MSG" ).arg( myClosed + myOpen ).arg( myClosed ).arg( myOpen );
else
msg = tr( "GEOM_FREE_BOUNDS_ERROR" );
- QAD_MessageBox::info1( this, tr( "GEOM_FREE_BOUNDS_TLT" ), msg, "Close" );
+ SUIT_MessageBox::info1( this, tr( "GEOM_FREE_BOUNDS_TLT" ), msg, "Close" );
}
#include "GEOMBase_Skeleton.h"
#include "DlgRef_1Sel_Ext.h"
-#include "QAD_SpinBoxDbl.h"
+#include "QtxDblSpinBox.h"
#include <TColStd_IndexedMapOfInteger.hxx>
Q_OBJECT
public:
- RepairGUI_SewingDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ RepairGUI_SewingDlg(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~RepairGUI_SewingDlg();
protected:
void closeEvent(QCloseEvent* e);
void initSelection();
- GEOM::GEOM_Object_var myObject;
+ GEOM::GEOM_Object_var myObject;
DlgRef_1Sel_Ext* GroupPoints;
- QAD_SpinBoxDbl* myTolEdt;
+ QtxDblSpinBox* myTolEdt;
QPushButton* myFreeBoundBtn;
int myClosed; // number of free closed boundaries detected. calculated in execute(), used in onDetect().
#include "GEOMImpl_Types.hxx"
-#include "QAD_Desktop.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+#include "SUIT_Session.h"
#include "SALOME_ListIteratorOfListIO.hxx"
#include "SALOME_ListIO.hxx"
#include <TCollection_AsciiString.hxx>
+#include <TColStd_MapOfInteger.hxx>
#include <qheader.h>
+#include <qlabel.h>
#include <qmessagebox.h>
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-RepairGUI_ShapeProcessDlg::RepairGUI_ShapeProcessDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+RepairGUI_ShapeProcessDlg::RepairGUI_ShapeProcessDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
init();
}
//=================================================================================
void RepairGUI_ShapeProcessDlg::init()
{
- myGeomGUI->SetState( 0 );
+ //myGeomGUI->SetState( 0 );
initParamsValues();
initSelection();
mySelectWdgt = new DlgRef_1Sel_QTD( this, "SelectedObjects" );
mySelectWdgt->GroupBox1->setTitle( tr("GEOM_SHAPE") );
mySelectWdgt->TextLabel1->setText( tr("GEOM_SELECTED_OBJECTS") );
- mySelectWdgt->PushButton1->setPixmap( QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")) );
+ mySelectWdgt->PushButton1->setPixmap( SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")) );
mySelectWdgt->LineEdit1->setReadOnly( true );
Layout1->addWidget( mySelectWdgt, 0, 0 );
QFrame* aFrame = new QFrame( myStack );
QGridLayout* aLay = new QGridLayout( aFrame, 10, 2, 0, 5 );
- myFixShapeTol3D = new QAD_SpinBoxDbl( aFrame, 0, 100, 1e-7, 10, 1e-10 );
- myFixShapeMaxTol3D = new QAD_SpinBoxDbl( aFrame, 0, 100, 1e-7, 10, 1e-10 );
+ myFixShapeTol3D = new QtxDblSpinBox( 0, 100, 1e-7, aFrame );//QAD_SpinBoxDbl( aFrame, 0, 100, 1e-7, 10, 1e-10 );
+ myFixShapeTol3D->setPrecision( 10 );
+ myFixShapeMaxTol3D = new QtxDblSpinBox( 0, 100, 1e-7, aFrame );//QAD_SpinBoxDbl( aFrame, 0, 100, 1e-7, 10, 1e-10 );
+ myFixShapeMaxTol3D->setPrecision( 10 );
aLay->addWidget( new QLabel( tr("GEOM_3D_TOLERANCE"), aFrame ), 0, 0 );
aLay->addWidget( myFixShapeTol3D, 0, 1 );
aFrame = new QFrame( myStack );
aLay = new QGridLayout( aFrame, 10, 2, 0, 5 );
- myFixFaceSizeTol = new QAD_SpinBoxDbl( aFrame, 0, 100, 1e-7, 10, 1e-10 );
+ myFixFaceSizeTol = new QtxDblSpinBox( 0, 100, 1e-7, aFrame );//QAD_SpinBoxDbl( aFrame, 0, 100, 1e-7, 10, 1e-10 );
+ myFixFaceSizeTol->setPrecision( 10 );
aLay->addWidget( new QLabel( tr("GEOM_TOLERANCE"), aFrame ), 0, 0 );
aLay->addWidget( myFixFaceSizeTol, 0, 1 );
aFrame = new QFrame( myStack );
aLay = new QGridLayout( aFrame, 10, 2, 0, 5 );
- myDropSmallEdgesTol3D = new QAD_SpinBoxDbl( aFrame, 0, 100, 1e-7, 10, 1e-10 );
+ myDropSmallEdgesTol3D = new QtxDblSpinBox( 0, 100, 1e-7, aFrame );//QAD_SpinBoxDbl( aFrame, 0, 100, 1e-7, 10, 1e-10 );
+ myDropSmallEdgesTol3D->setPrecision( 10 );
aLay->addWidget( new QLabel( tr("GEOM_3D_TOLERANCE"), aFrame ), 0, 0 );
aLay->addWidget( myDropSmallEdgesTol3D, 0, 1 );
aFrame = new QFrame( myStack );
aLay = new QGridLayout( aFrame, 10, 2, 0, 5 );
- mySplitAngleAngle = new QAD_SpinBoxDbl( aFrame, 0, 360, 1 );
- mySplitAngleMaxTol = new QAD_SpinBoxDbl( aFrame, 0, 100, 1e-7, 10, 1e-10 );
+ mySplitAngleAngle = new QtxDblSpinBox( 0, 360, 1, aFrame );//QAD_SpinBoxDbl( aFrame, 0, 360, 1 );
+ mySplitAngleMaxTol = new QtxDblSpinBox( 0, 100, 1e-7, aFrame );//QAD_SpinBoxDbl( aFrame, 0, 100, 1e-7, 10, 1e-10 );
+ mySplitAngleMaxTol->setPrecision( 10 );
aLay->addWidget( new QLabel( tr("GEOM_ANGLE_1"), aFrame ), 0, 0 );
aLay->addWidget( mySplitAngleAngle, 0, 1 );
aFrame = new QFrame( myStack );
aLay = new QGridLayout( aFrame, 10, 2, 0, 5 );
- mySplitContTol3D = new QAD_SpinBoxDbl( aFrame, 0, 100, 1e-7, 10, 1e-10 );
+ mySplitContTol3D = new QtxDblSpinBox( 0, 100, 1e-7, aFrame );//QAD_SpinBoxDbl( aFrame, 0, 100, 1e-7, 10, 1e-10 );
+ mySplitContTol3D->setPrecision( 10 );
mySplitContSurfCont = new QComboBox( aFrame );
mySplitContSurfCont->insertStringList( aContinueties );
mySplitContCurvCont = new QComboBox( aFrame );
myBSplineSurfModeChk = new QCheckBox( tr("GEOM_SURFACE_MODE"), aFrame );
myBSpline3DCurveChk = new QCheckBox( tr("GEOM_3D_CURVE_MODE"), aFrame );
myBSpline2DCurveChk = new QCheckBox( tr("GEOM_2D_CURVE_MODE"), aFrame );
- myBSplineTol3D = new QAD_SpinBoxDbl( aFrame, 0, 100, 1e-7, 10, 1e-10 );
- myBSplineTol2D = new QAD_SpinBoxDbl( aFrame, 0, 100, 1e-7, 10, 1e-10 );
+
+ myBSplineTol3D = new QtxDblSpinBox( 0, 100, 1e-7, aFrame );//QAD_SpinBoxDbl( aFrame, 0, 100, 1e-7, 10, 1e-10 );
+ myBSplineTol3D->setPrecision( 10 );
+
+ myBSplineTol2D = new QtxDblSpinBox( 0, 100, 1e-7, aFrame );//QAD_SpinBoxDbl( aFrame, 0, 100, 1e-7, 10, 1e-10 );
+ myBSplineTol2D->setPrecision( 10 );
+
myBSplineDegree = new QSpinBox( aFrame );
myBSplineSegments = new QSpinBox( aFrame );
myBSpline2DCont = new QComboBox( aFrame );
myToBezierSurfModeChk = new QCheckBox( tr("GEOM_SURFACE_MODE"), aFrame );
myToBezier3DCurveChk = new QCheckBox( tr("GEOM_3D_CURVE_MODE"), aFrame );
myToBezier2DCurveChk = new QCheckBox( tr("GEOM_2D_CURVE_MODE"), aFrame );
- myToBezierMaxTol = new QAD_SpinBoxDbl( aFrame, 0, 100, 1e-7, 10, 1e-10 );
+
+ myToBezierMaxTol = new QtxDblSpinBox( 0, 100, 1e-7, aFrame );//QAD_SpinBoxDbl( aFrame, 0, 100, 1e-7, 10, 1e-10 );
+ myToBezierMaxTol->setPrecision( 10 );
aLay->addWidget( myToBezierSurfModeChk, 0, 0 );
aLay->addWidget( myToBezier3DCurveChk, 1, 0 );
aFrame = new QFrame( myStack );
aLay = new QGridLayout( aFrame, 10, 2, 0, 5 );
- mySameParameterTol3D = new QAD_SpinBoxDbl( aFrame, 0, 100, 1e-7, 10, 1e-10 );
+ mySameParameterTol3D = new QtxDblSpinBox( 0, 100, 1e-7, aFrame );//QAD_SpinBoxDbl( aFrame, 0, 100, 1e-7, 10, 1e-10 );
+ mySameParameterTol3D->setPrecision( 10 );
aLay->addWidget( new QLabel( tr("GEOM_3D_TOLERANCE"), aFrame ), 0, 0 );
aLay->addWidget( mySameParameterTol3D, 0, 1 );
connect( buttonOk, SIGNAL(clicked()), this, SLOT(onOk()) );
connect( buttonApply, SIGNAL(clicked()), this, SLOT(onApply()) );
- connect( mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(selectionChanged()) );
+ connect( ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(selectionChanged()) );
connect( myOpList, SIGNAL(selectionChanged()), this, SLOT(operationChanged()) );
connect( mySelectWdgt->PushButton1, SIGNAL(clicked()), this, SLOT(selectClicked()) );
Standard_Boolean aRes = Standard_False;
int i = 0;
- myObjects->length( mySelection->IObjectCount() );
- for ( SALOME_ListIteratorOfListIO anIt( mySelection->StoredIObjects() ); anIt.More(); anIt.Next() )
+ myObjects->length( IObjectCount() );
+ for ( SALOME_ListIteratorOfListIO anIt( selectedIO() ); anIt.More(); anIt.Next() )
{
GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( anIt.Value(), aRes );
if ( !CORBA::is_nil( aSelectedObject ) && aRes )
//=================================================================================
void RepairGUI_ShapeProcessDlg::deactivate()
{
- myGeomGUI->SetState( -1 );
+ //myGeomGUI->SetState( -1 );
GEOMBase_Skeleton::DeactivateActiveDialog();
}
void RepairGUI_ShapeProcessDlg::activate()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(selectionChanged()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(selectionChanged()));
reset();
- myGeomGUI->SetState( 0 );
+ //myGeomGUI->SetState( 0 );
initSelection();
}
//=================================================================================
void RepairGUI_ShapeProcessDlg::closeEvent(QCloseEvent* e)
{
- myGeomGUI->SetState( -1 );
+ //myGeomGUI->SetState( -1 );
GEOMBase_Skeleton::closeEvent( e );
}
//=================================================================================
void RepairGUI_ShapeProcessDlg::loadDefaults()
{
- const int aStudyId = QAD_Application::getDesktop()->getActiveStudy()->getStudyId();
- GEOM::GEOM_IHealingOperations_var anOp = myGeomGUI->GetGeomGen()->GetIHealingOperations( aStudyId );
+ GEOM::GEOM_IHealingOperations_var anOp = myGeomGUI->GetGeomGen()->GetIHealingOperations( getStudyId() );
GEOM::string_array_var anOperators, aParams, aValues;
anOp->GetShapeProcessParameters( anOperators, aParams, aValues );
if ( theControl == NULL || theValue == NULL )
return;
- if ( theControl->isA( "QAD_SpinBoxDbl" ) )
- ((QAD_SpinBoxDbl*)theControl)->setValue( QString( theValue ).toDouble() );
+ if ( theControl->isA( "QtxDblSpinBox" ) )
+ ((QtxDblSpinBox*)theControl)->setValue( QString( theValue ).toDouble() );
else if ( theControl->isA( "QSpinBox" ) )
((QSpinBox*)theControl)->setValue( QString( theValue ).toInt() );
else if ( theControl->isA( "QComboBox" ) )
if ( theControl == NULL )
return "";
- if ( theControl->isA( "QAD_SpinBoxDbl" ) )
- return ((QAD_SpinBoxDbl*)theControl)->text().latin1();
+ if ( theControl->isA( "QtxDblSpinBox" ) )
+ return ((QtxDblSpinBox*)theControl)->text().latin1();
else if ( theControl->isA( "QSpinBox" ) )
return ((QSpinBox*)theControl)->text().latin1();
else if ( theControl->isA( "QComboBox" ) )
{
QButton* btn = (QButton*)sender();
if ( on && btn->isToggleButton() &&
- QMessageBox::warning( QAD_Application::getDesktop(), tr( "GEOM_WRN_WARNING" ), tr( "TIME_CONSUMING" ), QMessageBox::Yes, QMessageBox::No ) == QMessageBox::No )
+ QMessageBox::warning( SUIT_Session::session()->activeApplication()->desktop(), tr( "GEOM_WRN_WARNING" ), tr( "TIME_CONSUMING" ), QMessageBox::Yes, QMessageBox::No ) == QMessageBox::No )
btn->toggle();
}
#include "GEOMBase_Skeleton.h"
#include "DlgRef_1Sel_QTD.h"
#include "RepairGUI.h"
-#include "QAD_SpinBoxDbl.h"
+#include "QtxDblSpinBox.h"
#include <qspinbox.h>
#include <qcombobox.h>
Q_OBJECT
public:
- RepairGUI_ShapeProcessDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ RepairGUI_ShapeProcessDlg(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~RepairGUI_ShapeProcessDlg();
protected:
QListView* myOpList;
QWidgetStack* myStack;
- QAD_SpinBoxDbl* myFixShapeTol3D;
- QAD_SpinBoxDbl* myFixShapeMaxTol3D;
+ QtxDblSpinBox* myFixShapeTol3D;
+ QtxDblSpinBox* myFixShapeMaxTol3D;
- QAD_SpinBoxDbl* myFixFaceSizeTol;
+ QtxDblSpinBox* myFixFaceSizeTol;
- QAD_SpinBoxDbl* myDropSmallEdgesTol3D;
+ QtxDblSpinBox* myDropSmallEdgesTol3D;
- QAD_SpinBoxDbl* mySplitAngleAngle;
- QAD_SpinBoxDbl* mySplitAngleMaxTol;
+ QtxDblSpinBox* mySplitAngleAngle;
+ QtxDblSpinBox* mySplitAngleMaxTol;
QSpinBox* mySplitClosedFacesNum;
- QAD_SpinBoxDbl* mySplitContTol3D;
+ QtxDblSpinBox* mySplitContTol3D;
QComboBox* mySplitContSurfCont;
QComboBox* mySplitContCurvCont;
QCheckBox* myBSplineSurfModeChk;
QCheckBox* myBSpline3DCurveChk;
QCheckBox* myBSpline2DCurveChk;
- QAD_SpinBoxDbl* myBSplineTol3D;
- QAD_SpinBoxDbl* myBSplineTol2D;
+ QtxDblSpinBox* myBSplineTol3D;
+ QtxDblSpinBox* myBSplineTol2D;
QSpinBox* myBSplineDegree;
QSpinBox* myBSplineSegments;
QComboBox* myBSpline2DCont;
QCheckBox* myToBezierSurfModeChk;
QCheckBox* myToBezier3DCurveChk;
QCheckBox* myToBezier2DCurveChk;
- QAD_SpinBoxDbl* myToBezierMaxTol;
+ QtxDblSpinBox* myToBezierMaxTol;
- QAD_SpinBoxDbl* mySameParameterTol3D;
+ QtxDblSpinBox* mySameParameterTol3D;
private slots:
void onOk();
using namespace std;
#include "RepairGUI_SuppressFacesDlg.h"
-#include "QAD_RightFrame.h"
-#include "QAD_Desktop.h"
-#include "OCCViewer_Viewer3d.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+#include "SUIT_Session.h"
#include "SALOME_ListIteratorOfListIO.hxx"
#include "GEOMImpl_Types.hxx"
#include <TopAbs.hxx>
+#include <qlabel.h>
//=================================================================================
// class : RepairGUI_SuppressFacesDlg()
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-RepairGUI_SuppressFacesDlg::RepairGUI_SuppressFacesDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+RepairGUI_SuppressFacesDlg::RepairGUI_SuppressFacesDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_SUPRESS_FACE")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_SUPRESS_FACE")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_SUPRESSFACE_TITLE"));
myObjects = new GEOM::ListOfGO();
myObjects->length( 0 );
- myGeomGUI->SetState( 0 );
+ //myGeomGUI->SetState( 0 );
initSelection();
/* signals and slots connections */
connect(GroupPoints->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
connect(GroupPoints->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
initName( tr( "SUPRESS_FACE_NEW_OBJ_NAME" ) );
}
Standard_Boolean aRes = Standard_False;
int i = 0;
int numFaces = 0;
- myObjects->length( mySelection->IObjectCount() );
+ myObjects->length( IObjectCount() );
myFaces.clear();
- for ( SALOME_ListIteratorOfListIO anIt( mySelection->StoredIObjects() ); anIt.More(); anIt.Next() )
+ for ( SALOME_ListIteratorOfListIO anIt( selectedIO() ); anIt.More(); anIt.Next() )
{
Handle(SALOME_InteractiveObject) anIO = anIt.Value();
GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( anIO, aRes );
if ( aShape.ShapeType() <= TopAbs_FACE ) // FACE, SHELL, SOLID, COMPOUND
{
GEOM::short_array anIndexes;
- if ( mySelection->HasIndex( anIO ) )
+
+ TColStd_IndexedMapOfInteger aMap;
+ ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr()->GetIndexes( anIO, aMap );
+
+ if ( !aMap.IsEmpty() )
{
- TColStd_IndexedMapOfInteger aMap;
- mySelection->GetIndex( anIO, aMap );
Convert( aMap, anIndexes );
myObjects[i++] = aSelectedObject; // append the object
myFaces.append( anIndexes ); // append faces' indexes
//=================================================================================
void RepairGUI_SuppressFacesDlg::DeactivateActiveDialog()
{
- myGeomGUI->SetState( -1 );
+ //myGeomGUI->SetState( -1 );
GEOMBase_Skeleton::DeactivateActiveDialog();
}
void RepairGUI_SuppressFacesDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
- myGeomGUI->SetState( 0 );
+ //myGeomGUI->SetState( 0 );
initSelection();
}
//=================================================================================
void RepairGUI_SuppressFacesDlg::closeEvent(QCloseEvent* e)
{
- myGeomGUI->SetState( -1 );
+ //myGeomGUI->SetState( -1 );
GEOMBase_Skeleton::closeEvent( e );
}
Q_OBJECT
public:
- RepairGUI_SuppressFacesDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ RepairGUI_SuppressFacesDlg(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~RepairGUI_SuppressFacesDlg();
protected:
# Libraries targets
LIB = libGEOMSketcher.la
LIB_SRC = Sketcher_Profile.cxx
-LIB_CLIENT_IDL = SALOME_Component.idl SALOMEDS.idl SALOME_Exception.idl
+LIB_CLIENT_IDL = SALOME_Component.idl SALOMEDS.idl SALOME_Exception.idl SALOME_GenericObj.idl
# header files
EXPORT_HEADERS= Sketcher_Profile.hxx
TransformationGUI_OffsetDlg.h \
TransformationGUI_PositionDlg.h
-LIB_CLIENT_IDL = SALOME_GenericObj.idl SALOME_Component.idl
+LIB_CLIENT_IDL = SALOME_GenericObj.idl SALOME_Component.idl SALOME_Exception.idl
LIB_SERVER_IDL =
# additionnal information to compil and link file
-CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome
-CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome
+CPPFLAGS += $(QT_INCLUDES) $(VTK_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) $(BOOST_CPPFLAGS) -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
+CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
LDFLAGS += -lGEOMFiltersSelection -lGEOMBase
using namespace std;
#include "TransformationGUI.h"
-#include "QAD_Desktop.h"
+#include "GeometryGUI.h"
-#include "SALOMEGUI_QtCatchCorbaException.hxx"
+#include "SUIT_Session.h"
+#include "SUIT_Desktop.h"
#include "TransformationGUI_MultiTranslationDlg.h" // Method MULTI TRANSLATION
#include "TransformationGUI_MultiRotationDlg.h" // Method MULTI ROTATION
// function : GetTransformationGUI()
// purpose : Get the only TransformationGUI object [ static ]
//=======================================================================
-TransformationGUI* TransformationGUI::GetTransformationGUI()
+TransformationGUI* TransformationGUI::GetTransformationGUI( GeometryGUI* parent )
{
if ( myGUIObject == 0 ) {
// init TransformationGUI only once
- myGUIObject = new TransformationGUI();
+ myGUIObject = new TransformationGUI( parent );
}
return myGUIObject;
}
// function : TransformationGUI()
// purpose : Constructor
//=======================================================================
-TransformationGUI::TransformationGUI() : GEOMGUI()
+TransformationGUI::TransformationGUI(GeometryGUI* parent) : GEOMGUI(parent)
{
}
// function : OnGUIEvent()
// purpose :
//=======================================================================
-bool TransformationGUI::OnGUIEvent(int theCommandID, QAD_Desktop* parent)
+bool TransformationGUI::OnGUIEvent(int theCommandID, SUIT_Desktop* parent)
{
- GeometryGUI::GetGeomGUI()->EmitSignalDeactivateDialog();
- SALOME_Selection* Sel = SALOME_Selection::Selection(QAD_Application::getDesktop()->getActiveStudy()->getSelection());
+ getGeometryGUI()->EmitSignalDeactivateDialog();
QDialog* aDlg = NULL;
switch (theCommandID)
{
case 5021: // TRANSLATION
{
- aDlg = new TransformationGUI_TranslationDlg(parent, "", Sel);
+ aDlg = new TransformationGUI_TranslationDlg( getGeometryGUI(), parent, "" );
break;
}
case 5022: // ROTATION
{
- aDlg = new TransformationGUI_RotationDlg(parent, "", Sel);
+ aDlg = new TransformationGUI_RotationDlg( parent, "" );
break;
}
case 5023: // POSITION
{
- aDlg = new TransformationGUI_PositionDlg(parent, "", Sel);
+ aDlg = new TransformationGUI_PositionDlg( parent, "" );
break;
}
case 5024: // MIRROR
{
- aDlg = new TransformationGUI_MirrorDlg(parent, "", Sel);
+ aDlg = new TransformationGUI_MirrorDlg( parent, "" );
break;
}
case 5025: // SCALE
{
- aDlg = new TransformationGUI_ScaleDlg(parent, "", Sel );
+ aDlg = new TransformationGUI_ScaleDlg( getGeometryGUI(), parent, "" );
break;
}
case 5026: // OFFSET
{
- aDlg = new TransformationGUI_OffsetDlg(parent, "", Sel );
+ aDlg = new TransformationGUI_OffsetDlg( parent, "" );
break;
}
case 5027: // MULTI TRANSLATION
{
- aDlg = new TransformationGUI_MultiTranslationDlg(parent, "", Sel);
+ aDlg = new TransformationGUI_MultiTranslationDlg( getGeometryGUI(), parent, "" );
break;
}
case 5028: // MULTI ROTATION
{
- aDlg = new TransformationGUI_MultiRotationDlg(parent, "", Sel);
+ aDlg = new TransformationGUI_MultiRotationDlg( getGeometryGUI(), parent, "" );
break;
}
default:
{
- parent->putInfo(tr("GEOM_PRP_COMMAND").arg(theCommandID));
+ SUIT_Session::session()->activeApplication()->putInfo(tr("GEOM_PRP_COMMAND").arg(theCommandID));
break;
}
}
//=====================================================================================
extern "C"
{
- GEOMGUI* GetLibGUI()
+ GEOMGUI* GetLibGUI( GeometryGUI* parent )
{
- return TransformationGUI::GetTransformationGUI();
+ return TransformationGUI::GetTransformationGUI( parent );
}
}
class TransformationGUI : public GEOMGUI
{
protected:
- TransformationGUI(); // hide constructor to avoid direct creation
+ TransformationGUI( GeometryGUI* parent ); // hide constructor to avoid direct creation
public :
~TransformationGUI();
// Get the only TransformationGUI object
- static TransformationGUI* GetTransformationGUI();
+ static TransformationGUI* GetTransformationGUI( GeometryGUI* parent );
- bool OnGUIEvent(int theCommandID, QAD_Desktop* parent);
+ bool OnGUIEvent(int theCommandID, SUIT_Desktop* parent);
private:
static TransformationGUI* myGUIObject; // the only TransformationGUI object
#include "TransformationGUI_MirrorDlg.h"
-#include "QAD_Desktop.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
#include <qcheckbox.h>
+#include <qlabel.h>
#include "GEOMImpl_Types.hxx"
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-TransformationGUI_MirrorDlg::TransformationGUI_MirrorDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+TransformationGUI_MirrorDlg::TransformationGUI_MirrorDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_MIRROR_POINT")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_MIRROR_AXE")));
- QPixmap image2(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_MIRROR_PLANE")));
- QPixmap image3(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_MIRROR_POINT")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_MIRROR_AXE")));
+ QPixmap image2(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_MIRROR_PLANE")));
+ QPixmap image3(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_MIRROR_TITLE"));
connect(GroupPoints->CheckButton1, SIGNAL(toggled(bool)), this, SLOT(CreateCopyModeChanged(bool)));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
initName( tr( "GEOM_MIRROR" ) );
ConstructorsClicked( 0 );
//=================================================================================
void TransformationGUI_MirrorDlg::ConstructorsClicked(int constructorId)
{
- disconnect( mySelection, 0, this, 0 );
+ disconnect( ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 0, this, 0 );
globalSelection();
myEditCurrentArgument = GroupPoints->LineEdit1;
break;
}
}
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
}
if(myEditCurrentArgument == GroupPoints->LineEdit1)
{
- int aNbSel = GEOMBase::GetNameOfSelectedIObjects(mySelection, aName);
+ int aNbSel = GEOMBase::GetNameOfSelectedIObjects(selectedIO(), aName);
if(aNbSel < 1)
{
myObjects.length(0);
return;
}
- GEOMBase::ConvertListOfIOInListOfGO(mySelection->StoredIObjects(), myObjects);
+ GEOMBase::ConvertListOfIOInListOfGO(selectedIO(), myObjects);
if (!myObjects.length())
return;
if(aNbSel != 1)
}
else if(myEditCurrentArgument == GroupPoints->LineEdit2)
{
- if(mySelection->IObjectCount() != 1)
+ if(IObjectCount() != 1)
{
myArgument = GEOM::GEOM_Object::_nil();
return;
}
Standard_Boolean testResult = Standard_False;
- myArgument = GEOMBase::ConvertIOinGEOMObject(mySelection->firstIObject(), testResult );
+ myArgument = GEOMBase::ConvertIOinGEOMObject(firstIObject(), testResult );
if(!testResult || CORBA::is_nil( myArgument ))
return;
aName = GEOMBase::GetName( myArgument );
void TransformationGUI_MirrorDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
ConstructorsClicked( getConstructorId() );
}
Q_OBJECT
public:
- TransformationGUI_MirrorDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ TransformationGUI_MirrorDlg(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~TransformationGUI_MirrorDlg();
protected:
#include "TransformationGUI_MultiRotationDlg.h"
-#include "GEOMImpl_Types.hxx"
-
-#include "QAD_Config.h"
-#include "QAD_Desktop.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
#include <qcheckbox.h>
+#include <qlabel.h>
+
+#include "GEOMImpl_Types.hxx"
#include "utilities.h"
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-TransformationGUI_MultiRotationDlg::TransformationGUI_MultiRotationDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+TransformationGUI_MultiRotationDlg::TransformationGUI_MultiRotationDlg(GeometryGUI* theGeometryGUI, QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu), myGeometryGUI(theGeometryGUI)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_MULTIROTATION_SIMPLE")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_MULTIROTATION_DOUBLE")));
- QPixmap image2(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_MULTIROTATION_SIMPLE")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_MULTIROTATION_DOUBLE")));
+ QPixmap image2(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_MULTIROTATION_TITLE"));
void TransformationGUI_MultiRotationDlg::Init()
{
/* Get setting of step value from file configuration */
- QString St = QAD_CONFIG->getSetting("Geometry:SettingsGeomStep");
- double step = St.toDouble();
+ SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
+ double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
double SpecificStep1 = 5;
double SpecificStep2 = 1;
connect(GroupDimensions->SpinBox_DX2, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
connect(GroupDimensions->SpinBox_DY2, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DX, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DX1, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DY1, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DX2, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DY2, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DX1, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DY1, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DX2, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DY2, SLOT(SetStep(double)));
connect(GroupDimensions->CheckButton1, SIGNAL(toggled(bool)), this, SLOT(ReverseAngle()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
initName( tr( "GEOM_MULTIROTATION" ) );
ConstructorsClicked( 0 );
//=================================================================================
void TransformationGUI_MultiRotationDlg::ConstructorsClicked(int constructorId)
{
- disconnect(mySelection, 0, this, 0);
+ disconnect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 0, this, 0);
myAng = 45.0;
myStep = 50.0;
myEditCurrentArgument->setFocus();
myBase = myVector = GEOM::GEOM_Object::_nil();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
}
{
myEditCurrentArgument->setText("");
- if(mySelection->IObjectCount() != 1) {
+ if(IObjectCount() != 1) {
if(myEditCurrentArgument == GroupPoints->LineEdit1 || myEditCurrentArgument == GroupDimensions->LineEdit1)
myBase = GEOM::GEOM_Object::_nil();
else if(myEditCurrentArgument == GroupPoints->LineEdit2 || myEditCurrentArgument == GroupDimensions->LineEdit2)
// nbSel == 1
Standard_Boolean testResult = Standard_False;;
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject(mySelection->firstIObject(), testResult );
+ GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject(firstIObject(), testResult );
if ( !testResult || CORBA::is_nil( aSelectedObject ) || !GEOMBase::IsShape( aSelectedObject ) )
return;
void TransformationGUI_MultiRotationDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
ConstructorsClicked( getConstructorId() );
}
//=================================================================================
GEOM::GEOM_IOperations_ptr TransformationGUI_MultiRotationDlg::createOperation()
{
- return getGeomEngine()->GetITransformOperations( getStudyId() );
+ return myGeometryGUI->GetGeomGen()->GetITransformOperations( getStudyId() );
}
//=================================================================================
void TransformationGUI_MultiRotationDlg::closeEvent( QCloseEvent* e )
{
- myGeomGUI->SetState( -1 );
+ // myGeomGUI->SetState( -1 );
GEOMBase_Skeleton::closeEvent( e );
}
Q_OBJECT
public:
- TransformationGUI_MultiRotationDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ TransformationGUI_MultiRotationDlg(GeometryGUI* theGeometryGUI, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~TransformationGUI_MultiRotationDlg();
protected:
private :
void Init();
void enterEvent(QEvent* e);
+
+ GeometryGUI* myGeometryGUI;
GEOM::GEOM_Object_var myBase, myVector;
int myNbTimes1;
#include "TransformationGUI_MultiTranslationDlg.h"
-#include "GEOMImpl_Types.hxx"
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
+#include <qlabel.h>
-#include "QAD_Config.h"
-#include "QAD_Desktop.h"
+#include "GEOMImpl_Types.hxx"
#include <qcheckbox.h>
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-TransformationGUI_MultiTranslationDlg::TransformationGUI_MultiTranslationDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+TransformationGUI_MultiTranslationDlg::TransformationGUI_MultiTranslationDlg(GeometryGUI* theGeometryGUI, QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu), myGeometryGUI(theGeometryGUI)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap( "GEOM",tr("ICON_DLG_MULTITRANSLATION_SIMPLE")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap( "GEOM",tr("ICON_DLG_MULTITRANSLATION_DOUBLE")));
- QPixmap image2(QAD_Desktop::getResourceManager()->loadPixmap( "GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap( "GEOM",tr("ICON_DLG_MULTITRANSLATION_SIMPLE")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap( "GEOM",tr("ICON_DLG_MULTITRANSLATION_DOUBLE")));
+ QPixmap image2(SUIT_Session::session()->resourceMgr()->loadPixmap( "GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_MULTITRANSLATION_TITLE"));
void TransformationGUI_MultiTranslationDlg::Init()
{
/* Get setting of step value from file configuration */
- QString St = QAD_CONFIG->getSetting("Geometry:SettingsGeomStep");
- double step = St.toDouble();
-
+ SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
+ double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
+
double SpecificStep = 1;
/* min, max, step and decimals for spin boxes & initial values */
GroupPoints->SpinBox_DX->RangeStepAndValidator(-999.999, 999.999, step, 3);
connect(GroupDimensions->SpinBox_DX2, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
connect(GroupDimensions->SpinBox_DY2, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DX, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DY, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DX1, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DY1, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DX2, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DY2, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DY, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DX1, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DY1, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DX2, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DY2, SLOT(SetStep(double)));
connect(GroupPoints->CheckButton1, SIGNAL(toggled(bool)), this, SLOT(ReverseStepU()));
connect(GroupDimensions->CheckButton1, SIGNAL(toggled(bool)), this, SLOT(ReverseStepU()));
connect(GroupDimensions->CheckButton2, SIGNAL(toggled(bool)), this, SLOT(ReverseStepV()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
initName( tr( "GEOM_MULTITRANSLATION" ) );
//=================================================================================
void TransformationGUI_MultiTranslationDlg::ConstructorsClicked(int constructorId)
{
- disconnect(mySelection, 0, this, 0);
+ disconnect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 0, this, 0);
myStepU = myStepV = 50.0;
myNbTimesU = myNbTimesV = 2;
myEditCurrentArgument->setFocus();
myBase = myVectorU = GEOM::GEOM_Object::_nil();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
}
{
myEditCurrentArgument->setText("");
- if(mySelection->IObjectCount() != 1) {
+ if(IObjectCount() != 1) {
if(myEditCurrentArgument == GroupPoints->LineEdit1 || myEditCurrentArgument == GroupDimensions->LineEdit1)
myBase = GEOM::GEOM_Object::_nil();
else if(myEditCurrentArgument == GroupPoints->LineEdit2 || myEditCurrentArgument == GroupDimensions->LineEdit2)
// nbSel == 1
Standard_Boolean testResult = Standard_False;;
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject(mySelection->firstIObject(), testResult );
+ GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject(firstIObject(), testResult );
if ( !testResult || CORBA::is_nil( aSelectedObject ) || !GEOMBase::IsShape( aSelectedObject ) )
return;
void TransformationGUI_MultiTranslationDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
ConstructorsClicked( getConstructorId() );
}
//=================================================================================
GEOM::GEOM_IOperations_ptr TransformationGUI_MultiTranslationDlg::createOperation()
{
- return getGeomEngine()->GetITransformOperations( getStudyId() );
+ return myGeometryGUI->GetGeomGen()->GetITransformOperations( getStudyId() );
}
//=================================================================================
void TransformationGUI_MultiTranslationDlg::closeEvent( QCloseEvent* e )
{
- myGeomGUI->SetState( -1 );
+ // myGeomGUI->SetState( -1 );
GEOMBase_Skeleton::closeEvent( e );
}
Q_OBJECT
public:
- TransformationGUI_MultiTranslationDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ TransformationGUI_MultiTranslationDlg(GeometryGUI* theGeometryGUI, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~TransformationGUI_MultiTranslationDlg();
protected:
private :
void Init();
void enterEvent(QEvent* e);
+
+ GeometryGUI* myGeometryGUI;
GEOM::GEOM_Object_var myBase, myVectorU, myVectorV ;
int myNbTimesU;
// $Header$
#include "TransformationGUI_OffsetDlg.h"
-#include <QAD_Desktop.h>
-#include "utilities.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+
+#include <qlabel.h>
#include <qcheckbox.h>
+#include "utilities.h"
+
using namespace std;
//=================================================================================
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-TransformationGUI_OffsetDlg::TransformationGUI_OffsetDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+TransformationGUI_OffsetDlg::TransformationGUI_OffsetDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_OFFSET")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_OFFSET")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_OFFSET_TITLE"));
/* min, max, step and decimals for spin boxes & initial values */
GroupPoints->SpinBox_DX->RangeStepAndValidator(-999.999, 999.999, step, 3);
GroupPoints->SpinBox_DX->setPrecision(5);
- GroupPoints->SpinBox_DX->setDblPrecision(1e-05);
+ //@ GroupPoints->SpinBox_DX->setDblPrecision(1e-05);
GroupPoints->SpinBox_DX->SetValue(1e-05);
// Activate Create a Copy mode
connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
connect(GroupPoints->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
connect(GroupPoints->SpinBox_DX, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox()));
connect(GroupPoints->CheckButton1, SIGNAL(toggled(bool)), this, SLOT(CreateCopyModeChanged(bool)));
myEditCurrentArgument->setText("");
QString aName;
- int aNbSel = GEOMBase::GetNameOfSelectedIObjects(mySelection, aName);
+ int aNbSel = GEOMBase::GetNameOfSelectedIObjects(selectedIO(), aName);
if(aNbSel < 1)
{
myObjects.length(0);
}
// nbSel > 0
- GEOMBase::ConvertListOfIOInListOfGO(mySelection->StoredIObjects(), myObjects);
+ GEOMBase::ConvertListOfIOInListOfGO(selectedIO(), myObjects);
if (!myObjects.length())
return;
- if(aNbSel != 1)
- aName = tr("%1_objects").arg(aNbSel);
-
+
myEditCurrentArgument->setText( aName );
displayPreview();
void TransformationGUI_OffsetDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
globalSelection( GEOM_ALLSHAPES );
myEditCurrentArgument = GroupPoints->LineEdit1;
myEditCurrentArgument->setFocus();
//=================================================================================
void TransformationGUI_OffsetDlg::closeEvent( QCloseEvent* e )
{
- myGeomGUI->SetState( -1 );
+ // myGeomGUI->SetState( -1 );
GEOMBase_Skeleton::closeEvent( e );
}
Q_OBJECT
public:
- TransformationGUI_OffsetDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ TransformationGUI_OffsetDlg(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~TransformationGUI_OffsetDlg();
protected:
#include "TransformationGUI_PositionDlg.h"
-#include "QAD_Desktop.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+#include <qlabel.h>
#include <qcheckbox.h>
+#include "TColStd_MapOfInteger.hxx"
+
#include "GEOMImpl_Types.hxx"
#include "utilities.h"
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-TransformationGUI_PositionDlg::TransformationGUI_PositionDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+TransformationGUI_PositionDlg::TransformationGUI_PositionDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_POSITION")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_POSITION2")));
- QPixmap imageselect(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_POSITION")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_POSITION2")));
+ QPixmap imageselect(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_POSITION_TITLE"));
connect(Group1->CheckBox1, SIGNAL(toggled(bool)), this, SLOT(CreateCopyModeChanged(bool)));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
initName( tr( "GEOM_POSITION" ) );
ConstructorsClicked( 0 );
//=================================================================================
void TransformationGUI_PositionDlg::ConstructorsClicked(int constructorId)
{
- disconnect( mySelection, 0, this, 0 );
+ disconnect( ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 0, this, 0 );
globalSelection();
myEditCurrentArgument = Group1->LineEdit1;
break;
}
}
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
SelectionIntoArgument();
}
QString aName;
if(myEditCurrentArgument == Group1->LineEdit1) {
- int aNbSel = GEOMBase::GetNameOfSelectedIObjects(mySelection, aName);
+ int aNbSel = GEOMBase::GetNameOfSelectedIObjects(selectedIO(), aName);
if(aNbSel < 1) {
myObjects.length(0);
displayPreview();
return;
}
- GEOMBase::ConvertListOfIOInListOfGO(mySelection->StoredIObjects(), myObjects);
+ GEOMBase::ConvertListOfIOInListOfGO(selectedIO(), myObjects);
if (!myObjects.length()) {
displayPreview();
return;
}
- if(aNbSel != 1)
- aName = tr("%1_objects").arg(aNbSel);
}
else if(myEditCurrentArgument == Group1->LineEdit2) {
myStartLCS = GEOM::GEOM_Object::_nil();
- if(mySelection->IObjectCount() != 1) {
+ if(IObjectCount() != 1) {
displayPreview();
return;
}
Standard_Boolean testResult = Standard_False;
- myStartLCS = GEOMBase::ConvertIOinGEOMObject(mySelection->firstIObject(), testResult );
+ myStartLCS = GEOMBase::ConvertIOinGEOMObject(firstIObject(), testResult );
if(!testResult || CORBA::is_nil( myStartLCS )) {
displayPreview();
return;
}
else if(myEditCurrentArgument == Group1->LineEdit3) {
myEndLCS = GEOM::GEOM_Object::_nil();
- if(mySelection->IObjectCount() != 1) {
+ if(IObjectCount() != 1) {
displayPreview();
return;
}
Standard_Boolean testResult = Standard_False;
- myEndLCS = GEOMBase::ConvertIOinGEOMObject(mySelection->firstIObject(), testResult );
+ myEndLCS = GEOMBase::ConvertIOinGEOMObject(firstIObject(), testResult );
if(!testResult || CORBA::is_nil( myEndLCS )) {
displayPreview();
return;
void TransformationGUI_PositionDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
ConstructorsClicked( getConstructorId() );
}
Q_OBJECT
public:
- TransformationGUI_PositionDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ TransformationGUI_PositionDlg(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~TransformationGUI_PositionDlg();
protected:
// $Header$
#include "TransformationGUI_RotationDlg.h"
-#include <qcheckbox.h>
-
-#include "QAD_Desktop.h"
-#include "GEOMImpl_Types.hxx"
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
#include <qcheckbox.h>
+#include <qlabel.h>
+
+#include "GEOMImpl_Types.hxx"
#include "utilities.h"
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-TransformationGUI_RotationDlg::TransformationGUI_RotationDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+TransformationGUI_RotationDlg::TransformationGUI_RotationDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_ROTATION")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_ROTATION")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_ROTATION_TITLE"));
connect(GroupPoints->CheckButton1, SIGNAL(toggled(bool)), this, SLOT(CreateCopyModeChanged(bool)));
connect(GroupPoints->CheckButton2, SIGNAL(toggled(bool)), this, SLOT(onReverse()));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
Init();
}
if(myEditCurrentArgument == GroupPoints->LineEdit1)
{
- int aNbSel = GEOMBase::GetNameOfSelectedIObjects(mySelection, aName);
+ int aNbSel = GEOMBase::GetNameOfSelectedIObjects(selectedIO(), aName);
if(aNbSel < 1)
{
myObjects.length(0);
return;
}
- GEOMBase::ConvertListOfIOInListOfGO(mySelection->StoredIObjects(), myObjects);
+ GEOMBase::ConvertListOfIOInListOfGO(selectedIO(), myObjects);
if (!myObjects.length())
return;
- if(aNbSel != 1)
- aName = tr("%1_objects").arg(aNbSel);
}
else if(myEditCurrentArgument == GroupPoints->LineEdit2)
{
- if(mySelection->IObjectCount() != 1)
+ if(IObjectCount() != 1)
{
myAxis = GEOM::GEOM_Object::_nil();
return;
}
Standard_Boolean testResult = Standard_False;
- myAxis = GEOMBase::ConvertIOinGEOMObject(mySelection->firstIObject(), testResult );
+ myAxis = GEOMBase::ConvertIOinGEOMObject(firstIObject(), testResult );
if(!testResult || CORBA::is_nil( myAxis ))
return;
aName = GEOMBase::GetName( myAxis );
void TransformationGUI_RotationDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
globalSelection();
GroupPoints->LineEdit1->setFocus();
myEditCurrentArgument = GroupPoints->LineEdit1;
Q_OBJECT
public:
- TransformationGUI_RotationDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ TransformationGUI_RotationDlg(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~TransformationGUI_RotationDlg();
protected:
void Init();
void enterEvent(QEvent* e);
double GetAngle() const;
-
+
GEOM::ListOfGO myObjects;
GEOM::GEOM_Object_var myAxis;
#include "TransformationGUI_ScaleDlg.h"
-#include "QAD_Desktop.h"
-
-#include "GEOMImpl_Types.hxx"
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
+#include <qlabel.h>
#include <qcheckbox.h>
+#include "GEOMImpl_Types.hxx"
+
#include "utilities.h"
using namespace std;
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-TransformationGUI_ScaleDlg::TransformationGUI_ScaleDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+TransformationGUI_ScaleDlg::TransformationGUI_ScaleDlg(GeometryGUI* theGeometryGUI, QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu), myGeometryGUI(theGeometryGUI)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_SCALE")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_SCALE")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_SCALE_TITLE"));
connect(GroupPoints->LineEdit2, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
connect(GroupPoints->SpinBox_DX, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox()));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DX, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DX, SLOT(SetStep(double)));
connect(GroupPoints->CheckButton1, SIGNAL(toggled(bool)), this, SLOT(CreateCopyModeChanged(bool)));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
Init();
}
if(myEditCurrentArgument == GroupPoints->LineEdit1)
{
- int aNbSel = GEOMBase::GetNameOfSelectedIObjects(mySelection, aName);
+ int aNbSel = GEOMBase::GetNameOfSelectedIObjects(selectedIO(), aName);
if(aNbSel < 1)
{
myObjects.length(0);
return;
}
- GEOMBase::ConvertListOfIOInListOfGO(mySelection->StoredIObjects(), myObjects);
+ GEOMBase::ConvertListOfIOInListOfGO(selectedIO(), myObjects);
if (!myObjects.length())
return;
- if(aNbSel != 1)
- aName = tr("%1_objects").arg(aNbSel);
}
else if(myEditCurrentArgument == GroupPoints->LineEdit2)
{
- if(mySelection->IObjectCount() != 1)
+ if(IObjectCount() != 1)
{
myPoint = GEOM::GEOM_Object::_nil();
return;
}
Standard_Boolean testResult = Standard_False;
- myPoint = GEOMBase::ConvertIOinGEOMObject(mySelection->firstIObject(), testResult );
+ myPoint = GEOMBase::ConvertIOinGEOMObject(firstIObject(), testResult );
if(!testResult || CORBA::is_nil( myPoint ))
return;
aName = GEOMBase::GetName( myPoint );
void TransformationGUI_ScaleDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
globalSelection();
GroupPoints->LineEdit1->setFocus();
myEditCurrentArgument = GroupPoints->LineEdit1;
//=================================================================================
GEOM::GEOM_IOperations_ptr TransformationGUI_ScaleDlg::createOperation()
{
- return getGeomEngine()->GetITransformOperations( getStudyId() );
+ return myGeometryGUI->GetGeomGen()->GetITransformOperations( getStudyId() );
}
//=================================================================================
Q_OBJECT
public:
- TransformationGUI_ScaleDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ TransformationGUI_ScaleDlg(GeometryGUI* theGeometryGUI, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~TransformationGUI_ScaleDlg();
protected:
void Init();
void enterEvent(QEvent* e);
double GetFactor() const;
+
+ GeometryGUI* myGeometryGUI;
GEOM::ListOfGO myObjects;
GEOM::GEOM_Object_var myPoint; /* Central Point */
#include "TransformationGUI_TranslationDlg.h"
-#include "QAD_Config.h"
-#include "QAD_Desktop.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_Session.h"
+#include "SalomeApp_Application.h"
+#include "SalomeApp_SelectionMgr.h"
#include <qcheckbox.h>
+#include <qlabel.h>
#include "GEOMImpl_Types.hxx"
// The dialog will by default be modeless, unless you set 'modal' to
// TRUE to construct a modal dialog.
//=================================================================================
-TransformationGUI_TranslationDlg::TransformationGUI_TranslationDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+TransformationGUI_TranslationDlg::TransformationGUI_TranslationDlg(GeometryGUI* theGeometryGUI, QWidget* parent, const char* name, bool modal, WFlags fl)
+ :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu), myGeometryGUI(theGeometryGUI)
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_TRANSLATION_DXYZ")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_TRANSLATION_POINTS")));
- QPixmap image2(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_TRANSLATION_VECTOR")));
- QPixmap image3(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_TRANSLATION_DXYZ")));
+ QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_TRANSLATION_POINTS")));
+ QPixmap image2(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_TRANSLATION_VECTOR")));
+ QPixmap image3(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
setCaption(tr("GEOM_TRANSLATION_TITLE"));
CreateCopyModeChanged(true);
/* Get setting of step value from file configuration */
- QString St = QAD_CONFIG->getSetting("Geometry:SettingsGeomStep");
- double step = St.toDouble();
+ SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
+ double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
/* min, max, step and decimals for spin boxes & initial values */
GroupPoints->SpinBox1->RangeStepAndValidator(-999.999, 999.999, step, 3);
connect(GroupPoints->PushButton2, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
connect(GroupPoints->PushButton3, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(GroupPoints->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed())); // MZN: Delete ?
+ connect(GroupPoints->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed())); //@ Delete ?
connect(GroupPoints->SpinBox1, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox()));
connect(GroupPoints->SpinBox2, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox()));
connect(GroupPoints->SpinBox3, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox()));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox1, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox2, SLOT(SetStep(double)));
- connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox3, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox1, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox2, SLOT(SetStep(double)));
+ connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox3, SLOT(SetStep(double)));
connect(GroupPoints->CheckBox1, SIGNAL(toggled(bool)), this, SLOT(CreateCopyModeChanged(bool)));
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
initName( tr( "GEOM_TRANSLATION" ) );
ConstructorsClicked( 0 );
//=================================================================================
void TransformationGUI_TranslationDlg::ConstructorsClicked(int constructorId)
{
- disconnect( mySelection, 0, this, 0 );
+ disconnect( ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 0, this, 0 );
myEditCurrentArgument = GroupPoints->LineEdit1;
globalSelection();
}
myEditCurrentArgument->setFocus();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
}
if(myEditCurrentArgument == GroupPoints->LineEdit1)
{
- int aNbSel = GEOMBase::GetNameOfSelectedIObjects(mySelection, aName);
+ int aNbSel = GEOMBase::GetNameOfSelectedIObjects(selectedIO(), aName);
+
if(aNbSel < 1)
{
myObjects.length(0);
return;
}
- GEOMBase::ConvertListOfIOInListOfGO(mySelection->StoredIObjects(), myObjects);
+ GEOMBase::ConvertListOfIOInListOfGO(selectedIO(), myObjects);
if (!myObjects.length())
return;
- if(aNbSel != 1)
- aName = tr("%1_objects").arg(aNbSel);
}
else
{
- if (mySelection->IObjectCount() != 1) {
+ if (IObjectCount() != 1) {
if(myEditCurrentArgument == GroupPoints->LineEdit2 && getConstructorId() == 1)
myPoint1 = GEOM::GEOM_Object::_nil();
else if(myEditCurrentArgument == GroupPoints->LineEdit2 && getConstructorId() == 2)
}
Standard_Boolean testResult = Standard_False;;
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject(mySelection->firstIObject(), testResult );
+ GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject(firstIObject(), testResult );
if (!testResult || CORBA::is_nil( aSelectedObject ))
return;
void TransformationGUI_TranslationDlg::ActivateThisDialog()
{
GEOMBase_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
+ SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
ConstructorsClicked( getConstructorId() );
}
//=================================================================================
GEOM::GEOM_IOperations_ptr TransformationGUI_TranslationDlg::createOperation()
{
- return getGeomEngine()->GetITransformOperations( getStudyId() );
+ return myGeometryGUI->GetGeomGen()->GetITransformOperations( getStudyId() );
}
//=================================================================================
void TransformationGUI_TranslationDlg::closeEvent( QCloseEvent* e )
{
- myGeomGUI->SetState( -1 );
+ // myGeomGUI->SetState( -1 );
GEOMBase_Skeleton::closeEvent( e );
}
Q_OBJECT
public:
- TransformationGUI_TranslationDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
+ TransformationGUI_TranslationDlg(GeometryGUI* theGeometryGUI, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~TransformationGUI_TranslationDlg();
protected:
private :
void Init();
void enterEvent(QEvent* e);
+
+ GeometryGUI* myGeometryGUI;
GEOM::GEOM_Object_var myVector, myPoint1, myPoint2;
GEOM::ListOfGO myObjects;