vtkCGNSWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: Visualization Toolkit
4 Module: vtkCGNSWriter.h
5 
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*----------------------------------------------------------------------------
16 Copyright (c) Maritime Research Institute Netherlands (MARIN)
17 See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
18 ----------------------------------------------------------------------------*/
19 
32 #ifndef vtkCGNSWriter_h
33 #define vtkCGNSWriter_h
34 
35 #include "vtkPVVTKExtensionsCGNSWriterModule.h" // for export macro
36 #include "vtkWriter.h"
37 
39 {
40 public:
41  static vtkCGNSWriter* New();
42  vtkTypeMacro(vtkCGNSWriter, vtkWriter);
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
52  vtkSetStringMacro(FileName);
53  vtkGetStringMacro(FileName);
54  vtkBooleanMacro(UseHDF5, bool);
55  void SetUseHDF5(bool);
56 
57 protected:
58  vtkCGNSWriter();
59  ~vtkCGNSWriter() override;
60 
61  char* FileName;
63  bool UseHDF5; //
64 
65  int ProcessRequest(vtkInformation* request, vtkInformationVector** inputVector,
66  vtkInformationVector* outputVector) override;
67 
68  int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
69  vtkInformationVector* outputVector);
70 
71  virtual int RequestUpdateExtent(vtkInformation* request, vtkInformationVector** inputVector,
72  vtkInformationVector* outputVector);
73 
74  int FillInputPortInformation(int port, vtkInformation* info) override;
75 
76  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
77  vtkInformationVector* outputVector) override;
78 
80  void WriteData() override; // pure virtual override from vtkWriter
81 
82 private:
83  vtkCGNSWriter(const vtkCGNSWriter&) = delete;
84  void operator=(const vtkCGNSWriter&) = delete;
85 
86  class vtkPrivate;
87  friend class vtkPrivate;
88 };
89 
90 #endif // vtkCGNSWriter_h
#define VTKPVVTKEXTENSIONSCGNSWRITER_EXPORT
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Writes CGNS files.
Definition: vtkCGNSWriter.h:38
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkDataObject * OriginalInput
Definition: vtkCGNSWriter.h:62
bool WasWritingSuccessful
Definition: vtkCGNSWriter.h:79
static vtkAlgorithm * New()
virtual void WriteData()=0
void operator=(const vtkObjectBase &)
void PrintSelf(ostream &os, vtkIndent indent)