]> SALOME platform Git repositories - modules/smesh.git/blob - src/SMDS/SMDS_UnstructuredGrid.cxx
Salome HOME
PR: SMDS refactoring in progress
[modules/smesh.git] / src / SMDS / SMDS_UnstructuredGrid.cxx
1
2
3 #include "SMDS_UnstructuredGrid.hxx"
4 #include "utilities.h"
5
6 using namespace std;
7
8 //vtkCellLinks::Link* SMDS_CellLinks::AdjustSize(vtkIdType sz)
9 //{
10 //  vtkIdType i;
11 //  vtkCellLinks::Link *newArray;
12 //  vtkIdType newSize = sz;
13 //  vtkCellLinks::Link linkInit = {0,NULL};
14 //
15 //  newArray = new vtkCellLinks::Link[newSize];
16 //
17 //  for (i=0; i<sz && i<this->Size; i++)
18 //    {
19 //    newArray[i] = this->Array[i];
20 //    }
21 //
22 //  for (i=this->Size; i < newSize ; i++)
23 //    {
24 //    newArray[i] = linkInit;
25 //    }
26 //
27 //  this->Size = newSize;
28 //  delete [] this->Array;
29 //  this->Array = newArray;
30 //
31 //  return this->Array;
32 //}
33 //
34 //SMDS_CellLinks* SMDS_CellLinks::New()
35 //{
36 //  return new SMDS_CellLinks();
37 //}
38 //
39 //SMDS_CellLinks::SMDS_CellLinks() : vtkCellLinks()
40 //{
41 //}
42 //
43 //SMDS_CellLinks::~SMDS_CellLinks()
44 //{
45 //}
46 //
47 //
48 ///*! initialize an SMDS_CellLinks instance instead of a vtkCellLinks instance
49 // *
50 // */
51 //void SMDS_UnstructuredGrid::BuildLinks()
52 //{
53 //  // Remove the old links if they are already built
54 //  if (this->Links)
55 //    {
56 //    this->Links->UnRegister(this);
57 //    }
58 //
59 //  this->Links = SMDS_CellLinks::New();
60 //  this->Links->Allocate(this->GetNumberOfPoints());
61 //  this->Links->Register(this);
62 //  this->Links->BuildLinks(this, this->Connectivity);
63 //  this->Links->Delete();
64 //}
65 //
66 //SMDS_CellLinks* SMDS_UnstructuredGrid::GetCellLinks()
67 //{
68 //  return static_cast<SMDS_CellLinks*>(this->Links);
69 //}
70
71 SMDS_UnstructuredGrid* SMDS_UnstructuredGrid::New()
72 {
73         MESSAGE("SMDS_UnstructuredGrid::New");
74   return new SMDS_UnstructuredGrid();
75 }
76
77 SMDS_UnstructuredGrid::SMDS_UnstructuredGrid() : vtkUnstructuredGrid()
78 {
79 }
80
81 SMDS_UnstructuredGrid::~SMDS_UnstructuredGrid()
82 {
83 }
84
85
86 unsigned long SMDS_UnstructuredGrid::GetMTime()
87 {
88         unsigned long mtime = vtkUnstructuredGrid::GetMTime();
89         MESSAGE("vtkUnstructuredGrid::GetMTime: " << mtime);
90         return mtime;
91 }
92
93 void SMDS_UnstructuredGrid::UpdateInformation()
94 {
95         MESSAGE("SMDS_UnstructuredGrid::UpdateInformation");
96         return vtkUnstructuredGrid::UpdateInformation();
97 }