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) override;
48 
53 
57  const char* GetDefaultFileExtension() override;
58 
59 protected:
62 
63  // see algorithm for more info
65 
66  void AllocatePositionArrays() override;
67  void DeletePositionArrays() override;
68 
69  const char* GetDataSetName() override;
70 
71  void WriteInlinePieceAttributes() override;
72  void WriteInlinePiece(vtkIndent indent) override;
73 
74  void WriteAppendedPieceAttributes(int index) override;
75  void WriteAppendedPiece(int index, vtkIndent indent) override;
76  void WriteAppendedPieceData(int index) override;
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&) = delete;
88 };
89 
90 #endif
vtkXMLUnstructuredGridWriter::GetDataSetName
const char * GetDataSetName() override
vtkIdType
int vtkIdType
Definition: vtkType.h:347
vtkXMLUnstructuredGridWriter::~vtkXMLUnstructuredGridWriter
~vtkXMLUnstructuredGridWriter() override
vtkUnstructuredGridBase
dataset represents arbitrary combinations of all possible cell types.
Definition: vtkUnstructuredGridBase.h:38
vtkXMLUnstructuredGridWriter::AllocatePositionArrays
void AllocatePositionArrays() override
vtkXMLUnstructuredGridWriter::DeletePositionArrays
void DeletePositionArrays() override
vtkXMLUnstructuredGridWriter
Write VTK XML UnstructuredGrid files.
Definition: vtkXMLUnstructuredGridWriter.h:43
vtkXMLUnstructuredGridWriter::WriteInlinePiece
void WriteInlinePiece(vtkIndent indent) override
vtkXMLUnstructuredGridWriter::CellsOM
OffsetsManagerArray * CellsOM
Definition: vtkXMLUnstructuredGridWriter.h:83
vtkXMLUnstructuredGridWriter::CalculateSuperclassFraction
void CalculateSuperclassFraction(float *fractions)
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkXMLUnstructuredGridWriter::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkXMLUnstructuredDataWriter
Superclass for VTK XML unstructured data writers.
Definition: vtkXMLUnstructuredDataWriter.h:37
vtkXMLUnstructuredGridWriter::WriteAppendedPiece
void WriteAppendedPiece(int index, vtkIndent indent) override
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkXMLUnstructuredGridWriter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkXMLUnstructuredGridWriter::WriteInlinePieceAttributes
void WriteInlinePieceAttributes() override
OffsetsManagerArray
Definition: vtkXMLOffsetsManager.h:159
vtkXMLUnstructuredGridWriter::GetNumberOfInputCells
vtkIdType GetNumberOfInputCells() override
vtkXMLUnstructuredGridWriter::GetDefaultFileExtension
const char * GetDefaultFileExtension() override
Get the default file extension for files written by this writer.
vtkXMLUnstructuredGridWriter::WriteAppendedPieceData
void WriteAppendedPieceData(int index) override
vtkXMLUnstructuredGridWriter::GetInput
vtkUnstructuredGridBase * GetInput()
Get/Set the writer's input.
vtkXMLUnstructuredGridWriter::WriteAppendedPieceAttributes
void WriteAppendedPieceAttributes(int index) override
vtkXMLUnstructuredDataWriter.h
vtkXMLUnstructuredGridWriter::vtkXMLUnstructuredGridWriter
vtkXMLUnstructuredGridWriter()
vtkX3D::index
@ index
Definition: vtkX3D.h:246
vtkXMLUnstructuredGridWriter::New
static vtkXMLUnstructuredGridWriter * New()
vtkXMLUnstructuredGridWriter::NumberOfCellsPositions
vtkTypeInt64 * NumberOfCellsPositions
Definition: vtkXMLUnstructuredGridWriter.h:82