VTK
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 
39 
41 
43 {
44 public:
46  void PrintSelf(ostream& os, vtkIndent indent);
48 
53 
57  const char* GetDefaultFileExtension();
58 
59 protected:
62 
63  // see algorithm for more info
65 
66  virtual void AllocatePositionArrays();
67  virtual void DeletePositionArrays();
68 
69  const char* GetDataSetName();
70 
73 
75  void WriteAppendedPiece(int index, vtkIndent indent);
77 
79  void CalculateSuperclassFraction(float* fractions);
80 
81  // Positions of attributes for each piece.
82  vtkTypeInt64* NumberOfCellsPositions;
83  OffsetsManagerArray *CellsOM; //one per piece
84 
85 private:
87  void operator=(const vtkXMLUnstructuredGridWriter&) VTK_DELETE_FUNCTION;
88 };
89 
90 #endif
a simple class to control print indentation
Definition: vtkIndent.h:40
Store vtkAlgorithm input/output information.
dataset represents arbitrary combinations of all possible cell types.
Superclass for VTK XML unstructured data writers.
Write VTK XML UnstructuredGrid files.
const char * GetDefaultFileExtension()
Get the default file extension for files written by this writer.
void CalculateSuperclassFraction(float *fractions)
void WriteAppendedPieceData(int index)
vtkUnstructuredGridBase * GetInput()
Get/Set the writer's input.
void WriteAppendedPieceAttributes(int index)
static vtkXMLUnstructuredGridWriter * New()
void WriteAppendedPiece(int index, vtkIndent indent)
virtual vtkIdType GetNumberOfInputCells()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void WriteInlinePiece(vtkIndent indent)
virtual void AllocatePositionArrays()
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
virtual void DeletePositionArrays()
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
@ index
Definition: vtkX3D.h:246
int vtkIdType
Definition: vtkType.h:287