1 // Copyright (C) 2010-2013 CEA/DEN, EDF R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #ifndef __vtkMedRegularGrid_h_
21 #define __vtkMedRegularGrid_h_
23 #include "vtkMedGrid.h"
25 #include "vtkMedSetGet.h"
31 class VTK_EXPORT vtkMedRegularGrid : public vtkMedGrid
34 static vtkMedRegularGrid* New();
35 vtkTypeMacro(vtkMedRegularGrid, vtkMedGrid)
36 void PrintSelf(ostream& os, vtkIndent indent);
39 // Container of the families in this mesh
40 vtkGetObjectVectorMacro(AxisCoordinate, vtkDataArray);
41 vtkSetAbstractObjectVectorMacro(AxisCoordinate, vtkDataArray);
44 // overloaded to set the number of coordinates arrays.
45 // Do not allocate each array.
46 virtual void SetDimension(med_int);
47 virtual int GetDimension();
50 // the size of each dimension of the grid.
51 // SetDimension has to have been called before
52 virtual void SetAxisSize(int axis, med_int size);
53 virtual med_int GetAxisSize(int dim);
56 // returns the number of points of this grid.
57 virtual med_int GetNumberOfPoints();
59 virtual void LoadCoordinates();
61 virtual double* GetCoordTuple(med_int index);
63 virtual int IsCoordinatesLoaded();
65 virtual vtkDataSet* CreateVTKDataSet(vtkMedFamilyOnEntityOnProfile*);
69 virtual ~vtkMedRegularGrid();
73 std::vector<med_int> AxisSize;
75 vtkObjectVector<vtkDataArray>* AxisCoordinate;
79 vtkMedRegularGrid(const vtkMedRegularGrid&); // Not implemented.
80 void operator=(const vtkMedRegularGrid&); // Not implemented.
84 #endif //__vtkMedRegularGrid_h_