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