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 =========================================================================*/
33 #ifndef vtkXMLPTableWriter_h
34 #define vtkXMLPTableWriter_h
35 
36 #include "vtkIOParallelXMLModule.h" // For export macro
38 
39 class vtkCallbackCommand;
41 class vtkTable;
42 class vtkXMLTableWriter;
44 
45 class VTKIOPARALLELXML_EXPORT vtkXMLPTableWriter : public vtkXMLPDataObjectWriter
46 {
47 public:
48  static vtkXMLPTableWriter* New();
50  void PrintSelf(ostream& os, vtkIndent indent) override;
51 
55  vtkTable* GetInput();
56 
60  const char* GetDefaultFileExtension() override;
61 
62 protected:
64  ~vtkXMLPTableWriter() override;
65 
70 
74  const char* GetDataSetName() override;
75 
79  vtkXMLWriter* CreatePieceWriter(int index);
80 
85  vtkXMLTableWriter* CreateTablePieceWriter();
86 
90  int WritePiece(int index) override;
91 
96  int WritePieceInternal() override;
97 
101  void WritePData(vtkIndent indent) override;
102 
106  void WritePRowData(vtkDataSetAttributes* ds, vtkIndent indent);
107 
108 private:
109  vtkXMLPTableWriter(const vtkXMLPTableWriter&) = delete;
110  void operator=(const vtkXMLPTableWriter&) = delete;
111 
115  void SetupPieceFileNameExtension() override;
116 };
117 
118 #endif
virtual const char * GetDataSetName()=0
virtual void SetupPieceFileNameExtension()
Initializes PieceFileNameExtension.
vtkDataObject * GetInput()
Assign a data object as input.
Definition: vtkXMLWriter.h:235
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:62
a simple class to control print indentation
Definition: vtkIndent.h:39
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:68
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.