VTK  9.2.6
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 =========================================================================*/
33 #ifndef vtkXMLUnstructuredGridWriter_h
34 #define vtkXMLUnstructuredGridWriter_h
35 
36 #include "vtkIOXMLModule.h" // For export macro
38 
40 
42 {
43 public:
45  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
52 
56  const char* GetDefaultFileExtension() override;
57 
58 protected:
60  ~vtkXMLUnstructuredGridWriter() override;
61 
62  // see algorithm for more info
64 
65  void AllocatePositionArrays() override;
66  void DeletePositionArrays() override;
67 
68  const char* GetDataSetName() override;
69 
70  void WriteInlinePieceAttributes() override;
71  void WriteInlinePiece(vtkIndent indent) override;
72 
73  void WriteAppendedPieceAttributes(int index) override;
74  void WriteAppendedPiece(int index, vtkIndent indent) override;
75  void WriteAppendedPieceData(int index) override;
76 
78  void CalculateSuperclassFraction(float* fractions);
79 
80  // Positions of attributes for each piece.
81  vtkTypeInt64* NumberOfCellsPositions;
82  OffsetsManagerArray* CellsOM; // one per piece
83 
84 private:
86  void operator=(const vtkXMLUnstructuredGridWriter&) = delete;
87 };
88 
89 #endif
virtual void WriteInlinePieceAttributes()
virtual vtkIdType GetNumberOfInputCells()=0
vtkDataObject * GetInput()
Assign a data object as input.
Definition: vtkXMLWriter.h:79
Store vtkAlgorithm input/output information.
Superclass for VTK XML unstructured data writers.
int vtkIdType
Definition: vtkType.h:332
virtual void WriteAppendedPieceData(int index)
virtual void WriteAppendedPiece(int index, vtkIndent indent)
virtual void DeletePositionArrays()
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual void AllocatePositionArrays()
const char * GetDataSetName() override=0
virtual void WriteAppendedPieceAttributes(int index)
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Write VTK XML UnstructuredGrid files.
virtual const char * GetDefaultFileExtension()=0
Get the default file extension for files written by this writer.
static vtkAlgorithm * New()
virtual void WriteInlinePiece(vtkIndent indent)
dataset represents arbitrary combinations of all possible cell types.