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-------------------------------------------------------------------------*/
97#ifndef vtkXMLTreeReader_h
98#define vtkXMLTreeReader_h
99
100#include "vtkIOInfovisModule.h" // For export macro
101#include "vtkTreeAlgorithm.h"
102
103class VTKIOINFOVIS_EXPORT vtkXMLTreeReader : public vtkTreeAlgorithm
104{
105public:
108 void PrintSelf(ostream& os, vtkIndent indent) override;
109
111
117
119
122 vtkGetStringMacro(XMLString);
123 vtkSetStringMacro(XMLString);
125
127
130 vtkGetStringMacro(EdgePedigreeIdArrayName);
131 vtkSetStringMacro(EdgePedigreeIdArrayName);
133
135
138 vtkGetStringMacro(VertexPedigreeIdArrayName);
139 vtkSetStringMacro(VertexPedigreeIdArrayName);
141
143
148 vtkSetMacro(GenerateEdgePedigreeIds, bool);
149 vtkGetMacro(GenerateEdgePedigreeIds, bool);
150 vtkBooleanMacro(GenerateEdgePedigreeIds, bool);
151 vtkSetMacro(GenerateVertexPedigreeIds, bool);
152 vtkGetMacro(GenerateVertexPedigreeIds, bool);
153 vtkBooleanMacro(GenerateVertexPedigreeIds, bool);
155
157
161 vtkGetMacro(MaskArrays, bool);
162 vtkSetMacro(MaskArrays, bool);
163 vtkBooleanMacro(MaskArrays, bool);
165
167
172 vtkGetMacro(ReadCharData, bool);
173 vtkSetMacro(ReadCharData, bool);
174 vtkBooleanMacro(ReadCharData, bool);
176
178
183 vtkGetMacro(ReadTagName, bool);
184 vtkSetMacro(ReadTagName, bool);
185 vtkBooleanMacro(ReadTagName, bool);
187
188 static const char* TagNameField;
189 static const char* CharDataField;
190
191protected:
194 char* FileName;
203
205
206private:
207 vtkXMLTreeReader(const vtkXMLTreeReader&) = delete;
208 void operator=(const vtkXMLTreeReader&) = delete;
209};
210
211#endif
a simple class to control print indentation
Definition: vtkIndent.h:43
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.