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 
38 class VTKPVVTKEXTENSIONSIOPARALLELCGNSWRITER_EXPORT vtkPCGNSWriter : public vtkCGNSWriter
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
vtkCGNSWriter.h
vtkInformationVector
vtkSmartPointer< vtkMultiProcessController >
vtkCGNSWriter
Writes CGNS files.
Definition: vtkCGNSWriter.h:27
vtkCGNSWriter::WriteData
void WriteData() override
vtkCGNSWriter::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkMultiProcessController
vtkIndent
vtkSmartPointer.h
vtkInformation
vtkCGNSWriter::New
static vtkCGNSWriter * New()
vtkPCGNSWriter
Writes CGNS file in parallel using serial I/O.
Definition: vtkPCGNSWriter.h:38
vtkCGNSWriter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
vtkPCGNSWriter::Controller
vtkSmartPointer< vtkMultiProcessController > Controller
Definition: vtkPCGNSWriter.h:71
vtkCGNSWriter::ProcessRequest
int ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
vtkCGNSWriter::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)