VTK
vtkXMLMultiBlockDataReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkXMLMultiBlockDataReader.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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 vtkXMLMultiBlockDataReader_h
32 #define vtkXMLMultiBlockDataReader_h
33 
34 #include "vtkIOXMLModule.h" // For export macro
36 
38 
40 {
41 public:
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
46 protected:
49 
50  // Read the XML element for the subtree of a the composite dataset.
51  // dataSetIndex is used to rank the leaf nodes in an inorder traversal.
52  virtual void ReadComposite(vtkXMLDataElement* element,
53  vtkCompositeDataSet* composite, const char* filePath,
54  unsigned int &dataSetIndex);
55 
56  // Reads file version < 1.0.
57  virtual void ReadVersion0(vtkXMLDataElement* element,
58  vtkCompositeDataSet* composite, const char* filePath,
59  unsigned int &dataSetIndex);
60 
61  // Get the name of the data set being read.
62  virtual const char* GetDataSetName();
63 
65 
69 
70  virtual int FillMetaData(vtkCompositeDataSet* metadata,
71  vtkXMLDataElement* element,
72  unsigned int& dataSetIndex);
73 
74 private:
75  vtkXMLMultiBlockDataReader(const vtkXMLMultiBlockDataReader&); // Not implemented.
76  void operator=(const vtkXMLMultiBlockDataReader&); // Not implemented.
77 };
78 
79 #endif
VTKIOXML_EXPORT
#define VTKIOXML_EXPORT
Definition: vtkIOXMLModule.h:15
vtkXMLMultiBlockDataReader
Reader for multi-block datasets.
Definition: vtkXMLMultiBlockDataReader.h:40
vtkXMLMultiBlockDataReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkXMLMultiBlockDataReader::New
static vtkXMLMultiBlockDataReader * New()
vtkMultiBlockDataSet
Composite dataset that organizes datasets into blocks.
Definition: vtkMultiBlockDataSet.h:51
vtkCompositeDataSet
abstract superclass for composite (multi-block or AMR) datasets
Definition: vtkCompositeDataSet.h:51
vtkIOXMLModule.h
vtkXMLCompositeDataReader
Reader for multi-group datasets.
Definition: vtkXMLCompositeDataReader.h:42
vtkXMLCompositeDataReader.h
vtkXMLMultiBlockDataReader::RequestInformation
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkXMLMultiBlockDataReader::ReadVersion0
virtual void ReadVersion0(vtkXMLDataElement *element, vtkCompositeDataSet *composite, const char *filePath, unsigned int &dataSetIndex)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkXMLMultiBlockDataReader::FillOutputPortInformation
virtual int FillOutputPortInformation(int, vtkInformation *info)
vtkXMLMultiBlockDataReader::FillMetaData
virtual int FillMetaData(vtkCompositeDataSet *metadata, vtkXMLDataElement *element, unsigned int &dataSetIndex)
vtkXMLDataElement
Represents an XML element and those nested inside.
Definition: vtkXMLDataElement.h:36
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkXMLMultiBlockDataReader::~vtkXMLMultiBlockDataReader
~vtkXMLMultiBlockDataReader()
vtkXMLMultiBlockDataReader::ReadComposite
virtual void ReadComposite(vtkXMLDataElement *element, vtkCompositeDataSet *composite, const char *filePath, unsigned int &dataSetIndex)
vtkXMLMultiBlockDataReader::vtkXMLMultiBlockDataReader
vtkXMLMultiBlockDataReader()
vtkXMLMultiBlockDataReader::GetDataSetName
virtual const char * GetDataSetName()