VTK
vtkXMLImageDataReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkXMLImageDataReader.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 =========================================================================*/
35 #ifndef vtkXMLImageDataReader_h
36 #define vtkXMLImageDataReader_h
37 
38 #include "vtkIOXMLModule.h" // For export macro
40 
41 class vtkImageData;
42 
43 class VTKIOXML_EXPORT vtkXMLImageDataReader : public vtkXMLStructuredDataReader
44 {
45 public:
47  void PrintSelf(ostream& os, vtkIndent indent);
49 
51 
57 
62  virtual void CopyOutputInformation(vtkInformation *outInfo, int port);
63 
64 protected:
67 
68  double Origin[3];
69  double Spacing[3];
70  int PieceExtent[6];
71 
72  const char* GetDataSetName();
73  void SetOutputExtent(int* extent);
74 
76 
77  // Setup the output's information.
79 
81 
82 
83 
84 private:
85  vtkXMLImageDataReader(const vtkXMLImageDataReader&) VTK_DELETE_FUNCTION;
86  void operator=(const vtkXMLImageDataReader&) VTK_DELETE_FUNCTION;
87 };
88 
89 #endif
topologically and geometrically regular array of data
Definition: vtkImageData.h:46
a simple class to control print indentation
Definition: vtkIndent.h:40
Store vtkAlgorithm input/output information.
Represents an XML element and those nested inside.
Read VTK XML ImageData files.
const char * GetDataSetName()
void SetupOutputInformation(vtkInformation *outInfo)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkImageData * GetOutput()
Get the reader's output.
void SetOutputExtent(int *extent)
virtual void CopyOutputInformation(vtkInformation *outInfo, int port)
For the specified port, copy the information this reader sets up in SetupOutputInformation to outInfo...
static vtkXMLImageDataReader * New()
vtkImageData * GetOutput(int idx)
virtual int FillOutputPortInformation(int, vtkInformation *)
Fill the output port information objects for this algorithm.
int ReadPrimaryElement(vtkXMLDataElement *ePrimary)
Superclass for structured data XML readers.
@ port
Definition: vtkX3D.h:447
@ extent
Definition: vtkX3D.h:345