VTK: IO/XML/vtkXMLPImageDataReader.h Source File

| VTK 9.3.1

vtkXMLPImageDataReader.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
20 #ifndef vtkXMLPImageDataReader_h
21 #define vtkXMLPImageDataReader_h
22
23 #include "vtkIOXMLModule.h" // For export macro
24 #include "vtkXMLPStructuredDataReader.h"
25
26 VTK_ABI_NAMESPACE_BEGIN
27 class vtkImageData;
28
29 class VTKIOXML_EXPORT vtkXMLPImageDataReader : public vtkXMLPStructuredDataReader
30 {
31 public:
32 vtkTypeMacro(vtkXMLPImageDataReader, vtkXMLPStructuredDataReader);
33 void PrintSelf(ostream& os, vtkIndent indent) override;
34 static vtkXMLPImageDataReader* New();
35
37
40 vtkImageData* GetOutput();
41 vtkImageData* GetOutput(int idx);
43
44 // For the specified port, copy the information this reader sets up in
45 // SetupOutputInformation to outInfo
46 void CopyOutputInformation(vtkInformation* outInfo, int port) override;
47
48 protected:
49 vtkXMLPImageDataReader();
50 ~vtkXMLPImageDataReader() override;
51
52 double Origin[3];
53 double Spacing[3];
54
55 vtkImageData* GetPieceInput(int index);
56
57 void SetupEmptyOutput() override;
58 const char* GetDataSetName() override;
59 void SetOutputExtent(int* extent) override;
60 void GetPieceInputExtent(int index, int* extent) override;
61 int ReadPrimaryElement(vtkXMLDataElement* ePrimary) override;
62
63 // Setup the output's information.
64 void SetupOutputInformation(vtkInformation* outInfo) override;
65
66 vtkXMLDataReader* CreatePieceReader() override;
67 int FillOutputPortInformation(int, vtkInformation*) override;
68
69 private:
70 vtkXMLPImageDataReader(const vtkXMLPImageDataReader&) = delete;
71 void operator=(const vtkXMLPImageDataReader&) = delete;
72 };
73
74 VTK_ABI_NAMESPACE_END
75 #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
vtkXMLDataElement
Represents an XML element and those nested inside.
Definition: vtkXMLDataElement.h:26
vtkXMLDataReader
Superclass for VTK XML file readers.
Definition: vtkXMLDataReader.h:25
vtkXMLPImageDataReader
Read PVTK XML ImageData files.
Definition: vtkXMLPImageDataReader.h:30
vtkXMLPImageDataReader::SetupEmptyOutput
void SetupEmptyOutput() override
Setup the output with no data available.
vtkXMLPImageDataReader::FillOutputPortInformation
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
vtkXMLPImageDataReader::GetDataSetName
const char * GetDataSetName() override
Get the name of the data set being read.
vtkXMLPImageDataReader::~vtkXMLPImageDataReader
~vtkXMLPImageDataReader() override
vtkXMLPImageDataReader::GetPieceInput
vtkImageData * GetPieceInput(int index)
vtkXMLPImageDataReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkXMLPImageDataReader::CreatePieceReader
vtkXMLDataReader * CreatePieceReader() override
Create a reader according to the data to read.
vtkXMLPImageDataReader::GetOutput
vtkImageData * GetOutput()
Get the reader's output.
vtkXMLPImageDataReader::SetupOutputInformation
void SetupOutputInformation(vtkInformation *outInfo) override
vtkXMLPImageDataReader::GetPieceInputExtent
void GetPieceInputExtent(int index, int *extent) override
vtkXMLPImageDataReader::New
static vtkXMLPImageDataReader * New()
vtkXMLPImageDataReader::ReadPrimaryElement
int ReadPrimaryElement(vtkXMLDataElement *ePrimary) override
Read the information relative to the dataset and allocate the needed structures according to it.
vtkXMLPImageDataReader::GetOutput
vtkImageData * GetOutput(int idx)
Get the reader's output.
vtkXMLPImageDataReader::CopyOutputInformation
void CopyOutputInformation(vtkInformation *outInfo, int port) override
vtkXMLPImageDataReader::vtkXMLPImageDataReader
vtkXMLPImageDataReader()
vtkXMLPImageDataReader::SetOutputExtent
void SetOutputExtent(int *extent) override
vtkXMLPStructuredDataReader
Superclass for parallel structured data XML readers.
Definition: vtkXMLPStructuredDataReader.h:27
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkX3D::extent
@ extent
Definition: vtkX3D.h:345
vtkX3D::index
@ index
Definition: vtkX3D.h:246
vtkXMLPStructuredDataReader.h