VTK
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 -------------------------------------------------------------------------*/
94 #ifndef vtkXMLTreeReader_h
95 #define vtkXMLTreeReader_h
96 
97 #include "vtkIOInfovisModule.h" // For export macro
98 #include "vtkTreeAlgorithm.h"
99 
100 class VTKIOINFOVIS_EXPORT vtkXMLTreeReader : public vtkTreeAlgorithm
101 {
102 public:
103  static vtkXMLTreeReader* New();
105  void PrintSelf(ostream& os, vtkIndent indent);
106 
108 
111  vtkGetStringMacro(FileName);
112  vtkSetStringMacro(FileName);
114 
116 
119  vtkGetStringMacro(XMLString);
120  vtkSetStringMacro(XMLString);
122 
124 
127  vtkGetStringMacro(EdgePedigreeIdArrayName);
128  vtkSetStringMacro(EdgePedigreeIdArrayName);
130 
132 
135  vtkGetStringMacro(VertexPedigreeIdArrayName);
136  vtkSetStringMacro(VertexPedigreeIdArrayName);
138 
140 
145  vtkSetMacro(GenerateEdgePedigreeIds, bool);
146  vtkGetMacro(GenerateEdgePedigreeIds, bool);
147  vtkBooleanMacro(GenerateEdgePedigreeIds, bool);
148  vtkSetMacro(GenerateVertexPedigreeIds, bool);
149  vtkGetMacro(GenerateVertexPedigreeIds, bool);
150  vtkBooleanMacro(GenerateVertexPedigreeIds, bool);
152 
154 
158  vtkGetMacro(MaskArrays, bool);
159  vtkSetMacro(MaskArrays, bool);
160  vtkBooleanMacro(MaskArrays, bool);
162 
164 
169  vtkGetMacro(ReadCharData, bool);
170  vtkSetMacro(ReadCharData, bool);
171  vtkBooleanMacro(ReadCharData, bool);
173 
175 
180  vtkGetMacro(ReadTagName, bool);
181  vtkSetMacro(ReadTagName, bool);
182  vtkBooleanMacro(ReadTagName, bool);
184 
185 
186  static const char * TagNameField;
187  static const char * CharDataField;
188 
189 protected:
191  ~vtkXMLTreeReader();
192  char* FileName;
193  char* XMLString;
201 
202  int RequestData(
206 
207 private:
208  vtkXMLTreeReader(const vtkXMLTreeReader&) VTK_DELETE_FUNCTION;
209  void operator=(const vtkXMLTreeReader&) VTK_DELETE_FUNCTION;
210 };
211 
212 #endif
213 
Superclass for algorithms that produce only Tree as output.
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
static const char * TagNameField
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static const char * CharDataField
Store zero or more vtkInformation instances.
static vtkTreeAlgorithm * New()
reads an XML file into a vtkTree
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
char * EdgePedigreeIdArrayName
char * VertexPedigreeIdArrayName
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.