vtkXMLPRectilinearGridWriter.h 2.27 KB
Newer Older
1 2 3 4 5
/*=========================================================================

  Program:   Visualization Toolkit
  Module:    vtkXMLPRectilinearGridWriter.h

6
  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 8 9
  All rights reserved.
  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.

10 11
     This software is distributed WITHOUT ANY WARRANTY; without even
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 13 14
     PURPOSE.  See the above copyright notice for more information.

=========================================================================*/
15 16 17 18 19 20 21 22 23 24 25 26 27 28
/**
 * @class   vtkXMLPRectilinearGridWriter
 * @brief   Write PVTK XML RectilinearGrid files.
 *
 * vtkXMLPRectilinearGridWriter writes the PVTK XML RectilinearGrid
 * file format.  One rectilinear grid input can be written into a
 * parallel file format with any number of pieces spread across files.
 * The standard extension for this writer's file format is "pvtr".
 * This writer uses vtkXMLRectilinearGridWriter to write the
 * individual piece files.
 *
 * @sa
 * vtkXMLRectilinearGridWriter
*/
29

30 31
#ifndef vtkXMLPRectilinearGridWriter_h
#define vtkXMLPRectilinearGridWriter_h
32

33
#include "vtkIOParallelXMLModule.h" // For export macro
34 35 36 37
#include "vtkXMLPStructuredDataWriter.h"

class vtkRectilinearGrid;

38
class VTKIOPARALLELXML_EXPORT vtkXMLPRectilinearGridWriter : public vtkXMLPStructuredDataWriter
39 40 41
{
public:
  static vtkXMLPRectilinearGridWriter* New();
42
  vtkTypeMacro(vtkXMLPRectilinearGridWriter,vtkXMLPStructuredDataWriter);
43
  void PrintSelf(ostream& os, vtkIndent indent) override;
44

45 46 47
  /**
   * Get/Set the writer's input.
   */
48
  vtkRectilinearGrid* GetInput();
49

50 51 52
  /**
   * Get the default file extension for files written by this writer.
   */
53
  const char* GetDefaultFileExtension() override;
54

55 56
protected:
  vtkXMLPRectilinearGridWriter();
57
  ~vtkXMLPRectilinearGridWriter() override;
58

59
  // see algorithm for more info
60
  int FillInputPortInformation(int port, vtkInformation* info) override;
61

62 63 64
  const char* GetDataSetName() override;
  vtkXMLStructuredDataWriter* CreateStructuredPieceWriter() override;
  void WritePData(vtkIndent indent) override;
65

66
private:
67 68
  vtkXMLPRectilinearGridWriter(const vtkXMLPRectilinearGridWriter&) = delete;
  void operator=(const vtkXMLPRectilinearGridWriter&) = delete;
69 70 71
};

#endif