VTK  9.3.1
vtkXMLStructuredGridWriter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
20 #ifndef vtkXMLStructuredGridWriter_h
21 #define vtkXMLStructuredGridWriter_h
22 
23 #include "vtkIOXMLModule.h" // For export macro
25 
26 VTK_ABI_NAMESPACE_BEGIN
27 class vtkStructuredGrid;
28 
30 {
31 public:
34  void PrintSelf(ostream& os, vtkIndent indent) override;
35 
40 
44  const char* GetDefaultFileExtension() override;
45 
46 protected:
48  ~vtkXMLStructuredGridWriter() override;
49 
50  // see algorithm for more info
52 
53  void WriteAppendedPiece(int index, vtkIndent indent) override;
54  void WriteAppendedPieceData(int index) override;
55  void WriteInlinePiece(vtkIndent indent) override;
56  void GetInputExtent(int* extent) override;
57  const char* GetDataSetName() override;
58  void CalculateSuperclassFraction(float* fractions);
59 
60  // The position of the appended data offset attribute for the points
61  // array.
62  OffsetsManagerGroup* PointsOM; // one per piece
63 
64  void AllocatePositionArrays() override;
65  void DeletePositionArrays() override;
66 
67 private:
69  void operator=(const vtkXMLStructuredGridWriter&) = delete;
70 };
71 
72 VTK_ABI_NAMESPACE_END
73 #endif
virtual const char * GetDataSetName()=0
vtkDataObject * GetInput()
Assign a data object as input.
Definition: vtkXMLWriter.h:68
Store vtkAlgorithm input/output information.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void GetInputExtent(int *extent)=0
Superclass for VTK XML structured data writers.
virtual void WriteAppendedPiece(int index, vtkIndent indent)
virtual void DeletePositionArrays()
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
virtual void WriteAppendedPieceData(int index)
topologically regular array of data
virtual void AllocatePositionArrays()
virtual const char * GetDefaultFileExtension()=0
Get the default file extension for files written by this writer.
static vtkAlgorithm * New()
virtual void WriteInlinePiece(vtkIndent indent)
Write VTK XML StructuredGrid files.