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 -------------------------------------------------------------------------*/
93 #ifndef __vtkXMLTreeReader_h
94 #define __vtkXMLTreeReader_h
95 
96 #include "vtkTreeAlgorithm.h"
97 
99 {
100 public:
101  static vtkXMLTreeReader* New();
103  void PrintSelf(ostream& os, vtkIndent indent);
104 
106 
107  vtkGetStringMacro(FileName);
108  vtkSetStringMacro(FileName);
110 
112 
113  vtkGetStringMacro(XMLString);
114  vtkSetStringMacro(XMLString);
116 
118 
119  vtkGetStringMacro(EdgePedigreeIdArrayName);
120  vtkSetStringMacro(EdgePedigreeIdArrayName);
122 
124 
125  vtkGetStringMacro(VertexPedigreeIdArrayName);
126  vtkSetStringMacro(VertexPedigreeIdArrayName);
128 
130 
133  vtkSetMacro(GenerateEdgePedigreeIds, bool);
134  vtkGetMacro(GenerateEdgePedigreeIds, bool);
135  vtkBooleanMacro(GenerateEdgePedigreeIds, bool);
136  vtkSetMacro(GenerateVertexPedigreeIds, bool);
137  vtkGetMacro(GenerateVertexPedigreeIds, bool);
138  vtkBooleanMacro(GenerateVertexPedigreeIds, bool);
140 
142 
144  vtkGetMacro(MaskArrays, bool);
145  vtkSetMacro(MaskArrays, bool);
146  vtkBooleanMacro(MaskArrays, bool);
148 
150 
153  vtkGetMacro(ReadCharData, bool);
154  vtkSetMacro(ReadCharData, bool);
155  vtkBooleanMacro(ReadCharData, bool);
157 
159 
161  vtkGetMacro(ReadTagName, bool);
162  vtkSetMacro(ReadTagName, bool);
163  vtkBooleanMacro(ReadTagName, bool);
165 
166 
167  static const char * TagNameField;
168  static const char * CharDataField;
169 
170 protected:
172  ~vtkXMLTreeReader();
173  char* FileName;
174  char* XMLString;
182 
183  int RequestData(
184  vtkInformation*,
187 
188 private:
189  vtkXMLTreeReader(const vtkXMLTreeReader&); // Not implemented
190  void operator=(const vtkXMLTreeReader&); // Not implemented
191 };
192 
193 #endif
194 
Superclass for algorithms that produce only Tree as output.
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void PrintSelf(ostream &os, vtkIndent indent)
static const char * TagNameField
a simple class to control print indentation
Definition: vtkIndent.h:37
#define VTK_INFOVIS_EXPORT
static const char * CharDataField
Store zero or more vtkInformation instances.
static vtkTreeAlgorithm * New()
reads an XML file into a vtkTree
char * EdgePedigreeIdArrayName
char * VertexPedigreeIdArrayName