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) override;
45 
50 
54  const char* GetDefaultFileExtension() override;
55 
56 protected:
58  ~vtkXMLUnstructuredGridWriter() override;
59 
60  // see algorithm for more info
62 
63  void AllocatePositionArrays() override;
64  void DeletePositionArrays() override;
65 
66  const char* GetDataSetName() override;
67 
68  void WriteInlinePieceAttributes() override;
69  void WriteInlinePiece(vtkIndent indent) override;
70 
71  void WriteAppendedPieceAttributes(int index) override;
72  void WriteAppendedPiece(int index, vtkIndent indent) override;
73  void WriteAppendedPieceData(int index) override;
74 
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:
84  void operator=(const vtkXMLUnstructuredGridWriter&) = delete;
85 };
86 
87 #endif
vtkXMLUnstructuredDataWriter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkXMLWriter::GetDefaultFileExtension
virtual const char * GetDefaultFileExtension()=0
Get the default file extension for files written by this writer.
vtkXMLUnstructuredDataWriter::WriteAppendedPiece
virtual void WriteAppendedPiece(int index, vtkIndent indent)
vtkIdType
int vtkIdType
Definition: vtkType.h:347
vtkAlgorithm::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
vtkXMLUnstructuredDataWriter::WriteInlinePiece
virtual void WriteInlinePiece(vtkIndent indent)
vtkXMLUnstructuredDataWriter::DeletePositionArrays
virtual void DeletePositionArrays()
vtkUnstructuredGridBase
dataset represents arbitrary combinations of all possible cell types. May be mapped onto a non-standa...
Definition: vtkUnstructuredGridBase.h:34
vtkXMLUnstructuredGridWriter
Write VTK XML UnstructuredGrid files.
Definition: vtkXMLUnstructuredGridWriter.h:39
vtkXMLUnstructuredGridWriter::CellsOM
OffsetsManagerArray * CellsOM
Definition: vtkXMLUnstructuredGridWriter.h:80
vtkXMLUnstructuredDataWriter::WriteAppendedPieceAttributes
virtual void WriteAppendedPieceAttributes(int index)
vtkX3D::port
Definition: vtkX3D.h:447
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkXMLUnstructuredDataWriter::WriteAppendedPieceData
virtual void WriteAppendedPieceData(int index)
vtkXMLUnstructuredDataWriter
Superclass for VTK XML unstructured data writers.
Definition: vtkXMLUnstructuredDataWriter.h:36
vtkXMLWriter::GetInput
vtkDataObject * GetInput()
Definition: vtkXMLWriter.h:232
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
vtkX3D::info
Definition: vtkX3D.h:376
vtkAlgorithm::New
static vtkAlgorithm * New()
OffsetsManagerArray
Definition: vtkXMLOffsetsManager.h:158
vtkXMLUnstructuredDataWriter::GetNumberOfInputCells
virtual vtkIdType GetNumberOfInputCells()=0
vtkXMLUnstructuredDataWriter::WriteInlinePieceAttributes
virtual void WriteInlinePieceAttributes()
vtkXMLUnstructuredDataWriter::GetDataSetName
const char * GetDataSetName() override=0
vtkXMLUnstructuredDataWriter::AllocatePositionArrays
virtual void AllocatePositionArrays()
vtkXMLUnstructuredDataWriter.h
vtkX3D::index
Definition: vtkX3D.h:246
vtkXMLUnstructuredGridWriter::NumberOfCellsPositions
vtkTypeInt64 * NumberOfCellsPositions
Definition: vtkXMLUnstructuredGridWriter.h:79