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 "vtkStdString.h"
36 #include "vtkGraphAlgorithm.h"
37 
39 
41 {
42 public:
45  void PrintSelf(ostream& os, vtkIndent indent);
46 
47  vtkStdString GetURL();
48  void SetURL(const vtkStdString& url);
49 
50  void SetPassword(const vtkStdString& password);
51 
52  vtkStdString GetEdgeQuery();
53  void SetEdgeQuery(const vtkStdString& query);
54 
55  vtkStdString GetVertexQuery();
56  void SetVertexQuery(const vtkStdString& query);
57 
58  void AddLinkVertex(const char* column, const char* domain = 0, int hidden = 0);
59  void ClearLinkVertices();
60  void AddLinkEdge(const char* column1, const char* column2);
61  void ClearLinkEdges();
62 
64 
66  vtkGetMacro(GenerateEdgePedigreeIds, bool);
67  vtkSetMacro(GenerateEdgePedigreeIds, bool);
68  vtkBooleanMacro(GenerateEdgePedigreeIds, bool);
70 
72 
73  vtkSetStringMacro(EdgePedigreeIdArrayName);
74  vtkGetStringMacro(EdgePedigreeIdArrayName);
76 
78 
80  vtkSetMacro(Directed, bool);
81  vtkGetMacro(Directed, bool);
82  vtkBooleanMacro(Directed, bool);
84 
85 protected:
88 
93 
94  int RequestData(
98 
101 
102 private:
103  vtkSQLDatabaseGraphSource(const vtkSQLDatabaseGraphSource&); // Not implemented
104  void operator=(const vtkSQLDatabaseGraphSource&); // Not implemented
105 
108  vtkEventForwarderCommand *EventForwarder;
109 
110 //BTX
111  class implementation;
112  implementation* const Implementation;
113 //ETX
114 
115  bool Directed;
116 
117 
118 };
119 
120 #endif
121 
a simple event forwarder command
static vtkGraphAlgorithm * New()
Wrapper around vtkstd::string to keep symbols short.
Definition: vtkStdString.h:45
Store vtkAlgorithm input/output information.
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
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:37
void PrintSelf(ostream &os, vtkIndent indent)
#define VTK_INFOVIS_EXPORT
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Store zero or more vtkInformation instances.