vtkPCGNSWriter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
3 // SPDX-FileCopyrightText: Copyright (c) Maritime Research Institute Netherlands (MARIN)
4 // SPDX-License-Identifier: BSD-3-Clause
5 
29 #ifndef vtkPCGNSWriter_h
30 #define vtkPCGNSWriter_h
31 
32 #include "vtkCGNSWriter.h"
33 #include "vtkPVVTKExtensionsIOParallelCGNSWriterModule.h" // for export macro
34 #include "vtkSmartPointer.h" // for vtkSmartPointer
35 
37 
39 {
40 public:
41  static vtkPCGNSWriter* New();
42  vtkTypeMacro(vtkPCGNSWriter, vtkCGNSWriter);
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
46 
49  virtual void SetController(vtkMultiProcessController*);
50  virtual vtkMultiProcessController* GetController();
52 
53 protected:
55  ~vtkPCGNSWriter() override = default;
56 
57  int ProcessRequest(vtkInformation* request, vtkInformationVector** inputVector,
58  vtkInformationVector* outputVector) override;
59 
60  int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
61  vtkInformationVector* outputVector) override;
62 
63  int RequestUpdateExtent(vtkInformation* request, vtkInformationVector** inputVector,
64  vtkInformationVector* outputVector) override;
65 
66  void WriteData() override;
67 
68  int NumberOfPieces = 0;
69  int RequestPiece = -1;
70 
72 
73 private:
74  vtkPCGNSWriter(const vtkPCGNSWriter&) = delete;
75  void operator=(const vtkPCGNSWriter&) = delete;
76 };
77 
78 #endif // vtkPCGNSWriter_h
void PrintSelf(ostream &os, vtkIndent indent) override
static vtkCGNSWriter * New()
Writes CGNS file in parallel using serial I/O.
Writes CGNS files.
Definition: vtkCGNSWriter.h:27
int ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTKPVVTKEXTENSIONSIOPARALLELCGNSWRITER_EXPORT
vtkSmartPointer< vtkMultiProcessController > Controller
virtual int RequestUpdateExtent(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void WriteData() override