VTK
vtkXMLTreeReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkXMLTreeReader.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 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
88 #ifndef vtkXMLTreeReader_h
89 #define vtkXMLTreeReader_h
90 
91 #include "vtkIOInfovisModule.h" // For export macro
92 #include "vtkTreeAlgorithm.h"
93 
94 class VTKIOINFOVIS_EXPORT vtkXMLTreeReader : public vtkTreeAlgorithm
95 {
96 public:
97  static vtkXMLTreeReader* New();
99  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
100 
102 
105  vtkGetStringMacro(FileName);
106  vtkSetStringMacro(FileName);
108 
110 
113  vtkGetStringMacro(XMLString);
114  vtkSetStringMacro(XMLString);
116 
118 
121  vtkGetStringMacro(EdgePedigreeIdArrayName);
122  vtkSetStringMacro(EdgePedigreeIdArrayName);
124 
126 
129  vtkGetStringMacro(VertexPedigreeIdArrayName);
130  vtkSetStringMacro(VertexPedigreeIdArrayName);
132 
134 
139  vtkSetMacro(GenerateEdgePedigreeIds, bool);
140  vtkGetMacro(GenerateEdgePedigreeIds, bool);
141  vtkBooleanMacro(GenerateEdgePedigreeIds, bool);
142  vtkSetMacro(GenerateVertexPedigreeIds, bool);
143  vtkGetMacro(GenerateVertexPedigreeIds, bool);
144  vtkBooleanMacro(GenerateVertexPedigreeIds, bool);
146 
148 
152  vtkGetMacro(MaskArrays, bool);
153  vtkSetMacro(MaskArrays, bool);
154  vtkBooleanMacro(MaskArrays, bool);
156 
158 
163  vtkGetMacro(ReadCharData, bool);
164  vtkSetMacro(ReadCharData, bool);
165  vtkBooleanMacro(ReadCharData, bool);
167 
169 
174  vtkGetMacro(ReadTagName, bool);
175  vtkSetMacro(ReadTagName, bool);
176  vtkBooleanMacro(ReadTagName, bool);
178 
179 
180  static const char * TagNameField;
181  static const char * CharDataField;
182 
183 protected:
185  ~vtkXMLTreeReader() VTK_OVERRIDE;
186  char* FileName;
187  char* XMLString;
188  bool ReadCharData;
189  bool ReadTagName;
190  bool MaskArrays;
191  char* EdgePedigreeIdArrayName;
192  char* VertexPedigreeIdArrayName;
193  bool GenerateEdgePedigreeIds;
194  bool GenerateVertexPedigreeIds;
195 
196  int RequestData(
199  vtkInformationVector*) VTK_OVERRIDE;
200 
201 private:
202  vtkXMLTreeReader(const vtkXMLTreeReader&) VTK_DELETE_FUNCTION;
203  void operator=(const vtkXMLTreeReader&) VTK_DELETE_FUNCTION;
204 };
205 
206 #endif
207 
Superclass for algorithms that produce only Tree as output.
Store vtkAlgorithm input/output information.
static const char * TagNameField
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static const char * CharDataField
Store zero or more vtkInformation instances.
static vtkTreeAlgorithm * New()
reads an XML file into a vtkTree
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.