VTK  9.0.1
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 "vtkGraphAlgorithm.h"
34 #include "vtkIOSQLModule.h" // For export macro
35 #include "vtkStdString.h"
36 
38 
39 class VTKIOSQL_EXPORT vtkSQLDatabaseGraphSource : public vtkGraphAlgorithm
40 {
41 public:
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
47  void SetURL(const vtkStdString& url);
48 
49  void SetPassword(const vtkStdString& password);
50 
52  void SetEdgeQuery(const vtkStdString& query);
53 
55  void SetVertexQuery(const vtkStdString& query);
56 
57  void AddLinkVertex(const char* column, const char* domain = 0, int hidden = 0);
59  void AddLinkEdge(const char* column1, const char* column2);
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 
95 
97 
100 
101 private:
103  void operator=(const vtkSQLDatabaseGraphSource&) = delete;
104 
109  vtkEventForwarderCommand* EventForwarder;
110 
111  class implementation;
112  implementation* const Implementation;
113 
114  bool Directed;
115 };
116 
117 #endif
118 
119 // VTK-HeaderTest-Exclude: vtkSQLDatabaseGraphSource.h
a simple event forwarder command
Superclass for algorithms that produce only graph as output.
a simple class to control print indentation
Definition: vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Generates a vtkGraph based on an SQL query.
void SetVertexQuery(const vtkStdString &query)
~vtkSQLDatabaseGraphSource() override
void AddLinkVertex(const char *column, const char *domain=0, int hidden=0)
void SetURL(const vtkStdString &url)
vtkStdString GetEdgeQuery()
int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkStdString GetVertexQuery()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
void SetEdgeQuery(const vtkStdString &query)
void SetPassword(const vtkStdString &password)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void AddLinkEdge(const char *column1, const char *column2)
static vtkSQLDatabaseGraphSource * New()
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:35
@ url
Definition: vtkX3D.h:239