-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathvtkUnstructuredGridToGraph.h
More file actions
45 lines (31 loc) · 1.59 KB
/
Copy pathvtkUnstructuredGridToGraph.h
File metadata and controls
45 lines (31 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//This class converts all of the points in a vtkUnstructuredGrid into vertices in a vtkGraph, and all
// "edges" in a vtkUnstructuredGrid (borders of cells (volumetric cells, polygons, and vtkLines)) into edges in a vtkGraph
#ifndef __vtkUnstructuredGridToGraph_h
#define __vtkUnstructuredGridToGraph_h
#include "vtkGraphAlgorithm.h"
#include "vtkSmartPointer.h"
class vtkUnstructuredGrid;
class vtkIdList;
class vtkGraph;
class vtkUnstructuredGridToGraph : public vtkGraphAlgorithm
{
public:
vtkTypeRevisionMacro(vtkUnstructuredGridToGraph, vtkGraphAlgorithm);
static vtkUnstructuredGridToGraph* New();
protected:
vtkUnstructuredGridToGraph(){}
~vtkUnstructuredGridToGraph(){}
virtual int FillInputPortInformation( int port, vtkInformation* info );
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
int RequestDataObject(vtkInformation *vtkNotUsed(request),
vtkInformationVector **inputVector,
vtkInformationVector *outputVector);
static void ProgressFunction(vtkObject* caller, long unsigned int eventId, void* clientData, void* callData);
private:
vtkUnstructuredGridToGraph(const vtkUnstructuredGridToGraph&); // Not implemented.
void operator=(const vtkUnstructuredGridToGraph&); // Not implemented.
//should not be part of this class
bool EdgeExists(vtkSmartPointer<vtkGraph> g, int pointID, int neighborID);
void GetConnectedVertices(vtkSmartPointer<vtkUnstructuredGrid> mesh, int seed, vtkSmartPointer<vtkIdList> connectedVertices);
};
#endif