Salome HOME
Consider OCCT version
authorjfa <jfa@opencascade.com>
Mon, 28 Aug 2006 15:03:11 +0000 (15:03 +0000)
committerjfa <jfa@opencascade.com>
Mon, 28 Aug 2006 15:03:11 +0000 (15:03 +0000)
src/SMESH/SMESH_subMesh.cxx
src/SMESH_I/SMESH_MeshEditor_i.cxx
src/StdMeshers/StdMeshers_Distribution.cxx
src/StdMeshers/StdMeshers_NumberOfSegments.cxx
src/StdMeshers/StdMeshers_Regular_1D.cxx
src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx

index c41b9180678853f059086b23f101ccffb36bb8cb..6413b8031826769596f8d8c2a5ac8f9ca9dd8853 100644 (file)
@@ -1265,7 +1265,9 @@ bool SMESH_subMesh::ComputeStateEngine(int event)
         RemoveSubMeshElementsAndNodes();
        {
          try {
+#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
             OCC_CATCH_SIGNALS;
+#endif
            if (!algo->NeedDescretBoundary() && !algo->OnlyUnaryInput())
              ret = ApplyToCollection( algo, GetCollection( gen, algo ) );
            else
index 5f5f67fb257e6b7f73f80557b8ee7f82c2e51f68..4e588ec8c3100575fc3b18017f4f7970d06b5c9f 100644 (file)
@@ -1055,7 +1055,9 @@ void SMESH_MeshEditor_i::ExtrusionSweep(const SMESH::long_array & theIDsOfElemen
   myLastCreatedNodes = new SMESH::long_array();
 
   try {   
+#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
     OCC_CATCH_SIGNALS;
+#endif
     SMESHDS_Mesh* aMesh = GetMeshDS();
     
     map<int,const SMDS_MeshElement*> elements;
index 2e79dbb1ac6fd2cdaddb7ff504ff764d8c5c808d..3855ce148ec52369509c4a3a1df4e1cda01ca837 100644 (file)
@@ -49,7 +49,9 @@ bool Function::value( const double, double& f ) const
   if( myConv==0 )
   {
     try {
+#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
       OCC_CATCH_SIGNALS;
+#endif
       f = pow( 10, f );
     }
     catch(Standard_Failure)
@@ -173,7 +175,9 @@ FunctionExpr::FunctionExpr( const char* str, const int conv )
 {
   bool ok = true;
   try {
+#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
     OCC_CATCH_SIGNALS;
+#endif
     myExpr = ExprIntrp_GenExp::Create();
     myExpr->Process( ( Standard_CString )str );
   }
@@ -209,7 +213,9 @@ bool FunctionExpr::value( const double t, double& f ) const
   ( ( TColStd_Array1OfReal& )myValues ).ChangeValue( 1 ) = t;
   bool ok = true;
   try {
+#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
     OCC_CATCH_SIGNALS;
+#endif
     f = myExpr->Expression()->Evaluate( myVars, myValues );
   }
   catch(Standard_Failure) {
@@ -226,7 +232,9 @@ double FunctionExpr::integral( const double a, const double b ) const
 {
   double res = 0.0;
   try {
+#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
     OCC_CATCH_SIGNALS;
+#endif
     math_GaussSingleIntegration _int( ( math_Function& )*this, a, b, 20 );
     if( _int.IsDone() )
       res = _int.Value();
index 2cb4957ab72d62b2fe8a7cb6d2d1d2cd05854779..64ea2a674d831e3ed7447a1b5b39bec3c0b14b5b 100644 (file)
@@ -220,7 +220,9 @@ void StdMeshers_NumberOfSegments::SetTableFunction(const std::vector<double>& ta
     if( _convMode==0 )
     {
       try {
+#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
         OCC_CATCH_SIGNALS;
+#endif
        val = pow( 10.0, val );
       }
       catch(Standard_Failure)
@@ -314,7 +316,9 @@ bool process( const TCollection_AsciiString& str, int convMode,
   bool parsed_ok = true;
   Handle( ExprIntrp_GenExp ) myExpr;
   try {
+#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
     OCC_CATCH_SIGNALS;
+#endif
     myExpr = ExprIntrp_GenExp::Create();
     myExpr->Process( str.ToCString() );
   }
index 4033af5848cffd059fd86b6d11ff0f4cf920283e..d933aebbfd6e1c967fe7bc5c9a6c1af29b5445cc 100644 (file)
@@ -575,7 +575,9 @@ bool StdMeshers_Regular_1D::Compute(SMESH_Mesh & aMesh, const TopoDS_Shape & aSh
     if ( !_mainEdge.IsNull() )
       reversed = aMesh.IsReversedInChain( EE, _mainEdge );
     try {
+#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
       OCC_CATCH_SIGNALS;
+#endif
       if ( ! computeInternalParameters( E, params, reversed )) {
         //cout << "computeInternalParameters() failed" <<endl;
         return false;
index c1da2017a5ebaa1820f6a22461802825a19c105b..be12490ccd1b749dfd7fe72e6d158ee4e898e939 100644 (file)
@@ -243,7 +243,9 @@ void StdMeshersGUI_DistrPreview::update()
   x = y = 0;
 
   try {   
+#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
     OCC_CATCH_SIGNALS;
+#endif
     replot();
   }
   catch(Standard_Failure)
@@ -288,7 +290,9 @@ bool StdMeshersGUI_DistrPreview::init( const QString& str )
 {
   bool parsed_ok = true;
   try {
+#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
     OCC_CATCH_SIGNALS;
+#endif
     myExpr = ExprIntrp_GenExp::Create();
     myExpr->Process( ( Standard_CString ) str.latin1() );
   }
@@ -330,7 +334,9 @@ double StdMeshersGUI_DistrPreview::calc( bool& ok )
 
   ok = true;
   try {   
+#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
     OCC_CATCH_SIGNALS;
+#endif
     res = myExpr->Expression()->Evaluate( myVars, myValues );
   }
   catch(Standard_Failure) {
@@ -355,7 +361,9 @@ bool StdMeshersGUI_DistrPreview::convert( double& v ) const
   case EXPONENT:
     {
       try { 
+#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
         OCC_CATCH_SIGNALS;
+#endif
        // in StdMeshers_NumberOfSegments.cc
        // const double PRECISION = 1e-7;
        //