VMTK
Loading...
Searching...
No Matches
vtkvmtkDolfinWriter2.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: VMTK
4
5 Copyright (c) Luca Antiga, David Steinman. All rights reserved.
6 See LICENSE file for details.
7
8 Portions of this code are covered under the VTK copyright.
9 See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm
10 for details.
11
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
15
16 Note: this class was contributed by
17 Tangui Morvan
18 Kalkulo AS
19 Simula Research Laboratory
20=========================================================================*/
29
30#ifndef __vtkvmtkDolfinWriter2_h
31#define __vtkvmtkDolfinWriter2_h
32
33#include "vtkvmtkWin32Header.h"
34#include "vtkUnstructuredGridWriter.h"
35
36class vtkCell;
37class vtkIdList;
38
39class VTK_VMTK_CONTRIB_EXPORT vtkvmtkDolfinWriter2 : public vtkUnstructuredGridWriter
40{
41public:
43 vtkTypeMacro(vtkvmtkDolfinWriter2,vtkUnstructuredGridWriter);
44 void PrintSelf(std::ostream& os, vtkIndent indent) override;
45
47
55 vtkSetStringMacro(CellEntityIdsArrayName);
56 vtkGetStringMacro(CellEntityIdsArrayName);
58
60
64 vtkSetMacro(CellEntityIdsOffset,int);
65 vtkGetMacro(CellEntityIdsOffset,int);
67
68protected:
71
72 void WriteData() override;
73
74 static void GetDolfinConnectivity(int cellType, vtkIdList* dolfinConnectivity);
75 static void GetDolfinFaceOrder(int cellType, vtkIdList* dolfinFaceOrder);
76
78
81 static void GetDolfinCellConnectivity(vtkCell *cell, vtkIdList* dolfinConnectivity);
83
87 static void GetDolfinCellFaceOrder(vtkCell *cell, vtkIdList* dolfinFaceOrder);
88
91
92private:
93 vtkvmtkDolfinWriter2(const vtkvmtkDolfinWriter2&); // Not implemented.
94 void operator=(const vtkvmtkDolfinWriter2&); // Not implemented.
95};
96
97#endif
static void GetDolfinCellConnectivity(vtkCell *cell, vtkIdList *dolfinConnectivity)
static void GetDolfinConnectivity(int cellType, vtkIdList *dolfinConnectivity)
static void GetDolfinFaceOrder(int cellType, vtkIdList *dolfinFaceOrder)
static void GetDolfinCellFaceOrder(vtkCell *cell, vtkIdList *dolfinFaceOrder)
void PrintSelf(std::ostream &os, vtkIndent indent) override
static vtkvmtkDolfinWriter2 * New()