VTK  9.4.20250102
vtkXMLRectilinearGridWriter.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
39#ifndef vtkXMLRectilinearGridWriter_h
40#define vtkXMLRectilinearGridWriter_h
41
42#include "vtkIOXMLModule.h" // For export macro
44
45VTK_ABI_NAMESPACE_BEGIN
47
49{
50public:
53 void PrintSelf(ostream& os, vtkIndent indent) override;
54
59
63 const char* GetDefaultFileExtension() override;
64
65protected:
68
69 // see algorithm for more info
70 int FillInputPortInformation(int port, vtkInformation* info) override;
71
73 void WriteAppendedPiece(int index, vtkIndent indent) override;
74 void WriteAppendedPieceData(int index) override;
75 void WriteInlinePiece(vtkIndent indent) override;
76 void GetInputExtent(int* extent) override;
77 const char* GetDataSetName() override;
78 void CalculateSuperclassFraction(float* fractions);
79
80 // Coordinate array appended data positions.
82
83 void AllocatePositionArrays() override;
84 void DeletePositionArrays() override;
85
86private:
88 void operator=(const vtkXMLRectilinearGridWriter&) = delete;
89};
90
91VTK_ABI_NAMESPACE_END
92#endif
a simple class to control print indentation
Definition vtkIndent.h:108
Store vtkAlgorithm input/output information.
a dataset that is topologically regular with variable spacing in the three coordinate directions
Write VTK XML RectilinearGrid files.
void GetInputExtent(int *extent) override
void WriteAppendedPiece(int index, vtkIndent indent) override
static vtkXMLRectilinearGridWriter * New()
void WriteInlinePiece(vtkIndent indent) override
int WriteAppendedMode(vtkIndent indent)
void CalculateSuperclassFraction(float *fractions)
~vtkXMLRectilinearGridWriter() override
const char * GetDefaultFileExtension() override
Get the default file extension for files written by this writer.
const char * GetDataSetName() override
void WriteAppendedPieceData(int index) override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void AllocatePositionArrays() override
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void DeletePositionArrays() override
vtkRectilinearGrid * GetInput()
Get/Set the writer's input.
Superclass for VTK XML structured data writers.