VTK: IO/XML/vtkXMLImageDataWriter.h Source File

| VTK 9.3.1

vtkXMLImageDataWriter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
29 #ifndef vtkXMLImageDataWriter_h
30 #define vtkXMLImageDataWriter_h
31
32 #include "vtkIOXMLModule.h" // For export macro
33 #include "vtkXMLStructuredDataWriter.h"
34
35 VTK_ABI_NAMESPACE_BEGIN
36 class vtkImageData;
37
38 class VTKIOXML_EXPORT vtkXMLImageDataWriter : public vtkXMLStructuredDataWriter
39 {
40 public:
41 static vtkXMLImageDataWriter* New();
42 vtkTypeMacro(vtkXMLImageDataWriter, vtkXMLStructuredDataWriter);
43 void PrintSelf(ostream& os, vtkIndent indent) override;
44
48 vtkImageData* GetInput();
49
53 const char* GetDefaultFileExtension() override;
54
55 protected:
56 vtkXMLImageDataWriter();
57 ~vtkXMLImageDataWriter() override;
58
59 // see algorithm for more info
60 int FillInputPortInformation(int port, vtkInformation* info) override;
61
62 void WritePrimaryElementAttributes(ostream& os, vtkIndent indent) override;
63 void GetInputExtent(int* extent) override;
64 const char* GetDataSetName() override;
65
66 private:
67 vtkXMLImageDataWriter(const vtkXMLImageDataWriter&) = delete;
68 void operator=(const vtkXMLImageDataWriter&) = delete;
69 };
70
71 VTK_ABI_NAMESPACE_END
72 #endif
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:52
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkXMLImageDataWriter
Write VTK XML ImageData files.
Definition: vtkXMLImageDataWriter.h:39
vtkXMLImageDataWriter::~vtkXMLImageDataWriter
~vtkXMLImageDataWriter() override
vtkXMLImageDataWriter::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkXMLImageDataWriter::GetInputExtent
void GetInputExtent(int *extent) override
vtkXMLImageDataWriter::vtkXMLImageDataWriter
vtkXMLImageDataWriter()
vtkXMLImageDataWriter::GetInput
vtkImageData * GetInput()
Get/Set the writer's input.
vtkXMLImageDataWriter::New
static vtkXMLImageDataWriter * New()
vtkXMLImageDataWriter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkXMLImageDataWriter::GetDefaultFileExtension
const char * GetDefaultFileExtension() override
Get the default file extension for files written by this writer.
vtkXMLImageDataWriter::WritePrimaryElementAttributes
void WritePrimaryElementAttributes(ostream &os, vtkIndent indent) override
vtkXMLImageDataWriter::GetDataSetName
const char * GetDataSetName() override
vtkXMLStructuredDataWriter
Superclass for VTK XML structured data writers.
Definition: vtkXMLStructuredDataWriter.h:23
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkX3D::extent
@ extent
Definition: vtkX3D.h:345
vtkXMLStructuredDataWriter.h