VMTK
vtkvmtkFDNEUTReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: VMTK
4 Module: $RCSfile: vtkvmtkFDNEUTReader.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 =========================================================================*/
30 #ifndef __vtkvmtkFDNEUTReader_h
31 #define __vtkvmtkFDNEUTReader_h
32 
33 #include "vtkvmtkWin32Header.h"
34 #include "vtkUnstructuredGridReader.h"
35 
36 class VTK_VMTK_IO_EXPORT vtkvmtkFDNEUTReader : public vtkUnstructuredGridReader
37 {
38  public:
39  vtkTypeMacro(vtkvmtkFDNEUTReader,vtkUnstructuredGridReader);
40  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
41 
42  static vtkvmtkFDNEUTReader *New();
43 
44  vtkSetStringMacro(SingleCellDataEntityArrayName);
45  vtkGetStringMacro(SingleCellDataEntityArrayName);
46 
47  vtkSetMacro(GhostNodes,int);
48  vtkGetMacro(GhostNodes,int);
49  vtkBooleanMacro(GhostNodes,int);
50 
51  vtkSetMacro(VolumeElementsOnly,int);
52  vtkGetMacro(VolumeElementsOnly,int);
53  vtkBooleanMacro(VolumeElementsOnly,int);
54 
55  //BTX
56  enum
57  {
58  EDGE = 0,
63  TETRAHEDRON
64  };
65  //ETX
66 
67  protected:
70 
71  virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
72 
73  static void OneToZeroOffset(int npts, int* pts)
74  { for (int i=0; i<npts; i++) --pts[i]; }
75 
77 
80 
81  private:
82  vtkvmtkFDNEUTReader(const vtkvmtkFDNEUTReader&); // Not implemented.
83  void operator=(const vtkvmtkFDNEUTReader&); // Not implemented.
84 };
85 
86 #endif
static void OneToZeroOffset(int npts, int *pts)
Reads FDNEUT Fidap files.