VTK  9.1.0
vtkXMLPolyDataWriter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkXMLPolyDataWriter.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=========================================================================*/
139#ifndef vtkXMLPolyDataWriter_h
140#define vtkXMLPolyDataWriter_h
141
142#include "vtkIOXMLModule.h" // For export macro
144
145class vtkPolyData;
146
148{
149public:
151 void PrintSelf(ostream& os, vtkIndent indent) override;
153
158
162 const char* GetDefaultFileExtension() override;
163
164protected:
167
168 // see algorithm for more info
169 int FillInputPortInformation(int port, vtkInformation* info) override;
170
171 const char* GetDataSetName() override;
172
173 void AllocatePositionArrays() override;
174 void DeletePositionArrays() override;
175
177 void WriteInlinePiece(vtkIndent indent) override;
178
179 void WriteAppendedPieceAttributes(int index) override;
180 void WriteAppendedPiece(int index, vtkIndent indent) override;
181 void WriteAppendedPieceData(int index) override;
182
184 void CalculateSuperclassFraction(float* fractions);
185
186 // Positions of attributes for each piece.
191
196
197private:
199 void operator=(const vtkXMLPolyDataWriter&) = delete;
200};
201
202#endif
a simple class to control print indentation
Definition: vtkIndent.h:113
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:195
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:332