You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
2.1 KiB
C

/*=========================================================================
Program: Visualization Toolkit
Module: vtkXMLImageDataWriter.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
/**
* @class vtkXMLImageDataWriter
* @brief Write VTK XML ImageData files.
*
* vtkXMLImageDataWriter writes the VTK XML ImageData file format.
* One image data input can be written into one file in any number of
* streamed pieces. The standard extension for this writer's file
* format is "vti". This writer is also used to write a single piece
* of the parallel file format.
*
* @sa
* vtkXMLPImageDataWriter
*/
#ifndef vtkXMLImageDataWriter_h
#define vtkXMLImageDataWriter_h
#include "vtkIOXMLModule.h" // For export macro
#include "vtkXMLStructuredDataWriter.h"
class vtkImageData;
class VTKIOXML_EXPORT vtkXMLImageDataWriter : public vtkXMLStructuredDataWriter
{
public:
static vtkXMLImageDataWriter* New();
vtkTypeMacro(vtkXMLImageDataWriter, vtkXMLStructuredDataWriter);
void PrintSelf(ostream& os, vtkIndent indent) override;
/**
* Get/Set the writer's input.
*/
vtkImageData* GetInput();
/**
* Get the default file extension for files written by this writer.
*/
const char* GetDefaultFileExtension() override;
protected:
vtkXMLImageDataWriter();
~vtkXMLImageDataWriter() override;
// see algorithm for more info
int FillInputPortInformation(int port, vtkInformation* info) override;
void WritePrimaryElementAttributes(ostream& os, vtkIndent indent) override;
void GetInputExtent(int* extent) override;
const char* GetDataSetName() override;
private:
vtkXMLImageDataWriter(const vtkXMLImageDataWriter&) = delete;
void operator=(const vtkXMLImageDataWriter&) = delete;
};
#endif