]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Restore more precise signal detection as in SALOME V2.2.7, connected to Bug PAL11170
authorapo <apo@opencascade.com>
Tue, 7 Mar 2006 09:31:03 +0000 (09:31 +0000)
committerapo <apo@opencascade.com>
Tue, 7 Mar 2006 09:31:03 +0000 (09:31 +0000)
src/OBJECT/Makefile.in
src/SMESH_I/Makefile.in
src/SMESH_I/SMESH_Gen_i.cxx
src/StdMeshers/Makefile.in
src/StdMeshers/StdMeshers_Distribution.cxx
src/StdMeshers/StdMeshers_NumberOfSegments.cxx
src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx

index 3f9abd39d8e6d2af1b4897d0819b87f4811cffc5..3d47e38c4e42f4a66cf76ebe5a6fc61d04b9f5df 100644 (file)
@@ -78,8 +78,7 @@ LDFLAGS+= \
         -lSMESHClient \
         -lSalomeApp \
         -lSalomeObject \
-        -lSMESHControls \
-        -lCASCatch
+        -lSMESHControls
 
 LDFLAGSFORBIN += \
        -L${GEOM_ROOT_DIR}/lib/salome \
index 179743728f2e261f52fee67696d53bce8f39c8bb..c8787fdd3ce373b975b3f38f7a624c70587bf8b6 100644 (file)
@@ -74,34 +74,97 @@ LIB_SRC = \
        SMESH_Pattern_i.cxx \
        SMESH_2smeshpy.cxx
 
-LIB_SERVER_IDL = SMESH_Gen.idl SMESH_Hypothesis.idl SMESH_Mesh.idl \
-                 SALOME_Component.idl SALOME_Exception.idl \
-                 SMESH_Filter.idl SMESH_Group.idl SMESH_Pattern.idl
-
-LIB_CLIENT_IDL = SALOMEDS.idl GEOM_Gen.idl MED.idl SALOMEDS_Attributes.idl SALOME_GenericObj.idl SALOME_Comm.idl
+LIB_SERVER_IDL = \
+       SMESH_Gen.idl \
+       SMESH_Hypothesis.idl \
+       SMESH_Mesh.idl \
+        SALOME_Component.idl \
+       SALOME_Exception.idl \
+        SMESH_Filter.idl \
+       SMESH_Group.idl \
+       SMESH_Pattern.idl
+
+LIB_CLIENT_IDL = \
+       SALOMEDS.idl \
+       GEOM_Gen.idl \
+       MED.idl \
+       SALOMEDS_Attributes.idl \
+       SALOME_GenericObj.idl \
+       SALOME_Comm.idl
 
 # Executables targets
 BIN = SMESHEngine
 BIN_SRC = 
 
 # additionnal information to compil and link file
-CPPFLAGS+= $(OCC_INCLUDES) $(HDF5_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome \
-           -I${MED_ROOT_DIR}/include/salome -I${GEOM_ROOT_DIR}/include/salome $(BOOST_CPPFLAGS)
-CXXFLAGS+= $(OCC_CXXFLAGS) $(HDF5_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome \
-           -I${MED_ROOT_DIR}/include/salome -I${GEOM_ROOT_DIR}/include/salome
-
-LDFLAGS+= -L${KERNEL_ROOT_DIR}/lib/salome -lSalomeContainer -lSalomeNS -lRegistry -lSalomeHDFPersist -lSalomeLifeCycleCORBA -lTOOLSDS -lSalomeGenericObj \
-         -L${GEOM_ROOT_DIR}/lib/salome -lGEOMClient -lSMESHimpl -lSMESHControls \
-    $(OCC_LDPATH) -lTKCDF -lTKBO
-
-
-LDFLAGSFORBIN += -lSMDS -lSMESHDS \
-               -L${MED_ROOT_DIR}/lib/salome -lMEDWrapper -lMEDWrapperBase -lMEDWrapper_V2_1 -lMEDWrapper_V2_2 -lmed_V2_1 \
-               -lMeshDriver -lMeshDriverMED -lMeshDriverUNV -lMeshDriverDAT -lMeshDriverSTL \
-               -L${KERNEL_ROOT_DIR}/lib/salome -lSalomeContainer -lSalomeNS -lRegistry -lSalomeResourcesManager \
-               -lOpUtil -lSALOMELocalTrace -lSALOMEBasics -lSalomeNotification -lCASCatch \
-               -lSalomeHDFPersist -lSalomeLifeCycleCORBA -lTOOLSDS -lSalomeGenericObj \
-               -L${GEOM_ROOT_DIR}/lib/salome -lGEOMClient -lSMESHimpl -lSMESHControls -lNMTTools -lNMTDS \
-     $(OCC_LDPATH) -lTKCDF -lTKBO -lTKMath
+CPPFLAGS+= \
+       $(OCC_INCLUDES) \
+       $(HDF5_INCLUDES) \
+       $(BOOST_CPPFLAGS) \
+       -I${KERNEL_ROOT_DIR}/include/salome \
+        -I${MED_ROOT_DIR}/include/salome \
+       -I${GEOM_ROOT_DIR}/include/salome 
+
+CXXFLAGS+= \
+       $(OCC_CXXFLAGS) \
+       $(HDF5_INCLUDES) \
+       -I${KERNEL_ROOT_DIR}/include/salome \
+        -I${MED_ROOT_DIR}/include/salome \
+       -I${GEOM_ROOT_DIR}/include/salome
+
+LDFLAGS+= \
+       -L${KERNEL_ROOT_DIR}/lib/salome \
+       -lSalomeContainer \
+       -lSalomeNS \
+       -lRegistry \
+       -lSalomeHDFPersist \
+       -lSalomeLifeCycleCORBA \
+       -lTOOLSDS \
+       -lSalomeGenericObj \
+       -L${GEOM_ROOT_DIR}/lib/salome \
+       -lGEOMClient \
+       -lSMESHimpl \
+       -lSMESHControls \
+       $(OCC_LDPATH) \
+       -lTKCDF \
+       -lTKBO
+
+LDFLAGSFORBIN+= \
+       -lSMDS \
+       -lSMESHDS \
+       -L${MED_ROOT_DIR}/lib/salome \
+       -lMEDWrapper \
+       -lMEDWrapperBase \
+       -lMEDWrapper_V2_1 \
+       -lMEDWrapper_V2_2 \
+       -lmed_V2_1 \
+       -lMeshDriver \
+       -lMeshDriverMED \
+       -lMeshDriverUNV \
+       -lMeshDriverDAT \
+       -lMeshDriverSTL \
+       -L${KERNEL_ROOT_DIR}/lib/salome \
+       -lSalomeContainer \
+       -lSalomeNS \
+       -lRegistry \
+       -lSalomeResourcesManager \
+       -lOpUtil \
+       -lSALOMELocalTrace \
+       -lSALOMEBasics \
+       -lSalomeNotification \
+       -lSalomeHDFPersist \
+       -lSalomeLifeCycleCORBA \
+       -lTOOLSDS \
+       -lSalomeGenericObj \
+       -L${GEOM_ROOT_DIR}/lib/salome \
+       -lGEOMClient \
+       -lSMESHimpl \
+       -lSMESHControls \
+       -lNMTTools \
+       -lNMTDS \
+       $(OCC_LDPATH) \
+       -lTKCDF \
+       -lTKBO \
+       -lTKMath
 
 @CONCLUDE@
index 864427fac87a97f354dae5a8e0a17f8c83b14f96..e75216c213501089aec3592be90112e9f141d4bd 100644 (file)
@@ -46,6 +46,7 @@
 #include <gp_Pnt.hxx>
 #include <BRep_Tool.hxx>
 #include <TCollection_AsciiString.hxx>
+#include <OSD.hxx>
 
 #include "Utils_CorbaException.hxx"
 
@@ -92,7 +93,6 @@
 #include "Utils_ExceptHandlers.hxx"
 
 #include <map>
-#include <boost/filesystem/path.hpp>
 
 using namespace std;
 using SMESH::TPythonDump;
@@ -247,6 +247,8 @@ SMESH_Gen_i::SMESH_Gen_i( CORBA::ORB_ptr            orb,
   myIsEmbeddedMode = false;
   myShapeReader = NULL;  // shape reader
   mySMESHGen = this;
+
+  OSD::SetSignal( true );
 }
 
 //=============================================================================
@@ -650,7 +652,7 @@ SMESH::SMESH_Mesh_ptr SMESH_Gen_i::CreateMeshesFromUNV( const char* theFileName
   if(MYDEBUG) MESSAGE( "SMESH_Gen_i::CreateMeshesFromUNV" );
 
   SMESH::SMESH_Mesh_var aMesh = createMesh();
-  string aFileName; // = boost::filesystem::path(theFileName).leaf();
+  string aFileName;
   // publish mesh in the study
   if ( CanPublishInStudy( aMesh ) ) {
     SALOMEDS::StudyBuilder_var aStudyBuilder = myCurrentStudy->NewBuilder();
@@ -761,7 +763,7 @@ SMESH::SMESH_Mesh_ptr SMESH_Gen_i::CreateMeshesFromSTL( const char* theFileName
   if(MYDEBUG) MESSAGE( "SMESH_Gen_i::CreateMeshesFromSTL" );
 
   SMESH::SMESH_Mesh_var aMesh = createMesh();
-  string aFileName; // = boost::filesystem::path(theFileName).leaf();
+  string aFileName;
   // publish mesh in the study
   if ( CanPublishInStudy( aMesh ) ) {
     SALOMEDS::StudyBuilder_var aStudyBuilder = myCurrentStudy->NewBuilder();
index d210078161630cef6588ae51041270871f7b4667..b38a5dcbf5ab8da3239f441c0b2cc5bee748a62e 100644 (file)
@@ -91,10 +91,22 @@ BIN =
 BIN_SRC = 
 
 # 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 -I${GEOM_ROOT_DIR}/include/salome
+CPPFLAGS+= \
+       $(OCC_INCLUDES) \
+       $(BOOST_CPPFLAGS) \
+       -I${KERNEL_ROOT_DIR}/include/salome
 
-LDFLAGS+= -lSMESHimpl -lMEFISTO2D $(OCC_LDPATH) -lTKAdvTools -L${KERNEL_ROOT_DIR}/lib/salome -L${GEOM_ROOT_DIR}/lib/salome \
-         -lCASCatch
+CXXFLAGS+= \
+       $(OCC_CXXFLAGS) \
+       -I${KERNEL_ROOT_DIR}/include/salome \
+       -I${GEOM_ROOT_DIR}/include/salome
+
+LDFLAGS+= \
+       -lSMESHimpl \
+       -lMEFISTO2D \
+       $(OCC_LDPATH) \
+       -lTKAdvTools \
+       -L${KERNEL_ROOT_DIR}/lib/salome \
+       -L${GEOM_ROOT_DIR}/lib/salome
 
 @CONCLUDE@
index 01fc5c6f6f6629a6f64c7da809fa480179023118..1223fc009e716220152d1c577951231b3729f23d 100644 (file)
@@ -27,7 +27,7 @@
 //  $Header$
 
 #include "StdMeshers_Distribution.hxx"
-#include "CASCatch_CatchSignals.hxx"
+#include "CASCatch.hxx"
 
 #include <math_GaussSingleIntegration.hxx>
 #include <utilities.h>
@@ -43,8 +43,6 @@ Function::~Function()
 
 bool Function::value( const double, double& f ) const
 {
-  CASCatch_CatchSignals aCatchSignals;
-
   bool ok = true;
   if( myConv==0 )
   {
@@ -170,8 +168,6 @@ FunctionExpr::FunctionExpr( const char* str, const int conv )
   myVars( 1, 1 ),
   myValues( 1, 1 )
 {
-  CASCatch_CatchSignals aCatchSignals;
-
   bool ok = true;
   CASCatch_TRY
   {
@@ -207,8 +203,6 @@ bool FunctionExpr::value( const double t, double& f ) const
   if( myExpr.IsNull() )
     return false;
 
-  CASCatch_CatchSignals aCatchSignals;
-
   ( ( TColStd_Array1OfReal& )myValues ).ChangeValue( 1 ) = t;
   bool ok = true;
   CASCatch_TRY {
index b949d872bce24ca1d54b0ae73fb95b0308261b39..ba99cb6881f327b70d6a3516a6d701db62015f09 100644 (file)
@@ -33,7 +33,7 @@
 #include "SMESHDS_SubMesh.hxx"
 #include "SMESH_Mesh.hxx"
 
-#include "CASCatch_CatchSignals.hxx"
+#include "CASCatch.hxx"
 
 #include <ExprIntrp_GenExp.hxx>
 #include <Expr_Array1OfNamedUnknown.hxx>
@@ -212,7 +212,6 @@ void StdMeshers_NumberOfSegments::SetTableFunction(const std::vector<double>& ta
   double prev = -PRECISION;
   bool isSame = table.size() == _table.size();
 
-  CASCatch_CatchSignals aCatchSignals;
   bool pos = false;
   for (i=0; i < table.size()/2; i++) {
     double par = table[i*2];
@@ -311,8 +310,6 @@ bool process( const TCollection_AsciiString& str, int convMode,
              bool& non_neg, bool& non_zero,
              bool& singulars, double& sing_point )
 {
-  CASCatch_CatchSignals aCatchSignals;
-
   bool parsed_ok = true;
   Handle( ExprIntrp_GenExp ) myExpr;
   CASCatch_TRY
index 075f2345d8750f52924bd8d4cf8be67530f42e0c..e3ebcd75f78854e0f723aaef0f8b2f2fb9f74610 100644 (file)
@@ -1,6 +1,6 @@
 
 #include "StdMeshersGUI_DistrPreview.h"
-#include "CASCatch_CatchSignals.hxx"
+#include "CASCatch.hxx"
 
 #include <Expr_NamedUnknown.hxx>
 #include <Expr_GeneralExpression.hxx>
@@ -221,8 +221,6 @@ void StdMeshersGUI_DistrPreview::update()
   delete[] y;
   x = y = 0;
 
-  CASCatch_CatchSignals aCatchSignals;
-
   CASCatch_TRY
   {   
     replot();
@@ -267,8 +265,6 @@ bool isCorrectArg( const Handle( Expr_GeneralExpression )& expr )
 
 bool StdMeshersGUI_DistrPreview::init( const QString& str )
 {
-  CASCatch_CatchSignals aCatchSignals;
-
   bool parsed_ok = true;
   CASCatch_TRY
   {
@@ -311,8 +307,6 @@ double StdMeshersGUI_DistrPreview::calc( bool& ok )
 {
   double res = 0.0;
 
-  CASCatch_CatchSignals aCatchSignals;
-
   ok = true;
   CASCatch_TRY {   
     res = myExpr->Expression()->Evaluate( myVars, myValues );
@@ -333,8 +327,6 @@ bool StdMeshersGUI_DistrPreview::isDone() const
 
 bool StdMeshersGUI_DistrPreview::convert( double& v ) const
 {
-  CASCatch_CatchSignals aCatchSignals;
-
   bool ok = true;
   switch( myConv )
   {