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 -------------------------------------------------------------------------*/
32 #ifndef vtkSQLDatabaseGraphSource_h
33 #define vtkSQLDatabaseGraphSource_h
34 
35 #include "vtkIOSQLModule.h" // For export macro
36 #include "vtkStdString.h"
37 #include "vtkGraphAlgorithm.h"
38 
40 
42 {
43 public:
46  void PrintSelf(ostream& os, vtkIndent indent);
47 
48  vtkStdString GetURL();
49  void SetURL(const vtkStdString& url);
50 
51  void SetPassword(const vtkStdString& password);
52 
53  vtkStdString GetEdgeQuery();
54  void SetEdgeQuery(const vtkStdString& query);
55 
56  vtkStdString GetVertexQuery();
57  void SetVertexQuery(const vtkStdString& query);
58 
59  void AddLinkVertex(const char* column, const char* domain = 0, int hidden = 0);
60  void ClearLinkVertices();
61  void AddLinkEdge(const char* column1, const char* column2);
62  void ClearLinkEdges();
63 
65 
67  vtkGetMacro(GenerateEdgePedigreeIds, bool);
68  vtkSetMacro(GenerateEdgePedigreeIds, bool);
69  vtkBooleanMacro(GenerateEdgePedigreeIds, bool);
71 
73 
74  vtkSetStringMacro(EdgePedigreeIdArrayName);
75  vtkGetStringMacro(EdgePedigreeIdArrayName);
77 
79 
81  vtkSetMacro(Directed, bool);
82  vtkGetMacro(Directed, bool);
83  vtkBooleanMacro(Directed, bool);
85 
86 protected:
89 
94 
95  int RequestData(
99 
102 
103 private:
104  vtkSQLDatabaseGraphSource(const vtkSQLDatabaseGraphSource&); // Not implemented
105  void operator=(const vtkSQLDatabaseGraphSource&); // Not implemented
106 
109  vtkEventForwarderCommand *EventForwarder;
110 
111 //BTX
112  class implementation;
113  implementation* const Implementation;
114 //ETX
115 
116  bool Directed;
117 
118 
119 };
120 
121 #endif
122 
123 // VTK-HeaderTest-Exclude: vtkSQLDatabaseGraphSource.h
a simple event forwarder command
static vtkGraphAlgorithm * New()
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:46
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:38
void PrintSelf(ostream &os, vtkIndent indent)
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Store zero or more vtkInformation instances.
#define VTKIOSQL_EXPORT