#include <vtkPBGLGraphSQLReader.h>
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 48 of file vtkPBGLGraphSQLReader.h.
Public Types | |
typedef vtkGraphAlgorithm | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
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 (vtkObject *o) |
static void | GetRange (int rank, int total, vtkIdType size, vtkIdType &offset, vtkIdType &limit) |
Protected Member Functions | |
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] |
vtkPBGLGraphSQLReader::vtkPBGLGraphSQLReader | ( | ) | [protected] |
vtkPBGLGraphSQLReader::~vtkPBGLGraphSQLReader | ( | ) | [protected] |
static vtkPBGLGraphSQLReader* vtkPBGLGraphSQLReader::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkGraphAlgorithm.
virtual const char* vtkPBGLGraphSQLReader::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkGraphAlgorithm.
static int vtkPBGLGraphSQLReader::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkGraphAlgorithm.
virtual int vtkPBGLGraphSQLReader::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkGraphAlgorithm.
static vtkPBGLGraphSQLReader* vtkPBGLGraphSQLReader::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkGraphAlgorithm.
void vtkPBGLGraphSQLReader::PrintSelf | ( | ostream & | os, | |
vtkIndent | indent | |||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkGraphAlgorithm.
virtual void vtkPBGLGraphSQLReader::SetDirected | ( | bool | ) | [virtual] |
When set, creates a directed graph, as opposed to an undirected graph.
virtual bool vtkPBGLGraphSQLReader::GetDirected | ( | ) | [virtual] |
When set, creates a directed graph, as opposed to an undirected graph.
virtual void vtkPBGLGraphSQLReader::DirectedOn | ( | ) | [virtual] |
When set, creates a directed graph, as opposed to an undirected graph.
virtual void vtkPBGLGraphSQLReader::DirectedOff | ( | ) | [virtual] |
When set, creates a directed graph, as opposed to an undirected graph.
virtual void vtkPBGLGraphSQLReader::SetDatabase | ( | vtkSQLDatabase * | db | ) | [virtual] |
The database to connect to.
virtual vtkSQLDatabase* vtkPBGLGraphSQLReader::GetDatabase | ( | ) | [virtual] |
The database to connect to.
virtual void vtkPBGLGraphSQLReader::SetVertexTable | ( | const char * | ) | [virtual] |
The name of the vertex table in the database.
virtual char* vtkPBGLGraphSQLReader::GetVertexTable | ( | ) | [virtual] |
The name of the vertex table in the database.
virtual void vtkPBGLGraphSQLReader::SetEdgeTable | ( | const char * | ) | [virtual] |
The name of the edge table in the database.
virtual char* vtkPBGLGraphSQLReader::GetEdgeTable | ( | ) | [virtual] |
The name of the edge table in the database.
virtual void vtkPBGLGraphSQLReader::SetSourceField | ( | const char * | ) | [virtual] |
The name of the field in the edge query for the source node of each edge.
virtual char* vtkPBGLGraphSQLReader::GetSourceField | ( | ) | [virtual] |
The name of the field in the edge query for the source node of each edge.
virtual void vtkPBGLGraphSQLReader::SetTargetField | ( | const char * | ) | [virtual] |
The name of the field in the edge query for the target node of each edge.
virtual char* vtkPBGLGraphSQLReader::GetTargetField | ( | ) | [virtual] |
The name of the field in the edge query for the target node of each edge.
virtual void vtkPBGLGraphSQLReader::SetVertexIdField | ( | const char * | ) | [virtual] |
The name of the field in the node query for the node ID.
virtual char* vtkPBGLGraphSQLReader::GetVertexIdField | ( | ) | [virtual] |
The name of the field in the node query for the node ID.
static void vtkPBGLGraphSQLReader::GetRange | ( | int | rank, | |
int | total, | |||
vtkIdType | size, | |||
vtkIdType & | offset, | |||
vtkIdType & | limit | |||
) | [static] |
Get the offset/limit for this process's vertices/edges
void vtkPBGLGraphSQLReader::SetDistributionUserData | ( | int | procs, | |
vtkIdType | verts | |||
) | [inline] |
Set the distribution user data.
Definition at line 109 of file vtkPBGLGraphSQLReader.h.
vtkIdType* vtkPBGLGraphSQLReader::GetDistributionUserData | ( | ) | [inline] |
Get the user data (# procs, # vertices) used to determine the distribution.
Definition at line 117 of file vtkPBGLGraphSQLReader.h.
virtual int vtkPBGLGraphSQLReader::RequestData | ( | vtkInformation * | request, | |
vtkInformationVector ** | inputVector, | |||
vtkInformationVector * | outputVector | |||
) | [protected, virtual] |
This is called by the superclass. This is the method you should override.
Reimplemented from vtkGraphAlgorithm.
virtual int vtkPBGLGraphSQLReader::RequestDataObject | ( | vtkInformation * | , | |
vtkInformationVector ** | inputVector, | |||
vtkInformationVector * | outputVector | |||
) | [protected, virtual] |
By default, creates the same output type as the input type.
Reimplemented from vtkGraphAlgorithm.
bool vtkPBGLGraphSQLReader::Directed [protected] |
Definition at line 125 of file vtkPBGLGraphSQLReader.h.
vtkSQLDatabase* vtkPBGLGraphSQLReader::Database [protected] |
Definition at line 126 of file vtkPBGLGraphSQLReader.h.
char* vtkPBGLGraphSQLReader::VertexTable [protected] |
Definition at line 127 of file vtkPBGLGraphSQLReader.h.
char* vtkPBGLGraphSQLReader::EdgeTable [protected] |
Definition at line 128 of file vtkPBGLGraphSQLReader.h.
char* vtkPBGLGraphSQLReader::SourceField [protected] |
Definition at line 129 of file vtkPBGLGraphSQLReader.h.
char* vtkPBGLGraphSQLReader::TargetField [protected] |
Definition at line 130 of file vtkPBGLGraphSQLReader.h.
char* vtkPBGLGraphSQLReader::VertexIdField [protected] |
Definition at line 131 of file vtkPBGLGraphSQLReader.h.
vtkIdType vtkPBGLGraphSQLReader::DistributionUserData[2] [protected] |
Definition at line 132 of file vtkPBGLGraphSQLReader.h.