VMTK
vtkvmtkDolfinWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: VMTK
4 Module: $RCSfile: vtkvmtkDolfinWriter.h,v $
5 Language: C++
6 
7  Copyright (c) Luca Antiga, David Steinman. All rights reserved.
8  See LICENSE file for details.
9 
10  Portions of this code are covered under the VTK copyright.
11  See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm
12  for details.
13 
14  This software is distributed WITHOUT ANY WARRANTY; without even
15  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16  PURPOSE. See the above copyright notices for more information.
17 
18 =========================================================================*/
36 #ifndef __vtkvmtkDolfinWriter_h
37 #define __vtkvmtkDolfinWriter_h
38 
39 #include "vtkvmtkWin32Header.h"
40 #include "vtkUnstructuredGridWriter.h"
41 
42 class vtkCell;
43 class vtkIdList;
44 
45 class VTK_VMTK_IO_EXPORT vtkvmtkDolfinWriter : public vtkUnstructuredGridWriter
46 {
47 public:
48  static vtkvmtkDolfinWriter *New();
49  vtkTypeMacro(vtkvmtkDolfinWriter,vtkUnstructuredGridWriter);
50  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
51 
52  vtkSetStringMacro(BoundaryDataArrayName);
53  vtkGetStringMacro(BoundaryDataArrayName);
54 
55  vtkSetMacro(BoundaryDataIdOffset,int);
56  vtkGetMacro(BoundaryDataIdOffset,int);
57 
58  vtkSetMacro(StoreCellMarkers,int);
59  vtkGetMacro(StoreCellMarkers,int);
60 
61 protected:
64 
65  void WriteData() VTK_OVERRIDE;
66 
67  char* BoundaryDataArrayName;
68  int BoundaryDataIdOffset;
69  int StoreCellMarkers;
70 
71 private:
72  vtkvmtkDolfinWriter(const vtkvmtkDolfinWriter&); // Not implemented.
73  void operator=(const vtkvmtkDolfinWriter&); // Not implemented.
74 };
75 
76 #endif
write mesh data in Dolfin file formats.