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-------------------------------------------------------------------------*/
103#ifndef vtkXMLTreeReader_h
104#define vtkXMLTreeReader_h
105
106#include "vtkIOInfovisModule.h" // For export macro
107#include "vtkTreeAlgorithm.h"
108
109class VTKIOINFOVIS_EXPORT vtkXMLTreeReader : public vtkTreeAlgorithm
110{
111public:
114 void PrintSelf(ostream& os, vtkIndent indent) override;
115
117
123
125
128 vtkGetStringMacro(XMLString);
129 vtkSetStringMacro(XMLString);
131
133
136 vtkGetStringMacro(EdgePedigreeIdArrayName);
137 vtkSetStringMacro(EdgePedigreeIdArrayName);
139
141
144 vtkGetStringMacro(VertexPedigreeIdArrayName);
145 vtkSetStringMacro(VertexPedigreeIdArrayName);
147
149
154 vtkSetMacro(GenerateEdgePedigreeIds, bool);
155 vtkGetMacro(GenerateEdgePedigreeIds, bool);
156 vtkBooleanMacro(GenerateEdgePedigreeIds, bool);
157 vtkSetMacro(GenerateVertexPedigreeIds, bool);
158 vtkGetMacro(GenerateVertexPedigreeIds, bool);
159 vtkBooleanMacro(GenerateVertexPedigreeIds, bool);
161
163
167 vtkGetMacro(MaskArrays, bool);
168 vtkSetMacro(MaskArrays, bool);
169 vtkBooleanMacro(MaskArrays, bool);
171
173
178 vtkGetMacro(ReadCharData, bool);
179 vtkSetMacro(ReadCharData, bool);
180 vtkBooleanMacro(ReadCharData, bool);
182
184
189 vtkGetMacro(ReadTagName, bool);
190 vtkSetMacro(ReadTagName, bool);
191 vtkBooleanMacro(ReadTagName, bool);
193
194 static const char* TagNameField;
195 static const char* CharDataField;
196
197protected:
200 char* FileName;
209
211
212private:
213 vtkXMLTreeReader(const vtkXMLTreeReader&) = delete;
214 void operator=(const vtkXMLTreeReader&) = delete;
215};
216
217#endif
a simple class to control print indentation
Definition vtkIndent.h:49
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.
~vtkXMLTreeReader() override
static const char * TagNameField
static const char * CharDataField
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.