VTK
vtkXMLPTableWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkXMLPTableWriter.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 vtkXMLPTableWriter_h
31 #define vtkXMLPTableWriter_h
32 
33 #include "vtkIOParallelXMLModule.h" // For export macro
35 
36 class vtkCallbackCommand;
38 class vtkTable;
39 class vtkXMLTableWriter;
41 
42 class VTKIOPARALLELXML_EXPORT vtkXMLPTableWriter : public vtkXMLPDataObjectWriter
43 {
44 public:
45  static vtkXMLPTableWriter* New();
47  void PrintSelf(ostream& os, vtkIndent indent) override;
48 
52  vtkTable* GetInput();
53 
57  const char* GetDefaultFileExtension() override;
58 
59 protected:
61  ~vtkXMLPTableWriter() override;
62 
67 
71  const char* GetDataSetName() override;
72 
76  vtkXMLWriter* CreatePieceWriter(int index);
77 
82  vtkXMLTableWriter* CreateTablePieceWriter();
83 
87  int WritePiece(int index) override;
88 
93  int WritePieceInternal() override;
94 
98  void WritePData(vtkIndent indent) override;
99 
103  void WritePRowData(vtkDataSetAttributes* ds, vtkIndent indent);
104 
105 private:
106  vtkXMLPTableWriter(const vtkXMLPTableWriter&) = delete;
107  void operator=(const vtkXMLPTableWriter&) = delete;
108 
112  void SetupPieceFileNameExtension() override;
113 };
114 
115 #endif
virtual const char * GetDataSetName()=0
virtual void SetupPieceFileNameExtension()
Initializes PieceFileNameExtension.
vtkDataObject * GetInput()
Assign a data object as input.
Definition: vtkXMLWriter.h:232
Store vtkAlgorithm input/output information.
virtual int WritePiece(int index)=0
Write a piece of the dataset on disk.
virtual void WritePData(vtkIndent indent)=0
Write Data associated with the input dataset.
Write PVTK XML UnstructuredGrid files.
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:59
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.
represent and manipulate attribute data in a dataset
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:62
static vtkAlgorithm * New()
Write VTK XML Table files.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Multiprocessing communication superclass.