VTK  9.2.5
vtkXMLUnstructuredGridWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkXMLUnstructuredGridWriter.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
122 #ifndef vtkXMLUnstructuredGridWriter_h
123 #define vtkXMLUnstructuredGridWriter_h
124 
125 #include "vtkIOXMLModule.h" // For export macro
127 
129 
131 {
132 public:
134  void PrintSelf(ostream& os, vtkIndent indent) override;
136 
141 
145  const char* GetDefaultFileExtension() override;
146 
147 protected:
150 
151  // see algorithm for more info
153 
154  void AllocatePositionArrays() override;
155  void DeletePositionArrays() override;
156 
157  const char* GetDataSetName() override;
158 
159  void WriteInlinePieceAttributes() override;
160  void WriteInlinePiece(vtkIndent indent) override;
161 
163  void WriteAppendedPiece(int index, vtkIndent indent) override;
164  void WriteAppendedPieceData(int index) override;
165 
167  void CalculateSuperclassFraction(float* fractions);
168 
169  // Positions of attributes for each piece.
170  vtkTypeInt64* NumberOfCellsPositions;
171  OffsetsManagerArray* CellsOM; // one per piece
172 
173 private:
175  void operator=(const vtkXMLUnstructuredGridWriter&) = delete;
176 };
177 
178 #endif
a simple class to control print indentation
Definition: vtkIndent.h:119
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:382
@ port
Definition: vtkX3D.h:453
@ index
Definition: vtkX3D.h:252
int vtkIdType
Definition: vtkType.h:332