VTK  9.3.0
vtkXMLPolyDataWriter.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
24#ifndef vtkXMLPolyDataWriter_h
25#define vtkXMLPolyDataWriter_h
26
27#include "vtkIOXMLModule.h" // For export macro
29
30VTK_ABI_NAMESPACE_BEGIN
31class vtkPolyData;
32
34{
35public:
37 void PrintSelf(ostream& os, vtkIndent indent) override;
39
44
48 const char* GetDefaultFileExtension() override;
49
50protected:
53
54 // see algorithm for more info
55 int FillInputPortInformation(int port, vtkInformation* info) override;
56
57 const char* GetDataSetName() override;
58
59 void AllocatePositionArrays() override;
60 void DeletePositionArrays() override;
61
63 void WriteInlinePiece(vtkIndent indent) override;
64
65 void WriteAppendedPieceAttributes(int index) override;
66 void WriteAppendedPiece(int index, vtkIndent indent) override;
67 void WriteAppendedPieceData(int index) override;
68
70 void CalculateSuperclassFraction(float* fractions);
71
72 // Positions of attributes for each piece.
73 unsigned long* NumberOfVertsPositions;
74 unsigned long* NumberOfLinesPositions;
76 unsigned long* NumberOfPolysPositions;
77
82
83private:
85 void operator=(const vtkXMLPolyDataWriter&) = delete;
86};
87
88VTK_ABI_NAMESPACE_END
89#endif
a simple class to control print indentation
Definition vtkIndent.h:29
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition vtkPolyData.h:80
Write VTK XML PolyData files.
OffsetsManagerArray * VertsOM
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
unsigned long * NumberOfVertsPositions
vtkPolyData * GetInput()
Get/Set the writer's input.
void WriteInlinePiece(vtkIndent indent) override
void DeletePositionArrays() override
const char * GetDefaultFileExtension() override
Get the default file extension for files written by this writer.
~vtkXMLPolyDataWriter() override
const char * GetDataSetName() override
static vtkXMLPolyDataWriter * New()
OffsetsManagerArray * StripsOM
void CalculateSuperclassFraction(float *fractions)
void WriteAppendedPieceData(int index) override
void WriteInlinePieceAttributes() override
unsigned long * NumberOfPolysPositions
vtkIdType GetNumberOfInputCells() override
void WriteAppendedPiece(int index, vtkIndent indent) override
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
OffsetsManagerArray * PolysOM
void WriteAppendedPieceAttributes(int index) override
unsigned long * NumberOfStripsPositions
OffsetsManagerArray * LinesOM
unsigned long * NumberOfLinesPositions
void AllocatePositionArrays() override
Superclass for VTK XML unstructured data writers.
int vtkIdType
Definition vtkType.h:315