VTK
vtkSQLDatabaseGraphSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSQLDatabaseGraphSource.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
33 #ifndef vtkSQLDatabaseGraphSource_h
34 #define vtkSQLDatabaseGraphSource_h
35 
36 #include "vtkIOSQLModule.h" // For export macro
37 #include "vtkStdString.h"
38 #include "vtkGraphAlgorithm.h"
39 
41 
42 class VTKIOSQL_EXPORT vtkSQLDatabaseGraphSource : public vtkGraphAlgorithm
43 {
44 public:
47  void PrintSelf(ostream& os, vtkIndent indent);
48 
50  void SetURL(const vtkStdString& url);
51 
52  void SetPassword(const vtkStdString& password);
53 
55  void SetEdgeQuery(const vtkStdString& query);
56 
58  void SetVertexQuery(const vtkStdString& query);
59 
60  void AddLinkVertex(const char* column, const char* domain = 0, int hidden = 0);
62  void AddLinkEdge(const char* column1, const char* column2);
64 
66 
70  vtkGetMacro(GenerateEdgePedigreeIds, bool);
71  vtkSetMacro(GenerateEdgePedigreeIds, bool);
72  vtkBooleanMacro(GenerateEdgePedigreeIds, bool);
74 
76 
79  vtkSetStringMacro(EdgePedigreeIdArrayName);
80  vtkGetStringMacro(EdgePedigreeIdArrayName);
82 
84 
88  vtkSetMacro(Directed, bool);
89  vtkGetMacro(Directed, bool);
90  vtkBooleanMacro(Directed, bool);
92 
93 protected:
96 
101 
106 
109 
110 private:
111  vtkSQLDatabaseGraphSource(const vtkSQLDatabaseGraphSource&) VTK_DELETE_FUNCTION;
112  void operator=(const vtkSQLDatabaseGraphSource&) VTK_DELETE_FUNCTION;
113 
118  vtkEventForwarderCommand *EventForwarder;
119 
120  class implementation;
121  implementation* const Implementation;
122 
123  bool Directed;
124 
125 
126 };
127 
128 #endif
129 
130 // VTK-HeaderTest-Exclude: vtkSQLDatabaseGraphSource.h
vtkSQLDatabaseGraphSource::GetVertexQuery
vtkStdString GetVertexQuery()
vtkStdString.h
vtkGraphAlgorithm
Superclass for algorithms that produce only graph as output.
Definition: vtkGraphAlgorithm.h:55
vtkSQLDatabaseGraphSource::GenerateEdgePedigreeIds
bool GenerateEdgePedigreeIds
Definition: vtkSQLDatabaseGraphSource.h:107
vtkSQLDatabaseGraphSource::SetVertexQuery
void SetVertexQuery(const vtkStdString &query)
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkSQLDatabaseGraphSource::ClearLinkVertices
void ClearLinkVertices()
vtkSQLDatabaseGraphSource::GetURL
vtkStdString GetURL()
vtkSQLDatabaseGraphSource::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkSQLDatabaseGraphSource::~vtkSQLDatabaseGraphSource
~vtkSQLDatabaseGraphSource()
vtkSQLDatabaseGraphSource::vtkSQLDatabaseGraphSource
vtkSQLDatabaseGraphSource()
vtkSQLDatabaseGraphSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkSQLDatabaseGraphSource::SetPassword
void SetPassword(const vtkStdString &password)
vtkSQLDatabaseGraphSource
Generates a vtkGraph based on an SQL query.
Definition: vtkSQLDatabaseGraphSource.h:43
vtkGraphAlgorithm.h
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkSQLDatabaseGraphSource::ClearLinkEdges
void ClearLinkEdges()
vtkX3D::url
@ url
Definition: vtkX3D.h:233
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkSQLDatabaseGraphSource::GetEdgeQuery
vtkStdString GetEdgeQuery()
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkSQLDatabaseGraphSource::SetURL
void SetURL(const vtkStdString &url)
vtkSQLDatabaseGraphSource::AddLinkEdge
void AddLinkEdge(const char *column1, const char *column2)
vtkSQLDatabaseGraphSource::New
static vtkSQLDatabaseGraphSource * New()
vtkSQLDatabaseGraphSource::EdgePedigreeIdArrayName
char * EdgePedigreeIdArrayName
Definition: vtkSQLDatabaseGraphSource.h:108
vtkSQLDatabaseGraphSource::SetEdgeQuery
void SetEdgeQuery(const vtkStdString &query)
vtkSQLDatabaseGraphSource::RequestDataObject
int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkStdString
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:49
vtkEventForwarderCommand
a simple event forwarder command
Definition: vtkEventForwarderCommand.h:35
vtkSQLDatabaseGraphSource::AddLinkVertex
void AddLinkVertex(const char *column, const char *domain=0, int hidden=0)