36#ifndef vtkChacoReader_h
37#define vtkChacoReader_h
39#include "vtkIOGeometryModule.h"
54 vtkSetStringMacro(BaseName);
55 vtkGetStringMacro(BaseName);
99 vtkGetMacro(NumberOfVertexWeights,
int);
129 vtkGetMacro(NumberOfEdgeWeights,
int);
145 vtkGetMacro(Dimensionality,
int);
156 vtkGetMacro(NumberOfCellWeightArrays,
int);
164 vtkGetMacro(NumberOfPointWeightArrays,
int);
202 vtkSetStringMacro(CurrentBaseName);
239 double ReadVal(FILE* infile,
int* end_flag);
240 vtkIdType ReadInt(FILE* infile,
int* end_flag);
241 void FlushLine(FILE* infile);
242 void ResetInputBuffers();
245 const int Line_length = 200;
250 void ClearWeightArrayNames();
Read a Chaco file and create a vtkUnstructuredGrid.
~vtkChacoReader() override
int ReadFile(vtkUnstructuredGrid *output)
const char * GetVertexWeightArrayName(int weight)
This method returns the name of the selected Vertex weight point array.
vtkTypeBool GenerateVertexWeightArrays
const char * GetEdgeWeightArrayName(int weight)
This method returns the name of the selected Edge weight cell array.
static const char * GetGlobalNodeIdArrayName()
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)
int NumberOfPointWeightArrays
void AddElementIds(vtkUnstructuredGrid *output)
int GraphFileHasVertexNumbers
vtkUnstructuredGrid * DataCache
int InputGraph2(vtkIdType **start, vtkIdType **adjacency, double **vweights, double **eweights)
vtkTypeBool GenerateGlobalNodeIdArray
vtkTypeBool GenerateGlobalElementIdArray
vtkIdType NumberOfVertices
static vtkChacoReader * New()
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
vtkTypeBool GenerateEdgeWeightArrays
static const char * GetGlobalElementIdArrayName()
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