21 #ifndef vtkChacoReader_h
22 #define vtkChacoReader_h
24 #include "vtkIOGeometryModule.h"
27 VTK_ABI_NAMESPACE_BEGIN
40 vtkSetStringMacro(BaseName);
41 vtkGetStringMacro(BaseName);
50 vtkSetMacro(GenerateGlobalElementIdArray,
vtkTypeBool);
51 vtkGetMacro(GenerateGlobalElementIdArray,
vtkTypeBool);
52 vtkBooleanMacro(GenerateGlobalElementIdArray,
vtkTypeBool);
64 vtkSetMacro(GenerateGlobalNodeIdArray,
vtkTypeBool);
65 vtkGetMacro(GenerateGlobalNodeIdArray,
vtkTypeBool);
66 vtkBooleanMacro(GenerateGlobalNodeIdArray,
vtkTypeBool);
76 vtkSetMacro(GenerateVertexWeightArrays,
vtkTypeBool);
77 vtkGetMacro(GenerateVertexWeightArrays,
vtkTypeBool);
78 vtkBooleanMacro(GenerateVertexWeightArrays,
vtkTypeBool);
85 vtkGetMacro(NumberOfVertexWeights,
int);
95 const char* GetVertexWeightArrayName(
int weight);
106 vtkSetMacro(GenerateEdgeWeightArrays,
vtkTypeBool);
107 vtkGetMacro(GenerateEdgeWeightArrays,
vtkTypeBool);
108 vtkBooleanMacro(GenerateEdgeWeightArrays,
vtkTypeBool);
115 vtkGetMacro(NumberOfEdgeWeights,
int);
125 const char* GetEdgeWeightArrayName(
int weight);
131 vtkGetMacro(Dimensionality,
int);
133 vtkGetMacro(NumberOfVertices,
vtkIdType);
142 vtkGetMacro(NumberOfCellWeightArrays,
int);
150 vtkGetMacro(NumberOfPointWeightArrays,
int);
160 void CloseCurrentFile();
161 int OpenCurrentFile();
163 int InputGeom(
vtkIdType nvtxs,
int igeom,
double* x,
double* y,
double* z);
165 int InputGraph2(
vtkIdType** start,
vtkIdType** adjacency,
double** vweights,
double** eweights);
166 int GetCoordsMetadata();
167 void GetGraphMetadata();
175 void MakeWeightArrayNames(
int nv,
int ne);
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
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