VTK
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=========================================================================*/
36#ifndef vtkXMLPolyDataWriter_h
37#define vtkXMLPolyDataWriter_h
38
39#include "vtkIOXMLModule.h" // For export macro
41
42class vtkPolyData;
43
45{
46public:
48 void PrintSelf(ostream& os, vtkIndent indent);
50
55
60
61protected:
64
65 // see algorithm for more info
67
68 const char* GetDataSetName();
69
70 virtual void AllocatePositionArrays();
71 virtual void DeletePositionArrays();
72
75
79
81 void CalculateSuperclassFraction(float* fractions);
82
83 // Positions of attributes for each piece.
84 unsigned long* NumberOfVertsPositions;
85 unsigned long* NumberOfLinesPositions;
87 unsigned long* NumberOfPolysPositions;
88
93
94private:
95 vtkXMLPolyDataWriter(const vtkXMLPolyDataWriter&) VTK_DELETE_FUNCTION;
96 void operator=(const vtkXMLPolyDataWriter&) VTK_DELETE_FUNCTION;
97};
98
99#endif
a simple class to control print indentation
Definition: vtkIndent.h:40
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
Write VTK XML PolyData files.
OffsetsManagerArray * VertsOM
unsigned long * NumberOfVertsPositions
vtkPolyData * GetInput()
Get/Set the writer's input.
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
const char * GetDataSetName()
void WriteInlinePiece(vtkIndent indent)
static vtkXMLPolyDataWriter * New()
OffsetsManagerArray * StripsOM
void CalculateSuperclassFraction(float *fractions)
void WriteAppendedPiece(int index, vtkIndent indent)
unsigned long * NumberOfPolysPositions
virtual vtkIdType GetNumberOfInputCells()
virtual void AllocatePositionArrays()
OffsetsManagerArray * PolysOM
void WriteInlinePieceAttributes()
unsigned long * NumberOfStripsPositions
void WriteAppendedPieceData(int index)
const char * GetDefaultFileExtension()
Get the default file extension for files written by this writer.
OffsetsManagerArray * LinesOM
unsigned long * NumberOfLinesPositions
virtual void DeletePositionArrays()
void WriteAppendedPieceAttributes(int index)
Superclass for VTK XML unstructured data writers.
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
@ index
Definition: vtkX3D.h:246
int vtkIdType
Definition: vtkType.h:287