00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00093 #ifndef __vtkXMLTreeReader_h
00094 #define __vtkXMLTreeReader_h
00095
00096 #include "vtkTreeAlgorithm.h"
00097
00098 class VTK_INFOVIS_EXPORT vtkXMLTreeReader : public vtkTreeAlgorithm
00099 {
00100 public:
00101 static vtkXMLTreeReader* New();
00102 vtkTypeMacro(vtkXMLTreeReader,vtkTreeAlgorithm);
00103 void PrintSelf(ostream& os, vtkIndent indent);
00104
00106
00107 vtkGetStringMacro(FileName);
00108 vtkSetStringMacro(FileName);
00110
00112
00113 vtkGetStringMacro(XMLString);
00114 vtkSetStringMacro(XMLString);
00116
00118
00119 vtkGetStringMacro(EdgePedigreeIdArrayName);
00120 vtkSetStringMacro(EdgePedigreeIdArrayName);
00122
00124
00125 vtkGetStringMacro(VertexPedigreeIdArrayName);
00126 vtkSetStringMacro(VertexPedigreeIdArrayName);
00128
00130
00133 vtkSetMacro(GenerateEdgePedigreeIds, bool);
00134 vtkGetMacro(GenerateEdgePedigreeIds, bool);
00135 vtkBooleanMacro(GenerateEdgePedigreeIds, bool);
00136 vtkSetMacro(GenerateVertexPedigreeIds, bool);
00137 vtkGetMacro(GenerateVertexPedigreeIds, bool);
00138 vtkBooleanMacro(GenerateVertexPedigreeIds, bool);
00140
00142
00144 vtkGetMacro(MaskArrays, bool);
00145 vtkSetMacro(MaskArrays, bool);
00146 vtkBooleanMacro(MaskArrays, bool);
00148
00150
00153 vtkGetMacro(ReadCharData, bool);
00154 vtkSetMacro(ReadCharData, bool);
00155 vtkBooleanMacro(ReadCharData, bool);
00157
00159
00161 vtkGetMacro(ReadTagName, bool);
00162 vtkSetMacro(ReadTagName, bool);
00163 vtkBooleanMacro(ReadTagName, bool);
00165
00166
00167 static const char * TagNameField;
00168 static const char * CharDataField;
00169
00170 protected:
00171 vtkXMLTreeReader();
00172 ~vtkXMLTreeReader();
00173 char* FileName;
00174 char* XMLString;
00175 bool ReadCharData;
00176 bool ReadTagName;
00177 bool MaskArrays;
00178 char* EdgePedigreeIdArrayName;
00179 char* VertexPedigreeIdArrayName;
00180 bool GenerateEdgePedigreeIds;
00181 bool GenerateVertexPedigreeIds;
00182
00183 int RequestData(
00184 vtkInformation*,
00185 vtkInformationVector**,
00186 vtkInformationVector*);
00187
00188 private:
00189 vtkXMLTreeReader(const vtkXMLTreeReader&);
00190 void operator=(const vtkXMLTreeReader&);
00191 };
00192
00193 #endif
00194