VTK  9.2.6
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 -------------------------------------------------------------------------*/
113 #ifndef vtkXMLTreeReader_h
114 #define vtkXMLTreeReader_h
115 
116 #include "vtkIOInfovisModule.h" // For export macro
117 #include "vtkTreeAlgorithm.h"
118 
119 class VTKIOINFOVIS_EXPORT vtkXMLTreeReader : public vtkTreeAlgorithm
120 {
121 public:
124  void PrintSelf(ostream& os, vtkIndent indent) override;
125 
127 
133 
135 
138  vtkGetStringMacro(XMLString);
139  vtkSetStringMacro(XMLString);
141 
143 
146  vtkGetStringMacro(EdgePedigreeIdArrayName);
147  vtkSetStringMacro(EdgePedigreeIdArrayName);
149 
151 
154  vtkGetStringMacro(VertexPedigreeIdArrayName);
155  vtkSetStringMacro(VertexPedigreeIdArrayName);
157 
159 
164  vtkSetMacro(GenerateEdgePedigreeIds, bool);
165  vtkGetMacro(GenerateEdgePedigreeIds, bool);
166  vtkBooleanMacro(GenerateEdgePedigreeIds, bool);
167  vtkSetMacro(GenerateVertexPedigreeIds, bool);
168  vtkGetMacro(GenerateVertexPedigreeIds, bool);
169  vtkBooleanMacro(GenerateVertexPedigreeIds, bool);
171 
173 
177  vtkGetMacro(MaskArrays, bool);
178  vtkSetMacro(MaskArrays, bool);
179  vtkBooleanMacro(MaskArrays, bool);
181 
183 
188  vtkGetMacro(ReadCharData, bool);
189  vtkSetMacro(ReadCharData, bool);
190  vtkBooleanMacro(ReadCharData, bool);
192 
194 
199  vtkGetMacro(ReadTagName, bool);
200  vtkSetMacro(ReadTagName, bool);
201  vtkBooleanMacro(ReadTagName, bool);
203 
204  static const char* TagNameField;
205  static const char* CharDataField;
206 
207 protected:
209  ~vtkXMLTreeReader() override;
210  char* FileName;
211  char* XMLString;
219 
221 
222 private:
223  vtkXMLTreeReader(const vtkXMLTreeReader&) = delete;
224  void operator=(const vtkXMLTreeReader&) = delete;
225 };
226 
227 #endif
a simple class to control print indentation
Definition: vtkIndent.h:119
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only Tree as output.
reads an XML file into a vtkTree
static vtkXMLTreeReader * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
char * VertexPedigreeIdArrayName
~vtkXMLTreeReader() override
static const char * TagNameField
static const char * CharDataField
char * EdgePedigreeIdArrayName
vtkSetFilePathMacro(FileName)
If set, reads in the XML file specified.
vtkGetFilePathMacro(FileName)
If set, reads in the XML file specified.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.