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 -------------------------------------------------------------------------*/
30 #ifndef vtkSQLDatabaseGraphSource_h
31 #define vtkSQLDatabaseGraphSource_h
32 
33 #include "vtkIOSQLModule.h" // For export macro
34 #include "vtkStdString.h"
35 #include "vtkGraphAlgorithm.h"
36 
38 
39 class VTKIOSQL_EXPORT vtkSQLDatabaseGraphSource : public vtkGraphAlgorithm
40 {
41 public:
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
46  vtkStdString GetURL();
47  void SetURL(const vtkStdString& url);
48 
49  void SetPassword(const vtkStdString& password);
50 
51  vtkStdString GetEdgeQuery();
52  void SetEdgeQuery(const vtkStdString& query);
53 
54  vtkStdString GetVertexQuery();
55  void SetVertexQuery(const vtkStdString& query);
56 
57  void AddLinkVertex(const char* column, const char* domain = 0, int hidden = 0);
58  void ClearLinkVertices();
59  void AddLinkEdge(const char* column1, const char* column2);
60  void ClearLinkEdges();
61 
63 
67  vtkGetMacro(GenerateEdgePedigreeIds, bool);
68  vtkSetMacro(GenerateEdgePedigreeIds, bool);
69  vtkBooleanMacro(GenerateEdgePedigreeIds, bool);
71 
73 
76  vtkSetStringMacro(EdgePedigreeIdArrayName);
77  vtkGetStringMacro(EdgePedigreeIdArrayName);
79 
81 
85  vtkSetMacro(Directed, bool);
86  vtkGetMacro(Directed, bool);
87  vtkBooleanMacro(Directed, bool);
89 
90 protected:
93 
98 
99  int RequestData(
103 
106 
107 private:
108  vtkSQLDatabaseGraphSource(const vtkSQLDatabaseGraphSource&) VTK_DELETE_FUNCTION;
109  void operator=(const vtkSQLDatabaseGraphSource&) VTK_DELETE_FUNCTION;
110 
115  vtkEventForwarderCommand *EventForwarder;
116 
117  class implementation;
118  implementation* const Implementation;
119 
120  bool Directed;
121 
122 
123 };
124 
125 #endif
126 
127 // VTK-HeaderTest-Exclude: vtkSQLDatabaseGraphSource.h
a simple event forwarder command
static vtkGraphAlgorithm * New()
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:41
Store vtkAlgorithm input/output information.
Generates a vtkGraph based on an SQL query.
Superclass for algorithms that produce only graph as output.
a simple class to control print indentation
Definition: vtkIndent.h:33
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.