Salome HOME
Replace oe by ?
[modules/smesh.git] / src / SMDS / SMDS_MeshCell.hxx
1 #ifndef _SMDS_MESHCELL_HXX_
2 #define _SMDS_MESHCELL_HXX_
3
4 #include "SMDS_MeshElement.hxx"
5
6 /*!
7  * \brief Base class for all cells
8  */
9
10 class SMDS_EXPORT SMDS_MeshCell: public SMDS_MeshElement
11 {
12 public:
13   SMDS_MeshCell();
14   virtual ~SMDS_MeshCell();
15
16   virtual bool ChangeNodes(const SMDS_MeshNode* nodes[], const int nbNodes)= 0;
17   virtual bool vtkOrder(const SMDS_MeshNode* nodes[], const int nbNodes) {return true; }
18
19   static int nbCells;
20
21 protected:
22   inline void exchange(const SMDS_MeshNode* nodes[],int a, int b)
23   {
24     const SMDS_MeshNode* noda = nodes[a];
25     nodes[a] = nodes[b];
26     nodes[b] = noda;
27   }
28 };
29
30 #endif