From: rnv Date: Thu, 31 Oct 2013 12:37:43 +0000 (+0000) Subject: Porting HEXABLOCKPLUGIN SALOME module on WIN32 platform. X-Git-Tag: V7_3_0a1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=014a6ddcfe37657a43ec1417f6fa5c5982568667;p=plugins%2Fhexablockplugin.git Porting HEXABLOCKPLUGIN SALOME module on WIN32 platform. --- diff --git a/src/GUI/HEXABLOCKPluginGUI_HypothesisCreator.h b/src/GUI/HEXABLOCKPluginGUI_HypothesisCreator.h index 2817ceb..a748e5f 100755 --- a/src/GUI/HEXABLOCKPluginGUI_HypothesisCreator.h +++ b/src/GUI/HEXABLOCKPluginGUI_HypothesisCreator.h @@ -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 ) diff --git a/src/HEXABLOCKPlugin/HEXABLOCKPlugin_Defs.hxx b/src/HEXABLOCKPlugin/HEXABLOCKPlugin_Defs.hxx index cd305d1..ed0a8a4 100755 --- a/src/HEXABLOCKPlugin/HEXABLOCKPlugin_Defs.hxx +++ b/src/HEXABLOCKPlugin/HEXABLOCKPlugin_Defs.hxx @@ -25,13 +25,13 @@ #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 diff --git a/src/HEXABLOCKPlugin/HEXABLOCKPlugin_FromSkin_3D.hxx b/src/HEXABLOCKPlugin/HEXABLOCKPlugin_FromSkin_3D.hxx index a209dc3..a4a972f 100755 --- a/src/HEXABLOCKPlugin/HEXABLOCKPlugin_FromSkin_3D.hxx +++ b/src/HEXABLOCKPlugin/HEXABLOCKPlugin_FromSkin_3D.hxx @@ -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); diff --git a/src/HEXABLOCKPlugin/HEXABLOCKPlugin_HEXABLOCK.hxx b/src/HEXABLOCKPlugin/HEXABLOCKPlugin_HEXABLOCK.hxx index 82d7a92..0236aae 100755 --- a/src/HEXABLOCKPlugin/HEXABLOCKPlugin_HEXABLOCK.hxx +++ b/src/HEXABLOCKPlugin/HEXABLOCKPlugin_HEXABLOCK.hxx @@ -27,13 +27,14 @@ #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); diff --git a/src/HEXABLOCKPlugin/HEXABLOCKPlugin_HEXABLOCK_i.hxx b/src/HEXABLOCKPlugin/HEXABLOCKPlugin_HEXABLOCK_i.hxx index 6395c69..d528f45 100755 --- a/src/HEXABLOCKPlugin/HEXABLOCKPlugin_HEXABLOCK_i.hxx +++ b/src/HEXABLOCKPlugin/HEXABLOCKPlugin_HEXABLOCK_i.hxx @@ -29,13 +29,14 @@ #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 { diff --git a/src/HEXABLOCKPlugin/HEXABLOCKPlugin_Hypothesis.hxx b/src/HEXABLOCKPlugin/HEXABLOCKPlugin_Hypothesis.hxx index 0bc82e2..959e922 100755 --- a/src/HEXABLOCKPlugin/HEXABLOCKPlugin_Hypothesis.hxx +++ b/src/HEXABLOCKPlugin/HEXABLOCKPlugin_Hypothesis.hxx @@ -36,7 +36,7 @@ #include #include -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 diff --git a/src/HEXABLOCKPlugin/HEXABLOCKPlugin_Hypothesis_i.hxx b/src/HEXABLOCKPlugin/HEXABLOCKPlugin_Hypothesis_i.hxx index 0517dec..3ee0fee 100755 --- a/src/HEXABLOCKPlugin/HEXABLOCKPlugin_Hypothesis_i.hxx +++ b/src/HEXABLOCKPlugin/HEXABLOCKPlugin_Hypothesis_i.hxx @@ -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 { diff --git a/src/HEXABLOCKPlugin/HEXABLOCKPlugin_i.cxx b/src/HEXABLOCKPlugin/HEXABLOCKPlugin_i.cxx index ee7ee7f..d04117d 100755 --- a/src/HEXABLOCKPlugin/HEXABLOCKPlugin_i.cxx +++ b/src/HEXABLOCKPlugin/HEXABLOCKPlugin_i.cxx @@ -54,7 +54,7 @@ template class HEXABLOCKPlugin_Creator_i:public HypothesisCreator_i extern "C" { - HEXABLOCKPLUGIN_EXPORT + HEXABLOCKPLUGINENGINE_EXPORT GenericHypothesisCreator_i* GetHypothesisCreator (const char* aHypName) { if(MYDEBUG) MESSAGE("GetHypothesisCreator " << aHypName); diff --git a/src/HEXABLOCKPlugin/HEXABLOCKPlugin_mesh.cxx b/src/HEXABLOCKPlugin/HEXABLOCKPlugin_mesh.cxx index ccf971f..345c7f3 100755 --- a/src/HEXABLOCKPlugin/HEXABLOCKPlugin_mesh.cxx +++ b/src/HEXABLOCKPlugin/HEXABLOCKPlugin_mesh.cxx @@ -25,7 +25,6 @@ #include // CasCade includes -#include #include #include @@ -445,12 +444,12 @@ std::map SMESH_HexaBlocks::computeQuadWays( HEXA_NS::Docu if(MYDEBUG) MESSAGE("SEARCHING INITIAL QUAD ..." ); for ( std::list::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 = "<