VTK  9.0.1
vtkXMLPHyperTreeGridWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkXMLPHyperTreeGridWriter.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 vtkXMLPHyperTreeGridWriter_h
31 #define vtkXMLPHyperTreeGridWriter_h
32 
34 
35 class vtkCallbackCommand;
37 class vtkHyperTreeGrid;
40 
41 class VTKIOPARALLELXML_EXPORT vtkXMLPHyperTreeGridWriter : public vtkXMLPDataObjectWriter
42 {
43 public:
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
52 
56  const char* GetDefaultFileExtension() override;
57 
58 protected:
60  ~vtkXMLPHyperTreeGridWriter() override;
61 
66 
70  const char* GetDataSetName() override;
71 
75  vtkXMLWriter* CreatePieceWriter(int index);
76 
81  vtkXMLHyperTreeGridWriter* CreateHyperTreeGridPieceWriter(int index);
82 
86  int WritePiece(int index) override;
87 
92  int WritePieceInternal() override;
93 
97  void WritePData(vtkIndent indent) override;
98 
99 private:
101  void operator=(const vtkXMLPHyperTreeGridWriter&) = delete;
102 
106  void SetupPieceFileNameExtension() override;
107 };
108 
109 #endif
virtual const char * GetDataSetName()=0
virtual void SetupPieceFileNameExtension()
Initializes PieceFileNameExtension.
vtkDataObject * GetInput()
Assign a data object as input.
Definition: vtkXMLWriter.h:239
Store vtkAlgorithm input/output information.
virtual int WritePiece(int index)=0
Write a piece of the dataset on disk.
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
virtual void WritePData(vtkIndent indent)=0
Write Data associated with the input dataset.
virtual int WritePieceInternal()=0
Method called by WriteInternal().
Write data in a parallel XML format.
supports function callbacks
Superclass for VTK's XML file writers.
Definition: vtkXMLWriter.h:61
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.
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
static vtkAlgorithm * New()
Write PVTK XML HyperTreeGrid files.
Write VTK XML HyperTreeGrid files.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Multiprocessing communication superclass.