Salome HOME
PR: adjust points number
[modules/smesh.git] / src / SMDS / SMDS_UnstructuredGrid.hxx
1 /* 
2  * File:   SMDS_UnstructuredGrid.hxx
3  * Author: prascle
4  *
5  * Created on September 16, 2009, 10:28 PM
6  */
7
8 #ifndef _SMDS_UNSTRUCTUREDGRID_HXX
9 #define _SMDS_UNSTRUCTUREDGRID_HXX
10
11 #include <vtkUnstructuredGrid.h>
12 #include <vtkCellLinks.h>
13
14 class SMDS_CellLinks: public vtkCellLinks
15 {
16 public:
17     Link *AdjustSize(vtkIdType sz);
18     
19     //virtual void Delete();
20     static SMDS_CellLinks* New();
21 protected:
22     SMDS_CellLinks();
23     ~SMDS_CellLinks();
24 };
25
26 class SMDS_UnstructuredGrid: public vtkUnstructuredGrid
27 {
28 public:
29     void BuildLinks(); // initialise un SMDS_CellLinks;
30     SMDS_CellLinks* GetCellLinks();
31
32     vtkIdType GetCellArraySize() { return (this->Connectivity ? this->Connectivity->GetSize() : 0); };
33
34     //virtual void Delete();
35     static SMDS_UnstructuredGrid* New();
36 protected:
37     SMDS_UnstructuredGrid();
38     ~SMDS_UnstructuredGrid();
39 };
40
41
42 #endif  /* _SMDS_UNSTRUCTUREDGRID_HXX */
43