VTK
vtkXMLPStructuredDataReader.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkXMLPStructuredDataReader.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=========================================================================*/
27#ifndef vtkXMLPStructuredDataReader_h
28#define vtkXMLPStructuredDataReader_h
29
30#include "vtkIOXMLModule.h" // For export macro
31#include "vtkXMLPDataReader.h"
32
35
36class VTKIOXML_EXPORT vtkXMLPStructuredDataReader : public vtkXMLPDataReader
37{
38public:
40 void PrintSelf(ostream& os, vtkIndent indent);
41
42 // For the specified port, copy the information this reader sets up in
43 // SetupOutputInformation to outInfo
44 virtual void CopyOutputInformation(vtkInformation *outInfo, int port);
45protected:
48
51 void CopyArrayForPoints(vtkDataArray* inArray, vtkDataArray* outArray);
52 void CopyArrayForCells(vtkDataArray* inArray, vtkDataArray* outArray);
53
54 virtual void SetOutputExtent(int* extent)=0;
55 virtual void GetPieceInputExtent(int index, int* extent)=0;
56
57 // Pipeline execute data driver. Called by vtkXMLReader.
60
62
63 void SetupPieces(int numPieces);
67 void CopySubExtent(int* inExtent, int* inDimensions, vtkIdType* inIncrements,
68 int* outExtent,int* outDimensions,vtkIdType* outIncrements,
69 int* subExtent, int* subDimensions,
70 vtkDataArray* inArray, vtkDataArray* outArray);
72
74
75 // The extent to be updated in the output.
76 int UpdateExtent[6];
77 int PointDimensions[3];
78 vtkIdType PointIncrements[3];
79 int CellDimensions[3];
80 vtkIdType CellIncrements[3];
81
82 // The extent currently being read from a piece.
83 int SubExtent[6];
84 int SubPointDimensions[3];
85 int SubCellDimensions[3];
86 int SubPieceExtent[6];
87 int SubPiecePointDimensions[3];
88 vtkIdType SubPiecePointIncrements[3];
89 int SubPieceCellDimensions[3];
90 vtkIdType SubPieceCellIncrements[3];
91
92 // Information per-piece.
94
95 virtual int RequestInformation(vtkInformation *request,
96 vtkInformationVector **inputVector,
97 vtkInformationVector *outputVector);
98
99private:
101 void operator=(const vtkXMLPStructuredDataReader&) VTK_DELETE_FUNCTION;
102};
103
104#endif
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
Split an extent across other extents.
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Represents an XML element and those nested inside.
Superclass for PVTK XML file readers.
Superclass for parallel structured data XML readers.
virtual void GetPieceInputExtent(int index, int *extent)=0
int ReadPiece(vtkXMLDataElement *ePiece)
void CopyArrayForPoints(vtkDataArray *inArray, vtkDataArray *outArray)
int ReadPrimaryElement(vtkXMLDataElement *ePrimary)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void CopyArrayForCells(vtkDataArray *inArray, vtkDataArray *outArray)
virtual void CopyOutputInformation(vtkInformation *outInfo, int port)
void SetupPieces(int numPieces)
void CopySubExtent(int *inExtent, int *inDimensions, vtkIdType *inIncrements, int *outExtent, int *outDimensions, vtkIdType *outIncrements, int *subExtent, int *subDimensions, vtkDataArray *inArray, vtkDataArray *outArray)
virtual void SetOutputExtent(int *extent)=0
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Superclass for structured data XML readers.
@ port
Definition: vtkX3D.h:447
@ extent
Definition: vtkX3D.h:345
@ index
Definition: vtkX3D.h:246
int vtkIdType
Definition: vtkType.h:287