]> SALOME platform Git repositories - plugins/hexablockplugin.git/commitdiff
Salome HOME
Porting HEXABLOCKPLUGIN SALOME module on WIN32 platform.
authorrnv <rnv@opencascade.com>
Thu, 31 Oct 2013 12:37:43 +0000 (12:37 +0000)
committerrnv <rnv@opencascade.com>
Thu, 31 Oct 2013 12:37:43 +0000 (12:37 +0000)
src/GUI/HEXABLOCKPluginGUI_HypothesisCreator.h
src/HEXABLOCKPlugin/HEXABLOCKPlugin_Defs.hxx
src/HEXABLOCKPlugin/HEXABLOCKPlugin_FromSkin_3D.hxx
src/HEXABLOCKPlugin/HEXABLOCKPlugin_HEXABLOCK.hxx
src/HEXABLOCKPlugin/HEXABLOCKPlugin_HEXABLOCK_i.hxx
src/HEXABLOCKPlugin/HEXABLOCKPlugin_Hypothesis.hxx
src/HEXABLOCKPlugin/HEXABLOCKPlugin_Hypothesis_i.hxx
src/HEXABLOCKPlugin/HEXABLOCKPlugin_i.cxx
src/HEXABLOCKPlugin/HEXABLOCKPlugin_mesh.cxx
src/HEXABLOCKPlugin/HEXABLOCKPlugin_mesh.hxx

index 2817ceb77368581656364bbf620c1372c4f6b827..a748e5f3bcd3d7a5731617c0c11319e48b616a42 100755 (executable)
@@ -26,7 +26,7 @@
 #define HEXABLOCKPLUGINGUI_HypothesisCreator_HeaderFile
 
 #ifdef WIN32
-  #if defined HEXABLOCKPluginGUI_EXPORTS
+  #if defined HEXABLOCKPLUGINGUI_EXPORTS || defined HEXABLOCKPluginGUI_EXPORTS
     #define HEXABLOCKPLUGINGUI_EXPORT __declspec( dllexport )
   #else
     #define HEXABLOCKPLUGINGUI_EXPORT __declspec( dllimport )
index cd305d180d0009ffae5b232f8aa20d4d7e2a35fc..ed0a8a4ca53300aac32e9a522b49b5dcbd4509af 100755 (executable)
 #define _HEXABLOCKPlugin_DEFS_HXX_
 
 #ifdef WIN32
-  #if defined HEXABLOCKPLUGIN_EXPORTS || defined HEXABLOCKEngine_EXPORTS
-    #define HEXABLOCKPLUGIN_EXPORT __declspec( dllexport )
+  #if defined HEXABLOCKENGINE_EXPORTS || defined HexaBlockEngine_EXPORTS
+    #define HEXABLOCKPLUGINENGINE_EXPORT __declspec( dllexport )
   #else
-    #define HEXABLOCKPLUGIN_EXPORT __declspec( dllimport )
+    #define HEXABLOCKPLUGINENGINE_EXPORT __declspec( dllimport )
   #endif
 #else
-  #define HEXABLOCKPLUGIN_EXPORT
+  #define HEXABLOCKPLUGINENGINE_EXPORT
 #endif
 
 #endif
index a209dc35a10d9352de167fde22fec5198ff0d5f8..a4a972f99a61acf6972176d812dfa7b2936cfc6e 100755 (executable)
@@ -24,6 +24,7 @@
 #ifndef __SMESH_HexaFromSkin_3D_HXX__
 #define __SMESH_HexaFromSkin_3D_HXX__
 
+#include "HEXABLOCKPlugin_Defs.hxx"
 #include "SMESH_StdMeshers.hxx"
 #include "SMESH_Algo.hxx"
 
@@ -40,7 +41,7 @@
  * \brief Alorithm generating hexahedral mesh from 2D skin of block
  */
 
-class STDMESHERS_EXPORT SMESH_HexaFromSkin_3D : public SMESH_3D_Algo
+class HEXABLOCKPLUGINENGINE_EXPORT SMESH_HexaFromSkin_3D : public SMESH_3D_Algo
 {
 public:
 //   SMESH_HexaFromSkin_3D(int hypId, int studyId, SMESH_Gen* gen);
index 82d7a92fbfe1018b26e88906835bea3fcfcd9b8f..0236aaef9ec85d5e603c0456f2cac69988cd8f62 100755 (executable)
 #ifndef _HEXABLOCKPlugin_HEXABLOCK_HXX_
 #define _HEXABLOCKPlugin_HEXABLOCK_HXX_
 
+#include "HEXABLOCKPlugin_Defs.hxx"
 #include "SMESH_Algo.hxx"
 #include "SMESH_Mesh.hxx"
 
 class SMESH_Mesh;
 class HEXABLOCKPlugin_Hypothesis;
 
-class HEXABLOCKPlugin_HEXABLOCK: public SMESH_3D_Algo
+class HEXABLOCKPLUGINENGINE_EXPORT HEXABLOCKPlugin_HEXABLOCK: public SMESH_3D_Algo
 {
 public:
   HEXABLOCKPlugin_HEXABLOCK(int hypId, int studyId, SMESH_Gen* gen);
index 6395c690a40dc1a9aaef13a9f714a285d2f6a76a..d528f450b6f2bc84b042544c448dd0a1b033e40e 100755 (executable)
 #include CORBA_SERVER_HEADER(HEXABLOCKPlugin_Algorithm)
 #include CORBA_SERVER_HEADER(SALOME_Exception)
 
+#include "HEXABLOCKPlugin_Defs.hxx"
 #include "SMESH_3D_Algo_i.hxx"
 #include "HEXABLOCKPlugin_HEXABLOCK.hxx"
 
 // ======================================================
 // HEXABLOCK 3d algorithm
 // ======================================================
-class HEXABLOCKPlugin_HEXABLOCK_i:
+class HEXABLOCKPLUGINENGINE_EXPORT HEXABLOCKPlugin_HEXABLOCK_i:
   public virtual POA_HEXABLOCKPlugin::HEXABLOCKPlugin_HEXABLOCK,
   public virtual SMESH_3D_Algo_i
 {
index 0bc82e22f68a69d220fd0f7417c5cde70575d517..959e9227cf6dc2b8309b5542dbc9f8fbe73bcb1f 100755 (executable)
@@ -36,7 +36,7 @@
 #include <stdexcept>
 #include <cstdio>
 
-class HEXABLOCKPLUGIN_EXPORT HEXABLOCKPlugin_Hypothesis: public SMESH_Hypothesis
+class HEXABLOCKPLUGINENGINE_EXPORT HEXABLOCKPlugin_Hypothesis: public SMESH_Hypothesis
 {
 public:
 
@@ -61,8 +61,8 @@ public:
   // Persistence
   virtual std::ostream & SaveTo(std::ostream & save);
   virtual std::istream & LoadFrom(std::istream & load);
-  friend HEXABLOCKPLUGIN_EXPORT std::ostream & operator <<(std::ostream & save, HEXABLOCKPlugin_Hypothesis & hyp);
-  friend HEXABLOCKPLUGIN_EXPORT std::istream & operator >>(std::istream & load, HEXABLOCKPlugin_Hypothesis & hyp);
+  friend HEXABLOCKPLUGINENGINE_EXPORT std::ostream & operator <<(std::ostream & save, HEXABLOCKPlugin_Hypothesis & hyp);
+  friend HEXABLOCKPLUGINENGINE_EXPORT std::istream & operator >>(std::istream & load, HEXABLOCKPlugin_Hypothesis & hyp);
 
   /*!
    * \brief Does nothing
index 0517decbf186f67f571aafcaa84f1d38bcbacd72..3ee0fee2c7b361c182bac175a332f60d7ec7660a 100755 (executable)
@@ -38,7 +38,7 @@ class SMESH_Gen;
 
 // HEXABLOCKPlugin parameters hypothesis
 
-class HEXABLOCKPLUGIN_EXPORT HEXABLOCKPlugin_Hypothesis_i:
+class HEXABLOCKPLUGINENGINE_EXPORT HEXABLOCKPlugin_Hypothesis_i:
   public virtual POA_HEXABLOCKPlugin::HEXABLOCKPlugin_Hypothesis,
   public virtual SMESH_Hypothesis_i
 {
index ee7ee7faea2fd4b7cb5ca7a76e31d021bd10f021..d04117df065f29df81f8bf7e02537b01d4b8adff 100755 (executable)
@@ -54,7 +54,7 @@ template <class T> class HEXABLOCKPlugin_Creator_i:public HypothesisCreator_i<T>
 
 extern "C"
 {
-  HEXABLOCKPLUGIN_EXPORT
+  HEXABLOCKPLUGINENGINE_EXPORT
   GenericHypothesisCreator_i* GetHypothesisCreator (const char* aHypName)
   {
     if(MYDEBUG) MESSAGE("GetHypothesisCreator " << aHypName);
index ccf971f7f06f2cb28809f8aa09f62e265319bd7f..345c7f3ed41e9d765faa87fe8c41b3139a1e9f57 100755 (executable)
@@ -25,7 +25,6 @@
 #include <algorithm>
 
 // CasCade includes
-#include <AIS_Shape.hxx>
 
 #include <Precision.hxx>
 #include <BRep_Tool.hxx>
@@ -445,12 +444,12 @@ std::map<HEXA_NS::Quad*, bool>  SMESH_HexaBlocks::computeQuadWays( HEXA_NS::Docu
     if(MYDEBUG) MESSAGE("SEARCHING INITIAL QUAD ..." );
     for ( std::list<HEXA_NS::Quad*>::iterator it = skinQuad.begin(); it != skinQuad.end(); it++ ){
         _searchInitialQuadWay( *it, e_0, e_1 );
-        if ( e_0 != NULL and e_1 != NULL ){
+        if ( e_0 != NULL && e_1 != NULL ){
           q = first_q = *it;
           break;
         }
     }
-    if ( e_0 == NULL and e_1 == NULL ) ASSERT(false);// should never happened,
+    if ( e_0 == NULL && e_1 == NULL ) ASSERT(false);// should never happened,
     if(MYDEBUG) MESSAGE("INITIAL QUAD FOUND!" );
     for ( int j=0 ; j < 4 ; ++j ){
       e = q->getEdge(j);
@@ -1352,7 +1351,7 @@ gp_Pnt SMESH_HexaBlocks::_getPtOnMyCurve(
     MESSAGE("looking for curve: curve_lenght = "<<myCurve_lengths[curve]);
     MESSAGE("looking for curve: curve.size _lenght= "<<myCurve_list.size());
   }
-  while ( not ( (myCurve_u >= curve_start) and  (myCurve_u <= curve_end) ) ) {
+  while ( !( (myCurve_u >= curve_start) &&  (myCurve_u <= curve_end) ) ) {
 
     ASSERT( myCurve_list.size() != 0 );
     myCurve_list.pop_front();
@@ -1533,21 +1532,21 @@ void SMESH_HexaBlocks::_searchInitialQuadWay( HEXA_NS::Quad* q, HEXA_NS::Vertex*
     HEXA_NS::Vertex* e0 = e->getVertex(0);
     HEXA_NS::Vertex* e1 = e->getVertex(1);
 
-    if ( e0 == qA and e1 != qB and e1 != qC and e1 != qD ){
+    if ( e0 == qA && e1 != qB && e1 != qC && e1 != qD ){
       qAA = e1;
-    } else if ( e1 == qA and e0 != qB and e0 != qC and e0 != qD ){
+    } else if ( e1 == qA && e0 != qB && e0 != qC && e0 != qD ){
       qAA = e0;
-    } else if ( e0 == qB and e1 != qA and e1 != qC and e1 != qD ){
+    } else if ( e0 == qB && e1 != qA && e1 != qC && e1 != qD ){
       qBB = e1;
-    } else if ( e1 == qB and e0 != qA and e0 != qC and e0 != qD ){
+    } else if ( e1 == qB && e0 != qA && e0 != qC && e0 != qD ){
       qBB = e0;
-    } else if ( e0 == qC and e1 != qA and e1 != qB and e1 != qD ){
+    } else if ( e0 == qC && e1 != qA && e1 != qB && e1 != qD ){
       qCC = e1;
-    } else if ( e1 == qC and e0 != qA and e0 != qB and e0 != qD ){
+    } else if ( e1 == qC && e0 != qA && e0 != qB && e0 != qD ){
       qCC = e0;
-    } else if ( e0 == qD and e1 != qA and e1 != qB and e1 != qC ){
+    } else if ( e0 == qD && e1 != qA && e1 != qB && e1 != qC ){
       qDD = e1;
-    } else if ( e1 == qD and e0 != qA and e0 != qB and e0 != qC ){
+    } else if ( e1 == qD && e0 != qA && e0 != qB && e0 != qC ){
       qDD = e0;
     }
   }
index 57b43a3ab4efc014e9a2134e859f0bc0c8b388d2..6b439364a5ec9e7439a77deaae4af5afd76cc9f0 100755 (executable)
 #define _SMESH_HexaBlocks_HeaderFile
 
 #include <SALOMEconfig.h>
-
-#ifdef WNT
-# if defined HEXABLOCKS_EXPORTS || defined HexaBlocks_EXPORTS
-#  define HEXABLOCKS_EXPORT __declspec( dllexport )
-# else
-#  define HEXABLOCKS_EXPORT __declspec( dllimport )
-# endif
-#else
-# define HEXABLOCKS_EXPORT
-#endif
+#include "HEXABLOCKPlugin_Defs.hxx"
 
 #include "SMESH_Mesh.hxx"
 #include "SMESH_Group.hxx"
@@ -53,7 +44,7 @@
 //=====================================================================
 // SMESH_HexaBlocks : class definition
 //=====================================================================
-class HEXABLOCKS_EXPORT SMESH_HexaBlocks
+class HEXABLOCKPLUGINENGINE_EXPORT SMESH_HexaBlocks
 {
 public: