vtkXMLPImageDataWriter.h 2.18 KB
Newer Older
1 2 3 4 5
/*=========================================================================

  Program:   Visualization Toolkit
  Module:    vtkXMLPImageDataWriter.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
/**
 * @class   vtkXMLPImageDataWriter
 * @brief   Write PVTK XML ImageData files.
 *
 * vtkXMLPImageDataWriter writes the PVTK XML ImageData file format.
 * One image data 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 "pvti".  This writer
 * uses vtkXMLImageDataWriter to write the individual piece files.
 *
 * @sa
 * vtkXMLImageDataWriter
*/
28

29 30
#ifndef vtkXMLPImageDataWriter_h
#define vtkXMLPImageDataWriter_h
31

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

class vtkImageData;

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

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

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

54 55
protected:
  vtkXMLPImageDataWriter();
56
  ~vtkXMLPImageDataWriter() override;
57

58 59 60
  const char* GetDataSetName() override;
  void WritePrimaryElementAttributes(ostream &os, vtkIndent indent) override;
  vtkXMLStructuredDataWriter* CreateStructuredPieceWriter() override;
61

62
  // see algorithm for more info
63
  int FillInputPortInformation(int port, vtkInformation* info) override;
64

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

#endif