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 =========================================================================*/
28 #ifndef __vtkXMLPImageDataReader_h
29 #define __vtkXMLPImageDataReader_h
30 
31 #include "vtkIOXMLModule.h" // For export macro
33 
34 class vtkImageData;
35 
37 {
38 public:
40  void PrintSelf(ostream& os, vtkIndent indent);
41  static vtkXMLPImageDataReader *New();
42 
44 
45  vtkImageData *GetOutput();
46  vtkImageData *GetOutput(int idx);
48 
49  // For the specified port, copy the information this reader sets up in
50  // SetupOutputInformation to outInfo
51  virtual void CopyOutputInformation(vtkInformation *outInfo, int port);
52 
53 protected:
56 
57  double Origin[3];
58  double Spacing[3];
59 
60  vtkImageData* GetPieceInput(int index);
61 
62  void SetupEmptyOutput();
63  const char* GetDataSetName();
64  void SetOutputExtent(int* extent);
65  void GetPieceInputExtent(int index, int* extent);
67 
68  // Setup the output's information.
70 
72  virtual int FillOutputPortInformation(int, vtkInformation*);
73 
74 private:
75  vtkXMLPImageDataReader(const vtkXMLPImageDataReader&); // Not implemented.
76  void operator=(const vtkXMLPImageDataReader&); // Not implemented.
77 };
78 
79 #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.
GLuint index
Definition: vtkgl.h:11983
Store vtkAlgorithm input/output information.
virtual vtkXMLDataReader * CreatePieceReader()=0
Read PVTK XML ImageData files.
void PrintSelf(ostream &os, vtkIndent indent)
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:619
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