VTK
|
Generates a vtkGraph based on an SQL query. More...
#include <vtkSQLDatabaseGraphSource.h>
Generates a vtkGraph based on an SQL query.
This class combines vtkSQLDatabase, vtkSQLQuery, and vtkQueryToGraph to provide a convenience class for generating graphs from databases. Also this class can be easily wrapped and used within ParaView / OverView.
Definition at line 41 of file vtkSQLDatabaseGraphSource.h.
Reimplemented from vtkGraphAlgorithm.
Definition at line 45 of file vtkSQLDatabaseGraphSource.h.
vtkSQLDatabaseGraphSource::vtkSQLDatabaseGraphSource | ( | ) | [protected] |
vtkSQLDatabaseGraphSource::~vtkSQLDatabaseGraphSource | ( | ) | [protected] |
static vtkSQLDatabaseGraphSource* vtkSQLDatabaseGraphSource::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkGraphAlgorithm.
static int vtkSQLDatabaseGraphSource::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 vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkGraphAlgorithm.
virtual int vtkSQLDatabaseGraphSource::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 vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkGraphAlgorithm.
static vtkSQLDatabaseGraphSource* vtkSQLDatabaseGraphSource::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkGraphAlgorithm.
virtual vtkObjectBase* vtkSQLDatabaseGraphSource::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkGraphAlgorithm.
Reimplemented from vtkGraphAlgorithm.
void vtkSQLDatabaseGraphSource::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.
void vtkSQLDatabaseGraphSource::SetURL | ( | const vtkStdString & | url | ) |
void vtkSQLDatabaseGraphSource::SetPassword | ( | const vtkStdString & | password | ) |
void vtkSQLDatabaseGraphSource::SetEdgeQuery | ( | const vtkStdString & | query | ) |
void vtkSQLDatabaseGraphSource::SetVertexQuery | ( | const vtkStdString & | query | ) |
void vtkSQLDatabaseGraphSource::AddLinkVertex | ( | const char * | column, |
const char * | domain = 0 , |
||
int | hidden = 0 |
||
) |
void vtkSQLDatabaseGraphSource::AddLinkEdge | ( | const char * | column1, |
const char * | column2 | ||
) |
virtual bool vtkSQLDatabaseGraphSource::GetGenerateEdgePedigreeIds | ( | ) | [virtual] |
If on (default), generate edge pedigree ids. If off, assign an array to be edge pedigree ids.
virtual void vtkSQLDatabaseGraphSource::SetGenerateEdgePedigreeIds | ( | bool | ) | [virtual] |
If on (default), generate edge pedigree ids. If off, assign an array to be edge pedigree ids.
virtual void vtkSQLDatabaseGraphSource::GenerateEdgePedigreeIdsOn | ( | ) | [virtual] |
If on (default), generate edge pedigree ids. If off, assign an array to be edge pedigree ids.
virtual void vtkSQLDatabaseGraphSource::GenerateEdgePedigreeIdsOff | ( | ) | [virtual] |
If on (default), generate edge pedigree ids. If off, assign an array to be edge pedigree ids.
virtual void vtkSQLDatabaseGraphSource::SetEdgePedigreeIdArrayName | ( | const char * | ) | [virtual] |
Use this array name for setting or generating edge pedigree ids.
virtual char* vtkSQLDatabaseGraphSource::GetEdgePedigreeIdArrayName | ( | ) | [virtual] |
Use this array name for setting or generating edge pedigree ids.
virtual void vtkSQLDatabaseGraphSource::SetDirected | ( | bool | ) | [virtual] |
If on (default), generate a directed output graph. If off, generate an undirected output graph.
virtual bool vtkSQLDatabaseGraphSource::GetDirected | ( | ) | [virtual] |
If on (default), generate a directed output graph. If off, generate an undirected output graph.
virtual void vtkSQLDatabaseGraphSource::DirectedOn | ( | ) | [virtual] |
If on (default), generate a directed output graph. If off, generate an undirected output graph.
virtual void vtkSQLDatabaseGraphSource::DirectedOff | ( | ) | [virtual] |
If on (default), generate a directed output graph. If off, generate an undirected output graph.
int vtkSQLDatabaseGraphSource::RequestDataObject | ( | vtkInformation * | , |
vtkInformationVector ** | , | ||
vtkInformationVector * | |||
) | [protected, virtual] |
Reimplemented from vtkGraphAlgorithm.
int vtkSQLDatabaseGraphSource::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.
bool vtkSQLDatabaseGraphSource::GenerateEdgePedigreeIds [protected] |
Definition at line 100 of file vtkSQLDatabaseGraphSource.h.
char* vtkSQLDatabaseGraphSource::EdgePedigreeIdArrayName [protected] |
Definition at line 101 of file vtkSQLDatabaseGraphSource.h.