VTK: IO/XML/vtkXMLUnstructuredGridWriter.h Source File

| VTK 9.3.1

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
30 #ifndef vtkXMLUnstructuredGridWriter_h
31 #define vtkXMLUnstructuredGridWriter_h
32
33 #include "vtkIOXMLModule.h" // For export macro
34 #include "vtkXMLUnstructuredDataWriter.h"
35
36 VTK_ABI_NAMESPACE_BEGIN
37 class vtkUnstructuredGridBase;
38
39 class VTKIOXML_EXPORT vtkXMLUnstructuredGridWriter : public vtkXMLUnstructuredDataWriter
40 {
41 public:
42 vtkTypeMacro(vtkXMLUnstructuredGridWriter, vtkXMLUnstructuredDataWriter);
43 void PrintSelf(ostream& os, vtkIndent indent) override;
44 static vtkXMLUnstructuredGridWriter* New();
45
49 vtkUnstructuredGridBase* GetInput();
50
54 const char* GetDefaultFileExtension() override;
55
56 protected:
57 vtkXMLUnstructuredGridWriter();
58 ~vtkXMLUnstructuredGridWriter() override;
59
60 // see algorithm for more info
61 int FillInputPortInformation(int port, vtkInformation* info) override;
62
63 void AllocatePositionArrays() override;
64 void DeletePositionArrays() override;
65
66 const char* GetDataSetName() override;
67
68 void WriteInlinePieceAttributes() override;
69 void WriteInlinePiece(vtkIndent indent) override;
70
71 void WriteAppendedPieceAttributes(int index) override;
72 void WriteAppendedPiece(int index, vtkIndent indent) override;
73 void WriteAppendedPieceData(int index) override;
74
75 vtkIdType GetNumberOfInputCells() override;
76 void CalculateSuperclassFraction(float* fractions);
77
78 // Positions of attributes for each piece.
79 vtkTypeInt64* NumberOfCellsPositions;
80 OffsetsManagerArray* CellsOM; // one per piece
81
82 private:
83 vtkXMLUnstructuredGridWriter(const vtkXMLUnstructuredGridWriter&) = delete;
84 void operator=(const vtkXMLUnstructuredGridWriter&) = delete;
85 };
86
87 VTK_ABI_NAMESPACE_END
88 #endif
OffsetsManagerArray
Definition: vtkXMLOffsetsManager.h:144
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkUnstructuredGridBase
dataset represents arbitrary combinations of all possible cell types.
Definition: vtkUnstructuredGridBase.h:27
vtkXMLUnstructuredDataWriter
Superclass for VTK XML unstructured data writers.
Definition: vtkXMLUnstructuredDataWriter.h:28
vtkXMLUnstructuredGridWriter
Write VTK XML UnstructuredGrid files.
Definition: vtkXMLUnstructuredGridWriter.h:40
vtkXMLUnstructuredGridWriter::CellsOM
OffsetsManagerArray * CellsOM
Definition: vtkXMLUnstructuredGridWriter.h:80
vtkXMLUnstructuredGridWriter::GetDefaultFileExtension
const char * GetDefaultFileExtension() override
Get the default file extension for files written by this writer.
vtkXMLUnstructuredGridWriter::WriteInlinePieceAttributes
void WriteInlinePieceAttributes() override
vtkXMLUnstructuredGridWriter::~vtkXMLUnstructuredGridWriter
~vtkXMLUnstructuredGridWriter() override
vtkXMLUnstructuredGridWriter::CalculateSuperclassFraction
void CalculateSuperclassFraction(float *fractions)
vtkXMLUnstructuredGridWriter::GetInput
vtkUnstructuredGridBase * GetInput()
Get/Set the writer's input.
vtkXMLUnstructuredGridWriter::WriteAppendedPiece
void WriteAppendedPiece(int index, vtkIndent indent) override
vtkXMLUnstructuredGridWriter::WriteInlinePiece
void WriteInlinePiece(vtkIndent indent) override
vtkXMLUnstructuredGridWriter::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkXMLUnstructuredGridWriter::New
static vtkXMLUnstructuredGridWriter * New()
vtkXMLUnstructuredGridWriter::WriteAppendedPieceAttributes
void WriteAppendedPieceAttributes(int index) override
vtkXMLUnstructuredGridWriter::GetNumberOfInputCells
vtkIdType GetNumberOfInputCells() override
vtkXMLUnstructuredGridWriter::GetDataSetName
const char * GetDataSetName() override
vtkXMLUnstructuredGridWriter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkXMLUnstructuredGridWriter::WriteAppendedPieceData
void WriteAppendedPieceData(int index) override
vtkXMLUnstructuredGridWriter::vtkXMLUnstructuredGridWriter
vtkXMLUnstructuredGridWriter()
vtkXMLUnstructuredGridWriter::NumberOfCellsPositions
vtkTypeInt64 * NumberOfCellsPositions
Definition: vtkXMLUnstructuredGridWriter.h:79
vtkXMLUnstructuredGridWriter::DeletePositionArrays
void DeletePositionArrays() override
vtkXMLUnstructuredGridWriter::AllocatePositionArrays
void AllocatePositionArrays() override
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkX3D::index
@ index
Definition: vtkX3D.h:246
vtkIdType
int vtkIdType
Definition: vtkType.h:315
vtkXMLUnstructuredDataWriter.h