test_unit.hxx
test_hexa6.cxx
HexKas_functions.cxx
+ Hex_defines.hxx
)
# --- rules ---
#ifndef __HEX_H
#define __HEX_H
+#include "Hex_defines.hxx"
+
#include "hexa_base.hxx"
+#if defined WIN32
+#pragma warning ( disable: 4251 )
+#endif
+
BEGIN_NAMESPACE_HEXA
class Hex;
-Hex* hex_instance ();
+HEXABLOCKENGINE_EXPORT Hex* hex_instance ();
-class Hex
+class HEXABLOCKENGINE_EXPORT Hex
{
public:
static Hex* getInstance ();
#endif // not SWIG
};
-void what ();
+HEXABLOCKENGINE_EXPORT void what ();
END_NAMESPACE_HEXA
#endif
#ifndef __ANA_QUADS_H
#define __ANA_QUADS_H
+#include "Hex_defines.hxx"
#include "HexQuad.hxx"
// #include "HexEdge.hxx"
BEGIN_NAMESPACE_HEXA
-class AnaQuads
+class HEXABLOCKENGINE_EXPORT AnaQuads
{
public:
AnaQuads (Quad* q1, Quad* q2, Quad* q3=NULL, Quad* q4=NULL, Quad* q5=NULL);
#ifndef __ASSO_EDGE_H_
#define __ASSO_EDGE_H_
+#include "Hex_defines.hxx"
#include "HexEdgeShape.hxx"
#include <TopTools_IndexedMapOfShape.hxx>
BEGIN_NAMESPACE_HEXA
-class AssoEdge
+class HEXABLOCKENGINE_EXPORT AssoEdge
{
public :
AssoEdge (EdgeShape* shape, double deb, double fin);
#ifndef __BI_CYLINDER_H_
#define __BI_CYLINDER_H_
+#include "Hex_defines.hxx"
+
#include "HexElements.hxx"
#include <map>
BEGIN_NAMESPACE_HEXA
-class BiCylinder : public Elements
+class HEXABLOCKENGINE_EXPORT BiCylinder : public Elements
{
public:
BiCylinder (Document* doc);
#ifndef __BI_CYLINDER_SHAPE_HXX_
#define __BI_CYLINDER_SHAPE_HXX_
+#include "Hex_defines.hxx"
#include "HexGlobale.hxx"
BEGIN_NAMESPACE_HEXA
-class BiCylinderShape
+class HEXABLOCKENGINE_EXPORT BiCylinderShape
{
public :
BiCylinderShape (Document* doc);
#ifndef __CLONER_H
#define __CLONER_H
+#include "Hex_defines.hxx"
#include "hexa_base.hxx"
#include <map>
BEGIN_NAMESPACE_HEXA
-class Cloner
+class HEXABLOCKENGINE_EXPORT Cloner
{
public:
Cloner (Matrix* mat);
#ifndef __CRAMER_H_
#define __CRAMER_H_
+#include "Hex_defines.hxx"
#include "hexa_base.hxx"
// #include <cmath>
BEGIN_NAMESPACE_HEXA
-class Cramer
+class HEXABLOCKENGINE_EXPORT Cramer
{
public:
Cramer (int size);
#ifndef __CROSS_ELEMENTS_H
#define __CROSS_ELEMENTS_H
+#include "Hex_defines.hxx"
#include "HexElements.hxx"
BEGIN_NAMESPACE_HEXA
enum { Cyl1=CylSmall, Cyl2=CylBig };
enum { NO_CYL=-1, NO_PIPE=0, IS_HERE=1 };
-class CrossElements : public Elements
+class HEXABLOCKENGINE_EXPORT CrossElements : public Elements
{
public:
CrossElements (Document* doc, EnumGrid type);
return HERR;
}
- cross_center = cross_cyl2->interCylinder (cross_cyl1, at_left, at_right);
+ cross_center = cross_cyl2->interCylinder(cross_cyl1, at_left, at_right);
if (cross_center==NULL)
{
setError (HERR);
/// dxy = xv1*yv2 - yv1*xv2
///
// ======================================================== interCylinder
-Vertex* Cylinder::interCylinder (Cylinder* small, bool& left, bool& right)
+Vertex* Cylinder::interCylinder(Cylinder* small, bool& left, bool& right)
{
Real3 orig;
int ier = interCylinder (small, left, right, orig);
#ifndef __CYLINDER_H_
#define __CYLINDER_H_
+#include "Hex_defines.hxx"
#include "HexEltBase.hxx"
BEGIN_NAMESPACE_HEXA
-class Cylinder : public EltBase
+class HEXABLOCKENGINE_EXPORT Cylinder : public EltBase
{
public :
Vertex* getBase () { return c_base; }
double getRadius () { return c_radius; }
double getHeight () { return c_height; }
-public :
Cylinder (Vertex* b, Vector* v, double r, double h);
virtual ~Cylinder () {}
- int interCylinder (Cylinder* small, bool& left, bool& right, double* sol);
- Vertex* interCylinder (Cylinder* other, bool& left, bool& right);
+ int interCylinder(Cylinder* s, bool& left, bool& right, double* sol);
+ Vertex* interCylinder(Cylinder* other, bool& left, bool& right);
void saveXml (XmlWriter* xml);
virtual double getInternalRadius () { return 0; }
#ifndef __DOCUMENT_H_
#define __DOCUMENT_H_
+#include "Hex_defines.hxx"
#include "HexEltBase.hxx"
class NewShape;
-class Document : public EltBase
+class HEXABLOCKENGINE_EXPORT Document : public EltBase
{
// Fonctions utilisateur
public :
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
#include "HexDocument.hxx"
-#include <libgen.h> // Pour basename
+#include <Basics_DirUtils.hxx>
#include <cstdlib> // Pour atoi et atof
#include "Hex.hxx"
{
XmlTree xml("");
string filename = ficname;
- el_name = basename ((pchar)ficname);
+ el_name = Kernel_Utils::GetBaseName ((pchar)ficname);
static const int NbExt = 3;
static cpchar t_ext [NbExt] = { ".xml", ".XML", ".Xml" };
// =================================================== operator << (int)
DumpStudy& DumpStudy::operator << (int val)
{
- if (not is_open)
+ if (! is_open)
return *this;
char valeur [20];
// =================================================== operator << (double)
DumpStudy& DumpStudy::operator << (double val)
{
- if (not is_open)
+ if (! is_open)
return *this;
char valeur [20];
// =================================================== operator << (cpchar)
DumpStudy& DumpStudy::operator << (cpchar val)
{
- if (not is_open)
+ if (! is_open)
return *this;
string valeur ("'");
// =================================================== operator << (elt)
DumpStudy& DumpStudy::operator << (EltBase* elt)
{
- if (not is_open)
+ if (! is_open)
return *this;
cpchar name = findName (elt);
// =================================================== operator << (Quads)
DumpStudy& DumpStudy::operator << (Quads& tab)
{
- if (not is_open)
+ if (! is_open)
return *this;
TabElts& tabelt = (TabElts&) tab;
// =================================================== operator << (Edges)
DumpStudy& DumpStudy::operator << (Edges& tab)
{
- if (not is_open)
+ if (! is_open)
return *this;
TabElts& tabelt = (TabElts&) tab;
// =================================================== operator << (Hexas)
DumpStudy& DumpStudy::operator << (Hexas& tab)
{
- if (not is_open)
+ if (!is_open)
return *this;
TabElts& tabelt = (TabElts&) tab;
// =================================================== operator << (Reals)
DumpStudy& DumpStudy::operator << (RealVector& tab)
{
- if (not is_open)
+ if (! is_open)
return *this;
char name [20], valeur [30];
#ifndef __DUMP_STUDY_H_
#define __DUMP_STUDY_H_
+#include "Hex_defines.hxx"
#include "hexa_base.hxx"
#include <map>
+#if defined WIN32
+#pragma warning ( disable: 4251 )
+#endif
+
+
BEGIN_NAMESPACE_HEXA
#define DumpRestore el_root->glob->dump.restore (actif)
class Witness;
-class DumpStudy
+class HEXABLOCKENGINE_EXPORT DumpStudy
{
public :
DumpStudy ();
#ifndef __EDGE_H
#define __EDGE_H
+#include "Hex_defines.hxx"
#include "HexVertex.hxx"
BEGIN_NAMESPACE_HEXA
-class Edge : public EltBase
+class HEXABLOCKENGINE_EXPORT Edge : public EltBase
{
public:
virtual Vertex* getVertex (int nro);
#ifndef __LIBE_SHAPE_H_
#define __LIBE_SHAPE_H_
+#include "Hex_defines.hxx"
#include "HexSubShape.hxx"
BEGIN_NAMESPACE_HEXA
-class EdgeShape : public SubShape
+class HEXABLOCKENGINE_EXPORT EdgeShape : public SubShape
{
public :
EdgeShape (NewShape* dad, int id);
#ifndef __ELEMENTS_H
#define __ELEMENTS_H
+#include "Hex_defines.hxx"
#include "HexEltBase.hxx"
#include "HexMatrix.hxx"
BEGIN_NAMESPACE_HEXA
-class Elements : public EltBase
+class HEXABLOCKENGINE_EXPORT Elements : public EltBase
{
public:
virtual Hexa* getHexa (int nro);
double rayon = calc_norme (oa);
int subid = geom->addCircle (center, rayon, normal, oa);
- const double alpha = atan (sqrt(2)/2)/M_PI; // angle proche de 70.528 degres
+ const double alpha = atan (sqrt(2.)/2)/M_PI; // angle proche de 70.528 degres
// asso1->setBounds (0, alpha);
// asso2->setBounds (0.5, alpha + 0.5);
#ifndef __ELT_BASE_H
#define __ELT_BASE_H
+#include "Hex_defines.hxx"
#include "hexa_base.hxx"
#include <vector>
#define BadElement(elt) (elt)==NULL || (elt)->isBad()
#define EltIsValid(elt) (elt)!=NULL && (elt)->isValid()
+#if defined WIN32
+#pragma warning ( disable: 4251 )
+#endif
+
BEGIN_NAMESPACE_HEXA
-class EltBase
+class HEXABLOCKENGINE_EXPORT EltBase
{
public :
virtual int countHexa () { return 0; }
#ifndef __FACE_SHAPE_H_
#define __FACE_SHAPE_H_
+#include "Hex_defines.hxx"
#include "HexSubShape.hxx"
BEGIN_NAMESPACE_HEXA
-class FaceShape : public SubShape
+class HEXABLOCKENGINE_EXPORT FaceShape : public SubShape
{
public :
FaceShape (NewShape* dad, int id);
#ifndef _HEX_GLOBALE_H
#define _HEX_GLOBALE_H
+#include "Hex_defines.hxx"
#include "hexa_base.hxx"
#include "HexDumpStudy.hxx"
#include "HexWitness.hxx"
BEGIN_NAMESPACE_HEXA
-class Globale
+class HEXABLOCKENGINE_EXPORT Globale
{
public :
static Globale* getInstance ();
#ifndef __GROUP_H
#define __GROUP_H
+#include "Hex_defines.hxx"
#include "HexEltBase.hxx"
BEGIN_NAMESPACE_HEXA
-class Group : public EltBase
+class HEXABLOCKENGINE_EXPORT Group : public EltBase
{
public :
int addElement (EltBase* elt);
#ifndef __HEX_HEXA_H_
#define __HEX_HEXA_H_
+#include "Hex_defines.hxx"
#include "HexEltBase.hxx"
#include "HexQuad.hxx"
BEGIN_NAMESPACE_HEXA
-class Hexa : public EltBase
+class HEXABLOCKENGINE_EXPORT Hexa : public EltBase
{
public:
virtual Quad* getQuad (int nro);
class gp_Pnt;
+#include "Hex_defines.hxx"
#include "HexGlobale.hxx"
BEGIN_NAMESPACE_HEXA
-int geom_create_cylcyl (double* borig, double* bnorm, double* bbase,
- double bray, double bhaut,
- double* sorig, double* snorm, double* sbase,
- double sray, double shaut);
-int geom_asso_cylcyl (Edge* edge);
+int HEXABLOCKENGINE_EXPORT geom_create_cylcyl (double* borig, double* bnorm, double* bbase,
+ double bray, double bhaut,
+ double* sorig, double* snorm, double* sbase,
+ double sray, double shaut);
+int HEXABLOCKENGINE_EXPORT geom_asso_cylcyl (Edge* edge);
-bool same_coords (gp_Pnt& pa, gp_Pnt& pb, double epsil2=1e-6);
-void save_brep (cpchar nom, string brep, int& nro);
-void clean_brep (string& brep);
+bool HEXABLOCKENGINE_EXPORT same_coords (gp_Pnt& pa, gp_Pnt& pb, double epsil2=1e-6);
+void HEXABLOCKENGINE_EXPORT save_brep (cpchar nom, string brep, int& nro);
+void HEXABLOCKENGINE_EXPORT clean_brep (string& brep);
-void geom_make_brep (TopoDS_Shape& shape, string& brep);
-int geom_brep2point (rcstring brep, double& px, double& py, double& pz);
-int geom_brep2shape (rcstring brep, TopoDS_Shape& shape);
+void HEXABLOCKENGINE_EXPORT geom_make_brep (TopoDS_Shape& shape, string& brep);
+int HEXABLOCKENGINE_EXPORT geom_brep2point (rcstring brep, double& px, double& py, double& pz);
+int HEXABLOCKENGINE_EXPORT geom_brep2shape (rcstring brep, TopoDS_Shape& shape);
-TopoDS_Shape geom_brep2shape (rcstring brep);
+TopoDS_Shape HEXABLOCKENGINE_EXPORT geom_brep2shape (rcstring brep);
END_NAMESPACE_HEXA
#endif
#ifndef __LAW_H_
#define __LAW_H_
+#include "Hex_defines.hxx"
#include "HexEltBase.hxx"
#include "HexXmlWriter.hxx"
BEGIN_NAMESPACE_HEXA
-class Law : public EltBase
+class HEXABLOCKENGINE_EXPORT Law : public EltBase
{
public:
const char* getName () { return law_name.c_str() ; }
#ifndef __MATRIX_H
#define __MATRIX_H
+#include "Hex_defines.hxx"
#include "HexVertex.hxx"
#include "HexVector.hxx"
BEGIN_NAMESPACE_HEXA
-class Matrix
+class HEXABLOCKENGINE_EXPORT Matrix
{
public:
Matrix ();
#ifndef __NEW_SHAPE_H_
#define __NEW_SHAPE_H_
+#include "Hex_defines.hxx"
#include "HexEltBase.hxx"
#ifndef SWIG
BEGIN_NAMESPACE_HEXA
-class NewShape : public EltBase
+class HEXABLOCKENGINE_EXPORT NewShape : public EltBase
{
public : // for TUI
virtual int countVertex () { return tab_vertex.size (); }
#ifndef __PIPE_H
#define __PIPE_H
+#include "Hex_defines.hxx"
#include "HexCylinder.hxx"
BEGIN_NAMESPACE_HEXA
-class Pipe : public Cylinder
+class HEXABLOCKENGINE_EXPORT Pipe : public Cylinder
{
public :
virtual double getInternalRadius () { return c_int_radius; }
#ifndef __PROPAGATION_H
#define __PROPAGATION_H
+#include "Hex_defines.hxx"
#include "HexEltBase.hxx"
#include "HexDocument.hxx"
BEGIN_NAMESPACE_HEXA
-class Propagation : public EltBase
+class HEXABLOCKENGINE_EXPORT Propagation : public EltBase
{
public:
const Edges& getEdges () { return prop_edges; }
#ifndef __QUAD_H
#define __QUAD_H
+#include "Hex_defines.hxx"
#include "HexEdge.hxx"
BEGIN_NAMESPACE_HEXA
#ifndef SWIG
-struct StrOrient
+struct HEXABLOCKENGINE_EXPORT StrOrient
{
Vertex* v11; // 1er sommet 1er quad
Vertex* v12; // 2eme
};
#endif
-class Quad : public EltBase
+class HEXABLOCKENGINE_EXPORT Quad : public EltBase
{
public:
virtual Edge* getEdge (int nro);
#ifndef __SHAPE_H_
#define __SHAPE_H_
+#include "Hex_defines.hxx"
#include "hexa_base.hxx"
BEGIN_NAMESPACE_HEXA
-class Shape
+class HEXABLOCKENGINE_EXPORT Shape
{
public :
Shape (string brep);
#ifndef __SUB_SHAPE_H_
#define __SUB_SHAPE_H_
+#include "Hex_defines.hxx"
#include "HexEltBase.hxx"
#include <TopoDS_Shape.hxx>
BEGIN_NAMESPACE_HEXA
-class SubShape : public EltBase
+class HEXABLOCKENGINE_EXPORT SubShape : public EltBase
{
public :
SubShape (NewShape* dad, int id, int dim);
#ifndef __VECTOR_H
#define __VECTOR_H
+#include "Hex_defines.hxx"
#include "HexEltBase.hxx"
#include <cmath>
BEGIN_NAMESPACE_HEXA
-class Vector : public EltBase
+class HEXABLOCKENGINE_EXPORT Vector : public EltBase
{
public:
double getDx () { return v_dx ; }
#ifndef __VERTEX_H_
#define __VERTEX_H_
+#include "Hex_defines.hxx"
#include "HexEltBase.hxx"
BEGIN_NAMESPACE_HEXA
-class Vertex : public EltBase
+class HEXABLOCKENGINE_EXPORT Vertex : public EltBase
{
public :
double getX() { return v_x; }
#ifndef __NODE_SHAPE_H_
#define __NODE_SHAPE_H_
+#include "Hex_defines.hxx"
#include "HexSubShape.hxx"
BEGIN_NAMESPACE_HEXA
-class VertexShape : public SubShape
+class HEXABLOCKENGINE_EXPORT VertexShape : public SubShape
{
public :
VertexShape (NewShape* dad, int id);
#ifndef __WITNESS_H_
#define __WITNESS_H_
+#include "Hex_defines.hxx"
+
#define Mess el_root->glob->mess << Begin
#define Follow el_root->glob->mess
#include "hexa_base.hxx"
+#if defined WIN32
+#pragma warning ( disable: 4251 )
+#endif
+
BEGIN_NAMESPACE_HEXA
const std::string Begin (" **** ");
class DumpStudy;
-class Witness
+class HEXABLOCKENGINE_EXPORT Witness
{
public :
Witness ();
#ifndef __XML_TREE_H_
#define __XML_TREE_H_
+#include "Hex_defines.hxx"
#include "hexa_base.hxx"
#include <vector>
M_IDENT, M_EQUALS, M_STRING,
M_COMMENT, M_END_COMMENT, M_PROLOG, M_END_PROLOG,
M_ERROR};
-class XmlTree
+class HEXABLOCKENGINE_EXPORT XmlTree
{
public :
XmlTree (const string& name, XmlTree* dad=NULL);
#ifndef __XML_WRITER_H
#define __XML_WRITER_H
+#include "Hex_defines.hxx"
#include "hexa_base.hxx"
#include <stack>
#include <vector>
BEGIN_NAMESPACE_HEXA
-class XmlWriter
+class HEXABLOCKENGINE_EXPORT XmlWriter
{
public :
XmlWriter ();
--- /dev/null
+// Copyright (C) 2009-2013 CEA/DEN, EDF R&D
+//
+// 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.salome-platform.org/
+// or email : webmaster.salome@opencascade.com
+
+#ifndef _HEX_DEFINES_HXX_
+#define _HEX_DEFINES_HXX_
+
+#ifdef WIN32
+ #if defined HEXABLOCKENGINE_EXPORTS || defined HEXABLOCKEngine_EXPORTS
+ #define HEXABLOCKENGINE_EXPORT __declspec( dllexport )
+ #else
+ #define HEXABLOCKENGINE_EXPORT __declspec( dllimport )
+ #endif
+#else
+ #define HEXABLOCKENGINE_EXPORT
+#endif
+
+#endif //_HEX_DEFINES_HXX_
\ No newline at end of file
#ifndef _HEXA_BASE_H_
#define _HEXA_BASE_H_
+#include "Hex_defines.hxx"
+
#include <cstdio>
#include <cstring>
// Quelques fonctions :
-pchar get_temp_name (cpchar format, pchar nomfic);
-void fatal_error (cpchar format, cpchar info1=NULL, cpchar info2=NULL);
+HEXABLOCKENGINE_EXPORT pchar get_temp_name (cpchar format, pchar nomfic);
+HEXABLOCKENGINE_EXPORT void fatal_error (cpchar format, cpchar info1=NULL, cpchar info2=NULL);
-double prod_scalaire (double v1[], double v2[]);
-double* prod_vectoriel (double v1[], double v2[], double v3[]);
-double prod_mixte (double vi[], double vj[], double vk[]);
+HEXABLOCKENGINE_EXPORT double prod_scalaire (double v1[], double v2[]);
+HEXABLOCKENGINE_EXPORT double* prod_vectoriel (double v1[], double v2[], double v3[]);
+HEXABLOCKENGINE_EXPORT double prod_mixte (double vi[], double vj[], double vk[]);
-inline double deg2radians (double angle) { return (angle*M_PI/180.0); }
-inline double rad2degres (double angle) { return (angle*180.0/M_PI); }
+HEXABLOCKENGINE_EXPORT inline double deg2radians (double angle) { return (angle*M_PI/180.0); }
+HEXABLOCKENGINE_EXPORT inline double rad2degres (double angle) { return (angle*180.0/M_PI); }
-double calc_norme (double v1[]);
-double calc_distance (double v1[], double v2[]);
-void calc_vecteur (double pta[], double ptb[], double vab[]);
-void copy_vecteur (double va [], double vb []);
-void calc_milieu (double pta[], double ptb[], double milieu[]);
-int normer_vecteur (double v1[]);
+HEXABLOCKENGINE_EXPORT double calc_norme (double v1[]);
+HEXABLOCKENGINE_EXPORT double calc_distance (double v1[], double v2[]);
+HEXABLOCKENGINE_EXPORT void calc_vecteur (double pta[], double ptb[], double vab[]);
+HEXABLOCKENGINE_EXPORT void copy_vecteur (double va [], double vb []);
+HEXABLOCKENGINE_EXPORT void calc_milieu (double pta[], double ptb[], double milieu[]);
+HEXABLOCKENGINE_EXPORT int normer_vecteur (double v1[]);
-double carre (double val);
-bool same_coords (double* pa, double* pb, double epsilon=1e-6);
+HEXABLOCKENGINE_EXPORT double carre (double val);
+HEXABLOCKENGINE_EXPORT bool same_coords (double* pa, double* pb, double epsilon=1e-6);
-bool requals (const double v1, const double v2);
-bool requals (const double* v1, const double* v2);
+HEXABLOCKENGINE_EXPORT bool requals (const double v1, const double v2);
+HEXABLOCKENGINE_EXPORT bool requals (const double* v1, const double* v2);
-bool on_debug(); // == getenv ("HEXA_DB") > 0
-bool in_test (); // == getenv ("HEXA_TEST") > 0
-int niv_debug(); // Implemente prochainement
+HEXABLOCKENGINE_EXPORT bool on_debug(); // == getenv ("HEXA_DB") > 0
+HEXABLOCKENGINE_EXPORT bool in_test (); // == getenv ("HEXA_TEST") > 0
+HEXABLOCKENGINE_EXPORT int niv_debug(); // Implemente prochainement
-void set_minus (string& chaine);
+HEXABLOCKENGINE_EXPORT void set_minus (string& chaine);
-bool special_option ();
-void set_special_option (bool opt);
+HEXABLOCKENGINE_EXPORT bool special_option ();
+HEXABLOCKENGINE_EXPORT void set_special_option (bool opt);
-int sizeof_file (cpchar filename);
-char* read_file (cpchar filename, int& size);
-cpchar get_time (string& buffer);
+HEXABLOCKENGINE_EXPORT int sizeof_file (cpchar filename);
+HEXABLOCKENGINE_EXPORT char* read_file (cpchar filename, int& size);
+HEXABLOCKENGINE_EXPORT cpchar get_time (string& buffer);
const double Epsil = 1e-6;
const double UnEpsil = 0.999999;
${KERNEL_DEFINITIONS}
)
+IF(WIN32)
+ ADD_DEFINITIONS(-DNOGDI -DNOMINMAX)
+ENDIF(WIN32)
+
# libraries to link to
SET(_link_LIBRARIES
${CORBA_LIBS}
extern "C"
{
- HEXABLOCKGUI_EXPORT CAM_Module* createModule()
+ HEXABLOCK_EXPORT CAM_Module* createModule()
{
return new HEXABLOCKGUI();
}
- HEXABLOCKGUI_EXPORT char* getModuleVersion()
+ HEXABLOCK_EXPORT char* getModuleVersion()
{
return (char*)HEXABLOCK_VERSION_STR;
}
#ifndef _HEXABLOCKGUI_HXX_
#define _HEXABLOCKGUI_HXX_
+#include "HEXABLOCKGUI_Export.hxx"
+
#include <iostream>
#include <map>
#include <set>
class LightApp_VTKSelector;
-class HEXABLOCKGUI : public SalomeApp_Module
+class HEXABLOCK_EXPORT HEXABLOCKGUI : public SalomeApp_Module
{
Q_OBJECT
#ifndef __HEXABLOCKGUI_DOCUMENTDELEGATE_HXX_
#define __HEXABLOCKGUI_DOCUMENTDELEGATE_HXX_
-
+#include "HEXABLOCKGUI_Export.hxx"
// QEvent * event, QAbstractItemModel
#include <QEvent>
{
namespace GUI
{
- class DocumentDelegate : public QItemDelegate
+ class HEXABLOCK_EXPORT DocumentDelegate : public QItemDelegate
{
Q_OBJECT
#include "HEXABLOCKGUI_DocumentModel.hxx"
#include "HexAssoEdge.hxx"
+#ifndef WIN32
#include <inttypes.h>
-
+#endif
using namespace std;
using namespace HEXABLOCK::GUI;
#ifndef _HEXABLOCKGUI_DOCUMENTITEM_HXX_
#define _HEXABLOCKGUI_DOCUMENTITEM_HXX_
+#include "HEXABLOCKGUI_Export.hxx"
#include <QStandardItem>
// QVariant::UserType
//===================================================================================
- class ElementItem : public QStandardItem
+ class HEXABLOCK_EXPORT ElementItem : public QStandardItem
{
public:
ElementItem( HEXA_NS::EltBase* docElement, QString entry, HexaType ttype, HexaTreeRole treeRole);
};
//===================================================================================
- class GraphicElementItem : public ElementItem
+ class HEXABLOCK_EXPORT GraphicElementItem : public ElementItem
{
public:
GraphicElementItem( HEXA_NS::EltBase* docElement, QString entry, HexaType ttype, HexaTreeRole treeRole):
int IDinActor;
};
- class StandardElementItem : public ElementItem
+ class HEXABLOCK_EXPORT StandardElementItem : public ElementItem
{
public:
StandardElementItem( HEXA_NS::EltBase* docElement, QString entry, HexaType ttype, HexaTreeRole treeRole):
}
};
- class VertexItem : public GraphicElementItem
+ class HEXABLOCK_EXPORT VertexItem : public GraphicElementItem
{
public:
VertexItem( HEXA_NS::Vertex* hexaVertex, QString entry = "");
};
- class EdgeItem : public GraphicElementItem
+ class HEXABLOCK_EXPORT EdgeItem : public GraphicElementItem
{
public:
EdgeItem( HEXA_NS::Edge* hexaEdge, QString entry = "");
};
//-----------------------------------------
- class QuadItem : public GraphicElementItem
+ class HEXABLOCK_EXPORT QuadItem : public GraphicElementItem
{
public:
QuadItem( HEXA_NS::Quad* hexaQuad, QString entry = "");
};
//-----------------------------------------
- class HexaItem : public GraphicElementItem
+ class HEXABLOCK_EXPORT HexaItem : public GraphicElementItem
{
public:
HexaItem( HEXA_NS::Hexa* hexaHexa, QString entry = "");
};
//-----------------------------------------
- class VectorItem : public StandardElementItem
+ class HEXABLOCK_EXPORT VectorItem : public StandardElementItem
{
public:
VectorItem( HEXA_NS::Vector* hexaVector, QString entry = "");
};
//-----------------------------------------
-// class CylinderItem : public StandardElementItem
+// class HEXABLOCK_EXPORT CylinderItem : public StandardElementItem
// {
// public:
// CylinderItem( HEXA_NS::Cylinder* hexaCyl, QString entry = "");
// };
//-----------------------------------------
- class ElementsItem : public StandardElementItem
+ class HEXABLOCK_EXPORT ElementsItem : public StandardElementItem
{
public:
ElementsItem( HEXA_NS::Elements* hexaElements, QString entry = "" );
// };
//------------------------------------------------
- class GeomItem: public StandardElementItem
+ class HEXABLOCK_EXPORT GeomItem: public StandardElementItem
{
public:
GeomItem( HEXA_NS::EltBase* geomShape, QString entry, HexaType ttype, HexaTreeRole treeRole, HEXA_NS::EltBase* assoc = NULL );
};
//------------------------------------------------
- class GeomShapeItem: public GeomItem
+ class HEXABLOCK_EXPORT GeomShapeItem: public GeomItem
{
public:
GeomShapeItem( HEXA_NS::NewShape* shape, HEXA_NS::EltBase* assoc = NULL);
};
//------------------------------------------------
- class GeomPointItem: public GeomItem
+ class HEXABLOCK_EXPORT GeomPointItem: public GeomItem
{
public:
GeomPointItem( HEXA_NS::VertexShape* geomPoint, HEXA_NS::Vertex* associatedVertex = NULL);
};
//------------------------------------------------
- class GeomEdgeItem: public GeomItem
+ class HEXABLOCK_EXPORT GeomEdgeItem: public GeomItem
{
public:
GeomEdgeItem( HEXA_NS::EdgeShape* geomEdge, HEXA_NS::Edge* associatedEdge = NULL);
};
//------------------------------------------------
- class GeomFaceItem: public GeomItem
+ class HEXABLOCK_EXPORT GeomFaceItem: public GeomItem
{
public:
GeomFaceItem( HEXA_NS::FaceShape* geomFace, HEXA_NS::Quad* associatedQuad = NULL);
};
//-----------------------------------------
- class GroupItem : public QStandardItem
+ class HEXABLOCK_EXPORT GroupItem : public QStandardItem
{
public:
GroupItem( HEXA_NS::Group* hexaGroup );
};
- class LawItem : public QStandardItem
+ class HEXABLOCK_EXPORT LawItem : public QStandardItem
{
public:
LawItem( HEXA_NS::Law* hexaLaw );
};
- class PropagationItem : public QStandardItem
+ class HEXABLOCK_EXPORT PropagationItem : public QStandardItem
{
public:
PropagationItem( HEXA_NS::Propagation* hexaPropagation );
HEXA_NS::Vertex* hv2 = getHexaPtr<HEXA_NS::Vertex*>(i_v2);
HEXA_NS::Vertex* hv3 = getHexaPtr<HEXA_NS::Vertex*>(i_v3);
- if ( hv0 and hv1 and hv2 and hv3 ){
+ if ( hv0 && hv1 && hv2 && hv3 ){
HEXA_NS::Quad* hq = _hexaDocument->addQuadVertices( hv0, hv1, hv2, hv3 );
if ( BadElement(hq) ) return quadIndex;
HEXA_NS::Edge* he2 = getHexaPtr<HEXA_NS::Edge*>(e2);
HEXA_NS::Edge* he3 = getHexaPtr<HEXA_NS::Edge*>(e3);
- if ( he0 and he1 and he2 and he3 ){
+ if ( he0 && he1 && he2 && he3 ){
HEXA_NS::Quad* hq = _hexaDocument->addQuad( he0, he1, he2, he3 );
if ( BadElement(hq) ) return quadIndex;
QVariant PatternDataModel::headerData ( int section, Qt::Orientation orientation, int role ) const
{
- if ( section == 0 and orientation == Qt::Horizontal and role == Qt::DisplayRole ){
+ if ( section == 0 && orientation == Qt::Horizontal && role == Qt::DisplayRole ){
return QVariant( "Data" );
} else {
return QSortFilterProxyModel::headerData ( section, orientation, role );
QVariant PatternBuilderModel::headerData ( int section, Qt::Orientation orientation, int role ) const
{
- if ( section == 0 and orientation == Qt::Horizontal and role == Qt::DisplayRole ){
+ if ( section == 0 && orientation == Qt::Horizontal && role == Qt::DisplayRole ){
return QVariant( "Builder" );
} else {
return QSortFilterProxyModel::headerData ( section, orientation, role );
QVariant PatternGeomModel::headerData ( int section, Qt::Orientation orientation, int role ) const
{
- if ( section == 0 and orientation == Qt::Horizontal and role == Qt::DisplayRole ){
+ if ( section == 0 && orientation == Qt::Horizontal && role == Qt::DisplayRole ){
return QVariant( "Geometry" );
} else {
return QSortFilterProxyModel::headerData ( section, orientation, role );
QVariant AssociationsModel::headerData ( int section, Qt::Orientation orientation, int role ) const
{
- if ( section == 0 and orientation == Qt::Horizontal and role == Qt::DisplayRole ){
+ if ( section == 0 && orientation == Qt::Horizontal && role == Qt::DisplayRole ){
return QVariant( "Associations" );
} else {
return QSortFilterProxyModel::headerData ( section, orientation, role );
QVariant GroupsModel::headerData ( int section, Qt::Orientation orientation, int role ) const
{
- if ( section == 0 and orientation == Qt::Horizontal and role == Qt::DisplayRole ){
+ if ( section == 0 && orientation == Qt::Horizontal && role == Qt::DisplayRole ){
return QVariant( "Groups" );
} else {
return QSortFilterProxyModel::headerData ( section, orientation, role );
QVariant MeshModel::headerData ( int section, Qt::Orientation orientation, int role ) const
{
- if ( section == 0 and orientation == Qt::Horizontal and role == Qt::DisplayRole ){
+ if ( section == 0 && orientation == Qt::Horizontal && role == Qt::DisplayRole ){
return QVariant( "Mesh" );
} else {
return QSortFilterProxyModel::headerData ( section, orientation, role );
#define _HEXABLOCKGUI_DOCUMENTMODEL_HXX_
+#include "HEXABLOCKGUI_Export.hxx"
+
#include <QTemporaryFile>
#include <QStandardItemModel>
#include <QSortFilterProxyModel>
{
namespace GUI
{
- class DocumentModel : public QStandardItemModel
+ class HEXABLOCK_EXPORT DocumentModel : public QStandardItemModel
{
Q_OBJECT
public:
};
- class PatternDataModel : public QSortFilterProxyModel
+ class HEXABLOCK_EXPORT PatternDataModel : public QSortFilterProxyModel
{
public:
PatternDataModel( QObject * parent = 0 );
}
nbItems = iElts.count();
- if ( quads_rb->isChecked() and (nbItems>=2 and nbItems<=6) ){ // build from quads iElts.count() should be between [2,6]
+ if ( quads_rb->isChecked() && (nbItems>=2 && nbItems<=6) ){ // build from quads iElts.count() should be between [2,6]
iHexa = getDocumentModel()->addHexaQuads( iElts );
- } else if ( vertices_rb->isChecked() and nbItems== 8 ){ // build from vertices
+ } else if ( vertices_rb->isChecked() && nbItems== 8 ){ // build from vertices
iHexa = getDocumentModel()->addHexaVertices( iElts[0], iElts[1], iElts[2], iElts[3],
iElts[4], iElts[5], iElts[6], iElts[7] );
}
#ifndef __HEXABLOCKGUI_DOCUMENTPANEL_HXX_
#define __HEXABLOCKGUI_DOCUMENTPANEL_HXX_
-
-#if defined WIN32
-# if defined HEXABLOCKGUI_DOCUMENTPANEL_EXPORT || defined HexablockGui_DocumentPanel_EXPORTS
-# define HEXABLOCKGUI_DOCUMENTPANEL_EXPORT __declspec( dllexport )
-# else
-# define HEXABLOCKGUI_DOCUMENTPANEL_EXPORT __declspec( dllimport )
-# endif
-#else
-# define HEXABLOCKGUI_DOCUMENTPANEL_EXPORT
-#endif
-
+#include "HEXABLOCKGUI_Export.hxx "
#define MAX_WIDTH 16777215
#define MAX_HEIGHT 16777215
{
namespace GUI
{
- class HEXABLOCKGUI_DOCUMENTPANEL_EXPORT HexaBaseDialog : public QDialog
+ class HEXABLOCK_EXPORT HexaBaseDialog : public QDialog
{
Q_OBJECT
- class HEXABLOCKGUI_DOCUMENTPANEL_EXPORT VertexDialog : public HexaBaseDialog,
+ class HEXABLOCK_EXPORT VertexDialog : public HexaBaseDialog,
public Ui::VertexDialog
{
Q_OBJECT
};
- class HEXABLOCKGUI_DOCUMENTPANEL_EXPORT EdgeDialog : public HexaBaseDialog,
+ class HEXABLOCK_EXPORT EdgeDialog : public HexaBaseDialog,
public Ui::EdgeDialog
{
Q_OBJECT
};
- class HEXABLOCKGUI_DOCUMENTPANEL_EXPORT QuadDialog : public HexaBaseDialog,
+ class HEXABLOCK_EXPORT QuadDialog : public HexaBaseDialog,
public Ui::QuadDialog
{
Q_OBJECT
- class HEXABLOCKGUI_DOCUMENTPANEL_EXPORT HexaDialog : public HexaBaseDialog,
+ class HEXABLOCK_EXPORT HexaDialog : public HexaBaseDialog,
public Ui::HexaDialog
{
Q_OBJECT
};
- class HEXABLOCKGUI_DOCUMENTPANEL_EXPORT VectorDialog : public HexaBaseDialog,
+ class HEXABLOCK_EXPORT VectorDialog : public HexaBaseDialog,
public Ui::VectorDialog
{
Q_OBJECT
QModelIndex _ivalue;
};
- class HEXABLOCKGUI_DOCUMENTPANEL_EXPORT MakeGridDialog : public HexaBaseDialog,
+ class HEXABLOCK_EXPORT MakeGridDialog : public HexaBaseDialog,
public Ui::MakeGridDialog
{
Q_OBJECT
};
- class HEXABLOCKGUI_DOCUMENTPANEL_EXPORT MakeCylinderDialog : public HexaBaseDialog,
+ class HEXABLOCK_EXPORT MakeCylinderDialog : public HexaBaseDialog,
public Ui::MakeCylinderDialog
{
Q_OBJECT
};
- class HEXABLOCKGUI_DOCUMENTPANEL_EXPORT MakePipeDialog : public HexaBaseDialog,
+ class HEXABLOCK_EXPORT MakePipeDialog : public HexaBaseDialog,
public Ui::MakePipeDialog
{
Q_OBJECT
};
- class HEXABLOCKGUI_DOCUMENTPANEL_EXPORT MakeCylindersDialog : public HexaBaseDialog,
+ class HEXABLOCK_EXPORT MakeCylindersDialog : public HexaBaseDialog,
public Ui::MakeCylindersDialog
{
Q_OBJECT
};
- class HEXABLOCKGUI_DOCUMENTPANEL_EXPORT MakePipesDialog : public HexaBaseDialog,
+ class HEXABLOCK_EXPORT MakePipesDialog : public HexaBaseDialog,
public Ui::MakePipesDialog
{
Q_OBJECT
- class HEXABLOCKGUI_DOCUMENTPANEL_EXPORT RemoveHexaDialog : public HexaBaseDialog,
+ class HEXABLOCK_EXPORT RemoveHexaDialog : public HexaBaseDialog,
public Ui::RemoveHexaDialog
{
Q_OBJECT
};
- class HEXABLOCKGUI_DOCUMENTPANEL_EXPORT PrismQuadDialog : public HexaBaseDialog,
+ class HEXABLOCK_EXPORT PrismQuadDialog : public HexaBaseDialog,
public Ui::PrismQuadDialog
{
Q_OBJECT
};
- class HEXABLOCKGUI_DOCUMENTPANEL_EXPORT JoinQuadDialog : public HexaBaseDialog,
+ class HEXABLOCK_EXPORT JoinQuadDialog : public HexaBaseDialog,
public Ui::JoinQuadDialog
{
Q_OBJECT
};
- class HEXABLOCKGUI_DOCUMENTPANEL_EXPORT MergeDialog : public HexaBaseDialog,
+ class HEXABLOCK_EXPORT MergeDialog : public HexaBaseDialog,
public Ui::MergeDialog
{
Q_OBJECT
};
- class HEXABLOCKGUI_DOCUMENTPANEL_EXPORT DisconnectDialog : public HexaBaseDialog,
+ class HEXABLOCK_EXPORT DisconnectDialog : public HexaBaseDialog,
public Ui::DisconnectDialog
{
Q_OBJECT
- class HEXABLOCKGUI_DOCUMENTPANEL_EXPORT CutEdgeDialog : public HexaBaseDialog,
+ class HEXABLOCK_EXPORT CutEdgeDialog : public HexaBaseDialog,
public Ui::CutEdgeDialog
{
Q_OBJECT
};
- class HEXABLOCKGUI_DOCUMENTPANEL_EXPORT MakeTransformationDialog : public HexaBaseDialog,
+ class HEXABLOCK_EXPORT MakeTransformationDialog : public HexaBaseDialog,
public Ui::TransformationDialog
{
Q_OBJECT
};
- class HEXABLOCKGUI_DOCUMENTPANEL_EXPORT MakeSymmetryDialog : public HexaBaseDialog,
+ class HEXABLOCK_EXPORT MakeSymmetryDialog : public HexaBaseDialog,
public Ui::SymmetryDialog
{
Q_OBJECT
- class HEXABLOCKGUI_DOCUMENTPANEL_EXPORT PerformTransformationDialog : public HexaBaseDialog,
+ class HEXABLOCK_EXPORT PerformTransformationDialog : public HexaBaseDialog,
public Ui::TransformationDialog
{
Q_OBJECT
};
- class HEXABLOCKGUI_DOCUMENTPANEL_EXPORT PerformSymmetryDialog : public HexaBaseDialog,
+ class HEXABLOCK_EXPORT PerformSymmetryDialog : public HexaBaseDialog,
public Ui::SymmetryDialog
{
Q_OBJECT
void updateHelpFileName();
};
-class HEXABLOCKGUI_DOCUMENTPANEL_EXPORT EdgeAssocDialog : public HexaBaseDialog,
+class HEXABLOCK_EXPORT EdgeAssocDialog : public HexaBaseDialog,
public Ui::EdgeAssocDialog
{
Q_OBJECT
};
- class HEXABLOCKGUI_DOCUMENTPANEL_EXPORT QuadAssocDialog : public HexaBaseDialog,
+ class HEXABLOCK_EXPORT QuadAssocDialog : public HexaBaseDialog,
public Ui::QuadAssocDialog
{
Q_OBJECT
- class HEXABLOCKGUI_DOCUMENTPANEL_EXPORT GroupDialog : public HexaBaseDialog,
+ class HEXABLOCK_EXPORT GroupDialog : public HexaBaseDialog,
public Ui::GroupDialog
{
Q_OBJECT
- class HEXABLOCKGUI_DOCUMENTPANEL_EXPORT LawDialog : public HexaBaseDialog,
+ class HEXABLOCK_EXPORT LawDialog : public HexaBaseDialog,
public Ui::LawDialog
{
Q_OBJECT
- class HEXABLOCKGUI_DOCUMENTPANEL_EXPORT PropagationDialog : public HexaBaseDialog,
+ class HEXABLOCK_EXPORT PropagationDialog : public HexaBaseDialog,
public Ui::PropagationDialog
{
Q_OBJECT
// Define the compute mesh dialog box
// ----------------------------------
- class HEXABLOCKGUI_DOCUMENTPANEL_EXPORT ComputeMeshDialog : public HexaBaseDialog
+ class HEXABLOCK_EXPORT ComputeMeshDialog : public HexaBaseDialog
{
Q_OBJECT
- class HEXABLOCKGUI_DOCUMENTPANEL_EXPORT ReplaceHexaDialog : public HexaBaseDialog,
+ class HEXABLOCK_EXPORT ReplaceHexaDialog : public HexaBaseDialog,
public Ui::ReplaceHexaDialog
{
Q_OBJECT
- class HEXABLOCKGUI_DOCUMENTPANEL_EXPORT QuadRevolutionDialog : public HexaBaseDialog,
+ class HEXABLOCK_EXPORT QuadRevolutionDialog : public HexaBaseDialog,
public Ui::QuadRevolutionDialog
{
Q_OBJECT
- class HEXABLOCKGUI_DOCUMENTPANEL_EXPORT MakeHemiSphereDialog : public HexaBaseDialog,
+ class HEXABLOCK_EXPORT MakeHemiSphereDialog : public HexaBaseDialog,
public Ui::MakeHemiSphereDialog
{
Q_OBJECT
HEXA_NS::Elements *_value;
};
- class HEXABLOCKGUI_DOCUMENTPANEL_EXPORT ModelInfoDialog : public HexaBaseDialog,
+ class HEXABLOCK_EXPORT ModelInfoDialog : public HexaBaseDialog,
public Ui::ModelInfoDialog
{
Q_OBJECT
virtual void _initInputWidget( Mode editmode ){}
};
- class HEXABLOCKGUI_DOCUMENTPANEL_EXPORT AddShapeDialog : public HexaBaseDialog,
+ class HEXABLOCK_EXPORT AddShapeDialog : public HexaBaseDialog,
public Ui::AddShapeDialog
{
Q_OBJECT
//***************************** OBSOLETE: A SUPPRIMER !!!! ************************************//
- class HEXABLOCKGUI_DOCUMENTPANEL_EXPORT CylinderDialog : public HexaBaseDialog,
+ class HEXABLOCK_EXPORT CylinderDialog : public HexaBaseDialog,
public Ui::CylinderDialog
{
Q_OBJECT
QModelIndex _ivalue;
};
- class HEXABLOCKGUI_DOCUMENTPANEL_EXPORT PipeDialog : public HexaBaseDialog,
+ class HEXABLOCK_EXPORT PipeDialog : public HexaBaseDialog,
public Ui::PipeDialog
{
Q_OBJECT
#ifndef _HEXABLOCKGUI_DOCUMENTSELECTIONMODEL_HXX_
#define _HEXABLOCKGUI_DOCUMENTSELECTIONMODEL_HXX_
+#include "HEXABLOCKGUI_Export.hxx"
+
#include <QItemSelectionModel>
#include <LightApp_SelectionMgr.h>
namespace GUI
{
- class SelectionModel: public QItemSelectionModel
+ class HEXABLOCK_EXPORT SelectionModel: public QItemSelectionModel
{
Q_OBJECT
{
namespace GUI
{
- class HEXABLOCKGUI_EXPORT Exception : public std::exception
+ class HEXABLOCK_EXPORT Exception : public std::exception
{
protected:
std::string _what;
#ifndef _HEXABLOCKGUI_EXPORT_HXX_
#define _HEXABLOCKGUI_EXPORT_HXX_
-#ifdef WNT
-# if defined HEXABLOCKGUI_EXPORT
-# define HEXABLOCKGUI_EXPORT __declspec( dllexport )
+#ifdef WIN32
+# if defined HEXABLOCKGUI_EXPORTS || defined HEXABLOCK_EXPORTS
+# define HEXABLOCK_EXPORT __declspec( dllexport )
# else
-# define HEXABLOCKGUI_EXPORT __declspec( dllimport )
+# define HEXABLOCK_EXPORT __declspec( dllimport )
# endif
#else
-# define HEXABLOCKGUI_EXPORT
+# define HEXABLOCK_EXPORT
#endif
#endif
#ifndef _HEXABLOCKGUI_VTKGRAPHICVIEWSHANDLER_HXX_
#define _HEXABLOCKGUI_VTKGRAPHICVIEWSHANDLER_HXX_
+#include "HEXABLOCKGUI_Export.hxx"
+
//Salome Includes
#include <SVTK_ViewWindow.h>
#include <OCCViewer_ViewWindow.h>
namespace GUI
{
- class GraphicViewsHandler
+ class HEXABLOCK_EXPORT GraphicViewsHandler
{
public:
#ifndef _HEXABLOCKGUI_MODEL_HXX_
#define _HEXABLOCKGUI_MODEL_HXX_
+#include "HEXABLOCKGUI_Export.hxx"
+
#include <SalomeApp_DataModel.h>
-class HEXABLOCKGUI_Model : public SalomeApp_DataModel
+class HEXABLOCK_EXPORT CHEXABLOCKGUI_Model : public SalomeApp_DataModel
{
public:
HEXABLOCKGUI_Model(CAM_Module* theModule);
#ifndef HEXABLOCKGUI_OCCSELECTOR_H
#define HEXABLOCKGUI_OCCSELECTOR_H
+#include "HEXABLOCKGUI_Export.hxx"
#include <LightApp_OCCSelector.h>
-class HEXABLOCKGUI_OCCSelector : public LightApp_OCCSelector
+class HEXABLOCK_EXPORT HEXABLOCKGUI_OCCSelector : public LightApp_OCCSelector
{
public:
HEXABLOCKGUI_OCCSelector( OCCViewer_Viewer*, SUIT_SelectionMgr* );
#ifndef _HEXABLOCKGUI_OCCGRAPHICVIEW_HXX_
#define _HEXABLOCKGUI_OCCGRAPHICVIEW_HXX_
+#include "HEXABLOCKGUI_Export.hxx"
#include <OCCViewer_ViewWindow.h>
#include "HEXABLOCKGUI_SalomeTools.hxx"
* OccGraphicView
********************************************************************************/
- class OccGraphicView
+ class HEXABLOCK_EXPORT OccGraphicView
{
public:
#ifndef _HEXABLOCKGUI_RESOURCE_HXX_
#define _HEXABLOCKGUI_RESOURCE_HXX_
+#include "HEXABLOCKGUI_Export.hxx"
+
#include <QtGui>
class HEXABLOCKGUI;
-class HEXABLOCKGUI_Resource
+class HEXABLOCK_EXPORT HEXABLOCKGUI_Resource
{
public:
HEXABLOCKGUI_Resource(SUIT_ResourceMgr* r);
#ifndef _HEXABLOCKGUI_SALOMETOOLS_HXX_
#define _HEXABLOCKGUI_SALOMETOOLS_HXX_
+#include "HEXABLOCKGUI_Export.hxx"
#include <SalomeApp_Application.h>
#include <SALOME_Actor.h>
namespace GUI
{
- SALOME_Actor* findActorByEntry( SVTK_ViewWindow *theVtkViewWindow, const char* theEntry );
- _PTR(Study) GetActiveStudyDocument();
+ HEXABLOCK_EXPORT SALOME_Actor* findActorByEntry( SVTK_ViewWindow *theVtkViewWindow, const char* theEntry );
+ HEXABLOCK_EXPORT _PTR(Study) GetActiveStudyDocument();
- int GetNameOfSelectedElements( SVTK_ViewWindow *theWindow,/* SVTK_Selector* theSelector,*/
- const Handle(SALOME_InteractiveObject)& theIO,
- QString& theName );
+ HEXABLOCK_EXPORT int GetNameOfSelectedElements( SVTK_ViewWindow *theWindow,/* SVTK_Selector* theSelector,*/
+ const Handle(SALOME_InteractiveObject)& theIO,
+ QString& theName );
- std::string shape2string( const TopoDS_Shape& aShape );
+ HEXABLOCK_EXPORT std::string shape2string( const TopoDS_Shape& aShape );
- void getEntityOwners( const Handle(AIS_InteractiveObject)& theObj,
- const Handle(AIS_InteractiveContext)& theIC,
- SelectMgr_IndexedMapOfOwner& theMap );
+ HEXABLOCK_EXPORT void getEntityOwners( const Handle(AIS_InteractiveObject)& theObj,
+ const Handle(AIS_InteractiveContext)& theIC,
+ SelectMgr_IndexedMapOfOwner& theMap );
- void indicesToOwners( const TColStd_IndexedMapOfInteger& aIndexMap,
- const TopoDS_Shape& aMainShape,
- const SelectMgr_IndexedMapOfOwner& anAllMap,
- SelectMgr_IndexedMapOfOwner& aToHiliteMap );
+ HEXABLOCK_EXPORT void indicesToOwners( const TColStd_IndexedMapOfInteger& aIndexMap,
+ const TopoDS_Shape& aMainShape,
+ const SelectMgr_IndexedMapOfOwner& anAllMap,
+ SelectMgr_IndexedMapOfOwner& aToHiliteMap );
- TopoDS_Shape getSubShape(const TopoDS_Shape& theShape, const int theIndex);
- int getSubId(const TopoDS_Shape& theShape, const TopoDS_Shape& theSubShape);
+ HEXABLOCK_EXPORT TopoDS_Shape getSubShape(const TopoDS_Shape& theShape, const int theIndex);
+ HEXABLOCK_EXPORT int getSubId(const TopoDS_Shape& theShape, const TopoDS_Shape& theSubShape);
- Standard_Boolean getExtremaSolution(const gp_Pnt& theInitPnt,
+ HEXABLOCK_EXPORT Standard_Boolean getExtremaSolution(const gp_Pnt& theInitPnt,
const TopoDS_Shape& theRefShape,
gp_Pnt& thePnt);
- TopoDS_Vertex makePoint(const double x, const double y, const double z);
+ HEXABLOCK_EXPORT TopoDS_Vertex makePoint(const double x, const double y, const double z);
- TopoDS_Vertex makePointWithReference(const TopoDS_Shape& point, const double dx,
+ HEXABLOCK_EXPORT TopoDS_Vertex makePointWithReference(const TopoDS_Shape& point, const double dx,
const double dy,
const double dz);
- TopoDS_Vertex makePointOnCurve(const TopoDS_Shape& edge, const double param);
+ HEXABLOCK_EXPORT TopoDS_Vertex makePointOnCurve(const TopoDS_Shape& edge, const double param);
- TopoDS_Vertex makePointOnCurveByLength(const TopoDS_Shape& edge, const TopoDS_Shape& point, const double length);
+ HEXABLOCK_EXPORT TopoDS_Vertex makePointOnCurveByLength(const TopoDS_Shape& edge, const TopoDS_Shape& point, const double length);
- TopoDS_Vertex makePointOnCurveByCoord(const TopoDS_Shape& edge, const double x, const double y, const double z);
+ HEXABLOCK_EXPORT TopoDS_Vertex makePointOnCurveByCoord(const TopoDS_Shape& edge, const double x, const double y, const double z);
- TopoDS_Vertex makePointOnLinesIntersection(const TopoDS_Shape& line1, const TopoDS_Shape& line2);
+ HEXABLOCK_EXPORT TopoDS_Vertex makePointOnLinesIntersection(const TopoDS_Shape& line1, const TopoDS_Shape& line2);
- TopoDS_Vertex makePointOnSurface(const TopoDS_Shape& face, const double param_u, const double param_v);
+ HEXABLOCK_EXPORT TopoDS_Vertex makePointOnSurface(const TopoDS_Shape& face, const double param_u, const double param_v);
- TopoDS_Vertex makePointOnSurfaceByCoord(const TopoDS_Shape& face, const double x, const double y, const double z);
+ HEXABLOCK_EXPORT TopoDS_Vertex makePointOnSurfaceByCoord(const TopoDS_Shape& face, const double x, const double y, const double z);
}
}
#ifndef __HEXABLOCKGUI_TRACE_HXX__
#define __HEXABLOCKGUI_TRACE_HXX__
+
+
#include <iostream>
#include <sstream>
namespace HEXABLOCK {
namespace GUI {
- extern HEXABLOCKGUI_EXPORT int traceLevel;
+ extern HEXABLOCK_EXPORT int traceLevel;
}
}
#ifndef _HEXABLOCKGUI_VTKDOCUMENTGRAPHICVIEW_HXX_
#define _HEXABLOCKGUI_VTKDOCUMENTGRAPHICVIEW_HXX_
+#include "HEXABLOCKGUI_Export.hxx"
+
// SALOME GUI includes
#include <LightApp_Displayer.h>
#include <SUIT_ViewWindow.h>
namespace GUI
{
- class Document_Actor : public SALOME_Actor
+ class HEXABLOCK_EXPORT Document_Actor : public SALOME_Actor
{
public:
Document_Actor(HEXA_NS::Document* doc, const QString& entry);
/********************************************************************************
* VtkDocumentGraphicView
********************************************************************************/
- class VtkDocumentGraphicView : public QAbstractItemView
+ class HEXABLOCK_EXPORT VtkDocumentGraphicView : public QAbstractItemView
{
Q_OBJECT
#ifndef MYBASICGUI_POINTDLG_H
#define MYBASICGUI_POINTDLG_H
-
+#include "HEXABLOCKGUI_Export.hxx"
#include "MyGEOMBase_Skeleton.hxx"
// class : MyBasicGUI_PointDlg
// purpose :
//=================================================================================
-typedef class MyBasicGUI_PointDlg : public MyGEOMBase_Skeleton
+typedef class HEXABLOCK_EXPORT MyBasicGUI_PointDlg : public MyGEOMBase_Skeleton
{
Q_OBJECT
#define GEOM_DLGREF_HXX
#if defined WIN32
-# if defined DLGREF_EXPORTS || defined DlgRef_EXPORTS
-# define DLGREF_EXPORT __declspec( dllexport )
+# if defined MYDLGREF_EXPORTS || defined MyDlgRef_EXPORTS
+# define MYDLGREF_EXPORT __declspec( dllexport )
# else
-# define DLGREF_EXPORT __declspec( dllimport )
+# define MYDLGREF_EXPORT __declspec( dllimport )
# endif
#else
-# define DLGREF_EXPORT
+# define MYMYDLGREF_EXPORT
#endif
//////////////////////////////////////////
#include "ui_DlgRef_1List1Spin1Btn_QTD.h"
-class DLGREF_EXPORT DlgRef_1List1Spin1Btn : public QWidget,
+class MYDLGREF_EXPORT DlgRef_1List1Spin1Btn : public QWidget,
public Ui::DlgRef_1List1Spin1Btn_QTD
{
Q_OBJECT
#include "ui_DlgRef_1Sel1Check1List_QTD.h"
-class DLGREF_EXPORT DlgRef_1Sel1Check1List : public QWidget,
+class MYDLGREF_EXPORT DlgRef_1Sel1Check1List : public QWidget,
public Ui::DlgRef_1Sel1Check1List_QTD
{
Q_OBJECT
#include "ui_DlgRef_1Sel1Check1Sel_QTD.h"
-class DLGREF_EXPORT DlgRef_1Sel1Check1Sel : public QWidget,
+class MYDLGREF_EXPORT DlgRef_1Sel1Check1Sel : public QWidget,
public Ui::DlgRef_1Sel1Check1Sel_QTD
{
Q_OBJECT
#include "ui_DlgRef_1Sel1Check_QTD.h"
-class DLGREF_EXPORT DlgRef_1Sel1Check : public QWidget,
+class MYDLGREF_EXPORT DlgRef_1Sel1Check : public QWidget,
public Ui::DlgRef_1Sel1Check_QTD
{
Q_OBJECT
#include "ui_DlgRef_1Sel1List1Check3Btn_QTD.h"
-class DLGREF_EXPORT DlgRef_1Sel1List1Check3Btn : public QWidget,
+class MYDLGREF_EXPORT DlgRef_1Sel1List1Check3Btn : public QWidget,
public Ui::DlgRef_1Sel1List1Check3Btn_QTD
{
Q_OBJECT
#include "ui_DlgRef_1Sel1Spin1Check_QTD.h"
-class DLGREF_EXPORT DlgRef_1Sel1Spin1Check : public QWidget,
+class MYDLGREF_EXPORT DlgRef_1Sel1Spin1Check : public QWidget,
public Ui::DlgRef_1Sel1Spin1Check_QTD
{
Q_OBJECT
#include "ui_DlgRef_1Sel1Spin_QTD.h"
-class DLGREF_EXPORT DlgRef_1Sel1Spin : public QWidget,
+class MYDLGREF_EXPORT DlgRef_1Sel1Spin : public QWidget,
public Ui::DlgRef_1Sel1Spin_QTD
{
Q_OBJECT
#include "ui_DlgRef_1Sel2Spin1View1Check_QTD.h"
-class DLGREF_EXPORT DlgRef_1Sel2Spin1View1Check : public QWidget,
+class MYDLGREF_EXPORT DlgRef_1Sel2Spin1View1Check : public QWidget,
public Ui::DlgRef_1Sel2Spin1View1Check_QTD
{
Q_OBJECT
#include "ui_DlgRef_1Sel2Spin_QTD.h"
-class DLGREF_EXPORT DlgRef_1Sel2Spin : public QWidget,
+class MYDLGREF_EXPORT DlgRef_1Sel2Spin : public QWidget,
public Ui::DlgRef_1Sel2Spin_QTD
{
Q_OBJECT
#include "ui_DlgRef_1Sel3Check_QTD.h"
-class DLGREF_EXPORT DlgRef_1Sel3Check : public QWidget,
+class MYDLGREF_EXPORT DlgRef_1Sel3Check : public QWidget,
public Ui::DlgRef_1Sel3Check_QTD
{
Q_OBJECT
#include "ui_DlgRef_1Sel3Spin_QTD.h"
-class DLGREF_EXPORT DlgRef_1Sel3Spin : public QWidget,
+class MYDLGREF_EXPORT DlgRef_1Sel3Spin : public QWidget,
public Ui::DlgRef_1Sel3Spin_QTD
{
Q_OBJECT
#include "ui_DlgRef_1Sel3Spin1Check_QTD.h"
-class DLGREF_EXPORT DlgRef_1Sel3Spin1Check : public QWidget,
+class MYDLGREF_EXPORT DlgRef_1Sel3Spin1Check : public QWidget,
public Ui::DlgRef_1Sel3Spin1Check_QTD
{
Q_OBJECT
#include "ui_DlgRef_1Sel4Spin2Check_QTD.h"
-class DLGREF_EXPORT DlgRef_1Sel4Spin2Check : public QWidget,
+class MYDLGREF_EXPORT DlgRef_1Sel4Spin2Check : public QWidget,
public Ui::DlgRef_1Sel4Spin2Check_QTD
{
Q_OBJECT
#include "ui_DlgRef_1Sel4Spin_QTD.h"
-class DLGREF_EXPORT DlgRef_1Sel4Spin : public QWidget,
+class MYDLGREF_EXPORT DlgRef_1Sel4Spin : public QWidget,
public Ui::DlgRef_1Sel4Spin_QTD
{
Q_OBJECT
#include "ui_DlgRef_1Sel5Spin1Check_QTD.h"
-class DLGREF_EXPORT DlgRef_1Sel5Spin1Check : public QWidget,
+class MYDLGREF_EXPORT DlgRef_1Sel5Spin1Check : public QWidget,
public Ui::DlgRef_1Sel5Spin1Check_QTD
{
Q_OBJECT
#include "ui_DlgRef_1Sel5Spin_QTD.h"
-class DLGREF_EXPORT DlgRef_1Sel5Spin : public QWidget,
+class MYDLGREF_EXPORT DlgRef_1Sel5Spin : public QWidget,
public Ui::DlgRef_1Sel5Spin_QTD
{
Q_OBJECT
#include "ui_DlgRef_1Spin_QTD.h"
-class DLGREF_EXPORT DlgRef_1Spin : public QWidget,
+class MYDLGREF_EXPORT DlgRef_1Spin : public QWidget,
public Ui::DlgRef_1Spin_QTD
{
Q_OBJECT
#include "ui_DlgRef_1Sel_QTD.h"
-class DLGREF_EXPORT DlgRef_1Sel : public QWidget,
+class MYDLGREF_EXPORT DlgRef_1Sel : public QWidget,
public Ui::DlgRef_1Sel_QTD
{
Q_OBJECT
#include "ui_DlgRef_1SelExt_QTD.h"
-class DLGREF_EXPORT DlgRef_1SelExt : public QWidget,
+class MYDLGREF_EXPORT DlgRef_1SelExt : public QWidget,
public Ui::DlgRef_1SelExt_QTD
{
Q_OBJECT
#include "ui_DlgRef_2Sel1List1Check_QTD.h"
-class DLGREF_EXPORT DlgRef_2Sel1List1Check : public QWidget,
+class MYDLGREF_EXPORT DlgRef_2Sel1List1Check : public QWidget,
public Ui::DlgRef_2Sel1List1Check_QTD
{
Q_OBJECT
#include "ui_DlgRef_2Sel1List2Check_QTD.h"
-class DLGREF_EXPORT DlgRef_2Sel1List2Check : public QWidget,
+class MYDLGREF_EXPORT DlgRef_2Sel1List2Check : public QWidget,
public Ui::DlgRef_2Sel1List2Check_QTD
{
Q_OBJECT
#include "ui_DlgRef_2Sel1List_QTD.h"
-class DLGREF_EXPORT DlgRef_2Sel1List : public QWidget,
+class MYDLGREF_EXPORT DlgRef_2Sel1List : public QWidget,
public Ui::DlgRef_2Sel1List_QTD
{
Q_OBJECT
#include "ui_DlgRef_2Sel1Spin2Check_QTD.h"
-class DLGREF_EXPORT DlgRef_2Sel1Spin2Check : public QWidget,
+class MYDLGREF_EXPORT DlgRef_2Sel1Spin2Check : public QWidget,
public Ui::DlgRef_2Sel1Spin2Check_QTD
{
Q_OBJECT
#include "ui_DlgRef_2Sel1Spin_QTD.h"
-class DLGREF_EXPORT DlgRef_2Sel1Spin : public QWidget,
+class MYDLGREF_EXPORT DlgRef_2Sel1Spin : public QWidget,
public Ui::DlgRef_2Sel1Spin_QTD
{
Q_OBJECT
#include "ui_DlgRef_2Sel1SpinInt_QTD.h"
-class DLGREF_EXPORT DlgRef_2Sel1SpinInt : public QWidget,
+class MYDLGREF_EXPORT DlgRef_2Sel1SpinInt : public QWidget,
public Ui::DlgRef_2Sel1SpinInt_QTD
{
Q_OBJECT
#include "ui_DlgRef_2Sel2List_QTD.h"
-class DLGREF_EXPORT DlgRef_2Sel2List : public QWidget,
+class MYDLGREF_EXPORT DlgRef_2Sel2List : public QWidget,
public Ui::DlgRef_2Sel2List_QTD
{
Q_OBJECT
#include "ui_DlgRef_2Sel2Spin1Check_QTD.h"
-class DLGREF_EXPORT DlgRef_2Sel2Spin1Check : public QWidget,
+class MYDLGREF_EXPORT DlgRef_2Sel2Spin1Check : public QWidget,
public Ui::DlgRef_2Sel2Spin1Check_QTD
{
Q_OBJECT
#include "ui_DlgRef_2Sel2Spin3Check_QTD.h"
-class DLGREF_EXPORT DlgRef_2Sel2Spin3Check : public QWidget,
+class MYDLGREF_EXPORT DlgRef_2Sel2Spin3Check : public QWidget,
public Ui::DlgRef_2Sel2Spin3Check_QTD
{
Q_OBJECT
#include "ui_DlgRef_2Sel2Spin_QTD.h"
-class DLGREF_EXPORT DlgRef_2Sel2Spin : public QWidget,
+class MYDLGREF_EXPORT DlgRef_2Sel2Spin : public QWidget,
public Ui::DlgRef_2Sel2Spin_QTD
{
Q_OBJECT
#include "ui_DlgRef_2Sel3Spin2Rb_QTD.h"
-class DLGREF_EXPORT DlgRef_2Sel3Spin2Rb : public QWidget,
+class MYDLGREF_EXPORT DlgRef_2Sel3Spin2Rb : public QWidget,
public Ui::DlgRef_2Sel3Spin2Rb_QTD
{
Q_OBJECT
#include "ui_DlgRef_2Sel3Spin_QTD.h"
-class DLGREF_EXPORT DlgRef_2Sel3Spin : public QWidget,
+class MYDLGREF_EXPORT DlgRef_2Sel3Spin : public QWidget,
public Ui::DlgRef_2Sel3Spin_QTD
{
Q_OBJECT
#include "ui_DlgRef_2Sel4Spin1Check_QTD.h"
-class DLGREF_EXPORT DlgRef_2Sel4Spin1Check : public QWidget,
+class MYDLGREF_EXPORT DlgRef_2Sel4Spin1Check : public QWidget,
public Ui::DlgRef_2Sel4Spin1Check_QTD
{
Q_OBJECT
#include "ui_DlgRef_2Sel_QTD.h"
-class DLGREF_EXPORT DlgRef_2Sel : public QWidget,
+class MYDLGREF_EXPORT DlgRef_2Sel : public QWidget,
public Ui::DlgRef_2Sel_QTD
{
Q_OBJECT
#include "ui_DlgRef_2SelExt_QTD.h"
-class DLGREF_EXPORT DlgRef_2SelExt : public QWidget,
+class MYDLGREF_EXPORT DlgRef_2SelExt : public QWidget,
public Ui::DlgRef_2SelExt_QTD
{
Q_OBJECT
#include "ui_DlgRef_2Spin_QTD.h"
-class DLGREF_EXPORT DlgRef_2Spin : public QWidget,
+class MYDLGREF_EXPORT DlgRef_2Spin : public QWidget,
public Ui::DlgRef_2Spin_QTD
{
Q_OBJECT
#include "ui_DlgRef_3Check_QTD.h"
-class DLGREF_EXPORT DlgRef_3Check : public QWidget,
+class MYDLGREF_EXPORT DlgRef_3Check : public QWidget,
public Ui::DlgRef_3Check_QTD
{
Q_OBJECT
#include "ui_DlgRef_3Radio_QTD.h"
-class DLGREF_EXPORT DlgRef_3Radio : public QWidget,
+class MYDLGREF_EXPORT DlgRef_3Radio : public QWidget,
public Ui::DlgRef_3Radio_QTD
{
Q_OBJECT
#include "ui_DlgRef_3Radio1Sel1Spin_QTD.h"
-class DLGREF_EXPORT DlgRef_3Radio1Sel1Spin : public QWidget,
+class MYDLGREF_EXPORT DlgRef_3Radio1Sel1Spin : public QWidget,
public Ui::DlgRef_3Radio1Sel1Spin_QTD
{
Q_OBJECT
#include "ui_DlgRef_3Sel1Check_QTD.h"
-class DLGREF_EXPORT DlgRef_3Sel1Check : public QWidget,
+class MYDLGREF_EXPORT DlgRef_3Sel1Check : public QWidget,
public Ui::DlgRef_3Sel1Check_QTD
{
Q_OBJECT
#include "ui_DlgRef_3Sel1Spin_QTD.h"
-class DLGREF_EXPORT DlgRef_3Sel1Spin : public QWidget,
+class MYDLGREF_EXPORT DlgRef_3Sel1Spin : public QWidget,
public Ui::DlgRef_3Sel1Spin_QTD
{
Q_OBJECT
#include "ui_DlgRef_3Sel2Spin_QTD.h"
-class DLGREF_EXPORT DlgRef_3Sel2Spin : public QWidget,
+class MYDLGREF_EXPORT DlgRef_3Sel2Spin : public QWidget,
public Ui::DlgRef_3Sel2Spin_QTD
{
Q_OBJECT
#include "ui_DlgRef_3Sel3Spin1Check_QTD.h"
-class DLGREF_EXPORT DlgRef_3Sel3Spin1Check : public QWidget,
+class MYDLGREF_EXPORT DlgRef_3Sel3Spin1Check : public QWidget,
public Ui::DlgRef_3Sel3Spin1Check_QTD
{
Q_OBJECT
#include "ui_DlgRef_3Sel3Spin2Check_QTD.h"
-class DLGREF_EXPORT DlgRef_3Sel3Spin2Check : public QWidget,
+class MYDLGREF_EXPORT DlgRef_3Sel3Spin2Check : public QWidget,
public Ui::DlgRef_3Sel3Spin2Check_QTD
{
Q_OBJECT
#include "ui_DlgRef_3Sel4Spin2Check_QTD.h"
-class DLGREF_EXPORT DlgRef_3Sel4Spin2Check : public QWidget,
+class MYDLGREF_EXPORT DlgRef_3Sel4Spin2Check : public QWidget,
public Ui::DlgRef_3Sel4Spin2Check_QTD
{
Q_OBJECT
#include "ui_DlgRef_3Sel_QTD.h"
-class DLGREF_EXPORT DlgRef_3Sel : public QWidget,
+class MYDLGREF_EXPORT DlgRef_3Sel : public QWidget,
public Ui::DlgRef_3Sel_QTD
{
Q_OBJECT
#include "ui_DlgRef_3Spin1Check_QTD.h"
-class DLGREF_EXPORT DlgRef_3Spin1Check : public QWidget,
+class MYDLGREF_EXPORT DlgRef_3Spin1Check : public QWidget,
public Ui::DlgRef_3Spin1Check_QTD
{
Q_OBJECT
#include "ui_DlgRef_3Spin_QTD.h"
-class DLGREF_EXPORT DlgRef_3Spin : public QWidget,
+class MYDLGREF_EXPORT DlgRef_3Spin : public QWidget,
public Ui::DlgRef_3Spin_QTD
{
Q_OBJECT
#include "ui_DlgRef_4Sel1List1Check_QTD.h"
-class DLGREF_EXPORT DlgRef_4Sel1List1Check : public QWidget,
+class MYDLGREF_EXPORT DlgRef_4Sel1List1Check : public QWidget,
public Ui::DlgRef_4Sel1List1Check_QTD
{
Q_OBJECT
#include "ui_DlgRef_4Sel1List_QTD.h"
-class DLGREF_EXPORT DlgRef_4Sel1List : public QWidget,
+class MYDLGREF_EXPORT DlgRef_4Sel1List : public QWidget,
public Ui::DlgRef_4Sel1List_QTD
{
Q_OBJECT
#include "ui_DlgRef_4Sel1Spin2Check_QTD.h"
-class DLGREF_EXPORT DlgRef_4Sel1Spin2Check : public QWidget,
+class MYDLGREF_EXPORT DlgRef_4Sel1Spin2Check : public QWidget,
public Ui::DlgRef_4Sel1Spin2Check_QTD
{
Q_OBJECT
#include "ui_DlgRef_4Sel1Spin3Check_QTD.h"
-class DLGREF_EXPORT DlgRef_4Sel1Spin3Check : public QWidget,
+class MYDLGREF_EXPORT DlgRef_4Sel1Spin3Check : public QWidget,
public Ui::DlgRef_4Sel1Spin3Check_QTD
{
Q_OBJECT
#include "ui_DlgRef_6Sel_QTD.h"
-class DLGREF_EXPORT DlgRef_6Sel : public QWidget,
+class MYDLGREF_EXPORT DlgRef_6Sel : public QWidget,
public Ui::DlgRef_6Sel_QTD
{
Q_OBJECT
#include "ui_DlgRef_Skeleton_QTD.h"
-class DLGREF_EXPORT DlgRef_Skeleton : public QWidget,
+class MYDLGREF_EXPORT DlgRef_Skeleton : public QWidget,
public Ui::DlgRef_Skeleton_QTD
{
Q_OBJECT
namespace DlgRef
{
- DLGREF_EXPORT QString PrintDoubleValue( double, int = 16 );
+ MYDLGREF_EXPORT QString PrintDoubleValue( double, int = 16 );
};
#endif // GEOM_DLGREF_H
#define MYGEOM_MYDLGREF_HXX
#if defined WIN32
-# if defined MYMYDLGREF_EXPORTS || defined DlgRef_EXPORTS
+# if defined MYMYDLGREF_EXPORTS || defined MyDlgRef_EXPORTS
# define MYDLGREF_EXPORT __declspec( dllexport )
# else
# define MYDLGREF_EXPORT __declspec( dllimport )
#ifndef MYGEOMBASE_SKELETON_H
#define MYGEOMBASE_SKELETON_H
+#include "HEXABLOCKGUI_Export.hxx"
#include "HEXABLOCKGUI_OccGraphicView.hxx"
#include "HEXABLOCKGUI.hxx"
namespace GUI
{
-class HEXABLOCKGUI_DOCUMENTPANEL_EXPORT MyGEOMBase_Skeleton : public HexaBaseDialog
+class HEXABLOCK_EXPORT MyGEOMBase_Skeleton : public HexaBaseDialog
{
Q_OBJECT
namespace HEXABLOCK {
namespace GUI {
- class HEXABLOCKGUI_EXPORT Resource {
+ class HEXABLOCK_EXPORT Resource {
public:
Resource();
#ifndef KLINKITEMSELECTIONMODEL_H
#define KLINKITEMSELECTIONMODEL_H
+#include "HEXABLOCKGUI_Export.hxx"
+
#include <QtCore/QObject>
#include <QtGui/QItemSelectionModel>
#include <QtGui/QAbstractProxyModel>
class KLinkItemSelectionModelPrivate;
-class KLinkItemSelectionModel : public QItemSelectionModel
+class HEXABLOCK_EXPORT KLinkItemSelectionModel : public QItemSelectionModel
{
Q_OBJECT
public:
#endif
-class KLinkItemSelectionModelPrivate
+class HEXABLOCK_EXPORT KLinkItemSelectionModelPrivate
{
public:
KLinkItemSelectionModelPrivate(KLinkItemSelectionModel *proxySelectionModel, QAbstractItemModel *model,
#ifndef KMODELINDEXPROXYMAPPER_H
#define KMODELINDEXPROXYMAPPER_H
+#include "HEXABLOCKGUI_Export.hxx"
+
#include <QObject>
// #include "kdeui_export.h"
class QItemSelection;
class KModelIndexProxyMapperPrivate;
-class KModelIndexProxyMapper : public QObject
+class HEXABLOCK_EXPORT KModelIndexProxyMapper : public QObject
{
Q_OBJECT
public:
#ifndef __EdgeTest__
#define __EdgeTest__
+#include "HexTest.hxx"
+
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
#include "Hex.hxx"
#include "HexDocument.hxx"
-class EdgeTest : public CppUnit::TestFixture
+class HEXABLOCKTEST_EXPORT EdgeTest : public CppUnit::TestFixture
{
CPPUNIT_TEST_SUITE( EdgeTest );
CPPUNIT_TEST( TestGetVertex );
--- /dev/null
+// Copyright (C) 2009-2013 CEA/DEN, EDF R&D
+//
+// 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.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+
+#ifndef __HexTest__
+#define __HexTest__
+
+#ifdef WIN32
+ #if defined HEXABLOCKTEST_EXPORTS || defined HEXABLOCKTest_EXPORTS
+ #define HEXABLOCKTEST_EXPORT __declspec( dllexport )
+ #else
+ #define HEXABLOCKTEST_EXPORT __declspec( dllimport )
+ #endif
+#else
+ #define HEXABLOCKTEST_EXPORT
+#endif
+
+#endif //__HexTest__
+
#ifndef __VertexTest__
#define __VertexTest__
+#include "HexTest.hxx"
+
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
#include "Hex.hxx"
#include "HexDocument.hxx"
-class VertexTest : public CppUnit::TestFixture
+class HEXABLOCKTEST_EXPORT VertexTest : public CppUnit::TestFixture
{
CPPUNIT_TEST_SUITE( VertexTest );
CPPUNIT_TEST( TestGetX );
#ifndef __ModelTest__
#define __ModelTest__
+#include "HexTest.hxx"
+
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
#include "HexDocument.hxx"
#include "HexEltBase.hxx"
-class ModelTest : public CppUnit::TestFixture
+class HEXABLOCKTEST_EXPORT ModelTest : public CppUnit::TestFixture
{
CPPUNIT_TEST_SUITE( ModelTest );
CPPUNIT_TEST( myTest_croix);
//
#include "Hex.hxx"
+#include "test_unit.hxx"
+
+#ifndef WIN32
#include <unistd.h>
+#endif
#include "HexDocument.hxx"
#include "HexElements.hxx"
#include <string>
#include <cstdlib>
+#ifndef WIN32
#include <unistd.h>
+#endif
#include <sys/types.h> // pour getpid()
+#ifndef WIN32
#include <unistd.h> // pour getpid()
+#else
+#include <direct.h>
+#include <process.h>
+#endif
+
static int nbr_vtk = 0;
static cpchar case_name = "hexa";
if (w_default)
{
+#ifndef WIN32
pid_t pid = getpid ();
+#else
+ int pid = _getpid ();
+#endif
char bufpid [8];
sprintf (bufpid, "_p%d", pid);
workspace += bufpid;
call_system (rmdir + workspace);
call_system (mkdir + workspace);
+#ifndef WIN32
chdir (workspace.c_str());
+#else
+ _chdir (workspace.c_str());
+#endif
+
}
// ======================================================== free_workspace
void free_workspace ()
#ifndef _TEST_UNIT_H_
#define _TEST_UNIT_H_
+#include "HexTest.hxx"
#include "hexa_base.hxx"
-void goto_workspace ();
-void free_workspace ();
+HEXABLOCKTEST_EXPORT void goto_workspace ();
+HEXABLOCKTEST_EXPORT void free_workspace ();
-int test_sphere (int nbargs, cpchar tabargs[]);
-int test_joint (int nbargs, cpchar tabargs[]);
-int test_prism (int nbargs, cpchar tabargs[]);
-int test_revolution9 (int nbargs, cpchar tabargs[]);
-int test_revolution (int nbargs, cpchar tabargs[]);
-int test_coude (int nbargs, cpchar tabargs[]);
-int test_count (int nbargs, cpchar tabargs[]);
-int test_decoupage (int nbargs, cpchar tabargs[]);
-int test_gen_xml (int nbargs, cpchar tabargs[]);
-int test_string_xml (int nbargs, cpchar tabargs[]);
-int test_relecture (int nbargs, cpchar tabargs[]);
-int test_spherical (int nbargs, const char* tabargs[]);
-int test_grille_cyl (int nbargs, cpchar tabargs[]);
-int test_asso_line (int nbargs, cpchar tabargs[]);
-int test_cylindrical (int nbargs, cpchar tabargs[]);
-int test_cylinder (int nbargs, cpchar tabargs[]);
-int test_xml_cylinder (int nbargs, cpchar tabargs[]);
-int test_pipe (int nbargs, cpchar tabargs[]);
-int test_joint2 (int nbargs, cpchar tabargs[]);
-int test_croix (int nbargs, cpchar tabargs[]);
-int test_pipes (int nbargs, cpchar tabargs[]);
-int test_lorraine(int nbargs, cpchar tabargs[]);
-int test_disconnect2 (int nbargs, cpchar tabargs[]);
-int test_disconnect4 (int nbargs, cpchar tabargs[]);
-int test_disconnect1 (int nbargs, cpchar tabargs[]);
-int test_disconnect3 (int nbargs, cpchar tabargs[]);
-int test_disconnect (int nbargs, cpchar tabargs[]);
-int test_transfo2 (int nbargs, cpchar tabargs[]);
-int test_transfo (int nbargs, cpchar tabargs[]);
-int test_copy_document (int nbargs, cpchar tabargs[]);
-int test_cylindricals (int nbargs, cpchar tabargs[]);
-int test_hexa (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_sphere (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_joint (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_prism (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_revolution9 (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_revolution (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_coude (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_count (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_decoupage (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_gen_xml (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_string_xml (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_relecture (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_spherical (int nbargs, const char* tabargs[]);
+HEXABLOCKTEST_EXPORT int test_grille_cyl (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_asso_line (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_cylindrical (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_cylinder (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_xml_cylinder (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_pipe (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_joint2 (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_croix (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_pipes (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_lorraine(int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_disconnect2 (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_disconnect4 (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_disconnect1 (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_disconnect3 (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_disconnect (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_transfo2 (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_transfo (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_copy_document (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_cylindricals (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_hexa (int nbargs, cpchar tabargs[]);
// Dans test_quads
-int test_hexa_quads_5 (int nbargs, cpchar tabargs[]);
-int test_hexa_quads_ab (int nbargs, cpchar tabargs[]);
-int test_hexa_quads_ac (int nbargs, cpchar tabargs[]);
-int test_hexa_quads_ace (int nbargs, cpchar tabargs[]);
-int test_hexa_quads_acd (int nbargs, cpchar tabargs[]);
-int test_hexa_quads_abcd (int nbargs, cpchar tabargs[]);
-int test_hexa_quads_abce (int nbargs, cpchar tabargs[]);
-int test_cramer (int nbargs, cpchar tabargs[]);
-int test_hexa_quads_ac1 (int nbargs, cpchar tabargs[]);
-int test_asso_grid (int nbargs, cpchar tabargs[]);
-int test_piquage (int nbargs, cpchar tabargs[]);
-int test_replace (int nbargs, cpchar tabargs[]);
-int test_hemispheres (int nbargs, cpchar tabargs[]);
-int test_quads (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_hexa_quads_5 (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_hexa_quads_ab (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_hexa_quads_ac (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_hexa_quads_ace (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_hexa_quads_acd (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_hexa_quads_abcd (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_hexa_quads_abce (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_cramer (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_hexa_quads_ac1 (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_asso_grid (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_piquage (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_replace (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_hemispheres (int nbargs, cpchar tabargs[]);
+HEXABLOCKTEST_EXPORT int test_quads (int nbargs, cpchar tabargs[]);
#endif