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 
32 
33 class vtkImageData;
34 
36 {
37 public:
39  void PrintSelf(ostream& os, vtkIndent indent);
40  static vtkXMLPImageDataReader *New();
41 
43 
44  vtkImageData *GetOutput();
45  vtkImageData *GetOutput(int idx);
47 
48  // For the specified port, copy the information this reader sets up in
49  // SetupOutputInformation to outInfo
50  virtual void CopyOutputInformation(vtkInformation *outInfo, int port);
51 
52 protected:
55 
56  double Origin[3];
57  double Spacing[3];
58 
59  vtkImageData* GetPieceInput(int index);
60 
61  void SetupEmptyOutput();
62  const char* GetDataSetName();
63  void SetOutputExtent(int* extent);
64  void GetPieceInputExtent(int index, int* extent);
66 
67  // Setup the output's information.
69 
71  virtual int FillOutputPortInformation(int, vtkInformation*);
72 
73 private:
74  vtkXMLPImageDataReader(const vtkXMLPImageDataReader&); // Not implemented.
75  void operator=(const vtkXMLPImageDataReader&); // Not implemented.
76 };
77 
78 #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:37
Superclass for parallel structured data XML readers.
topologically and geometrically regular array of data
Definition: vtkImageData.h:43
Superclass for VTK XML file readers.
static vtkAlgorithm * New()
int ReadPrimaryElement(vtkXMLDataElement *ePrimary)
virtual void GetPieceInputExtent(int index, int *extent)=0
#define VTK_IO_EXPORT