VTK
dox/Infovis/vtkSQLDatabaseTableSource.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkSQLDatabaseTableSource.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00015 /*-------------------------------------------------------------------------
00016   Copyright 2008 Sandia Corporation.
00017   Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
00018   the U.S. Government retains certain rights in this software.
00019 -------------------------------------------------------------------------*/
00035 #ifndef __vtkSQLDatabaseTableSource_h
00036 #define __vtkSQLDatabaseTableSource_h
00037 
00038 #include "vtkStdString.h"
00039 #include "vtkTableAlgorithm.h"
00040 
00041 class vtkEventForwarderCommand;
00042 
00043 class VTK_INFOVIS_EXPORT vtkSQLDatabaseTableSource : public vtkTableAlgorithm
00044 {
00045 public:
00046   static vtkSQLDatabaseTableSource* New();
00047   vtkTypeMacro(vtkSQLDatabaseTableSource, vtkTableAlgorithm);
00048   void PrintSelf(ostream& os, vtkIndent indent);
00049 
00050   vtkStdString GetURL();
00051   void SetURL(const vtkStdString& url);
00052 
00053   void SetPassword(const vtkStdString& password);
00054 
00055   vtkStdString GetQuery();
00056   void SetQuery(const vtkStdString& query);
00057 
00059 
00061   vtkSetStringMacro(PedigreeIdArrayName);
00062   vtkGetStringMacro(PedigreeIdArrayName);
00064 
00066 
00068   vtkSetMacro(GeneratePedigreeIds, bool);
00069   vtkGetMacro(GeneratePedigreeIds, bool);
00070   vtkBooleanMacro(GeneratePedigreeIds, bool);
00072  
00073 protected:
00074   vtkSQLDatabaseTableSource();
00075   ~vtkSQLDatabaseTableSource();
00076   
00077   int RequestData(
00078     vtkInformation*, 
00079     vtkInformationVector**, 
00080     vtkInformationVector*);
00081   
00082 private:
00083   vtkSQLDatabaseTableSource(const vtkSQLDatabaseTableSource&); // Not implemented
00084   void operator=(const vtkSQLDatabaseTableSource&);   // Not implemented
00085 
00086   char* PedigreeIdArrayName;
00087   bool GeneratePedigreeIds;
00088   
00091   vtkEventForwarderCommand *EventForwarder;
00092 
00093 //BTX
00094   class implementation;
00095   implementation* const Implementation;
00096 //ETX
00097 };
00098 
00099 #endif
00100