2 // Created : Fri Sep 27 15:30:51 2002
3 // Author : Nicolas REJNERI
7 // Copyright : Open CASCADE 2002
15 #include <vtkUnstructuredGrid.h>
17 // Open CASCADE Includes
18 #include <TColStd_DataMapOfIntegerInteger.hxx>
20 class SMESH_Grid : public vtkUnstructuredGrid {
23 vtkTypeMacro(SMESH_Grid, vtkUnstructuredGrid);
25 static SMESH_Grid* New();
30 void RemoveNode(int idSMESHDSnode);
31 void RemoveElement(int idSMESHDSelement);
33 void AddNode(int idSMESHDSnode, int idVTKnode);
34 void AddElement(int idSMESHDSelement, int idVTKelement);
36 int GetIdVTKNode(int idSMESHDSnode);
37 int GetIdVTKElement(int idSMESHDSelement);
39 int GetIdSMESHDSNode(int idVTKnode);
40 int GetIdSMESHDSElement(int idVTKelement);
42 void SetIdsVTKNode(const TColStd_DataMapOfIntegerInteger& mapVTK);
43 void SetIdsSMESHDSNode(const TColStd_DataMapOfIntegerInteger& mapSMESHDS);
45 void SetIdsVTKElement(const TColStd_DataMapOfIntegerInteger& mapVTK);
46 void SetIdsSMESHDSElement(const TColStd_DataMapOfIntegerInteger& mapSMESHDS);
48 virtual void DeepCopy (vtkDataObject *src);
49 void CopyMaps(SMESH_Grid *src);
52 SMESH_Grid() : vtkUnstructuredGrid() {};
54 TColStd_DataMapOfIntegerInteger myMapNodeVTKtoSMDS;
55 TColStd_DataMapOfIntegerInteger myMapNodeSMDStoVTK;
57 TColStd_DataMapOfIntegerInteger myMapElementVTKtoSMDS;
58 TColStd_DataMapOfIntegerInteger myMapElementSMDStoVTK;