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 
49  vtkStdString GetURL();
50  void SetURL(const vtkStdString& url);
51 
52  void SetPassword(const vtkStdString& password);
53 
54  vtkStdString GetEdgeQuery();
55  void SetEdgeQuery(const vtkStdString& query);
56 
57  vtkStdString GetVertexQuery();
58  void SetVertexQuery(const vtkStdString& query);
59 
60  void AddLinkVertex(const char* column, const char* domain = 0, int hidden = 0);
61  void ClearLinkVertices();
62  void AddLinkEdge(const char* column1, const char* column2);
63  void ClearLinkEdges();
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 
102  int RequestData(
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
a simple event forwarder command
static vtkGraphAlgorithm * New()
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:47
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:39
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.