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 =========================================================================*/
30 #ifndef vtkXMLUnstructuredGridWriter_h
31 #define vtkXMLUnstructuredGridWriter_h
32 
33 #include "vtkIOXMLModule.h" // For export macro
35 
36 
38 
40 {
41 public:
43  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
45 
50 
54  const char* GetDefaultFileExtension() VTK_OVERRIDE;
55 
56 protected:
58  ~vtkXMLUnstructuredGridWriter() VTK_OVERRIDE;
59 
60  // see algorithm for more info
61  int FillInputPortInformation(int port, vtkInformation* info) VTK_OVERRIDE;
62 
63  void AllocatePositionArrays() VTK_OVERRIDE;
64  void DeletePositionArrays() VTK_OVERRIDE;
65 
66  const char* GetDataSetName() VTK_OVERRIDE;
67 
68  void WriteInlinePieceAttributes() VTK_OVERRIDE;
69  void WriteInlinePiece(vtkIndent indent) VTK_OVERRIDE;
70 
71  void WriteAppendedPieceAttributes(int index) VTK_OVERRIDE;
72  void WriteAppendedPiece(int index, vtkIndent indent) VTK_OVERRIDE;
73  void WriteAppendedPieceData(int index) VTK_OVERRIDE;
74 
75  vtkIdType GetNumberOfInputCells() VTK_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&) VTK_DELETE_FUNCTION;
84  void operator=(const vtkXMLUnstructuredGridWriter&) VTK_DELETE_FUNCTION;
85 };
86 
87 #endif
vtkDataObject * GetInput()
Assign a data object as input.
Definition: vtkXMLWriter.h:218
Store vtkAlgorithm input/output information.
Superclass for VTK XML unstructured data writers.
int vtkIdType
Definition: vtkType.h:345
a simple class to control print indentation
Definition: vtkIndent.h:33
virtual const char * GetDefaultFileExtension()=0
Get the default file extension for files written by this writer.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Write VTK XML UnstructuredGrid files.
static vtkAlgorithm * New()
dataset represents arbitrary combinations of all possible cell types.