Salome HOME
IMP 10199 (add Volume Control). Add GetVolumeType() of instance
[modules/smesh.git] / src / SMDS / SMDS_VolumeTool.hxx
index 89732b1da2c265a8f4c40ec8f1eb3de77b7a4622..beec061b700ec62c9c7ca0eb7e8ef48ab8871b12 100644 (file)
@@ -37,6 +37,18 @@ class SMDS_PolyhedralVolumeOfNodes;
 #include <vector>
 #include <set>
 
+//#ifdef WNT
+//#include <SALOME_WNT.hxx>
+//#else
+//#define SALOME_WNT_EXPORT
+//#endif
+
+#if defined WNT && defined WIN32 && defined SMDS_EXPORTS
+#define SMDS_WNT_EXPORT __declspec( dllexport )
+#else
+#define SMDS_WNT_EXPORT
+#endif
+
 // =========================================================================
 //
 // Class providing topological and other information about SMDS_MeshVolume:
@@ -45,10 +57,12 @@ class SMDS_PolyhedralVolumeOfNodes;
 //
 // =========================================================================
 
-class SMDS_VolumeTool
+class SMDS_WNT_EXPORT SMDS_VolumeTool
 {
  public:
 
+  enum VolumeType { UNKNOWN = -1, TETRA = 0, PYRAM, PENTA, HEXA, POLYHEDA };
+
   SMDS_VolumeTool ();
   ~SMDS_VolumeTool ();
   SMDS_VolumeTool (const SMDS_MeshElement* theVolume);
@@ -61,6 +75,8 @@ class SMDS_VolumeTool
   // general info
   // -----------------------
 
+  VolumeType GetVolumeType() const;
+
   bool IsForward() const { return myVolForward; }
   // Check volume orientation. can be changed by Inverse().
   // See node order of forward volumes at the file bottom
@@ -158,8 +174,6 @@ class SMDS_VolumeTool
   // static methods for faces
   // ------------------------
 
-  enum VolumeType { UNKNOWN, TETRA, PYRAM, PENTA, HEXA };
-
   static VolumeType GetType(int nbNodes);
   // return VolumeType by nb of nodes in a volume