33 #ifndef vtkChacoReader_h
34 #define vtkChacoReader_h
36 #include "vtkIOGeometryModule.h"
51 vtkSetStringMacro(BaseName);
62 vtkGetMacro(GenerateGlobalElementIdArray,
int);
76 vtkGetMacro(GenerateGlobalNodeIdArray,
int);
88 vtkGetMacro(GenerateVertexWeightArrays,
int);
96 vtkGetMacro(NumberOfVertexWeights,
int);
106 const char *GetVertexWeightArrayName(
int weight);
118 vtkGetMacro(GenerateEdgeWeightArrays,
int);
126 vtkGetMacro(NumberOfEdgeWeights,
int);
136 const char *GetEdgeWeightArrayName(
int weight);
142 vtkGetMacro(Dimensionality,
int);
144 vtkGetMacro(NumberOfVertices,
vtkIdType);
153 vtkGetMacro(NumberOfCellWeightArrays,
int);
161 vtkGetMacro(NumberOfPointWeightArrays,
int);
171 void CloseCurrentFile();
172 int OpenCurrentFile();
174 int InputGeom(
vtkIdType nvtxs,
int igeom,
double *x,
double *y,
double *z);
178 int GetCoordsMetadata();
179 void GetGraphMetadata();
187 void MakeWeightArrayNames(
int nv,
int ne);
191 int GenerateGlobalElementIdArray;
192 int GenerateGlobalNodeIdArray;
194 int GenerateVertexWeightArrays;
195 int GenerateEdgeWeightArrays;
197 FILE *CurrentGeometryFP;
198 FILE *CurrentGraphFP;
199 char *CurrentBaseName;
200 vtkSetStringMacro(CurrentBaseName);
213 int NumberOfVertexWeights;
214 int NumberOfEdgeWeights;
215 int GraphFileHasVertexNumbers;
219 int NumberOfPointWeightArrays;
220 int NumberOfCellWeightArrays;
228 int RemakeDataCacheFlag;
230 int RequestInformation(
233 vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
239 double ReadVal(FILE *infile,
int *end_flag);
240 vtkIdType ReadInt(FILE *infile,
int *end_flag);
241 void FlushLine( FILE *infile);
242 void ResetInputBuffers();
250 void ClearWeightArrayNames();
static vtkUnstructuredGridAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
dataset represents arbitrary combinations of all possible cell types
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
Superclass for algorithms that produce only unstructured grid as output.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Read a Chaco file and create a vtkUnstructuredGrid.
static const char * GetGlobalNodeIdArrayName()
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static const char * GetGlobalElementIdArrayName()