VMTK
vtkvmtkFDNEUTWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: VMTK
4 Module: $RCSfile: vtkvmtkFDNEUTWriter.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 =========================================================================*/
31 #ifndef __vtkvmtkFDNEUTWriter_h
32 #define __vtkvmtkFDNEUTWriter_h
33 
34 #include "vtkvmtkWin32Header.h"
35 #include "vtkUnstructuredGridWriter.h"
36 
37 class VTK_VMTK_IO_EXPORT vtkvmtkFDNEUTWriter : public vtkUnstructuredGridWriter
38 {
39 public:
40  static vtkvmtkFDNEUTWriter *New();
41  vtkTypeMacro(vtkvmtkFDNEUTWriter,vtkUnstructuredGridWriter);
42  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
43 
44  //BTX
45  enum
46  {
47  EDGE = 0,
52  TETRAHEDRON
53  };
54  //ETX
55 
56 protected:
59 
60  void WriteData() VTK_OVERRIDE;
61 
62  static void ZeroToOneOffset(vtkIdType npts, vtkIdType* pts)
63  { for (int i=0; i<npts; i++) ++pts[i]; }
64 
65 private:
66  vtkvmtkFDNEUTWriter(const vtkvmtkFDNEUTWriter&); // Not implemented.
67  void operator=(const vtkvmtkFDNEUTWriter&); // Not implemented.
68 };
69 
70 #endif
writes FDNEUT Fidap files