21 #ifndef vtkChacoReader_h
22 #define vtkChacoReader_h
24 #include "vtkIOGeometryModule.h"
30 VTK_ABI_NAMESPACE_BEGIN
43 vtkSetStringMacro(BaseName);
44 vtkGetStringMacro(BaseName);
53 vtkSetMacro(GenerateGlobalElementIdArray,
vtkTypeBool);
54 vtkGetMacro(GenerateGlobalElementIdArray,
vtkTypeBool);
55 vtkBooleanMacro(GenerateGlobalElementIdArray,
vtkTypeBool);
67 vtkSetMacro(GenerateGlobalNodeIdArray,
vtkTypeBool);
68 vtkGetMacro(GenerateGlobalNodeIdArray,
vtkTypeBool);
69 vtkBooleanMacro(GenerateGlobalNodeIdArray,
vtkTypeBool);
79 vtkSetMacro(GenerateVertexWeightArrays,
vtkTypeBool);
80 vtkGetMacro(GenerateVertexWeightArrays,
vtkTypeBool);
81 vtkBooleanMacro(GenerateVertexWeightArrays,
vtkTypeBool);
88 vtkGetMacro(NumberOfVertexWeights,
int);
98 const char* GetVertexWeightArrayName(
int weight);
109 vtkSetMacro(GenerateEdgeWeightArrays,
vtkTypeBool);
110 vtkGetMacro(GenerateEdgeWeightArrays,
vtkTypeBool);
111 vtkBooleanMacro(GenerateEdgeWeightArrays,
vtkTypeBool);
118 vtkGetMacro(NumberOfEdgeWeights,
int);
128 const char* GetEdgeWeightArrayName(
int weight);
134 vtkGetMacro(Dimensionality,
int);
136 vtkGetMacro(NumberOfVertices,
vtkIdType);
145 vtkGetMacro(NumberOfCellWeightArrays,
int);
153 vtkGetMacro(NumberOfPointWeightArrays,
int);
163 void CloseCurrentFile();
164 int OpenCurrentFile();
166 int InputGeom(
vtkIdType nvtxs,
int igeom,
double* x,
double* y,
double* z);
168 int InputGraph2(
vtkIdType** start,
vtkIdType** adjacency,
double** vweights,
double** eweights);
169 int GetCoordsMetadata();
170 void GetGraphMetadata();
178 void MakeWeightArrayNames(
int nv,
int ne);
191 vtkSetStringMacro(CurrentBaseName);
228 double ReadVal(FILE* infile,
int* end_flag);
229 vtkIdType ReadInt(FILE* infile,
int* end_flag);
230 void FlushLine(FILE* infile);
231 void ResetInputBuffers();
234 const int Line_length = 200;
239 void ClearWeightArrayNames();
242 VTK_ABI_NAMESPACE_END
vtkTypeBool GenerateEdgeWeightArrays
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
std::vector< std::string > VarrayName
int GraphFileHasVertexNumbers
static vtkUnstructuredGridAlgorithm * New()
vtkTypeBool GenerateGlobalElementIdArray
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkTypeBool GenerateGlobalNodeIdArray
std::vector< std::string > EarrayName
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