36 #ifndef vtkChacoReader_h
37 #define vtkChacoReader_h
39 #include "vtkIOGeometryModule.h"
54 vtkSetStringMacro(BaseName);
55 vtkGetStringMacro(BaseName);
64 vtkSetMacro(GenerateGlobalElementIdArray,
vtkTypeBool);
65 vtkGetMacro(GenerateGlobalElementIdArray,
vtkTypeBool);
66 vtkBooleanMacro(GenerateGlobalElementIdArray,
vtkTypeBool);
78 vtkSetMacro(GenerateGlobalNodeIdArray,
vtkTypeBool);
79 vtkGetMacro(GenerateGlobalNodeIdArray,
vtkTypeBool);
80 vtkBooleanMacro(GenerateGlobalNodeIdArray,
vtkTypeBool);
90 vtkSetMacro(GenerateVertexWeightArrays,
vtkTypeBool);
91 vtkGetMacro(GenerateVertexWeightArrays,
vtkTypeBool);
92 vtkBooleanMacro(GenerateVertexWeightArrays,
vtkTypeBool);
99 vtkGetMacro(NumberOfVertexWeights,
int);
109 const char* GetVertexWeightArrayName(
int weight);
120 vtkSetMacro(GenerateEdgeWeightArrays,
vtkTypeBool);
121 vtkGetMacro(GenerateEdgeWeightArrays,
vtkTypeBool);
122 vtkBooleanMacro(GenerateEdgeWeightArrays,
vtkTypeBool);
129 vtkGetMacro(NumberOfEdgeWeights,
int);
139 const char* GetEdgeWeightArrayName(
int weight);
145 vtkGetMacro(Dimensionality,
int);
147 vtkGetMacro(NumberOfVertices,
vtkIdType);
156 vtkGetMacro(NumberOfCellWeightArrays,
int);
164 vtkGetMacro(NumberOfPointWeightArrays,
int);
174 void CloseCurrentFile();
175 int OpenCurrentFile();
177 int InputGeom(
vtkIdType nvtxs,
int igeom,
double* x,
double* y,
double* z);
179 int InputGraph2(
vtkIdType** start,
vtkIdType** adjacency,
double** vweights,
double** eweights);
180 int GetCoordsMetadata();
181 void GetGraphMetadata();
189 void MakeWeightArrayNames(
int nv,
int ne);
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();
vtkTypeBool GenerateEdgeWeightArrays
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
int GraphFileHasVertexNumbers
static vtkUnstructuredGridAlgorithm * New()
vtkTypeBool GenerateGlobalElementIdArray
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkTypeBool GenerateGlobalNodeIdArray
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
Superclass for algorithms that produce only unstructured grid as output.
Read a Chaco file and create a vtkUnstructuredGrid.
int NumberOfPointWeightArrays
int NumberOfCellWeightArrays
vtkIdType NumberOfVertices
static const char * GetGlobalNodeIdArrayName()
static const char * GetGlobalElementIdArrayName()
int NumberOfVertexWeights
vtkTypeBool GenerateVertexWeightArrays
vtkUnstructuredGrid * DataCache