21 #ifndef vtkChacoReader_h
22 #define vtkChacoReader_h
24 #include "vtkIOGeometryModule.h"
27 VTK_ABI_NAMESPACE_BEGIN
40 vtkSetStringMacro(BaseName);
41 vtkGetStringMacro(BaseName);
85 vtkGetMacro(NumberOfVertexWeights,
int);
115 vtkGetMacro(NumberOfEdgeWeights,
int);
131 vtkGetMacro(Dimensionality,
int);
142 vtkGetMacro(NumberOfCellWeightArrays,
int);
150 vtkGetMacro(NumberOfPointWeightArrays,
int);
188 vtkSetStringMacro(CurrentBaseName);
225 double ReadVal(FILE* infile,
int* end_flag);
226 vtkIdType ReadInt(FILE* infile,
int* end_flag);
227 void FlushLine(FILE* infile);
228 void ResetInputBuffers();
231 const int Line_length = 200;
236 void ClearWeightArrayNames();
239 VTK_ABI_NAMESPACE_END
Read a Chaco file and create a vtkUnstructuredGrid.
~vtkChacoReader() override
int ReadFile(vtkUnstructuredGrid *output)
vtkTypeBool GenerateVertexWeightArrays
int NumberOfCellWeightArrays
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void MakeWeightArrayNames(int nv, int ne)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
int InputGeom(vtkIdType nvtxs, int igeom, double *x, double *y, double *z)
int BuildOutputGrid(vtkUnstructuredGrid *gr)
const char * GetVertexWeightArrayName(int weight)
This method returns the name of the selected Vertex weight point array.
int NumberOfPointWeightArrays
const char * GetEdgeWeightArrayName(int weight)
This method returns the name of the selected Edge weight cell array.
void AddElementIds(vtkUnstructuredGrid *output)
int GraphFileHasVertexNumbers
vtkUnstructuredGrid * DataCache
static const char * GetGlobalNodeIdArrayName()
int InputGraph2(vtkIdType **start, vtkIdType **adjacency, double **vweights, double **eweights)
vtkTypeBool GenerateGlobalNodeIdArray
static vtkChacoReader * New()
vtkTypeBool GenerateGlobalElementIdArray
vtkIdType NumberOfVertices
static const char * GetGlobalElementIdArrayName()
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
vtkTypeBool GenerateEdgeWeightArrays
int NumberOfVertexWeights
void AddNodeIds(vtkUnstructuredGrid *output)
a simple class to control print indentation
Superclass for algorithms that produce only unstructured grid as output.
dataset represents arbitrary combinations of all possible cell types