VTK  9.3.20240418
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
90 #ifndef vtkXMLUnstructuredGridWriter_h
91 #define vtkXMLUnstructuredGridWriter_h
92 
93 #include "vtkIOXMLModule.h" // For export macro
95 
96 VTK_ABI_NAMESPACE_BEGIN
98 
100 {
101 public:
103  void PrintSelf(ostream& os, vtkIndent indent) override;
105 
110 
114  const char* GetDefaultFileExtension() override;
115 
116 protected:
119 
120  // see algorithm for more info
122 
123  void AllocatePositionArrays() override;
124  void DeletePositionArrays() override;
125 
126  const char* GetDataSetName() override;
127 
128  void WriteInlinePieceAttributes() override;
129  void WriteInlinePiece(vtkIndent indent) override;
130 
132  void WriteAppendedPiece(int index, vtkIndent indent) override;
133  void WriteAppendedPieceData(int index) override;
134 
136  void CalculateSuperclassFraction(float* fractions);
137 
138  // Positions of attributes for each piece.
139  vtkTypeInt64* NumberOfCellsPositions;
140  OffsetsManagerArray* CellsOM; // one per piece
141 
142 private:
144  void operator=(const vtkXMLUnstructuredGridWriter&) = delete;
145 };
146 
147 VTK_ABI_NAMESPACE_END
148 #endif
a simple class to control print indentation
Definition: vtkIndent.h:108
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.
void WriteInlinePieceAttributes() override
~vtkXMLUnstructuredGridWriter() override
void CalculateSuperclassFraction(float *fractions)
vtkUnstructuredGridBase * GetInput()
Get/Set the writer's input.
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.
static vtkXMLUnstructuredGridWriter * New()
void WriteAppendedPieceAttributes(int index) override
vtkIdType GetNumberOfInputCells() override
const char * GetDataSetName() 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
void DeletePositionArrays() override
void AllocatePositionArrays() override
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
@ index
Definition: vtkX3D.h:246
int vtkIdType
Definition: vtkType.h:315