VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
vtkSQLDatabaseTableSource Class Reference

Generates a vtkTable based on an SQL query. More...

#include <vtkSQLDatabaseTableSource.h>

Inheritance diagram for vtkSQLDatabaseTableSource:
Inheritance graph
[legend]
Collaboration diagram for vtkSQLDatabaseTableSource:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkTableAlgorithm Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkSQLDatabaseTableSourceNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
vtkStdString GetURL ()
void SetURL (const vtkStdString &url)
void SetPassword (const vtkStdString &password)
vtkStdString GetQuery ()
void SetQuery (const vtkStdString &query)
virtual void SetPedigreeIdArrayName (const char *)
virtual char * GetPedigreeIdArrayName ()
virtual void SetGeneratePedigreeIds (bool)
virtual bool GetGeneratePedigreeIds ()
virtual void GeneratePedigreeIdsOn ()
virtual void GeneratePedigreeIdsOff ()

Static Public Member Functions

static vtkSQLDatabaseTableSourceNew ()
static int IsTypeOf (const char *type)
static vtkSQLDatabaseTableSourceSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkSQLDatabaseTableSource ()
 ~vtkSQLDatabaseTableSource ()
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)

Detailed Description

Generates a vtkTable based on an SQL query.

This class combines vtkSQLDatabase, vtkSQLQuery, and vtkQueryToTable to provide a convenience class for generating tables from databases. Also this class can be easily wrapped and used within ParaView / OverView.

Examples:
vtkSQLDatabaseTableSource (Examples)
Tests:
vtkSQLDatabaseTableSource (Tests)

Definition at line 44 of file vtkSQLDatabaseTableSource.h.


Member Typedef Documentation

Reimplemented from vtkTableAlgorithm.

Definition at line 48 of file vtkSQLDatabaseTableSource.h.


Constructor & Destructor Documentation


Member Function Documentation

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkTableAlgorithm.

static int vtkSQLDatabaseTableSource::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 vtkTableAlgorithm.

virtual int vtkSQLDatabaseTableSource::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 vtkTableAlgorithm.

Reimplemented from vtkTableAlgorithm.

virtual vtkObjectBase* vtkSQLDatabaseTableSource::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkTableAlgorithm.

Reimplemented from vtkTableAlgorithm.

void vtkSQLDatabaseTableSource::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 vtkTableAlgorithm.

virtual void vtkSQLDatabaseTableSource::SetPedigreeIdArrayName ( const char *  ) [virtual]

The name of the array for generating or assigning pedigree ids (default "id").

The name of the array for generating or assigning pedigree ids (default "id").

virtual void vtkSQLDatabaseTableSource::SetGeneratePedigreeIds ( bool  ) [virtual]

If on (default), generates pedigree ids automatically. If off, assign one of the arrays to be the pedigree id.

If on (default), generates pedigree ids automatically. If off, assign one of the arrays to be the pedigree id.

If on (default), generates pedigree ids automatically. If off, assign one of the arrays to be the pedigree id.

If on (default), generates pedigree ids automatically. If off, assign one of the arrays to be the pedigree id.

int vtkSQLDatabaseTableSource::RequestData ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

This is called by the superclass. This is the method you should override.

Reimplemented from vtkTableAlgorithm.


The documentation for this class was generated from the following file: