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-------------------------------------------------------------------------*/
88#ifndef vtkXMLTreeReader_h
89#define vtkXMLTreeReader_h
90
91#include "vtkIOInfovisModule.h" // For export macro
92#include "vtkTreeAlgorithm.h"
93
94class VTKIOINFOVIS_EXPORT vtkXMLTreeReader : public vtkTreeAlgorithm
95{
96public:
99 void PrintSelf(ostream& os, vtkIndent indent) override;
100
102
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 static const char* TagNameField;
180 static const char* CharDataField;
181
182protected:
185 char* FileName;
194
196
197private:
198 vtkXMLTreeReader(const vtkXMLTreeReader&) = delete;
199 void operator=(const vtkXMLTreeReader&) = delete;
200};
201
202#endif
a simple class to control print indentation
Definition vtkIndent.h:34
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.