VTK  9.3.0
vtkXMLUnstructuredGridWriter.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
21#ifndef vtkXMLUnstructuredGridWriter_h
22#define vtkXMLUnstructuredGridWriter_h
23
24#include "vtkIOXMLModule.h" // For export macro
26
27VTK_ABI_NAMESPACE_BEGIN
29
31{
32public:
34 void PrintSelf(ostream& os, vtkIndent indent) override;
36
41
45 const char* GetDefaultFileExtension() override;
46
47protected:
50
51 // see algorithm for more info
52 int FillInputPortInformation(int port, vtkInformation* info) override;
53
54 void AllocatePositionArrays() override;
55 void DeletePositionArrays() override;
56
57 const char* GetDataSetName() override;
58
60 void WriteInlinePiece(vtkIndent indent) override;
61
62 void WriteAppendedPieceAttributes(int index) override;
63 void WriteAppendedPiece(int index, vtkIndent indent) override;
64 void WriteAppendedPieceData(int index) override;
65
67 void CalculateSuperclassFraction(float* fractions);
68
69 // Positions of attributes for each piece.
71 OffsetsManagerArray* CellsOM; // one per piece
72
73private:
75 void operator=(const vtkXMLUnstructuredGridWriter&) = delete;
76};
77
78VTK_ABI_NAMESPACE_END
79#endif
a simple class to control print indentation
Definition vtkIndent.h:29
Store vtkAlgorithm input/output information.
dataset represents arbitrary combinations of all possible cell types.
Superclass for VTK XML unstructured data writers.
Write VTK XML UnstructuredGrid files.
const char * GetDefaultFileExtension() override
Get the default file extension for files written by this writer.
const char * GetDataSetName() override
void WriteInlinePieceAttributes() override
~vtkXMLUnstructuredGridWriter() override
void CalculateSuperclassFraction(float *fractions)
void WriteAppendedPiece(int index, vtkIndent indent) override
void WriteInlinePiece(vtkIndent indent) override
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void WriteAppendedPieceAttributes(int index) override
vtkIdType GetNumberOfInputCells() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkUnstructuredGridBase * GetInput()
Get/Set the writer's input.
static vtkXMLUnstructuredGridWriter * New()
void WriteAppendedPieceData(int index) override
void DeletePositionArrays() override
void AllocatePositionArrays() override
int vtkIdType
Definition vtkType.h:315