VTK
|
read a vtkGraph from a database More...
#include <vtkPBGLGraphSQLReader.h>
Inherits vtkGraphAlgorithm.
Public Types | |
typedef vtkGraphAlgorithm | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkPBGLGraphSQLReader * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetDirected (bool) |
virtual bool | GetDirected () |
virtual void | DirectedOn () |
virtual void | DirectedOff () |
virtual void | SetDatabase (vtkSQLDatabase *db) |
virtual vtkSQLDatabase * | GetDatabase () |
virtual void | SetVertexTable (const char *) |
virtual char * | GetVertexTable () |
virtual void | SetEdgeTable (const char *) |
virtual char * | GetEdgeTable () |
virtual void | SetSourceField (const char *) |
virtual char * | GetSourceField () |
virtual void | SetTargetField (const char *) |
virtual char * | GetTargetField () |
virtual void | SetVertexIdField (const char *) |
virtual char * | GetVertexIdField () |
void | SetDistributionUserData (int procs, vtkIdType verts) |
vtkIdType * | GetDistributionUserData () |
Static Public Member Functions | |
static vtkPBGLGraphSQLReader * | New () |
static int | IsTypeOf (const char *type) |
static vtkPBGLGraphSQLReader * | SafeDownCast (vtkObjectBase *o) |
static void | GetRange (int rank, int total, vtkIdType size, vtkIdType &offset, vtkIdType &limit) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkPBGLGraphSQLReader () | |
~vtkPBGLGraphSQLReader () | |
virtual int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
virtual int | RequestDataObject (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
Protected Attributes | |
bool | Directed |
vtkSQLDatabase * | Database |
char * | VertexTable |
char * | EdgeTable |
char * | SourceField |
char * | TargetField |
char * | VertexIdField |
vtkIdType | DistributionUserData [2] |
read a vtkGraph from a database
Creates a vtkGraph using two SQL tables. The edge table must have one row for each edge in the graph. The table must have two columns which represent the source and target vertex ids.
The vertex table has one row for each vertex in the graph. The table must have a field whose values match those in the edge table.
The source, target, and node ID fields must be of the same type.
NOTE: This filter currently only produces the pedigree id field in the vertex attributes, and no edge attributes.
Definition at line 49 of file vtkPBGLGraphSQLReader.h.
typedef vtkGraphAlgorithm vtkPBGLGraphSQLReader::Superclass |
Definition at line 53 of file vtkPBGLGraphSQLReader.h.
|
protected |
|
protected |
|
static |
|
static |
|
virtual |
|
static |
|
protectedvirtual |
vtkPBGLGraphSQLReader* vtkPBGLGraphSQLReader::NewInstance | ( | ) | const |
void vtkPBGLGraphSQLReader::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
virtual |
When set, creates a directed graph, as opposed to an undirected graph.
|
virtual |
When set, creates a directed graph, as opposed to an undirected graph.
|
virtual |
When set, creates a directed graph, as opposed to an undirected graph.
|
virtual |
When set, creates a directed graph, as opposed to an undirected graph.
|
virtual |
The database to connect to.
|
virtual |
The database to connect to.
|
virtual |
The name of the vertex table in the database.
|
virtual |
The name of the vertex table in the database.
|
virtual |
The name of the edge table in the database.
|
virtual |
The name of the edge table in the database.
|
virtual |
The name of the field in the edge query for the source node of each edge.
|
virtual |
The name of the field in the edge query for the source node of each edge.
|
virtual |
The name of the field in the edge query for the target node of each edge.
|
virtual |
The name of the field in the edge query for the target node of each edge.
|
virtual |
The name of the field in the node query for the node ID.
|
virtual |
The name of the field in the node query for the node ID.
|
static |
Get the offset/limit for this process's vertices/edges
|
inline |
Set the distribution user data.
Definition at line 110 of file vtkPBGLGraphSQLReader.h.
|
inline |
Get the user data (# procs, # vertices) used to determine the distribution.
Definition at line 118 of file vtkPBGLGraphSQLReader.h.
|
protectedvirtual |
|
protectedvirtual |
|
protected |
Definition at line 126 of file vtkPBGLGraphSQLReader.h.
|
protected |
Definition at line 127 of file vtkPBGLGraphSQLReader.h.
|
protected |
Definition at line 128 of file vtkPBGLGraphSQLReader.h.
|
protected |
Definition at line 129 of file vtkPBGLGraphSQLReader.h.
|
protected |
Definition at line 130 of file vtkPBGLGraphSQLReader.h.
|
protected |
Definition at line 131 of file vtkPBGLGraphSQLReader.h.
|
protected |
Definition at line 132 of file vtkPBGLGraphSQLReader.h.
|
protected |
Definition at line 133 of file vtkPBGLGraphSQLReader.h.