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:
109  void operator=(const vtkSQLDatabaseGraphSource&) = delete;
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
vtkStdString.h
vtkGraphAlgorithm
Superclass for algorithms that produce only graph as output.
Definition: vtkGraphAlgorithm.h:51
vtkSQLDatabaseGraphSource::GenerateEdgePedigreeIds
bool GenerateEdgePedigreeIds
Definition: vtkSQLDatabaseGraphSource.h:104
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkSQLDatabaseGraphSource
Generates a vtkGraph based on an SQL query.
Definition: vtkSQLDatabaseGraphSource.h:39
vtkGraphAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGraphAlgorithm.h
vtkGraphAlgorithm::RequestDataObject
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkX3D::url
Definition: vtkX3D.h:233
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
vtkGraphAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkSQLDatabaseGraphSource::EdgePedigreeIdArrayName
char * EdgePedigreeIdArrayName
Definition: vtkSQLDatabaseGraphSource.h:105
vtkStdString
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:34
vtkEventForwarderCommand
a simple event forwarder command
Definition: vtkEventForwarderCommand.h:34
vtkGraphAlgorithm::New
static vtkGraphAlgorithm * New()