VMTK
vtkvmtkXdaWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: VMTK
4 Module: $RCSfile: vtkvmtkXdaWriter.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 =========================================================================*/
29 #ifndef __vtkvmtkXdaWriter_h
30 #define __vtkvmtkXdaWriter_h
31 
32 #include "vtkvmtkWin32Header.h"
33 #include "vtkUnstructuredGridWriter.h"
34 
35 class vtkCell;
36 class vtkIdList;
37 
38 class VTK_VMTK_IO_EXPORT vtkvmtkXdaWriter : public vtkUnstructuredGridWriter
39 {
40 public:
41  static vtkvmtkXdaWriter *New();
42  vtkTypeMacro(vtkvmtkXdaWriter,vtkUnstructuredGridWriter);
43  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
44 
45  vtkSetStringMacro(BoundaryDataArrayName);
46  vtkGetStringMacro(BoundaryDataArrayName);
47 
48 protected:
51 
52  void WriteData() VTK_OVERRIDE;
53 
54  static void GetLibmeshConnectivity(int cellType, vtkIdList* libmeshConnectivity);
55  static void GetLibmeshFaceOrder(int cellType, vtkIdList* libmeshFaceOrder);
56 
57  char* BoundaryDataArrayName;
58 
59 private:
60  vtkvmtkXdaWriter(const vtkvmtkXdaWriter&); // Not implemented.
61  void operator=(const vtkvmtkXdaWriter&); // Not implemented.
62 };
63 
64 #endif
writes libmesh Xda files