VTK  9.1.0
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-------------------------------------------------------------------------*/
107#ifndef vtkXMLTreeReader_h
108#define vtkXMLTreeReader_h
109
110#include "vtkIOInfovisModule.h" // For export macro
111#include "vtkTreeAlgorithm.h"
112
113class VTKIOINFOVIS_EXPORT vtkXMLTreeReader : public vtkTreeAlgorithm
114{
115public:
118 void PrintSelf(ostream& os, vtkIndent indent) override;
119
121
127
129
132 vtkGetStringMacro(XMLString);
133 vtkSetStringMacro(XMLString);
135
137
140 vtkGetStringMacro(EdgePedigreeIdArrayName);
141 vtkSetStringMacro(EdgePedigreeIdArrayName);
143
145
148 vtkGetStringMacro(VertexPedigreeIdArrayName);
149 vtkSetStringMacro(VertexPedigreeIdArrayName);
151
153
158 vtkSetMacro(GenerateEdgePedigreeIds, bool);
159 vtkGetMacro(GenerateEdgePedigreeIds, bool);
160 vtkBooleanMacro(GenerateEdgePedigreeIds, bool);
161 vtkSetMacro(GenerateVertexPedigreeIds, bool);
162 vtkGetMacro(GenerateVertexPedigreeIds, bool);
163 vtkBooleanMacro(GenerateVertexPedigreeIds, bool);
165
167
171 vtkGetMacro(MaskArrays, bool);
172 vtkSetMacro(MaskArrays, bool);
173 vtkBooleanMacro(MaskArrays, bool);
175
177
182 vtkGetMacro(ReadCharData, bool);
183 vtkSetMacro(ReadCharData, bool);
184 vtkBooleanMacro(ReadCharData, bool);
186
188
193 vtkGetMacro(ReadTagName, bool);
194 vtkSetMacro(ReadTagName, bool);
195 vtkBooleanMacro(ReadTagName, bool);
197
198 static const char* TagNameField;
199 static const char* CharDataField;
200
201protected:
204 char* FileName;
213
215
216private:
217 vtkXMLTreeReader(const vtkXMLTreeReader&) = delete;
218 void operator=(const vtkXMLTreeReader&) = delete;
219};
220
221#endif
a simple class to control print indentation
Definition: vtkIndent.h:113
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
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.
static vtkXMLTreeReader * New()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.