VTK  9.7.20261008
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
58
59#ifndef vtkXMLStructuredGridWriter_h
60#define vtkXMLStructuredGridWriter_h
61
62#include "vtkIOXMLModule.h" // For export macro
63#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
65
66VTK_ABI_NAMESPACE_BEGIN
68
70{
71public:
74 void PrintSelf(ostream& os, vtkIndent indent) override;
75
80
84 const char* GetDefaultFileExtension() override;
85
86protected:
89
90 // see algorithm for more info
91 int FillInputPortInformation(int port, vtkInformation* info) override;
92
93 void WriteAppendedPiece(int index, vtkIndent indent) override;
94 void WriteAppendedPieceData(int index) override;
95 void WriteInlinePiece(vtkIndent indent) override;
96 void GetInputExtent(int* extent) override;
97 const char* GetDataSetName() override;
98 void CalculateSuperclassFraction(float* fractions);
99
100 // The position of the appended data offset attribute for the points
101 // array.
102 OffsetsManagerGroup* PointsOM; // one per piece
103
104 void AllocatePositionArrays() override;
105 void DeletePositionArrays() override;
106
107private:
109 void operator=(const vtkXMLStructuredGridWriter&) = delete;
110};
111
112VTK_ABI_NAMESPACE_END
113#endif
a simple class to control print indentation
Definition vtkIndent.h:108
Store vtkAlgorithm input/output information.
topologically regular array of data
void AllocatePositionArrays() override
vtkStructuredGrid * GetInput()
Get/Set the writer's input.
void WriteInlinePiece(vtkIndent indent) override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void WriteAppendedPieceData(int index) override
const char * GetDefaultFileExtension() override
Get the default file extension for files written by this writer.
void GetInputExtent(int *extent) override
const char * GetDataSetName() override
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void WriteAppendedPiece(int index, vtkIndent indent) override
~vtkXMLStructuredGridWriter() override
void DeletePositionArrays() override
void CalculateSuperclassFraction(float *fractions)
static vtkXMLStructuredGridWriter * New()
#define VTK_MARSHALAUTO