VTK
vtkXMLPImageDataReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkXMLPImageDataReader.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
31 #ifndef vtkXMLPImageDataReader_h
32 #define vtkXMLPImageDataReader_h
33 
34 #include "vtkIOXMLModule.h" // For export macro
36 
37 class vtkImageData;
38 
40 {
41 public:
43  void PrintSelf(ostream& os, vtkIndent indent);
44  static vtkXMLPImageDataReader *New();
45 
47 
48  vtkImageData *GetOutput();
49  vtkImageData *GetOutput(int idx);
51 
52  // For the specified port, copy the information this reader sets up in
53  // SetupOutputInformation to outInfo
54  virtual void CopyOutputInformation(vtkInformation *outInfo, int port);
55 
56 protected:
59 
60  double Origin[3];
61  double Spacing[3];
62 
63  vtkImageData* GetPieceInput(int index);
64 
65  void SetupEmptyOutput();
66  const char* GetDataSetName();
67  void SetOutputExtent(int* extent);
68  void GetPieceInputExtent(int index, int* extent);
70 
71  // Setup the output's information.
73 
75  virtual int FillOutputPortInformation(int, vtkInformation*);
76 
77 private:
78  vtkXMLPImageDataReader(const vtkXMLPImageDataReader&); // Not implemented.
79  void operator=(const vtkXMLPImageDataReader&); // Not implemented.
80 };
81 
82 #endif
virtual void SetOutputExtent(int *extent)=0
virtual void SetupOutputInformation(vtkInformation *outInfo)
virtual const char * GetDataSetName()=0
virtual void SetupEmptyOutput()=0
Represents an XML element and those nested inside.
Store vtkAlgorithm input/output information.
virtual vtkXMLDataReader * CreatePieceReader()=0
Read PVTK XML ImageData files.
void PrintSelf(ostream &os, vtkIndent indent)
virtual void CopyOutputInformation(vtkInformation *outInfo, int port)
virtual int FillOutputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:38
Superclass for parallel structured data XML readers.
#define VTKIOXML_EXPORT
topologically and geometrically regular array of data
Definition: vtkImageData.h:44
Superclass for VTK XML file readers.
static vtkAlgorithm * New()
int ReadPrimaryElement(vtkXMLDataElement *ePrimary)
virtual void GetPieceInputExtent(int index, int *extent)=0